/* Kumi AI — Premium Product Marketing Site Styles */
/* Kumi AI marketing — palette aligned with the product dashboard */

:root {
  /* Brand Spectrum */
  --accent: #6366f1; /* Indigo 500 */
  --accent-hover: #4f46e5; /* Indigo 600 */
  --accent-light: #eef2ff; /* Indigo 50 */
  --accent-glow: rgba(99, 102, 241, 0.15);
  
  /* Status Colors */
  --success: #10b981; /* Emerald 500 */
  --success-light: #ecfdf5;
  --warning: #f59e0b; /* Amber 500 */
  --warning-light: #fffbeb;
  --danger: #ef4444; /* Red 500 */
  --info: #3b82f6; /* Blue 500 */
  
  /* Surfaces & Text */
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --canvas: #f1f5f9; /* Soft Slate 100 */
  --border: #e2e8f0; /* Slate 200 */
  --border-light: #f1f5f9;
  
  --text: #0f172a; /* Slate 900 */
  --text-secondary: #334155; /* Slate 700 */
  --text-muted: #64748b; /* Slate 500 */
  --text-subtle: #94a3b8; /* Slate 400 */
  
  /* Radii & Layout */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Multi-layered Premium Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 0 25px -5px var(--accent-glow);
  
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
}

/* ============================================================
   Layout Utility Containers
   ============================================================ */
.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

/* Generic Section Header */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-head__eyebrow:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ============================================================
   Premium Header & Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo__img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-desktop a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
  border-radius: 1px;
}

.nav-desktop a:not(.btn):hover {
  color: var(--text);
}

.nav-desktop a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background-color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--canvas);
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  z-index: 99;
  overflow-y: auto;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav.is-open {
  display: flex;
  animation: navDrawerIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes navDrawerIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav a:not(.btn) {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.mobile-nav a:not(.btn):hover {
  background: var(--canvas);
  color: var(--accent);
}

/* ============================================================
   Slick Buttons & CTAs
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm), 0 2px 4px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-elevated);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-xs);
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

/* ============================================================
   Cinematic hero + real product frames (clean typography / generous rhythm)
   ============================================================ */
.hero--vision {
  background: #000;
  color: #f5f5f7;
  overflow: hidden;
}

.hero--vision__intro {
  padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(99, 102, 241, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #0d0d0f 0%, #000 45%);
}

.hero--vision__intro-inner {
  max-width: 980px;
  margin-inline: auto;
}

.hero--vision__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.55);
}

.hero--vision__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 7.5vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: #f5f5f7;
}

.hero--vision__subtitle {
  margin: 0 auto 2rem;
  max-width: 42rem;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.5;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.72);
}

.hero--vision__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn--vision-primary {
  background: #f5f5f7 !important;
  color: #000 !important;
  box-shadow: none !important;
}

.btn--vision-primary:hover {
  background: #fff !important;
  transform: translateY(-1px);
}

.btn--vision-ghost {
  background: transparent !important;
  color: #f5f5f7 !important;
  border: 1px solid rgba(245, 245, 247, 0.35) !important;
  box-shadow: none !important;
}

.btn--vision-ghost:hover {
  background: rgba(245, 245, 247, 0.08) !important;
  border-color: rgba(245, 245, 247, 0.55) !important;
  color: #fff !important;
}

.hero--vision__trust {
  list-style: none;
  margin: 0;
  padding: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  border-top: 1px solid rgba(245, 245, 247, 0.12);
  font-size: 0.875rem;
  color: rgba(245, 245, 247, 0.62);
}

.hero--vision__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero--vision__trust svg {
  width: 1rem;
  height: 1rem;
  color: #34d399;
  flex-shrink: 0;
}

.hero--vision__product-wrap {
  padding: 0 0 clamp(3rem, 8vw, 5rem);
  background: #000;
}

.product-shot {
  margin: 0;
  border-radius: clamp(12px, 2vw, 20px);
  overflow: hidden;
  background: #1d1d1f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 30px 60px -40px rgba(99, 102, 241, 0.35);
}

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

.product-shot--hero {
  width: min(1120px, 94vw);
  margin-inline: auto;
}

.product-shot--panel {
  width: 100%;
}

.hero--vision__caption {
  margin: 1rem auto 0;
  max-width: min(1120px, 94vw);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(245, 245, 247, 0.45);
  letter-spacing: 0.02em;
}

.section--apple-dark.showcase-intro {
  background: #000;
  color: #f5f5f7;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.showcase-intro__inner {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.showcase-intro__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #f5f5f7;
}

