/* ========================================================================
   NOVOTEK — Site styles
   Brand: Obsidian #0A0E13 · Carbon #13181F · Steel #1E252E · Snow #E8ECF1
          Mercury #9CA8B8 · Signal Cyan #00D9FF
   Type:  Space Grotesk (display) · Inter (body)
   ======================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg:       #0A0E13;
  --carbon:   #13181F;
  --steel:    #1E252E;
  --snow:     #E8ECF1;
  --mercury:  #9CA8B8;
  --faint:    #5A6470;
  --signal:   #00D9FF;
  --signal-dim: rgba(0, 217, 255, 0.12);
  --gold:     #D4A24C;

  --font-display: 'Space Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== Selection ===== */
::selection { background: var(--signal); color: var(--bg); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 19, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--steel); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}
.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--snow);
}
.nav-dot { color: var(--signal); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--mercury);
}
.nav-links a {
  position: relative;
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--snow); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--signal);
  transition: width 200ms ease;
}
.nav-links a:hover::after { width: 100%; }

@media (max-width: 640px) {
  .nav-links { gap: 18px; font-size: 13px; }
  .nav-links a:nth-child(1),
  .nav-links a:nth-child(2) { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px var(--gutter);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mercury);
  text-transform: uppercase;
  margin-bottom: 32px;
  padding: 6px 14px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: rgba(19, 24, 31, 0.6);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--signal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-dot { animation: none; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--snow);
  margin-bottom: 32px;
  max-width: 16ch;
}
.accent-text {
  color: var(--signal);
  font-style: normal;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--mercury);
  max-width: 56ch;
  line-height: 1.6;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Schematic decoration */
.schematic {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  max-width: 760px;
  opacity: 0.42;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
@media (max-width: 900px) {
  .schematic {
    right: -30%;
    width: 110%;
    opacity: 0.22;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--signal);
  color: var(--bg);
  border-color: var(--signal);
}
.btn-primary:hover {
  background: #6BE7FF;
  border-color: #6BE7FF;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--snow);
  border-color: var(--steel);
}
.btn-ghost:hover {
  border-color: var(--mercury);
  color: var(--snow);
}
.btn-large {
  padding: 18px 32px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-tinted {
  background: var(--carbon);
  max-width: 100%;
  margin: 0;
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}
.section-tinted > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.section-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.section-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--signal);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--mercury);
  max-width: 56ch;
  line-height: 1.6;
}

/* ===== CAPABILITIES ===== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: 1fr; }
}
.cap-card {
  background: var(--carbon);
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: 36px 32px;
  transition: border-color 200ms ease, background 200ms ease;
}
.cap-card:hover {
  border-color: rgba(0, 217, 255, 0.32);
  background: #161C24;
}
.cap-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--signal);
  margin-bottom: 24px;
}
.cap-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cap-desc {
  color: var(--mercury);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.cap-list {
  border-top: 1px solid var(--steel);
  padding-top: 16px;
}
.cap-list li {
  font-size: 13px;
  color: var(--snow);
  padding: 7px 0;
  position: relative;
  padding-left: 18px;
}
.cap-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--signal);
}

/* ===== APPROACH ===== */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 80px;
}
@media (max-width: 760px) {
  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
}
.approach-block {
  position: relative;
}
.approach-num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 14px;
}
.approach-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--snow);
  margin-bottom: 14px;
}
.approach-block p {
  color: var(--mercury);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 50ch;
}

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .products-grid { grid-template-columns: 1fr; }
}
.product-card {
  background: var(--carbon);
  border: 1px solid var(--steel);
  border-radius: 8px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.product-mark {
  margin-bottom: 28px;
  height: 56px;
  display: flex;
  align-items: center;
}
.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--snow);
  margin-bottom: 14px;
}
.product-desc {
  color: var(--mercury);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 6.4em;
}
.product-list {
  border-top: 1px solid var(--steel);
  padding-top: 16px;
  margin-bottom: 28px;
  flex: 1;
}
.product-list li {
  font-size: 13px;
  padding: 6px 0;
  color: var(--snow);
  position: relative;
  padding-left: 18px;
}
.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 1px;
  background: var(--signal);
}
.product-status {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--signal);
  text-transform: uppercase;
  border-top: 1px solid var(--steel);
  padding-top: 16px;
}

