/* ═══════════════════════════════════════════════════════════════
   Kapps Systems LLC — Apple-Inspired Design System
   Palette: White / #f5f5f7 / #1d1d1f / #6e6e73 / #0071e3
   Typography: SF Pro stack → Inter fallback
   ═══════════════════════════════════════════════════════════════ */

/* ─── 0. CSS Custom Properties ─────────────────────────────── */
:root {
  /* Colors — Apple palette */
  --c-bg:          #ffffff;
  --c-surface:     #f5f5f7;
  --c-surface-2:   #e8e8ed;
  --c-ink:         #1d1d1f;
  --c-ink-2:       #3d3d3f;
  --c-ink-muted:   #6e6e73;
  --c-border:      rgba(0,0,0,0.08);
  --c-border-med:  rgba(0,0,0,0.13);
  --c-accent:      #0071e3;
  --c-accent-dark: #0077ed;
  --c-accent-bg:   rgba(0,113,227,0.08);
  --c-dark-bg:     #1d1d1f;
  --c-dark-surface:#2d2d2f;
  --c-dark-text:   #f5f5f7;
  --c-dark-muted:  #a1a1a6;

  /* Typography — SF Pro stack */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-text:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-7:   48px;
  --space-8:   64px;
  --space-9:   96px;
  --space-10: 128px;

  /* Layout */
  --max-w:        1200px;
  --max-w-narrow:  800px;
  --nav-h:         52px;

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast:  160ms;
  --dur-med:   280ms;
  --dur-slow:  480ms;

  /* Radius */
  --r-sm:  8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

/* ─── 1. Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px); /* offset for fixed nav on anchor clicks */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-text);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── 1b. Global Focus Ring (WCAG 2.4.7) ─────────────────── */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Dark context buttons get a white ring */
.section--dark :focus-visible,
.product-card :focus-visible {
  outline-color: #fff;
}

/* Skip-to-content link — hidden until focused */
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 9999;
  padding: var(--space-3) var(--space-5);
  background: var(--c-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-md);
  transform: translateY(-200%);
  transition: transform var(--dur-med) var(--ease-smooth);
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

/* ─── 2. Scroll-driven reveal animation ──────────────────── */
/* @keyframes fade-up — removed: reveal uses transitions, not keyframe animations */

/* Reduced-motion safety */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity var(--dur-slow) var(--ease-out),
              translate var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  translate: 0 0;
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* ─── 3. Typography Helpers ───────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--c-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--c-ink);
}

.section-title--dark {
  color: var(--c-dark-text);
}

.section-subtitle {
  font-size: 21px;
  color: var(--c-ink-muted);
  line-height: 1.55;
  font-weight: 400;
  max-width: 600px;
}

.text-gradient {
  background: linear-gradient(in oklab 135deg, #0071e3, #34aadc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── 4. Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 13px 26px;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  border-radius: 980px; /* Apple pill */
  transition: background var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--c-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,113,227,0.32);
}

.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 13px 26px;
  background: transparent;
  color: var(--c-accent);
  font-size: 15px;
  font-weight: 500;
  border-radius: 980px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.btn-ghost:hover {
  background: var(--c-accent-bg);
}

.btn-ghost--dark {
  color: var(--c-dark-text);
}

.btn-ghost--dark:hover {
  background: rgba(255,255,255,0.1);
}

.btn-large {
  padding: 17px 36px;
  font-size: 17px;
}

.btn-full { width: 100%; justify-content: center; }

/* ─── 5. Layout Utilities ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

/* ─── 6. Navigation ───────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 900;
  height: var(--nav-h);
  /* Apple nav: blurred white */
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med);
}

.nav-header.scrolled {
  border-color: var(--c-border);
}

.nav-container {
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--c-ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0;
}

