/* ============================================================================
   Vornu — SaaS Project Management & Remote Work HTML Template
   Free template by html.design — bento grid + aurora gradient accents.
   Single tokenized stylesheet. No frameworks. No build step.
   ============================================================================ */

/* ---------- 1. Tokens ----------------------------------------------------- */
:root {
  /* Indigo / wellness / cream — verifiably distinct from every other html.design template */
  --indigo-50:  #F5F3FF;
  --indigo-100: #EDE9FE;
  --indigo-200: #DDD6FE;
  --indigo-300: #C4B5FD;
  --indigo-400: #A78BFA;
  --indigo-500: #8B5CF6;
  --indigo-600: #6366F1;   /* primary */
  --indigo-700: #4F46E5;
  --indigo-800: #4338CA;
  --indigo-900: #312E81;

  --green-300: #6EE7B7;
  --green-500: #10B981;     /* CTA / wellness green */
  --green-600: #059669;

  --pink-400:  #F472B6;
  --pink-500:  #EC4899;     /* aurora highlight */

  --amber-300: #FCD34D;
  --amber-500: #F59E0B;     /* secondary highlight (sparingly) */

  --paper:     #FFFFFF;
  --cream:     var(--indigo-50);
  --mist:      #FAFAFE;

  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Semantic */
  --bg:           var(--cream);
  --bg-alt:       var(--paper);
  --bg-mist:      var(--mist);
  --bg-deep:      var(--indigo-900);
  --fg:           var(--indigo-900);
  --fg-soft:      var(--slate-700);
  --fg-mute:      var(--slate-500);
  --rule:         rgba(49, 46, 129, 0.10);
  --rule-strong:  rgba(49, 46, 129, 0.22);
  --primary:      var(--indigo-600);
  --primary-soft: var(--indigo-300);
  --cta:          var(--green-500);
  --cta-hot:      var(--green-600);
  --highlight:    var(--pink-500);

  /* Aurora gradient stops */
  --aurora-1: linear-gradient(135deg, var(--indigo-500) 0%, var(--indigo-700) 35%, var(--pink-500) 80%, var(--amber-500) 100%);
  --aurora-2: linear-gradient(120deg, var(--indigo-300) 0%, var(--green-300) 60%, var(--amber-300) 100%);
  --aurora-mesh:
    radial-gradient(at 18% 22%, rgba(167, 139, 250, 0.45) 0%, transparent 55%),
    radial-gradient(at 82% 15%, rgba(244, 114, 182, 0.30) 0%, transparent 50%),
    radial-gradient(at 65% 85%, rgba(110, 231, 183, 0.30) 0%, transparent 55%),
    radial-gradient(at 12% 78%, rgba(99, 102, 241, 0.30) 0%, transparent 60%);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  clamp(1rem, 0.94rem + 0.28vw, 1.0625rem);
  --text-lg:    clamp(1.125rem, 1rem + 0.45vw, 1.25rem);
  --text-xl:    clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl:   clamp(1.625rem, 1.35rem + 1vw, 2rem);
  --text-3xl:   clamp(2.25rem, 1.7rem + 2.4vw, 3.25rem);
  --text-4xl:   clamp(3rem, 2.1rem + 3.8vw, 4.75rem);
  --text-5xl:   clamp(3.75rem, 2.4rem + 5.6vw, 6rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4.5rem;
  --space-9:  6rem;
  --space-10: 8rem;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-2xl: 36px;
  --radius-full: 999px;

  --container: 1280px;
  --gutter:    clamp(1rem, 0.75rem + 1.25vw, 2rem);

  --shadow-sm:  0 1px 2px 0 rgba(49, 46, 129, 0.04);
  --shadow:     0 4px 6px -1px rgba(49, 46, 129, 0.06), 0 2px 4px -2px rgba(49, 46, 129, 0.04);
  --shadow-md:  0 12px 28px -8px rgba(49, 46, 129, 0.18), 0 4px 8px -2px rgba(49, 46, 129, 0.06);
  --shadow-lg:  0 24px 50px -16px rgba(99, 102, 241, 0.28), 0 8px 16px -4px rgba(49, 46, 129, 0.10);
  --shadow-aurora: 0 30px 80px -20px rgba(139, 92, 246, 0.45);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   180ms;
  --dur-base:   260ms;
  --dur-slow:   520ms;
}

/* ---------- 2. Reset / base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  font-feature-settings: 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); cursor: pointer; }
a:hover { color: var(--primary); }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-7) 0; }
::selection { background: var(--indigo-300); color: var(--indigo-900); }

/* ---------- 3. Typography ------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0;
}
h1 { font-size: var(--text-4xl); letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.03em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); line-height: 1.15; }
h5 { font-size: var(--text-lg); line-height: 1.25; }
p  { margin: 0 0 1em; }

.eyebrow,
.mono-cap {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
}

.text-gradient {
  background: var(--aurora-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Layout primitives ----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}
.section { padding: var(--space-8) 0; position: relative; }
.section--tight { padding: var(--space-7) 0; }
.section--deep  { padding: var(--space-10) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
  align-items: end;
}
@media (min-width: 768px) {
  .section-head { grid-template-columns: 1.4fr 1fr; gap: var(--space-7); }
}
.section-head h2 { max-width: 18ch; }
.section-head p  { color: var(--fg-soft); margin: 0; max-width: 56ch; }

/* ---------- 5. Header / Nav --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 243, 255, 0.78);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--aurora-1);
  border-radius: 8px;
  position: relative;
  display: inline-block;
  box-shadow: var(--shadow-md);
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  object-fit: contain;
  background: var(--paper);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px 6px 6px 4px;
  border-radius: 4px;
  background: var(--paper);
  opacity: 0.92;
  -webkit-mask: linear-gradient(135deg, #000 30%, transparent 30%, transparent 50%, #000 50%);
          mask: linear-gradient(135deg, #000 30%, transparent 30%, transparent 50%, #000 50%);
}
.nav-links {
  display: none;
  gap: var(--space-6);
  justify-self: center;
  align-items: center;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-soft);
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -2px;
  width: 16px; height: 2px;
  border-radius: 1px;
  transform: translateX(-50%);
  background: var(--primary);
}
.nav-cta-row { display: flex; gap: var(--space-3); align-items: center; }
.nav-toggle { display: inline-grid; place-items: center; padding: var(--space-2); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; right: 0; }
.nav-toggle span::after  { position: absolute; top:  6px; left: 0; right: 0; }
@media (min-width: 1024px) {
  .nav-links { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 40;
  padding: var(--space-7) var(--gutter);
  flex-direction: column;
  gap: var(--space-3);
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer .drawer-close {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg-soft);
}
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  padding: var(--space-4) 0;
}
.mobile-drawer .drawer-lang {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-4);
}
.mobile-drawer .drawer-lang a,
.mobile-drawer .drawer-lang span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-bottom: 0;
  padding: 0;
}

/* ---------- 6. Buttons / Pills ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-full);
  background: var(--paper);
  color: var(--fg);
  border: 1px solid var(--rule-strong);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.btn:hover { box-shadow: var(--shadow); border-color: var(--indigo-300); color: var(--primary); }
.btn--primary {
  background: var(--indigo-900);
  color: var(--paper);
  border-color: var(--indigo-900);
}
.btn--primary:hover { background: var(--indigo-700); border-color: var(--indigo-700); color: var(--paper); }
.btn--cta {
  background: var(--cta);
  color: var(--paper);
  border-color: var(--cta);
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.45);
}
.btn--cta:hover { background: var(--cta-hot); border-color: var(--cta-hot); color: var(--paper); transform: translateY(-1px); }
.btn--gradient {
  background: var(--aurora-1);
  color: var(--paper);
  border-color: transparent;
  box-shadow: var(--shadow-aurora);
}
.btn--gradient:hover { transform: translateY(-1px); color: var(--paper); }
.btn--ghost {
  background: transparent;
  border-color: var(--rule-strong);
}
.btn--lg { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--indigo-100);
  color: var(--indigo-700);
  border: 1px solid var(--indigo-200);
}
.pill--green { background: #ECFDF5; color: var(--cta-hot); border-color: var(--green-300); }
.pill--pink  { background: #FCE7F3; color: #BE185D;        border-color: var(--pink-400); }
.pill--amber { background: #FFFBEB; color: #92400E;        border-color: var(--amber-300); }
.pill--ink   { background: var(--indigo-900); color: var(--paper); border-color: var(--indigo-900); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 7. Hero ------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-8);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 90%;
  background: var(--aurora-mesh);
  filter: blur(40px);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--fg-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0 0 var(--space-5);
  max-width: 18ch;
}
.hero-headline em {
  font-style: normal;
  background: var(--aurora-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--fg-soft);
  max-width: 56ch;
  margin: 0 0 var(--space-6);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  color: var(--fg-soft);
  font-size: var(--text-sm);
}
.hero-trust .stars { color: var(--amber-500); letter-spacing: 0.08em; }

/* Hero bento preview */
.hero-bento {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .hero-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(140px, auto); gap: var(--space-4); }
}
.bento {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.bento:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bento--gradient { background: var(--aurora-1); color: var(--paper); border-color: transparent; }
.bento--gradient h3, .bento--gradient h4 { color: var(--paper); }
.bento--dark { background: var(--indigo-900); color: var(--paper); border-color: transparent; }
.bento--dark h3, .bento--dark h4 { color: var(--paper); }
.bento--dark p { color: var(--indigo-200); }
.bento--mist { background: var(--mist); }

@media (min-width: 768px) {
  .b-2 { grid-column: span 2; }
  .b-3 { grid-column: span 3; }
  .b-4 { grid-column: span 4; }
  .b-6 { grid-column: span 6; }
  .b-row-2 { grid-row: span 2; }
}

.bento-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.bento--dark .bento-eyebrow,
.bento--gradient .bento-eyebrow { color: rgba(255,255,255,0.7); }
.bento h3 { font-size: var(--text-xl); line-height: 1.1; }
.bento p  { font-size: var(--text-sm); color: var(--fg-soft); margin: 0; }

/* ---------- 8. Logo wall ------------------------------------------------- */
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-7);
  padding: var(--space-6) 0;
  align-items: center;
  filter: grayscale(100%);
  opacity: 0.7;
}
.logo-wall span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-soft);
}
.logo-wall .heading {
  text-align: center;
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: var(--space-3);
  filter: none;
  opacity: 1;
}

