/* ==========================================================================
   CSST.MX — Executive Dark Obsidian & Electric Blue Identity (v3)
   Reference-faithful: Pure Black + Midnight Navy + Electric Blue Corner Glow
   + Abstract Digital Network + Minimalist Pill Nav + Subtle Dark Cards
   ========================================================================== */

:root {
  --bg-obsidian: #03060c;
  --bg-midnight: #060d1a;
  --bg-navy-deep: #081326;
  --bg-card: rgba(9, 16, 30, 0.78);
  --bg-card-solid: #0a1222;
  --bg-card-hover: rgba(13, 23, 43, 0.92);
  --border-hairline: rgba(148, 163, 184, 0.12);
  --border-subtle: rgba(148, 163, 184, 0.18);
  --border-electric: rgba(56, 189, 248, 0.45);
  --electric: #38bdf8;
  --electric-strong: #0f7bff;
  --electric-soft: #60c5ff;
  --text-white: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-electric: 0 0 36px rgba(56, 189, 248, 0.24);
  --font-display: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Override legacy CSS custom properties */
  --navy: #f8fafc;
  --blue: #38bdf8;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.14);
  --paper: #060d1a;
  --s3-navy: #f8fafc;
  --s3-blue: #38bdf8;
  --s3-gray: #94a3b8;
  --s3-line: rgba(148, 163, 184, 0.14);
  --s3-mist: #060d1a;
}

/* ---------- Global Reset & Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg-obsidian);
  color-scheme: dark;
}

body {
  background: var(--bg-obsidian);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-white);
  letter-spacing: -0.032em;
  line-height: 1.14;
}

.s3-hero, .s3-section, .s3-metrics, .s3-brands, .s3-industry-short {
  font-family: var(--font-body);
}

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

.container {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.skip {
  background: var(--electric-strong);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}

/* ---------- Ultra-Minimal Top Utility Bar ---------- */
.upper {
  background: #020409;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.upper > .container {
  min-height: 32px;
}

.upper .live {
  width: 6px;
  height: 6px;
  background: var(--electric);
  box-shadow: 0 0 10px var(--electric);
  animation: csstPulse 2.4s infinite;
}

.upper a {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  transition: color 0.2s ease;
}

.upper a:hover {
  color: var(--electric);
}

