:root {
  /* Neutrals */
  --ink: #0b1220;
  --ink-2: #131c2e;
  --slate: #1e293b;
  --muted: #51607a;
  --muted-2: #64748b;
  --line: #e6eaf1;
  --line-2: #d6dde8;
  --panel: #f5f7fb;
  --panel-2: #eef2f8;
  --white: #ffffff;

  /* Brand */
  --teal: #0d9488;
  --teal-strong: #0f766e;
  --teal-ink: #134e4a;
  --sky: #0ea5e9;
  --sky-light: #38bdf8;
  --amber: #f59e0b;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
  --grad-ink: linear-gradient(160deg, #0b1220 0%, #111a2c 100%);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --ring: 0 0 0 3px rgba(14, 165, 233, 0.35);

  /* Geometry */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --pad-x: clamp(20px, 5vw, 56px);

  /* Type */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(64px, 8vw, 104px);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-head p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Eyebrow / badge ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.eyebrow-light {
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

.eyebrow-light::before {
  background: var(--sky-light);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 18, 32, 0.82);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  flex: none;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 22px);
  font-size: 0.95rem;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}

nav a:not(.nav-cta):hover {
  color: var(--white);
}

.nav-cta {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13, 148, 136, 0.36);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.button.ghost {
  color: var(--teal-ink);
  border-color: var(--teal);
  background: var(--white);
}

.button.ghost:hover {
  background: rgba(13, 148, 136, 0.08);
}

.button .arrow {
  transition: transform 0.18s ease;
}

.button:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(78svh, 760px);
  padding-block: clamp(72px, 12vh, 140px);
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(7, 13, 26, 0.94) 0%, rgba(7, 13, 26, 0.78) 38%, rgba(7, 13, 26, 0.18) 72%),
    url("assets/hero-service-bay.png") center / cover no-repeat;
}

.hero-copy {
  max-width: 660px;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-lede {
  max-width: 580px;
  margin: 22px 0 0;
  color: #dbe4f0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------- Signal strip ---------- */
.signal-strip {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-block: clamp(28px, 4vw, 40px);
}

.signal {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.signal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

.signal-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-strong);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.signal:hover .signal-icon {
  background: var(--grad-brand);
  color: var(--white);
  transform: scale(1.05);
}

.signal-icon svg {
  width: 24px;
  height: 24px;
}

.signal strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.signal-text {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Product ---------- */
.product {
  background: var(--white);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.app-shot {
  margin: 0;
}

.app-shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}

.app-shot figcaption {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.capability-list {
  display: grid;
  gap: 16px;
}

.capability-list article {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.capability-list article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

.capability-list .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-strong);
  font-weight: 800;
  font-size: 0.95rem;
}

/* ---------- Cards ---------- */
h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.capability-list p,
.card p,
.video-card p,
.training-list p {
  margin: 0;
  color: var(--muted);
}

.audiences,
.roi,
.training {
  background: var(--panel);
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.training-list article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover,
.training-list article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

/* ---------- Workflow / timeline ---------- */
.workflow {
  background: var(--grad-ink);
  color: var(--white);
}

.workflow .eyebrow {
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

.workflow .eyebrow::before {
  background: var(--sky-light);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.timeline .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
  color: #67e8f9;
  font-size: 1.05rem;
}

.timeline li > span:last-child {
  color: #cbd5e1;
  font-size: 0.94rem;
}

/* ---------- ROI ---------- */
.roi-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.roi-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.roi-controls label {
  display: grid;
  gap: 8px;
  color: var(--slate);
  font-weight: 600;
  font-size: 0.92rem;
}

.roi-controls input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.roi-controls input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.roi-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.roi-results div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--grad-ink);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.roi-results span {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #ffffff 0%, #7dd3fc 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.roi-results small {
  flex: 1 1 140px;
  color: #aebbcd;
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: right;
}

/* ---------- Demos / video cards ---------- */
.demos {
  background: var(--white);
}

.video-card {
  display: flex;
  flex-direction: column;
}

.video-card button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.92), rgba(14, 165, 233, 0.78)),
    var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.video-card button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.video-card .play {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  transition: transform 0.18s ease, background 0.18s ease;
}

.video-card button:hover .play {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.28);
}

.video-card .play::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid var(--white);
  transform: translateX(2px);
}

.video-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(11, 18, 32, 0.55);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Training ---------- */
.training-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- Pilot band ---------- */
.pilot {
  background: var(--white);
}

.pilot-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: clamp(20px, 3vw, 28px);
  background: var(--grad-ink);
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pilot-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% -10%, rgba(14, 165, 233, 0.35), transparent 55%);
  pointer-events: none;
}

.pilot-band > * {
  position: relative;
  z-index: 1;
}

.pilot-band .eyebrow {
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
}

.pilot-band .eyebrow::before {
  background: var(--sky-light);
}

.pilot-band h2 {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.pilot-band p:not(.eyebrow) {
  margin: 16px 0 0;
  max-width: 620px;
  color: #c6d2e3;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.pilot-actions {
  flex-direction: column;
  margin-top: 0;
}

.pilot-actions .button {
  width: 100%;
  white-space: nowrap;
}

.pilot-actions .button.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.pilot-actions .button.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding-block: clamp(40px, 5vw, 56px) 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 460px;
}

.footer-brand .brand-text small {
  color: #94a3b8;
}

.footer-note {
  margin: 16px 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-content: flex-start;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.16s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-base {
  padding-top: 22px;
}

.footer-base p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

/* ---------- Scroll offset for sticky header ---------- */
:where(#product, #roi, #demos, #training, #pilot) {
  scroll-margin-top: 84px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-cta {
    margin-left: auto;
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-layout,
  .roi-panel {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .training-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pilot-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pilot-actions .button {
    width: auto;
    flex: 1 1 200px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(7, 13, 26, 0.7) 0%, rgba(7, 13, 26, 0.86) 100%),
      url("assets/hero-service-bay.png") center / cover no-repeat;
  }

  .signal-grid,
  .card-grid.three,
  .training-list,
  .timeline,
  .roi-results {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .pilot-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .pilot-actions .button {
    width: 100%;
  }

  .roi-controls {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