/* ---------- 9. Feature cards (alt grid) -------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }

.feature {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.feature:hover { border-color: var(--indigo-300); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--indigo-100);
  color: var(--primary);
  margin-bottom: var(--space-4);
}
.feature h4 { margin-bottom: var(--space-2); }
.feature p  { color: var(--fg-soft); margin: 0; }

/* ---------- 10. Pricing cards ----------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: stretch;
}
@media (min-width: 768px)  { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.price-card--featured {
  background: var(--indigo-900);
  color: var(--paper);
  border-color: transparent;
  box-shadow: var(--shadow-aurora);
}
.price-card--featured h3 { color: var(--paper); }
.price-card--featured .price-amount { color: var(--paper); }
.price-card--featured p { color: var(--indigo-200); }
.price-card--featured ul li { color: var(--indigo-100); }
.price-card--featured ul li::before { background: var(--green-300); }
.price-card .badge {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  background: var(--aurora-1);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.price-amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.price-amount sub { font-family: var(--font-body); font-size: var(--text-base); color: var(--fg-mute); font-weight: 400; vertical-align: baseline; }
.price-card ul { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; gap: var(--space-2); }
.price-card ul li {
  position: relative;
  padding-left: 1.5em;
  font-size: var(--text-sm);
  color: var(--fg-soft);
}
.price-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.4em;
  width: 16px; height: 16px;
  background: var(--green-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.78 4.22a.75.75 0 010 1.06L6.53 12.53a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06l2.72 2.72 6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.78 4.22a.75.75 0 010 1.06L6.53 12.53a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06l2.72 2.72 6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.download-actions {
  display: grid;
  gap: var(--space-4);
}
.download-action {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  box-shadow: var(--shadow);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.download-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--indigo-300);
}
.download-action--featured {
  background: var(--indigo-900);
  color: var(--paper);
  border-color: transparent;
  box-shadow: var(--shadow-aurora);
}
.download-action--featured:hover { border-color: transparent; }

.docs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .docs-layout { grid-template-columns: 280px 1fr; align-items: start; }
}
.docs-nav {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) {
  .docs-nav {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
}
.docs-nav .title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: var(--space-3);
}
.docs-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--fg-soft);
  font-size: var(--text-sm);
}
.docs-nav a:hover { background: var(--indigo-50); color: var(--fg); }
.docs-nav a:focus-visible { outline-offset: 2px; }

.docs-content {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  box-shadow: var(--shadow);
}
.docs-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-7);
  scroll-margin-top: 110px;
}
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 { margin-top: var(--space-6); }
.docs-content p { color: var(--fg-soft); }
.docs-content ul { margin: 0 0 1em 1.25em; color: var(--fg-soft); }
.docs-shot {
  margin: var(--space-5) 0 var(--space-6);
  background: var(--bg-mist);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.docs-shot img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid var(--rule);
  background: var(--paper);
}
.docs-shot figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--fg-mute);
}
.docs-shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-5) 0 var(--space-6);
}
@media (min-width: 900px) {
  .docs-shot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 11. Testimonials ----------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px)  { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
.testimonial {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.testimonial blockquote {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--fg);
  line-height: 1.45;
  font-weight: 500;
}
.testimonial .stars { color: var(--amber-500); letter-spacing: 0.08em; }
.testimonial .author { display: flex; gap: var(--space-3); align-items: center; margin-top: auto; }
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--indigo-100);
  flex-shrink: 0;
}
.testimonial .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial .name { font-weight: 600; font-size: var(--text-sm); }
.testimonial .role { font-size: var(--text-xs); color: var(--fg-mute); }

/* ---------- 12. Stat strip ------------------------------------------- */
.stat-strip {
  background: var(--indigo-900);
  color: var(--paper);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  position: relative;
  overflow: hidden;
}
.stat-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--aurora-mesh);
  opacity: 0.35;
  pointer-events: none;
}
.stat-strip > * { position: relative; z-index: 1; }
@media (min-width: 768px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip--two { grid-template-columns: 1fr; }
@media (min-width: 520px) { .stat-strip--two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .stat-strip--two { grid-template-columns: repeat(2, 1fr); } }
.stat .value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .value em { font-style: normal; background: var(--aurora-2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--indigo-200); font-size: var(--text-sm); margin-top: var(--space-2); }

/* ---------- 13. Customer story (split) -------------------------------- */
.story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .story { grid-template-columns: 1.35fr 0.85fr; gap: 0; }
}
.story-media { aspect-ratio: 996 / 637; background: var(--indigo-100); position: relative; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: contain; }
.story-body {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}
.story-body blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1.18;
}
.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--rule);
}
.story-stats .v { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; color: var(--primary); }
.story-stats .l { font-size: var(--text-xs); color: var(--fg-mute); }