.logo-tagline {
  font-size: 11px;
  color: var(--c-ink-muted);
  font-weight: 400;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.nav-link {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--c-ink-2);
  border-radius: 980px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.nav-link:hover,
.nav-link--active {
  background: var(--c-surface);
  color: var(--c-ink);
}

.nav-cta {
  margin-left: var(--space-3);
  padding: 7px 18px;
  background: var(--c-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 980px;
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.nav-cta:hover {
  background: var(--c-ink-2);
  transform: translateY(-1px);
}

/* Hamburger — animates to ✕ when active */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--r-sm);
  margin-left: auto;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--dur-med) var(--ease-smooth),
              opacity var(--dur-med) var(--ease-smooth);
}

/* Hamburger → ✕ animation */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-border);
  z-index: 800;
  padding: var(--space-4) var(--space-6) var(--space-6);
}

.mobile-menu[hidden] { display: none; }

.mobile-links { display: flex; flex-direction: column; gap: var(--space-1); }

.mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: 17px;
  color: var(--c-ink);
  border-radius: var(--r-md);
  transition: background var(--dur-fast);
}

.mobile-link:hover { background: var(--c-surface); }

/* ─── 7. Hero Section ─────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + var(--space-8));
  padding-bottom: var(--space-5);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--c-border);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-content {
  position: relative;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-med);
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-muted);
  margin-bottom: var(--space-6);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #34c759;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(52,199,89,0.6);
  animation: pulse-green 2s ease infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px rgba(52,199,89,0.5); }
  50%       { box-shadow: 0 0 12px rgba(52,199,89,0.9); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--c-ink);
  margin-bottom: var(--space-4);
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--c-ink-2);
  max-width: 620px;
  margin-bottom: var(--space-5);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--c-ink-muted);
  line-height: 1.55;
  max-width: 560px;
  margin-bottom: var(--space-6);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-visual {
  min-width: 0;
}

.platform-card {
  background: #fbfbfd;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

.platform-topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-5);
  border-bottom: 1px solid var(--c-border);
  background: rgba(255,255,255,0.72);
}

.platform-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52,199,89,0.12);
}

.platform-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--c-ink);
}

.platform-status {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--c-border);
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  color: #247a3d;
  background: rgba(52,199,89,0.1);
}

.platform-body {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 430px;
}

.platform-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-4);
  border-right: 1px solid var(--c-border);
  background: #f5f5f7;
}

.platform-sidebar span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--c-border);
}

.platform-sidebar span:first-child {
  background: var(--c-ink);
}

.platform-main {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.platform-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.platform-metric,
.workflow-item,
.platform-chart {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: 18px;
}

.platform-metric {
  padding: var(--space-4);
}

.pm-label {
  display: block;
  font-size: 12px;
  color: var(--c-ink-muted);
  margin-bottom: var(--space-1);
}

.platform-metric strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--c-ink);
  letter-spacing: 0;
}

.workflow-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.workflow-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
}

.workflow-item.active {
  border-color: rgba(0,113,227,0.28);
  background: rgba(0,113,227,0.04);
}

.workflow-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  flex-shrink: 0;
}

.workflow-item.active .workflow-icon {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.workflow-item strong {
  display: block;
  font-size: 14px;
  color: var(--c-ink);
  margin-bottom: 1px;
}

.workflow-item span:not(.workflow-icon) {
  font-size: 12px;
  color: var(--c-ink-muted);
}

.platform-chart {
  min-height: 132px;
  display: flex;
  align-items: end;
  gap: var(--space-3);
  padding: var(--space-5);
  margin-top: auto;
}

.platform-chart span {
  flex: 1;
  min-width: 12px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #1d1d1f 0%, #606066 100%);
}

.hero-stats {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: var(--space-5) auto 0;
  padding-inline: var(--space-6);
  display: flex;
  justify-content: flex-start;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.stat-pill-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-ink);
}

.stat-pill-label {
  font-size: 13px;
  color: var(--c-ink-muted);
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--c-border-med);
  align-self: center;
}

/* ─── 8. Section Base ─────────────────────────────────────── */
.section {
  padding-block: var(--space-10);
}

.section--surface {
  background: var(--c-surface);
}