/* ---------- Minimalist Header with Centered Pill Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(3, 6, 12, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: background 0.3s var(--ease-out), border-color 0.3s ease;
}

.header.is-scrolled {
  background: rgba(3, 6, 12, 0.92);
  border-bottom-color: rgba(56, 189, 248, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72);
}

.navigation {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: min-height 0.3s var(--ease-out);
}

.header.is-scrolled .navigation {
  min-height: 70px;
}

.logo img {
  width: 172px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.15));
  transition: transform 0.25s var(--ease-out), filter 0.25s ease;
}

.logo:hover img {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.35));
}

.navigation nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.navigation nav a {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.navigation nav a:not(.nav-cta):hover,
.navigation nav a:not(.nav-cta).is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.navigation nav .nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4fb8ff 0%, #0f7bff 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  border: 1px solid rgba(186, 230, 253, 0.42);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, filter 0.25s ease;
}

.navigation nav .nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #67c4ff 0%, #1d86ff 100%);
}

.menu-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  gap: 5px;
}

.menu-btn span {
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s var(--ease-out), opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Modern Electric Blue & Dark Outline Buttons ---------- */
.btn, .s3-button {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 10px;
  gap: 12px;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover, .s3-button:hover {
  transform: translateY(-2px);
}

.btn.primary, .s3-primary {
  background: linear-gradient(135deg, #4fb8ff 0%, #0f7bff 100%);
  color: #fff;
  border: 1px solid rgba(186, 230, 253, 0.42);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn.primary:hover, .s3-primary:hover {
  background: linear-gradient(135deg, #67c4ff 0%, #2589ff 100%);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.s3-outline, .btn.outline {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.s3-outline:hover, .btn.outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--electric);
  color: #fff;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.2);
}

.btn.light-btn {
  background: #fff;
  color: #03060c;
  font-weight: 700;
  border: 1px solid #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.btn.light-btn:hover {
  background: #e0f2fe;
  box-shadow: 0 0 34px rgba(56, 189, 248, 0.42);
}

.s3-link, .inline-link, .card-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--electric);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, gap 0.25s var(--ease-out);
}

.s3-link:hover, .inline-link:hover, .card-link:hover {
  color: #bae6fd;
  gap: 12px;
}

.eyebrow, .s3-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* ==========================================================================
   ICONIC HERO SECTION (Reference-Inspired Obsidian + Electric Corner Glow)
   ========================================================================== */
.s3-hero {
  position: relative;
  background:
    radial-gradient(ellipse 46% 52% at 6% 8%, rgba(56, 189, 248, 0.3), transparent 62%),
    radial-gradient(ellipse 42% 45% at 94% 12%, rgba(15, 123, 255, 0.16), transparent 62%),
    radial-gradient(ellipse 70% 50% at 50% 85%, rgba(15, 123, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #03060c 0%, #050b17 65%, #03060c 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  overflow: hidden;
  padding-top: 26px;
}

/* Interactive subtle abstract network canvas */
.csst-net-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Signature Electric-Blue Corner Light Frame + Abstract Flowing Data Wave */
.csst-hero-stage {
  position: absolute;
  inset: 14px 20px 0 20px;
  max-width: 1380px;
  margin: 0 auto;
  border-radius: 26px 26px 0 0;
  border-top: 1px solid rgba(125, 211, 252, 0.22);
  border-left: 1px solid rgba(125, 211, 252, 0.26);
  border-right: 1px solid rgba(148, 163, 184, 0.08);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.csst-corner-beam {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 340px;
  height: 300px;
  border-top-left-radius: 26px;
  border-top: 2.5px solid rgba(125, 211, 252, 0.92);
  border-left: 2.5px solid rgba(125, 211, 252, 0.92);
  box-shadow:
    inset 18px 18px 55px rgba(56, 189, 248, 0.28),
    -8px -8px 40px rgba(56, 189, 248, 0.45);
  mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.7) 38%, transparent 74%);
  -webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.7) 38%, transparent 74%);
}

.csst-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 215px;
  width: 100%;
  height: 410px;
  opacity: 0.92;
  animation: csstFloat 11s ease-in-out infinite;
}

.csst-wave-path {
  stroke-dasharray: 16 22;
  stroke-dashoffset: 0;
  animation: csstWaveFlow 6s linear infinite;
}

.csst-dash-secondary {
  animation: csstWaveFlowReverse 8s linear infinite;
}

.csst-drop-lines line {
  transform-box: fill-box;
  transform-origin: top center;
  animation: csstDropFade 4.5s ease-in-out infinite;
}
.csst-drop-lines line:nth-child(2n) { animation-delay: .5s; }
.csst-drop-lines line:nth-child(3n) { animation-delay: 1.1s; }
.csst-drop-lines line:nth-child(4n) { animation-delay: 1.7s; }

.csst-node-glow circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: csstNodeBlink 2.8s ease-in-out infinite;
}
.csst-node-glow circle:nth-child(2n) { animation-delay: .45s; }
.csst-node-glow circle:nth-child(3n) { animation-delay: .9s; }
.csst-node-glow circle:nth-child(4n) { animation-delay: 1.35s; }
.csst-node-glow circle:nth-child(5n) { animation-delay: 1.8s; }

/* Centered Editorial Hero Layout above the fold, Showcase strip cleanly integrated below */
.s3-hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  padding-top: 84px;
  padding-bottom: 56px;
  gap: 78px;
}

.s3-hero-left {
  text-align: center;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.s3-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.26);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.14);
}

.s3-mini-line {
  width: 14px;
  height: 2px;
  background: var(--electric);
  border-radius: 2px;
}

.s3-hero h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.07;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #ffffff;
  max-width: 860px;
  margin-bottom: 22px;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.55);
}

