/* ============================================================
   KELVIN.AI DEMO — Design System
   Light Theme — Inspired by Stripe's premium whitespace-heavy aesthetic
   Clean, airy, technically serious
   ============================================================ */

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

:root {
  /* Brand palette — Kelvin's actual gradient: blue-to-purple */
  --brand-primary: #635BFF;
  --brand-primary-light: #7A73FF;
  --brand-primary-dark: #4B44DB;
  --brand-teal: #00D4AA;
  --brand-teal-muted: #00B894;

  /* Surfaces */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F8FA;
  --bg-tertiary: #F0F1F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFBFD;
  --bg-dark-inset: #0A0A14;

  /* Borders */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.1);
  --border-accent: rgba(99, 91, 255, 0.2);

  /* Text */
  --text-primary: #0A2540;
  --text-secondary: #425466;
  --text-tertiary: #8898AA;
  --text-accent: var(--brand-primary);

  /* Typography */
  --display: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-width: min(90%, 1100px);
  --container-wide: min(92%, 1280px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.5s;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 60px rgba(99, 91, 255, 0.08);

  /* Card borders */
  --card-border: rgba(0, 0, 0, 0.12);
  --card-border-hover: rgba(99, 91, 255, 0.35);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Rotating Gradient Border --- */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  to { --border-angle: 360deg; }
}

.glow-card {
  position: relative;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  transition: all 0.4s var(--ease-out);
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    var(--brand-primary) 50%,
    var(--brand-teal) 75%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  animation: rotateBorder 4s linear infinite;
  pointer-events: none;
}
.glow-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.glow-card:hover::before {
  opacity: 1;
}
ul, ol { list-style: none; }