.section--dark {
  background: var(--c-dark-bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-header .eyebrow {
  margin-bottom: var(--space-3);
}

.section-header .section-title {
  margin-bottom: var(--space-4);
}

/* ─── 9. About Section ────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}

.about-text .eyebrow { margin-bottom: var(--space-4); }

.about-text .section-title { margin-bottom: var(--space-5); }

.about-body {
  font-size: 17px;
  color: var(--c-ink-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.pillar-item:hover {
  border-color: var(--c-border-med);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.pillar-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
  flex-shrink: 0;
}

.pillar-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 2px;
}

.pillar-item span {
  font-size: 14px;
  color: var(--c-ink-muted);
}

/* About visual — metric card */
.about-visual { position: relative; }

.about-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--space-7);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 24px 56px rgba(0,0,0,0.07);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(in oklab 90deg, #0071e3, #34aadc);
}

.about-metric {
  text-align: center;
  padding-block: var(--space-5);
}

.metric-number {
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-ink);
  margin-bottom: var(--space-2);
}

.metric-desc {
  font-size: 14px;
  color: var(--c-ink-muted);
  line-height: 1.4;
  max-width: 220px;
  display: block;
  margin-inline: auto;
}

.about-divider {
  height: 1px;
  background: var(--c-border);
}

/* ─── 10. Services Section ────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.service-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur-med),
              box-shadow var(--dur-med),
              transform var(--dur-med) var(--ease-smooth);
}

.service-card:hover {
  border-color: var(--c-border-med);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.service-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--c-surface);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  transition: background var(--dur-fast);
}

.service-card:hover .service-icon-wrap {
  background: var(--c-accent-bg);
}

.service-icon {
  width: 22px;
  height: 22px;
  color: var(--c-ink-muted);
  transition: color var(--dur-fast);
}

.service-card:hover .service-icon {
  color: var(--c-accent);
}

.service-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0;
}

.service-desc {
  font-size: 15px;
  color: var(--c-ink-muted);
  line-height: 1.55;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

.service-tags li {
  padding: 3px 10px;
  background: var(--c-surface);
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-ink-muted);
  border: 1px solid var(--c-border);
}

/* ─── 11. Products / WhisperWise Feature Section ─────────── */
.product-card {
  background: var(--c-dark-bg);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.product-content {
  padding: var(--space-9) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
}

.product-badge-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.product-badge {
  padding: 4px 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0;
}

.product-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 6px rgba(52,199,89,0.6);
  animation: pulse-green 2s ease infinite;
}

.product-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-dark-text);
  line-height: 1.05;
}

.product-domain {
  font-size: 15px;
  color: var(--c-accent);
  font-weight: 500;
}

.product-desc {
  font-size: 17px;
  color: var(--c-dark-muted);
  line-height: 1.6;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.feature-icon-wrap {
  width: 22px;
  height: 22px;
  color: #34c759;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-icon-wrap svg { width: 100%; height: 100%; }

.feature-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-dark-text);
  margin-bottom: 1px;
}

.feature-item span {
  font-size: 13px;
  color: var(--c-dark-muted);
}

.product-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.product-tech-note {
  font-size: 13px;
  color: var(--c-dark-muted);
}

/* Product visual panel */
.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7);
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    #121214;
  background-size: 34px 34px;
  position: relative;
  overflow: hidden;
}

.product-visual::before {
  content: none;
}

/* macOS-inspired browser mockup */
.product-mockup {
  width: 100%;
  max-width: 380px;
  background: #1c1c1e;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.mockup-header {
  background: #2c2c2e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot.red    { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green  { background: #28c840; }

.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 4px 12px;
}

.mockup-screen {
  padding: 20px;
  min-height: 240px;
  position: relative;
}