.s3-hero h1 span {
  background: linear-gradient(120deg, #ffffff 10%, #7dd3fc 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.s3-hero-left > p {
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.s3-hero-buttons {
  justify-content: center;
  gap: 14px;
}

.s3-hero-pillars {
  justify-content: center;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 22px;
  margin-top: 38px;
  gap: 34px;
}

.s3-hero-pillars span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.s3-hero-pillars b {
  font-family: var(--font-mono);
  color: var(--electric);
  margin-right: 6px;
}

/* Executive Dark-Glass Visual Showcase (Preserves all original Hero media cleanly) */
.s3-hero-right {
  width: 100%;
  max-width: 1040px;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 20px;
  align-items: stretch;
  position: relative;
}

.s3-hero-image {
  position: relative;
  inset: auto;
  min-height: 340px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #060d1a;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.s3-hero-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.06) brightness(0.88);
  transition: transform 0.75s var(--ease-out);
}

.s3-hero-image:hover > img {
  transform: scale(1.03);
}

.s3-hero-image::after {
  background: linear-gradient(180deg, rgba(3, 6, 12, 0.12) 0%, rgba(3, 6, 12, 0.88) 100%);
}

.s3-image-corner > span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--electric);
  letter-spacing: 0.16em;
}

.s3-image-corner > strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
}

.s3-device-inset {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  max-width: none;
  min-height: 340px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: #060d1a;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease;
}

.s3-device-inset:hover {
  transform: translateY(-4px);
  border-color: var(--border-electric);
}

.s3-device-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.86) contrast(1.06);
}

.s3-device-inset span {
  padding: 14px 18px;
  background: rgba(3, 6, 12, 0.84);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #e2e8f0;
  border-top: 1px solid var(--border-hairline);
}

.s3-floating-monitor {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  background: rgba(6, 13, 26, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.72), 0 0 28px rgba(56, 189, 248, 0.18);
  color: #fff;
  animation: csstFloat 5.5s ease-in-out infinite;
}

.s3-status-light {
  background: var(--electric);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
  animation: csstPulse 2.2s infinite;
}

.s3-floating-monitor strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 12.5px;
}

.s3-floating-monitor small {
  color: var(--text-muted);
  font-size: 10.5px;
}

.s3-spark {
  color: var(--electric);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
}

.s3-hero-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 18px 0 24px;
}

/* ---------- Monochrome Trust / Capability Strip (Reference Bottom Bar) ---------- */
.s3-capability-band {
  background: #02050a;
  border-bottom: 1px solid var(--border-hairline);
  padding: 24px 0;
}

.s3-capability-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.s3-capability-items span {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.s3-capability-items span:hover {
  color: #fff;
}

.s3-capability-items i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 10px var(--electric);
}

/* ==========================================================================
   ALTERNATING SECTION CONTRAST (Obsidian Black <-> Deep Midnight Navy)
   ========================================================================== */
.s3-section, .section {
  padding: 104px 0;
  position: relative;
}

.s3-solutions, .s3-platforms, .s3-projects {
  background: var(--bg-obsidian);
}

.s3-metrics, .s3-brands, .s3-industry-short, .fc-surface {
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(15, 123, 255, 0.13), transparent 72%),
    var(--bg-midnight);
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.s3-heading-row h2, .s3-metrics-heading h2, .s3-brands-intro h2, .s3-industry-short h2, .section-heading h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.036em;
  line-height: 1.1;
}

.s3-heading-row h2 em,
.s3-metrics-heading h2 em,
.s3-brands-intro h2 em,
.s3-industry-short h2 em {
  font-style: normal;
  background: linear-gradient(120deg, #7dd3fc 0%, #38bdf8 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.s3-heading-row p, .s3-metrics-heading p, .s3-brands-intro p, .section-heading p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ---------- Refined Dark Cards with Subtle Borders & Electric Hover ---------- */
.s3-solution-card,
.s3-metric-grid > div,
.s3-platform-feature,
.s3-platform-tile,
.s3-project,
.item-card,
.blog-card,
.fc-feature,
.fc-steps > div,
.fc-preview,
.side-cta,
.mission-grid > div,
.values > div,
.case-placeholder,
.form-box,
.article-more {
  position: relative;
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.82) 0%, rgba(6, 11, 22, 0.92) 100%);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.52);
  transition: transform 0.34s var(--ease-out), border-color 0.3s ease, box-shadow 0.34s ease, background 0.3s ease;
  overflow: hidden;
}