.showcase-intro__lead {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: rgba(245, 245, 247, 0.62);
}

.showcase-split {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.showcase-split--muted {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--canvas) 55%, var(--bg) 100%);
}

.showcase-split__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .showcase-split__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }

  .showcase-split__grid--reverse {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  }
}

.showcase-split__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.showcase-split__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
}

.showcase-split__body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 38rem;
}

@media (max-width: 959px) {
  .showcase-split__grid--reverse figure {
    order: -1;
  }
}

/* ============================================================
   Premium Approach Band (Problem/Approach/Who)
   ============================================================ */
.band {
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-light) 100%);
  position: relative;
}

.band__inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-md);
}

.band__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .band__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.band-card {
  position: relative;
}

@media (min-width: 768px) {
  .band-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -1rem;
    height: 80%;
    width: 1px;
    background: var(--border);
  }
}

.band-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.band-card h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.band-card:nth-child(2) h3::before { background: var(--success); }
.band-card:nth-child(3) h3::before { background: var(--warning); }

.band-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   Gentle Workspace Features Layer
   ============================================================ */
.features {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background-color 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: var(--shadow-lg);
  }
}

.feature-card:hover::before {
  background: var(--accent);
}

.feature-card:nth-child(2):hover::before { background: var(--success); }
.feature-card:nth-child(3):hover::before { background: var(--info); }
.feature-card:nth-child(4):hover::before { background: linear-gradient(90deg, var(--accent), var(--warning)); }

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s, background-color 0.3s;
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.05);
  background: var(--accent-light);
}

.feature-card h3 {
  margin: 0 0 0.625rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Specific Shimmer preview inside the AI document card */
.feature-card__ai-badge {
  margin-top: auto;
  padding-top: 1.25rem;
}

.ai-inline-draft {
  background: var(--canvas);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: monospace;
  position: relative;
  overflow: hidden;
}

.ai-inline-draft::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   How It Works (Habits / Steps)
   ============================================================ */
.steps {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.steps__list {
  display: grid;
  gap: 2rem;
  counter-reset: habit;
}

@media (min-width: 768px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); }
}

.step {
  position: relative;
  counter-increment: habit;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background-color 0.2s;
}

.step:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* `content` only applies to pseudo-elements — numbers were invisible before */
.step__num::before {
  content: counter(habit);
}

.step:nth-child(2) .step__num { background: var(--success-light); color: var(--success); }
.step:nth-child(3) .step__num { background: var(--warning-light); color: var(--warning); }

.step h3 {
  margin: 0 0 0.625rem;
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--text);
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ============================================================
   Technology & Scalability Story
   ============================================================ */
.tech {
  background: var(--canvas);
}

.tech__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .tech__grid { grid-template-columns: 1.1fr 0.9fr; }
}

.tech__prose h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tech__prose p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.tech__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech__list li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.tech__list li svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success);
  margin-top: 0.2rem;
}