/* Meridian variant */
.product-card--meridian {
  background: linear-gradient(180deg, #141B2D 0%, #13181F 100%);
  border-color: rgba(212, 162, 76, 0.2);
}
.product-card--meridian .product-status {
  color: var(--gold);
  border-top-color: rgba(212, 162, 76, 0.18);
}
.product-card--meridian .product-list li::before { background: var(--gold); }
.product-name--meridian { color: var(--gold); }
.product-name--meridian .endorsed {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--mercury);
  letter-spacing: 0;
  margin-left: 8px;
  vertical-align: middle;
}
.meridian-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 0;
}

/* ===== CONTACT ===== */
.section-contact {
  text-align: center;
  padding-top: clamp(100px, 12vw, 160px);
  padding-bottom: clamp(100px, 12vw, 160px);
}
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
}
.contact-inner .section-tag { display: block; margin-bottom: 24px; }
.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--snow);
}
.contact-sub {
  color: var(--mercury);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.contact-cta { margin-bottom: 56px; }
.contact-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--steel);
  padding-top: 32px;
}
@media (max-width: 600px) {
  .contact-meta { grid-template-columns: 1fr; gap: 16px; }
}
.meta-item { text-align: center; }
.meta-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.meta-val {
  font-size: 14px;
  color: var(--snow);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--steel);
  padding: 32px var(--gutter);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--snow);
  letter-spacing: -0.01em;
}
.footer-meta {
  font-size: 12px;
  color: var(--faint);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-sep { color: var(--steel); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Platforms ===== */
.platforms-stack {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.platform-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid var(--steel);
}
.platform-row:first-child { border-top: none; padding-top: 0; }

@media (max-width: 880px) {
  .platform-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }
  .platforms-stack { gap: 32px; }
}

.platform-row-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
.platform-row-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mercury);
  max-width: 28ch;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
}
.brand-chip {
  background: var(--carbon);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 200ms ease;
}
.brand-chip:hover { background: var(--steel); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--snow);
  line-height: 1.1;
}
.brand-meta {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-transform: uppercase;
}

.platforms-foot {
  max-width: var(--max-w);
  margin: 56px auto 0;
  padding: 0 var(--gutter);
  font-size: 13px;
  color: var(--faint);
  font-style: italic;
  text-align: center;
}

/* ============================================
   DEMO CTA — added 2026-04-26
   ============================================ */

/* Top nav: "Live demo" pill */
.nav-demo {
  background: rgba(212, 162, 76, 0.12);
  border: 1px solid rgba(212, 162, 76, 0.32);
  color: #D4A24C !important;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
  margin-left: 4px;
  white-space: nowrap;
}
.nav-demo:hover {
  background: #D4A24C;
  color: #0E1726 !important;
  border-color: #D4A24C;
}

/* Meridian product card: demo CTA row */
.product-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.btn-product-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #D4A24C;
  color: #0E1726;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
}
.btn-product-demo:hover {
  background: #E8B768;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 162, 76, 0.25);
}

.product-pin {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.product-pin code {
  background: rgba(212, 162, 76, 0.12);
  border: 1px solid rgba(212, 162, 76, 0.24);
  border-radius: 4px;
  padding: 2px 8px;
  color: #D4A24C;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-left: 4px;
}

/* ========================================
   INTERACTIVE DEMO STAGE
   ======================================== */
.demo-stage {
  margin: clamp(56px, 9vw, 96px) auto 0;
  max-width: var(--max-w);
  padding: 0 var(--gutter);
}
.demo-stage-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.demo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mercury);
  padding: 6px 12px;
  border: 1px solid var(--steel);
  border-radius: 100px;
  background: rgba(0, 217, 255, 0.04);
}
.demo-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: demo-pulse 1.6s ease-in-out infinite;
}
@keyframes demo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.demo-stage-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--snow);
  margin: 14px 0 8px;
}
.demo-stage-sub {
  color: var(--mercury);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Frame */
.demo-frame {
  background: linear-gradient(180deg, #0F141B 0%, #0A0E13 100%);
  border: 1px solid var(--steel);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 217, 255, 0.18),
              0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

/* Browser chrome */
.demo-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #0D1219;
  border-bottom: 1px solid var(--steel);
}
.demo-chrome-dots { display: flex; gap: 6px; }
.demo-chrome-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2A323D;
}
.demo-chrome-dots span:nth-child(1) { background: #FF5F56; opacity: 0.65; }
.demo-chrome-dots span:nth-child(2) { background: #FFBD2E; opacity: 0.65; }
.demo-chrome-dots span:nth-child(3) { background: #27C93F; opacity: 0.65; }
.demo-chrome-url {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--mercury);
  background: #0A0E13;
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: 6px 12px;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  white-space: nowrap;
}
.demo-lock { color: var(--signal); font-size: 10px; }
.demo-host { color: var(--snow); }
.demo-path { color: var(--mercury); transition: color 240ms ease; }
.demo-chrome-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mercury);
}
.demo-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #27C93F;
  box-shadow: 0 0 6px #27C93F;
  animation: demo-pulse 1.6s ease-in-out infinite;
}