/* --- Demo Banner --- */
.demo-banner {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-teal));
  padding: .5rem 1rem;
  text-align: center;
  font-family: var(--sans); font-size: .7rem; font-weight: 500;
  letter-spacing: .04em; color: #fff;
}
.demo-banner a { color: #fff; text-decoration: underline; margin-left: .3rem; font-weight: 600; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 28px; left: 0; width: 100%; z-index: 150;
  padding: .875rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.nav-logo-img {
  height: 26px;
  width: auto;
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  font-size: .85rem; font-weight: 450;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  font-size: .8rem !important; font-weight: 550 !important;
  color: #fff !important;
  background: var(--brand-primary);
  padding: .5rem 1.25rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--brand-primary-light);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 210;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(28px + 80px + var(--section-pad));
  padding-bottom: var(--section-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 800px;
  background: radial-gradient(ellipse, rgba(99, 91, 255, 0.04) 0%, rgba(0, 212, 170, 0.02) 40%, transparent 70%);
  pointer-events: none;
}

/* Particle mesh canvas */
.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero:hover .hero-canvas {
  pointer-events: auto;
}

/* Fade mask at bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  background: rgba(99, 91, 255, 0.06);
  border: 1px solid rgba(99, 91, 255, 0.12);
  border-radius: 100px;
  font-size: .75rem; font-weight: 500;
  color: var(--brand-primary);
  letter-spacing: .02em;
  margin-bottom: 2rem;
}
.hero-badge .pulse {
  width: 6px; height: 6px;
  background: var(--brand-teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
  color: var(--text-primary);
}
.hero h1 .text-gradient {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  background: var(--brand-primary);
  color: #fff;
  font-size: .9rem; font-weight: 550;
  border-radius: 8px; border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.btn-primary:hover {
  background: var(--brand-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 91, 255, 0.25);
}
.btn-primary svg { width: 16px; height: 16px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  background: transparent;
  color: var(--text-secondary);
  font-size: .9rem; font-weight: 450;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.2);
  background: var(--bg-secondary);
}

/* --- Trusted Bar --- */
.trusted-bar {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.trusted-label {
  font-size: .7rem; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-tertiary);
}
.trusted-track {
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trusted-logos {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 20s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trusted-track:hover .trusted-logos {
  animation-play-state: paused;
}
.trusted-logo {
  height: 30px;
  min-width: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(1) brightness(0.25);
  transition: opacity 0.3s, filter 0.3s;
  flex-shrink: 0;
}
.trusted-logo:hover {
  opacity: 0.75;
  filter: grayscale(0);
}

/* --- Platform Showcase --- */
.platform-showcase {
  margin-top: 3rem;
}

.showcase-main {
  margin-bottom: 1.5rem;
}

.showcase-frame {
  background: var(--bg-dark-inset);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    var(--shadow-xl),
    var(--shadow-glow),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.showcase-frame:hover {
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.12),
    0 0 80px rgba(99, 91, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transform: translateY(-4px);
}

.frame-topbar {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem;
  background: #1A1A24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.frame-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.frame-dot.red { background: #FF5F57; }
.frame-dot.yellow { background: #FFBD2E; }
.frame-dot.green { background: #28C840; }
.frame-url {
  margin-left: auto;
  font-size: .65rem;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: .02em;
}

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

.showcase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.showcase-card-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
}

.showcase-frame.small {
  border-radius: 10px;
}
.showcase-frame.small .showcase-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top left;
}

/* --- Section Shared --- */
section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section-label {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-sub {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

/* --- Gradient Divider --- */
.gradient-divider {
  width: 100%;
  height: 80px;
  position: relative;
  overflow: hidden;
}
.gradient-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

/* --- How It Works Section --- */
.how-section {
  text-align: center;
}
.how-section .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.how-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  overflow: visible;
  text-align: left;
}

.how-card .step-num {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(99, 91, 255, 0.06);
  border: 1px solid rgba(99, 91, 255, 0.12);
  border-radius: 8px;
  font-size: .8rem; font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.how-card h3 {
  font-size: 1.15rem; font-weight: 650;
  margin-bottom: .75rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.how-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Industries Section --- */
.industries-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.industries-grid .industry-card:nth-child(2) {
  transform: translateY(1rem);
}
.industries-grid .industry-card:nth-child(3) {
  transform: translateY(-0.5rem);
}

.industry-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.industry-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(99, 91, 255, 0.06);
  border: 1px solid rgba(99, 91, 255, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}
.industry-icon svg {
  width: 20px; height: 20px;
  stroke: var(--brand-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.industry-card h3 {
  font-size: 1rem; font-weight: 600;
  margin-bottom: .35rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.industry-card p {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Customer Story Section --- */
.story-card {
  margin-top: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.story-top {
  padding: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.story-quote {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 450;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.story-attribution {
  display: flex; align-items: center; gap: .75rem;
}
.story-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-teal));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff;
}
.story-name { font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.story-role { font-size: .8rem; color: var(--text-secondary); }

.story-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.story-metric {
  padding: 1.75rem 2.5rem;
  border-right: 1px solid var(--border-subtle);
  text-align: center;
}
.story-metric:last-child { border-right: none; }

.story-metric-value {
  font-size: 1.75rem; font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: .25rem;
}
.story-metric-label {
  font-size: .75rem; font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --- Company Section --- */
.company-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}

.company-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.company-stat {
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-card);
  border-radius: 12px;
}
.company-stat-value {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .25rem;
}
.company-stat-label {
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.founder-quote {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
}
.founder-quote p {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.founder-quote footer {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.founder-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-teal));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.founder-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.founder-role {
  font-size: .8rem;
  color: var(--text-secondary);
}

/* --- Code Block Demo --- */
.code-block {
  margin-top: 2rem;
  background: var(--bg-dark-inset);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: .7rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
}
.code-body {
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  overflow-x: auto;
}
.code-body .key { color: var(--brand-primary-light); }
.code-body .string { color: var(--brand-teal); }
.code-body .comment { color: rgba(255, 255, 255, 0.25); font-style: italic; }

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: 30%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(99, 91, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.cta-section .section-sub {
  margin-left: auto; margin-right: auto;
  margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}
.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand p {
  font-size: .8rem;
  color: var(--text-tertiary);
  max-width: 280px;
  line-height: 1.55;
  margin-top: .5rem;
}

.footer-links {
  display: flex; gap: 3rem;
}
.footer-col h4 {
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin-bottom: .75rem;
}
.footer-col a {
  display: block;
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: .5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: var(--container-width);
  margin: 2.5rem auto 0;
  padding: 1.5rem 5% 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: var(--text-tertiary);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh; height: 100svh;
    background: var(--bg-primary);
    padding: 7rem 2rem 2rem;
    gap: 0;
    z-index: 200;
  }
  .nav-links.active a {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    padding: .65rem 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
  }
  .nav-links.active a:first-child {
    border-top: 1px solid var(--border-subtle);
  }
  .nav-links.active a.nav-cta {
    margin-top: 1.5rem;
    font-size: .95rem;
    font-family: var(--sans);
    font-weight: 600;
    text-align: center;
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    padding: .9rem;
    border-radius: 10px;
    border: none;
    width: 100%;
    letter-spacing: 0;
  }

  /* Close X animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: auto;
    padding-top: calc(28px + 60px + 3rem);
    padding-bottom: 3rem;
  }

  .showcase-row {
    grid-template-columns: 1fr;
  }

  .trusted-logos {
    gap: 2.5rem;
  }
  .trusted-logo {
    height: 24px;
  }

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

  .industries-grid {
    grid-template-columns: 1fr;
  }
  .industries-grid .industry-card:nth-child(2),
  .industries-grid .industry-card:nth-child(3) {
    transform: none;
  }

  .company-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-metrics {
    grid-template-columns: 1fr;
  }
  .story-metric {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem;
  }
  .story-metric:last-child { border-bottom: none; }

  .footer-inner {
    flex-direction: column;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
  }
}