.s3-solution-card::before,
.s3-metric-grid > div::before,
.s3-platform-tile::before,
.s3-project::before,
.item-card::before,
.blog-card::before,
.fc-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.15), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.s3-solution-card:hover::before,
.s3-metric-grid > div:hover::before,
.s3-platform-tile:hover::before,
.s3-project:hover::before,
.item-card:hover::before,
.blog-card:hover::before,
.fc-feature:hover::before {
  opacity: 1;
}

.s3-solution-card:hover,
.s3-metric-grid > div:hover,
.s3-platform-tile:hover,
.s3-project:hover,
.item-card:hover,
.blog-card:hover,
.fc-feature:hover,
.fc-steps > div:hover,
.values > div:hover {
  transform: translateY(-5px);
  border-color: var(--border-electric);
  background: linear-gradient(180deg, rgba(14, 26, 48, 0.94) 0%, rgba(7, 13, 26, 0.98) 100%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.72), 0 0 30px rgba(56, 189, 248, 0.14);
}

/* ---------- Solutions & Projects Media ---------- */
.s3-solution-card .s3-card-media {
  position: relative;
  overflow: hidden;
  background: #060d1a;
  border-bottom: 1px solid var(--border-hairline);
}

.s3-solution-card .s3-media-product,
.s3-project-photo.s3-product-photo {
  background: radial-gradient(circle at 50% 50%, #13223d 0%, #050a14 100%);
  padding: 24px;
}

.s3-solution-card img, .s3-project-photo img {
  filter: brightness(0.92) contrast(1.04);
  transition: transform 0.65s var(--ease-out), filter 0.4s ease;
}

.s3-solution-card:hover img, .s3-project:hover .s3-project-photo img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.06);
}

.s3-card-overlay {
  background: rgba(3, 6, 12, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--electric);
  font-family: var(--font-mono);
  font-size: 10px;
  border-radius: 999px;
  padding: 6px 12px;
}

.s3-card-copy { position: relative; z-index: 2; padding: 26px; }
.s3-card-copy h3, .s3-metric-grid h3, .s3-platform-intro h3, .s3-platform-tile h3, .s3-project-content h3 { color: #fff; }
.s3-card-copy p, .s3-metric-grid p, .s3-platform-intro p, .s3-platform-intro small, .s3-platform-tile p, .s3-project-content p { color: var(--text-muted); }
.s3-card-go, .s3-project-content b { color: var(--electric); font-family: var(--font-display); font-weight: 600; }

/* ---------- Metrics ---------- */
.s3-metrics { padding: 96px 0; }
.s3-metric-grid > div { padding: 30px 26px; }

.s3-metric-symbol {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #7dd3fc 0%, #0f7bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 16px;
}

.s3-metric-unit, .s3-demo-legend, .s3-small-outline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--electric);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  padding: 5px 10px;
  display: inline-block;
}

.s3-metrics-disclaimer { color: var(--text-dim); font-size: 12.5px; margin-top: 28px; }

/* ---------- Platforms & FieldControl Mockup ---------- */
.s3-platform-feature {
  padding: 38px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 55% 75% at 88% 18%, rgba(56, 189, 248, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(10, 18, 34, 0.9) 0%, rgba(4, 8, 16, 0.96) 100%);
}