/* Tabs */
.demo-tabs {
  display: flex;
  gap: 0;
  background: #0B1018;
  border-bottom: 1px solid var(--steel);
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  flex: 1 1 0;
  min-width: 110px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--steel);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--faint);
  transition: color 200ms ease, background 200ms ease;
  position: relative;
}
.demo-tab:last-child { border-right: 0; }
.demo-tab:hover { color: var(--mercury); background: rgba(0, 217, 255, 0.03); }
.demo-tab.is-active { color: var(--snow); background: rgba(0, 217, 255, 0.06); }
.demo-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
}
.demo-tab-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.demo-tab.is-active .demo-tab-num { color: var(--signal); }
.demo-tab-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Screen / scenes */
.demo-screen {
  position: relative;
  min-height: 380px;
  background:
    radial-gradient(circle at 80% -20%, rgba(0, 217, 255, 0.08), transparent 50%),
    #0A0E13;
  overflow: hidden;
}
.demo-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(0, 217, 255, 0.08);
  z-index: 5;
}
.demo-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--signal), #6BE7FF);
  box-shadow: 0 0 8px var(--signal);
  transition: width 80ms linear;
}
.demo-scene {
  position: absolute;
  inset: 0;
  padding: clamp(20px, 3vw, 32px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease;
}
.demo-scene.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.demo-scene-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.demo-scene-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.demo-scene-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 500;
  color: var(--snow);
  letter-spacing: -0.005em;
}
.demo-kpi-row { display: flex; gap: 16px; flex-wrap: wrap; }
.demo-kpi {
  text-align: right;
  padding: 8px 14px;
  background: var(--carbon);
  border: 1px solid var(--steel);
  border-radius: 8px;
  min-width: 86px;
}
.demo-kpi-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--snow);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.demo-kpi-warn { color: var(--gold); }
.demo-kpi-up { color: #6DE7A0; }
.demo-kpi-lab {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 4px;
}

/* Pills */
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
}
.demo-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.demo-pill-on { color: #6DE7A0; border-color: rgba(109, 231, 160, 0.32); background: rgba(109, 231, 160, 0.06); }
.demo-pill-idle { color: var(--mercury); border-color: var(--steel); background: rgba(156, 168, 184, 0.04); }
.demo-pill-warn { color: var(--gold); border-color: rgba(212, 162, 76, 0.32); background: rgba(212, 162, 76, 0.06); }

/* Fleet grid */
.demo-fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.demo-vehicle {
  background: var(--carbon);
  border: 1px solid var(--steel);
  border-radius: 8px;
  padding: 12px 14px;
  opacity: 0;
  animation: demo-stagger-in 500ms ease forwards;
  animation-delay: calc(var(--d) * 80ms);
}
.demo-vehicle-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.demo-vehicle-id {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--snow);
  letter-spacing: 0.04em;
}
.demo-vehicle-meta {
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 8px;
}
.demo-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
}
.demo-track-fill {
  height: 100%;
  width: 0;
  background: var(--signal);
  border-radius: 2px;
  animation: demo-track-grow 900ms ease forwards;
  animation-delay: calc(var(--d) * 80ms + 200ms);
}
.demo-track-idle { background: var(--mercury); }
.demo-track-warn { background: var(--gold); }
@keyframes demo-track-grow { to { width: var(--w); } }
@keyframes demo-stagger-in {
  to { opacity: 1; }
}

/* Crew list */
.demo-crew-list { display: flex; flex-direction: column; gap: 8px; }
.demo-crew-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--carbon);
  border: 1px solid var(--steel);
  border-radius: 8px;
  opacity: 0;
  animation: demo-stagger-in 500ms ease forwards;
  animation-delay: calc(var(--d) * 80ms);
}
.demo-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,217,255,0.2), rgba(212,162,76,0.15));
  border: 1px solid var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--snow);
  letter-spacing: 0.04em;
}
.demo-crew-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--snow);
}
.demo-crew-meta {
  font-size: 11px;
  color: var(--faint);
}
.demo-crew-time {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--mercury);
  font-variant-numeric: tabular-nums;
}