/* Skeleton UI rows */
.mn-logo   { width: 80px; height: 10px; background: rgba(255,255,255,0.15); border-radius: 5px; margin-bottom: 20px; }
.mn-links  { display: flex; gap: 10px; margin-bottom: 24px; }
.mn-link   { width: 40px; height: 8px; background: rgba(255,255,255,0.09); border-radius: 4px; }
.mha-badge { width: 100px; height: 8px; background: rgba(0,113,227,0.4); border-radius: 4px; margin-bottom: 10px; }
.mha-title { width: 85%; height: 14px; background: rgba(255,255,255,0.2); border-radius: 5px; margin-bottom: 8px; }
.mha-sub   { width: 70%; height: 9px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 5px; }
.mha-sub.short { width: 55%; }
.mha-btns  { display: flex; gap: 10px; margin-top: 16px; }
.mha-btn   { height: 28px; border-radius: 14px; }
.mha-btn.primary { width: 90px; background: rgba(0,113,227,0.6); }
.mha-btn.ghost   { width: 70px; background: rgba(255,255,255,0.1); }

/* Floating coaching card */
.coach-card {
  position: absolute;
  bottom: 20px;
  right: 16px;
  background: #2c2c2e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: float 3.5s ease-in-out infinite;
}

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

.coach-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(in oklab 135deg, #0071e3, #34aadc);
  flex-shrink: 0;
}

.coach-text { display: flex; flex-direction: column; gap: 5px; }
.ct-line { height: 7px; background: rgba(255,255,255,0.2); border-radius: 4px; }
.ct-line.long { width: 90px; }
.ct-line:not(.long) { width: 60px; }

/* Audio waveform */
.coach-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}

.wave-bar {
  width: 3px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.wave-bar.tall { height: 16px; animation-delay: 0.1s; }
.wave-bar.mid  { height: 10px; animation-delay: 0.2s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.4); }
}

/* ─── 12. Mission Banner ──────────────────────────────────── */
.mission-banner {
  background: var(--c-surface);
  text-align: center;
  padding-block: var(--space-10);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.mission-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--space-4);
}

.mission-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-ink);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.mission-body {
  font-size: 18px;
  color: var(--c-ink-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-7);
  line-height: 1.55;
}

/* ─── 13. Contact Section ─────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: start;
}

.contact-copy .section-title { margin-bottom: var(--space-4); }

.contact-body {
  font-size: 17px;
  color: var(--c-ink-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: box-shadow var(--dur-fast);
}

.contact-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.contact-icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-icon-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--c-accent);
}

.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--c-ink-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
  transition: color var(--dur-fast);
}

a.contact-value:hover { color: var(--c-accent); }

/* Contact form */
.contact-form-wrap {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--space-7);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-2);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--c-ink-muted); }

.form-input:focus {
  border-color: var(--c-accent);
  background: var(--c-bg);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.14);
}

/* Inline validation — red ring on invalid fields (only after user interaction) */
.form-input:user-invalid,
.form-input:invalid:not(:placeholder-shown) {
  border-color: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255,59,48,0.12);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236e6e73' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea { resize: vertical; min-height: 120px; }

/* Form error inline message */
.form-error {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255,59,48,0.08);
  border: 1px solid rgba(255,59,48,0.3);
  border-radius: var(--r-md);
  font-size: 15px;
  color: #d70015;
  font-weight: 500;
}

.form-error[hidden] { display: none; }
.form-error svg { width: 20px; height: 20px; color: #ff3b30; flex-shrink: 0; }

/* Form success inline message */
.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(52,199,89,0.08);
  border: 1px solid rgba(52,199,89,0.3);
  border-radius: var(--r-md);
  font-size: 15px;
  color: #1a7a3a;
  font-weight: 500;
}

.form-success[hidden] { display: none; }
.form-success svg { width: 20px; height: 20px; color: #34c759; flex-shrink: 0; }

/* ─── 14. Legal Pages ────────────────────────────────────── */
.legal-main {
  background: var(--c-bg);
}

.legal-hero {
  padding-top: calc(var(--nav-h) + var(--space-8));
  padding-bottom: var(--space-7);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}

.legal-hero .eyebrow {
  margin-bottom: var(--space-4);
}

.legal-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--c-ink);
  margin-bottom: var(--space-5);
}

.legal-intro {
  max-width: 780px;
  font-size: 21px;
  color: var(--c-ink-muted);
  line-height: 1.55;
}