.s3-plat-tags span, .tags span {
  background: rgba(15, 123, 255, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #bae6fd;
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 999px;
}

.s3-app-window {
  background: #040812;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.8), 0 0 36px rgba(15, 123, 255, 0.14);
  overflow: hidden;
}

.s3-app-top, .s3-window-stamp { background: #081122; border-color: var(--border-hairline); color: #fff; }
.s3-app-brand { color: #fff; font-family: var(--font-display); }
.s3-app-brand span, .s3-app-brand i, .s3-app-title > span, .s3-map-area span, .s3-mini-top span, .s3-tile-label, .s3-project-content span { color: var(--electric); font-family: var(--font-mono); }
.s3-app-brand i, .s3-app-title > span { background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.26); }
.s3-app-side { background: #060c19; border-right: 1px solid var(--border-hairline); color: var(--text-muted); }
.s3-app-main, .s3-mini-dashboard { background: #040812; border-color: var(--border-hairline); color: var(--text-body); }
.s3-app-title strong, .s3-app-kpis strong, .s3-app-charthead b, .s3-app-map b, .s3-mini-top b { color: #fff; }
.s3-app-kpis > div, .s3-app-chart, .s3-app-map, .s3-linkline, .s3-ticketline { background: rgba(11, 20, 38, 0.82); border: 1px solid var(--border-hairline); }
.s3-app-bars i, .s3-mini-chart i { background: linear-gradient(180deg, #60c5ff 0%, #0f7bff 100%); box-shadow: 0 0 12px rgba(56, 189, 248, 0.3); }
.s3-map-area { background: radial-gradient(circle at 50% 50%, rgba(15, 123, 255, 0.2), transparent 70%), #071021; border: 1px solid var(--border-hairline); }
.s3-linkline b { color: #34d399; }
.s3-ball { background: #34d399; box-shadow: 0 0 8px #34d399; }
.s3-ticketline i { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.s3-platform-tile { padding: 30px; }

/* ---------- Brands & Industries ---------- */
.s3-brands, .s3-industry-short { padding: 84px 0; }

.s3-brand-wall span, .brand-grid div, .s3-industries-list a {
  background: rgba(9, 16, 30, 0.78);
  border: 1px solid var(--border-hairline);
  color: var(--text-body);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.s3-brand-wall span:hover, .brand-grid div:hover, .s3-industries-list a:hover {
  transform: translateY(-3px);
  border-color: var(--border-electric);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(56, 189, 248, 0.14);
}

.s3-industries-list a span { color: var(--electric); }
.s3-photo-chip { background: rgba(3, 6, 12, 0.88); border: 1px solid rgba(56, 189, 248, 0.34); color: var(--electric); font-family: var(--font-mono); }
.s3-photo-note, .s3-credits { color: var(--text-dim); background: var(--bg-obsidian); border-top: 1px solid var(--border-hairline); }
.s3-photo-note a, .s3-credits a { color: var(--electric); }

/* ==========================================================================
   INNER PAGES BANNER (Consistent Obsidian + Electric Blue Glow Across Site)
   ========================================================================== */
.page-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 46% 75% at 10% 15%, rgba(56, 189, 248, 0.26), transparent 62%),
    radial-gradient(ellipse 55% 70% at 88% 85%, rgba(15, 123, 255, 0.18), transparent 65%),
    linear-gradient(180deg, #03060c 0%, #071022 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  padding: 88px 0 76px;
}

.page-banner::before {
  border-color: rgba(56, 189, 248, 0.14);
  box-shadow: 0 0 0 140px rgba(56, 189, 248, 0.03), 0 0 0 280px rgba(15, 123, 255, 0.02);
}

.page-banner h1 { color: #fff; letter-spacing: -0.04em; }
.page-banner p { color: var(--text-muted); }
.breadcrumb { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.breadcrumb a { color: var(--electric); }

/* ---------- Inner Cards, Details, Blog, Forms & FieldControl ---------- */
.item-card { padding: 28px 24px; display: flex; flex-direction: column; }
.item-card .num { font-family: var(--font-mono); color: var(--text-dim); font-size: 11px; }
.item-glyph { background: rgba(15, 123, 255, 0.14); border: 1px solid rgba(56, 189, 248, 0.28); color: var(--electric); border-radius: 12px; }

.details h2, .details h3, .mission-grid h2, .values h3, .case-placeholder h3,
.article > h2, .article-more h3, .contact-side h2, .form-intro h2, .legal h2,
.item-card h3, .blog-content h3, .side-cta h3, .fc-preview h3, .fc-feature h3,
.fc-steps h3, .fc-landing h2 { color: #fff; }

.details .lead, .article > .lead { color: var(--text-body); font-size: 18px; }
.details li, .details p, .mission-grid p, .values p, .case-placeholder p,
.article > p, .article-more p, .contact-side > p, .legal p, .item-card p,
.blog-content p, .side-cta p, .fc-preview small, .fc-note, .fc-feature p,
.fc-steps p, .fc-list { color: var(--text-muted); }

.details li::before, .side-cta > a:not(.btn), .fc-secondary, .fc-preview-row strong { color: var(--electric); }
.service-faq { background: rgba(9, 16, 30, 0.78); border: 1px solid var(--border-hairline); border-radius: 14px; padding: 24px; margin-top: 32px; }
.service-faq h4 { color: var(--electric); margin-bottom: 8px; }
.side-cta { padding: 32px; position: sticky; top: 104px; }

.blog-thumb {
  background:
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.28), transparent 55%),
    linear-gradient(135deg, #061126 0%, #0b244d 100%);
  border-bottom: 1px solid var(--border-hairline);
}

.blog-thumb span {
  font-family: var(--font-mono);
  background: rgba(3, 6, 12, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: var(--electric);
  border-radius: 999px;
  padding: 6px 12px;
}

.blog-content { padding: 26px; }

.contact-side > div {
  background: rgba(9, 16, 30, 0.72);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.25s ease;
}
.contact-side > div:hover { border-color: var(--border-electric); }
.contact-side > div > span { font-family: var(--font-mono); color: var(--electric); }
.contact-side > div > a { color: #fff; font-size: 15px; }

.form-box { padding: 40px; }
.form-box label { color: var(--text-body); font-family: var(--font-display); font-size: 12.5px; }
.form-box input:not([type=checkbox]), .form-box textarea, .form-box select {
  background: rgba(3, 6, 12, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-box input:not([type=checkbox]):focus, .form-box textarea:focus, .form-box select:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.form-box label.accept { color: var(--text-muted); }
.form-box label.accept a { color: var(--electric); }

.fc-preview-row { border-top-color: var(--border-hairline); color: var(--text-body); }
.fc-step { background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.35); color: var(--electric); font-family: var(--font-mono); }
.fc-table { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-hairline); }
.fc-table th, .fc-table td { border-color: var(--border-hairline); color: var(--text-body); }
.fc-table thead th { background: #08152c; color: #fff; }
.fc-table tbody th { background: rgba(9, 16, 30, 0.88); color: #fff; }
.fc-table tbody tr:nth-child(even) td { background: rgba(9, 16, 30, 0.5); }
.fc-faq details { background: var(--bg-card); border: 1px solid var(--border-hairline); border-radius: 14px; }
.fc-faq details[open] { border-color: var(--border-electric); }
.fc-faq summary { color: #fff; font-family: var(--font-display); }
.fc-bottom { background: var(--bg-card); border: 1px solid var(--border-hairline); }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 100% at 88% 50%, rgba(56, 189, 248, 0.32), transparent 60%),
    radial-gradient(ellipse 50% 90% at 12% 20%, rgba(15, 123, 255, 0.28), transparent 65%),
    linear-gradient(135deg, #050c1b 0%, #0a1f44 55%, #072857 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.24);
  padding: 88px 0;
}

.final-cta h2 { color: #fff; letter-spacing: -0.036em; }
.final-cta p { color: #cbd5e1; font-size: 15.5px; }

/* ---------- Footer ---------- */
footer {
  background: #020409;
  border-top: 1px solid var(--border-hairline);
  color: var(--text-muted);
  padding: 78px 0 32px;
}

.footer-top img {
  background: transparent;
  padding: 0;
  border-radius: 0;
  max-width: 185px;
  filter: brightness(0) invert(1);
}

.footer-top p { color: #fff; font-family: var(--font-display); font-size: 14.5px; }
.footer-top small { color: var(--text-dim); font-size: 12.5px; }
.footer-top h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--electric); }
.footer-top a, .csst-footer-privacy { color: var(--text-muted); font-size: 13.5px; transition: color 0.2s ease; }
.footer-top a:hover, .csst-footer-privacy:hover { color: #fff; }
.foot-bottom { border-top: 1px solid var(--border-hairline); color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; }

.foot-credits { margin-top: 10px; color: rgba(148, 163, 184, 0.55); font-size: 9.5px; line-height: 1.6; max-width: 980px; }
.foot-credits a { color: rgba(148, 163, 184, 0.75); text-decoration: underline; text-decoration-color: rgba(148, 163, 184, 0.35); }
.foot-credits a:hover { color: #94a3b8; }

/* ---------- Floating Contact & Privacy Banner ---------- */
.floating-contact {
  background: linear-gradient(135deg, #4fb8ff, #0f7bff);
  border: 1px solid rgba(186, 230, 253, 0.5);
  box-shadow: 0 12px 32px rgba(15, 123, 255, 0.45);
  animation: csstPulse 3s infinite;
}

.floating-contact:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 38px rgba(56, 189, 248, 0.65);
}

.csst-consent {
  background: rgba(6, 13, 26, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  color: var(--text-body);
  border-radius: 16px;
}

.csst-consent strong { color: #fff; font-family: var(--font-display); }
.csst-consent p { color: var(--text-muted); }
.csst-consent a { color: var(--electric); }
.csst-consent-actions button { background: rgba(15, 23, 42, 0.85); border: 1px solid var(--border-subtle); color: var(--text-body); border-radius: 10px; font-family: var(--font-display); }
.csst-consent-actions button.csst-consent-accept { background: linear-gradient(135deg, #4fb8ff, #0f7bff); border-color: rgba(186, 230, 253, 0.45); color: #fff; }

/* ---------- Scroll Reveal & Keyframes ---------- */
.csst-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
.csst-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes csstPulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.52); }
  70% { box-shadow: 0 0 0 11px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

@keyframes csstFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes csstWaveShimmer {
  0% { opacity: 0.72; }
  100% { opacity: 1; }
}

@keyframes csstWaveFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -152; }
}

@keyframes csstWaveFlowReverse {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 60; }
}

@keyframes csstDropFade {
  0%, 100% { opacity: 0.25; transform: scaleY(0.85); }
  50% { opacity: 0.85; transform: scaleY(1); }
}

@keyframes csstNodeBlink {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1120px) {
  .navigation nav {
    padding: 4px 6px 4px 10px;
    gap: 2px;
  }
  .navigation nav a {
    padding: 7px 9px;
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  .navigation nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    width: auto;
    background: rgba(3, 6, 12, 0.97);
    backdrop-filter: blur(22px);
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--border-electric);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.9);
    padding: 20px 24px 28px;
    gap: 6px;
    flex-direction: column;
    align-items: stretch;
    max-height: 80vh;
    overflow: auto;
  }
  .navigation nav.open { display: flex; }
  .navigation nav a { padding: 13px 14px; border-radius: 10px; font-size: 14px; }
  .navigation nav .nav-cta { margin: 10px 0 0; text-align: center; }

  .csst-hero-stage { inset: 8px 10px 0 10px; border-radius: 18px 18px 0 0; }
  .csst-corner-beam { width: 200px; height: 180px; border-top-left-radius: 18px; }
  .s3-hero-layout { padding-top: 56px; gap: 48px; }
  .s3-hero-right { grid-template-columns: 1fr; }
  .s3-hero-image, .s3-device-inset { min-height: 260px; }
  .s3-platform-feature { padding: 24px; }
  .side-cta { position: static; }
}

@media (max-width: 690px) {
  .container { width: calc(100% - 32px); }
  .s3-section, .section { padding: 72px 0; }
  .s3-hero h1 { font-size: 34px; }
  .s3-hero-buttons { width: 100%; }
  .s3-hero-buttons .s3-button { width: 100%; justify-content: space-between; }
  .s3-floating-monitor { right: 12px; top: 12px; max-width: 240px; }
  .form-box { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .csst-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .s3-floating-monitor, .upper .live, .s3-status-light, .floating-contact, .csst-wave-path, .csst-hero-wave, .csst-dash-secondary, .csst-drop-lines line, .csst-node-glow circle { animation: none !important; }
}