/* Chart */
.demo-chart {
  background: var(--carbon);
  border: 1px solid var(--steel);
  border-radius: 8px;
  padding: 18px;
}
.demo-chart svg {
  width: 100%;
  height: 180px;
  display: block;
}
.demo-chart-line {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  filter: drop-shadow(0 0 4px rgba(0, 217, 255, 0.35));
}
.demo-scene[data-scene="finance"].is-active .demo-chart-line {
  animation: demo-line-draw 1400ms ease forwards;
}
.demo-scene[data-scene="finance"].is-active .demo-chart-area {
  animation: demo-fade-in 800ms ease 600ms backwards;
}
.demo-scene[data-scene="finance"].is-active .demo-chart-pt {
  animation: demo-pt-pop 600ms ease 1200ms backwards;
}
@keyframes demo-line-draw { to { stroke-dashoffset: 0; } }
@keyframes demo-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes demo-pt-pop {
  0% { opacity: 0; r: 0; }
  60% { opacity: 1; r: 8; }
  100% { opacity: 1; r: 4; }
}
.demo-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Events */
.demo-events { display: flex; flex-direction: column; gap: 8px; }
.demo-event {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: var(--carbon);
  border: 1px solid var(--steel);
  border-radius: 8px;
  opacity: 0;
  animation: demo-stagger-in 500ms ease forwards;
  animation-delay: calc(var(--d) * 80ms);
}
.demo-event-time {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--mercury);
  font-variant-numeric: tabular-nums;
}
.demo-event-tag {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--signal);
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 3px;
  padding: 3px 6px;
}
.demo-event-tag-warn {
  color: var(--gold);
  background: rgba(212, 162, 76, 0.08);
  border-color: rgba(212, 162, 76, 0.32);
}
.demo-event-msg {
  font-size: 13px;
  color: var(--snow);
}
.demo-event-site {
  font-size: 11px;
  color: var(--faint);
}

/* Controls */
.demo-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #0B1018;
  border-top: 1px solid var(--steel);
}
.demo-ctl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--steel);
  color: var(--mercury);
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.demo-ctl:hover { color: var(--snow); border-color: var(--mercury); }
.demo-ctl-icon { font-size: 10px; line-height: 1; color: var(--signal); }
.demo-dots { display: flex; justify-content: center; gap: 8px; }
.demo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--steel);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.demo-dot:hover { background: var(--mercury); }
.demo-dot.is-active {
  background: var(--signal);
  box-shadow: 0 0 6px var(--signal);
  transform: scale(1.2);
}
.demo-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--signal);
  letter-spacing: 0.01em;
  transition: color 200ms ease, gap 200ms ease;
}
.demo-open:hover { color: #6BE7FF; gap: 12px; }
.demo-open-arrow { transition: transform 200ms ease; }
.demo-open:hover .demo-open-arrow { transform: translateX(2px); }

/* Mobile */
@media (max-width: 720px) {
  .demo-screen { min-height: 460px; }
  .demo-fleet-grid { grid-template-columns: 1fr; }
  .demo-chrome-url { font-size: 10px; padding: 5px 8px; }
  .demo-chrome-status { display: none; }
  .demo-tab-num { display: none; }
  .demo-tab { padding: 12px 8px; min-width: 0; }
  .demo-tab-label { font-size: 12px; }
  .demo-scene-head { gap: 10px; }
  .demo-kpi { padding: 6px 10px; min-width: 72px; }
  .demo-kpi-val { font-size: 18px; }
  .demo-controls {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .demo-controls .demo-ctl { justify-self: start; }
  .demo-controls .demo-open { justify-self: end; }
  .demo-dots { grid-row: 1; grid-column: 1 / -1; }
  .demo-event { grid-template-columns: auto auto 1fr; gap: 8px; }
  .demo-event-site { grid-column: 3; font-size: 10px; }
  .demo-crew-row { grid-template-columns: auto 1fr auto; }
  .demo-crew-row .demo-pill { grid-column: 2 / 4; justify-self: start; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-vehicle, .demo-crew-row, .demo-event { animation: none; opacity: 1; }
  .demo-track-fill { animation: none; width: var(--w); }
  .demo-chart-line { stroke-dashoffset: 0; }
  .demo-live-dot, .demo-status-dot { animation: none; }
  .demo-progress-bar { transition: none; }
}

/* ========================================
   FIELD WORK SHOWCASE
   ======================================== */
.field-stage {
  margin: clamp(56px, 9vw, 96px) auto 0;
  max-width: var(--max-w);
  padding: 0 var(--gutter);
}
.field-stage-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.field-frame {
  position: relative;
  background: #0A0E13;
  border: 1px solid var(--steel);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 217, 255, 0.18),
              0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
.field-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(0, 217, 255, 0.08);
  z-index: 5;
}
.field-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--signal), #6BE7FF);
  box-shadow: 0 0 8px var(--signal);
  transition: width 80ms linear;
}