/* ---------- 14. Integrations grid ------------------------------------ */
.integrations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (min-width: 768px)  { .integrations { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .integrations { grid-template-columns: repeat(6, 1fr); } }
.integration {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.integration:hover { border-color: var(--indigo-300); box-shadow: var(--shadow); }
.integration .badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.125rem;
  background: var(--indigo-100);
  color: var(--primary);
}
.integration .name { font-size: var(--text-sm); font-weight: 600; }

/* ---------- 15. Use-case bento (interior pages) ---------------------- */
.usecases {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) { .usecases { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(160px, auto); } }
.usecase {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.usecase:hover { transform: translateY(-2px); border-color: var(--indigo-300); }
@media (min-width: 768px) {
  .uc-2 { grid-column: span 2; }
  .uc-3 { grid-column: span 3; }
  .uc-4 { grid-column: span 4; }
}

/* ---------- 16. Comparison table ------------------------------------- */
.compare {
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--paper);
}
.compare table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.compare th, .compare td { padding: var(--space-4) var(--space-4); text-align: left; border-bottom: 1px solid var(--rule); }
.compare th { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; background: var(--mist); }
.compare th.col-featured { background: var(--indigo-900); color: var(--paper); }
.compare td.col-featured { background: rgba(99, 102, 241, 0.04); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .check { color: var(--cta-hot); font-weight: 700; }
.compare .x     { color: var(--fg-mute); }

/* ---------- 17. FAQ ------------------------------------------------- */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.faq details[open] { border-color: var(--indigo-300); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: var(--space-3) 0 0; color: var(--fg-soft); }

/* ---------- 18. Forms --------------------------------------------------- */
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) { .form { grid-template-columns: repeat(2, 1fr); } }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--fg-soft); }
.field input,
.field select,
.field textarea {
  font: inherit;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* ---------- 19. Page header (interior pages) ------------------------- */
.page-header {
  position: relative;
  padding: var(--space-9) 0 var(--space-7);
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0 -10% auto -10%;
  height: 80%;
  background: var(--aurora-mesh);
  opacity: 0.45;
  filter: blur(50px);
  pointer-events: none;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { max-width: 16ch; font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.page-header p  { color: var(--fg-soft); max-width: 56ch; font-size: var(--text-lg); margin: 0; }

/* ---------- 20. Footer -------------------------------------------------- */
.footer {
  background: var(--indigo-900);
  color: var(--paper);
  padding: var(--space-9) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--aurora-mesh);
  opacity: 0.18;
  pointer-events: none;
}
.footer .container { position: relative; z-index: 1; }
.footer-cta {
  background: linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  margin-bottom: var(--space-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: end;
}
@media (min-width: 1024px) { .footer-cta { grid-template-columns: 1.4fr 1fr; gap: var(--space-7); } }
.footer-cta h2 { color: var(--paper); font-size: var(--text-3xl); }
.footer-cta p  { color: var(--indigo-200); margin: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: var(--space-7);
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-7); } }
.footer-brand .brand { color: var(--paper); }
.footer-brand p { color: var(--indigo-200); font-size: var(--text-sm); max-width: 36ch; }
.footer-grid h5 { font-size: var(--text-sm); color: var(--paper); margin-bottom: var(--space-3); font-weight: 600; }
.footer-grid a { color: var(--indigo-200); display: block; padding: 6px 0; font-size: var(--text-sm); }
.footer-grid a:hover { color: var(--paper); }
.footer-fine {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--indigo-200);
}

/* ---------- 21. Reveal animation --------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 22. Misc utility ------------------------------------------ */
.flex-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.between { justify-content: space-between; }
.text-soft { color: var(--fg-soft); }
.text-mute { color: var(--fg-mute); }
.text-primary { color: var(--primary); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-7 { margin-bottom: var(--space-7); }
.mt-7 { margin-top: var(--space-7); }
.text-center { text-align: center; }

/* ---------- 23. Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 24. Focus styles ----------------------------------------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 25. Skip link --------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--indigo-900);
  color: var(--paper);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: var(--space-3); }