.legal-meta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.legal-meta span {
  display: inline-flex;
  padding: 6px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 980px;
  font-size: 13px;
  color: var(--c-ink-muted);
}

.legal-content {
  padding-block: var(--space-8);
}

.legal-notice {
  margin-bottom: var(--space-7);
  padding: var(--space-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.legal-section {
  max-width: 820px;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--c-border);
}

.legal-section:first-of-type {
  padding-top: 0;
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--c-ink);
  margin-bottom: var(--space-4);
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  color: var(--c-ink);
  margin: var(--space-5) 0 var(--space-2);
}

.legal-section p,
.legal-section li {
  font-size: 16px;
  color: var(--c-ink-muted);
  line-height: 1.7;
}

.legal-section p + p {
  margin-top: var(--space-4);
}

.legal-section ul,
.legal-section ol {
  list-style: revert;
  padding-left: var(--space-5);
  margin-top: var(--space-3);
}

.legal-section li + li {
  margin-top: var(--space-2);
}

.legal-section a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-callout {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-left: 3px solid var(--c-accent);
  background: var(--c-accent-bg);
  color: var(--c-ink-2);
}

.legal-back {
  margin-top: var(--space-7);
}

/* ─── 14. Footer ──────────────────────────────────────────── */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

.footer-container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.footer-top {
  display: flex;
  gap: var(--space-9);
  justify-content: space-between;
  margin-bottom: var(--space-7);
}

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

.footer-tagline {
  font-size: 14px;
  color: var(--c-ink-muted);
  margin-top: var(--space-3);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  gap: var(--space-8);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: 14px;
  color: var(--c-ink-muted);
  transition: color var(--dur-fast);
}

.footer-link:hover { color: var(--c-ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-copy {
  font-size: 13px;
  color: var(--c-ink-muted);
}

.footer-built {
  font-size: 13px;
  color: var(--c-ink-muted);
}

/* ─── 15. Responsive Breakpoints ─────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .section-title {
    font-size: 42px;
  }

  .section-subtitle {
    font-size: 19px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-title {
    font-size: 76px;
  }

  .hero-kicker {
    font-size: 30px;
  }

  .hero-stats {
    margin-top: var(--space-6);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-content {
    padding: var(--space-7) var(--space-5);
  }

  .product-visual {
    min-height: 300px;
  }

  .product-title {
    font-size: 48px;
  }

  .mission-title {
    font-size: 40px;
  }

  .legal-title {
    font-size: 54px;
  }

  .legal-section h2 {
    font-size: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: var(--space-7);
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --space-10: 80px; }

  .container { padding-inline: var(--space-5); }

  .section-title {
    font-size: 34px;
  }

  .section-subtitle {
    font-size: 18px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + var(--space-6));
    padding-bottom: var(--space-4);
  }

  .hero-shell {
    padding-inline: var(--space-5);
    gap: var(--space-5);
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-kicker {
    font-size: 21px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-visual.reveal {
    opacity: 1;
    translate: 0 0;
  }

  .platform-card {
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  }

  .platform-topbar {
    min-height: 46px;
    padding-inline: var(--space-4);
  }

  .platform-title {
    font-size: 13px;
  }

  .platform-status {
    font-size: 11px;
  }

  .platform-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .platform-sidebar {
    display: none;
  }

  .platform-main {
    padding: var(--space-4);
  }

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

  .platform-metric {
    padding: var(--space-3);
  }

  .platform-metric strong {
    font-size: 20px;
  }

  .workflow-list,
  .platform-chart {
    display: none;
  }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }

  .hero-stats { display: none; }
  .stat-divider { display: none; }

  .footer-nav { flex-direction: column; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .product-title {
    font-size: 38px;
  }

  .mission-title {
    font-size: 30px;
  }

  .contact-form-wrap { padding: var(--space-5); }

  .legal-title {
    font-size: 42px;
  }

  .legal-intro {
    font-size: 17px;
  }

  .legal-section h2 {
    font-size: 24px;
  }

  .legal-meta { flex-direction: column; align-items: flex-start; }
}