/* Scene viewport */
.field-scenes {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  overflow: hidden;
}
.field-scene {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}
.field-scene.is-active {
  opacity: 1;
  pointer-events: auto;
}
.field-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 8000ms ease;
}
.field-scene.is-active img {
  animation: field-ken-burns 8000ms ease forwards;
}
@keyframes field-ken-burns {
  from { transform: scale(1.02); }
  to { transform: scale(1.10); }
}

/* Scrim — dark gradient on left for caption legibility */
.field-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 19, 0.92) 0%, rgba(10, 14, 19, 0.78) 30%, rgba(10, 14, 19, 0.20) 60%, rgba(10, 14, 19, 0) 100%),
    linear-gradient(180deg, rgba(10, 14, 19, 0) 60%, rgba(10, 14, 19, 0.6) 100%);
}

/* Caption */
.field-caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: clamp(24px, 4vw, 48px);
  max-width: 560px;
  color: var(--snow);
}
.field-scene.is-active .field-caption > * {
  animation: field-cap-in 700ms ease both;
}
.field-scene.is-active .field-caption > *:nth-child(1) { animation-delay: 100ms; }
.field-scene.is-active .field-caption > *:nth-child(2) { animation-delay: 180ms; }
.field-scene.is-active .field-caption > *:nth-child(3) { animation-delay: 260ms; }
.field-scene.is-active .field-caption > *:nth-child(4) { animation-delay: 340ms; }
.field-scene.is-active .field-caption > *:nth-child(5) { animation-delay: 420ms; }
@keyframes field-cap-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.field-cap-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--signal);
  margin-bottom: 6px;
}
.field-cap-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mercury);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.field-cap-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--snow);
  margin: 0 0 12px;
}
.field-cap-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mercury);
  margin: 0 0 16px;
  max-width: 480px;
}
.field-cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-cap-list li {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mercury);
  padding-left: 18px;
  position: relative;
}
.field-cap-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 1px;
  background: var(--signal);
}

/* Timeline navigator */
.field-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #0B1018;
  border-top: 1px solid var(--steel);
}
.field-tl-btn {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--steel);
  padding: 16px 18px 18px;
  text-align: left;
  cursor: pointer;
  color: var(--faint);
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: color 200ms ease, background 200ms ease;
  position: relative;
}
.field-tl-btn:last-child { border-right: 0; }
.field-tl-btn:hover { color: var(--mercury); background: rgba(0, 217, 255, 0.03); }
.field-tl-btn.is-active { color: var(--snow); background: rgba(0, 217, 255, 0.05); }
.field-tl-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.field-tl-btn.is-active .field-tl-num { color: var(--signal); }
.field-tl-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.field-tl-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--steel);
  margin-top: 8px;
  border-radius: 1px;
  overflow: hidden;
}
.field-tl-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--signal), #6BE7FF);
  box-shadow: 0 0 6px var(--signal);
}
.field-tl-btn.is-active .field-tl-fill {
  animation: field-tl-fill var(--dur, 7s) linear forwards;
}
.field-tl-btn.is-active.is-paused .field-tl-fill {
  animation-play-state: paused;
}
@keyframes field-tl-fill { to { width: 100%; } }

@media (max-width: 720px) {
  .field-scenes { aspect-ratio: 3 / 4; max-height: none; }
  .field-scrim {
    background:
      linear-gradient(180deg, rgba(10, 14, 19, 0) 0%, rgba(10, 14, 19, 0.55) 35%, rgba(10, 14, 19, 0.92) 55%, rgba(10, 14, 19, 0.98) 100%);
  }
  .field-caption {
    left: 0; right: 0; bottom: 0;
    max-width: none;
    padding: 22px 22px 26px;
  }
  .field-cap-desc { max-width: none; font-size: 14px; }
  .field-cap-list li { font-size: 11px; }
  .field-timeline { grid-template-columns: repeat(2, 1fr); }
  .field-tl-btn:nth-child(1), .field-tl-btn:nth-child(2) { border-bottom: 1px solid var(--steel); }
  .field-tl-btn:nth-child(2) { border-right: 0; }
  .field-tl-btn { padding: 12px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .field-scene.is-active img { animation: none; transform: scale(1); }
  .field-scene.is-active .field-caption > * { animation: none; opacity: 1; transform: none; }
  .field-tl-btn.is-active .field-tl-fill { animation: none; width: 100%; }
}