.tech-aside {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.tech-aside::before {
  content: '';
  position: absolute;
  top: 0;
  right: 2rem;
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
}

.tech-aside h3 {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.stack-tag {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.stack-tag:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.tech-aside__disclaimer {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: background-color 0.25s ease, color 0.2s ease;
}

.faq-trigger:hover {
  background-color: var(--bg);
  color: var(--accent);
}

.faq-trigger svg {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
  width: 1.25rem;
  height: 1.25rem;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  margin: 0;
  background-color: var(--accent-light);
  border-top: none;
}

.faq-panel__inner {
  overflow: hidden;
  min-height: 0;
}

.faq-panel__inner p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-item:not(.is-open) .faq-panel {
  border-top: none;
}

.faq-item.is-open .faq-trigger {
  color: var(--accent);
  background-color: rgba(238, 242, 255, 0.92);
}

.faq-item.is-open .faq-trigger svg {
  transform: rotate(180deg);
  color: var(--accent);
}

/* ============================================================
   Trendy Final Call-To-Action Banner
   ============================================================ */
.cta-container {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.cta {
  position: relative;
  background: linear-gradient(135deg, var(--text) 0%, #1e1b4b 50%, var(--accent-hover) 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
  animation: rotateGlow 15s linear infinite;
}

@keyframes rotateGlow {
  to { transform: rotate(360deg); }
}

.cta__inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}

.cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cta p {
  margin: 0 0 2rem;
  color: var(--text-subtle);
  font-size: 1.125rem;
  line-height: 1.6;
}

.cta .btn--primary {
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta .btn--primary:hover {
  background: var(--canvas);
  color: var(--accent-hover);
  transform: translateY(-2px);
}

/* ============================================================
   Polished Footer
   ============================================================ */
.site-footer {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer__grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer__meta p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 34ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.9375rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive Nav Toggle Display */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   Early access modal
   ============================================================ */
.early-access-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.early-access-modal[hidden] {
  display: none;
}

.early-access-modal.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.early-access-modal.is-open[hidden] {
  display: flex;
}

.early-access-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.early-access-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  padding: clamp(1.5rem, 4vw, 2rem);
  animation: earlyAccessPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes earlyAccessPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.early-access-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.early-access-modal__close:hover {
  background: var(--canvas);
  color: var(--text);
  border-color: var(--text-subtle);
}

.early-access-modal__title {
  margin: 0 0 0.5rem;
  padding-right: 2.5rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.early-access-modal__lead {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.early-access-form__field {
  margin-bottom: 1rem;
}

.early-access-form__field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.early-access-form__req {
  color: var(--accent);
}

.early-access-form__hint {
  font-weight: 500;
  color: var(--text-subtle);
}

.early-access-form input,
.early-access-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.early-access-form input:focus,
.early-access-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.early-access-form textarea {
  resize: vertical;
  min-height: 5rem;
}

.early-access-form__fineprint {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

.early-access-form__submit {
  width: 100%;
}

.early-access-form input:invalid:not(:focus):not(:placeholder-shown),
.early-access-form textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--danger);
}

.early-access-modal__success {
  text-align: center;
  padding: 0.5rem 0 0;
}

.early-access-modal__success[hidden] {
  display: none;
}

.early-access-modal__success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius-full);
  background: var(--success-light);
  color: var(--success);
  display: grid;
  place-items: center;
}

.early-access-modal__success .early-access-modal__title {
  padding-right: 0;
}

.early-access-modal__success .early-access-modal__lead {
  margin-bottom: 1.5rem;
}

.early-access-modal__success .early-access-modal__lead a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.early-access-modal-open {
  overflow: hidden;
}

/* ============================================================
   UX polish: scroll anchors, reveals, nav state, motion safety
   ============================================================ */
main section[id],
.hero--vision {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.site-header {
  transition:
    background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(226, 232, 240, 0.95);
}

.nav-desktop .site-nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-desktop .site-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
}

.nav-desktop .site-nav-link:hover::after {
  transform: scaleX(1);
}

.nav-desktop .site-nav-link.is-active {
  color: var(--text);
}

.nav-desktop .site-nav-link.is-active::after {
  transform: scaleX(1);
}

.logo {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.logo:focus-visible {
  outline-offset: 4px;
}

.mobile-nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 98;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}

.mobile-nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

[data-reveal]:not([data-reveal='hero-intro']) {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-revealed:not([data-reveal='hero-intro']) {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal='hero-intro'] .hero-reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal='hero-intro'].is-revealed .hero-reveal-item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

[data-reveal='hero-intro'].is-revealed .hero-reveal-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.14s;
}

[data-reveal='hero-intro'].is-revealed .hero-reveal-item:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.23s;
}

[data-reveal='hero-intro'].is-revealed .hero-reveal-item:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

[data-reveal='hero-intro'].is-revealed .hero-reveal-item:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.41s;
}

.product-shot--interactive {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-shot--interactive:hover {
    transform: translateY(-6px) scale(1.008);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 55px 110px -35px rgba(0, 0, 0, 0.88),
      0 36px 72px -44px rgba(99, 102, 241, 0.42);
  }
}

@keyframes heroGlowDrift {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.92;
  }
}

.hero--vision__intro {
  animation: heroGlowDrift 12s ease-in-out infinite;
}

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

  .hero--vision__intro {
    animation: none;
  }

  [data-reveal]:not([data-reveal='hero-intro']),
  [data-reveal].is-revealed:not([data-reveal='hero-intro']) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  [data-reveal='hero-intro'] .hero-reveal-item,
  [data-reveal='hero-intro'].is-revealed .hero-reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .mobile-nav {
    transition: none;
    transform: none;
    opacity: 1;
    animation: none !important;
  }

  .mobile-nav.is-open {
    animation: none !important;
  }

  .mobile-nav-backdrop {
    transition: none;
  }

  .product-shot--interactive:hover,
  .feature-card:hover {
    transform: none;
  }
}
