/* ═══════════════════════════════════════════════════════════════
   NEXUS — Design System
   Palette: Copper & Slate  |  Bricolage Grotesque + Plus Jakarta Sans
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --copper:        #B87333;
  --copper-light:  #D4A574;
  --copper-pale:   #F0E0CC;
  --slate-dark:    #1E2530;
  --slate:         #2F3640;
  --slate-mid:     #4A5568;
  --slate-light:   #8896A8;
  --cream:         #F5F0EB;
  --cream-dark:    #EDE5DA;
  --white:         #FAFAF8;
  --black:         #0D1117;

  /* Semantic */
  --bg:            var(--white);
  --bg-alt:        var(--cream);
  --text-primary:  var(--slate-dark);
  --text-secondary:var(--slate-mid);
  --text-muted:    var(--slate-light);
  --accent:        var(--copper);
  --accent-light:  var(--copper-light);
  --border:        rgba(47, 54, 64, 0.10);
  --border-strong: rgba(47, 54, 64, 0.18);

  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(13,17,23,.06), 0 1px 2px rgba(13,17,23,.04);
  --shadow-md:  0 4px 16px rgba(13,17,23,.08), 0 2px 6px rgba(13,17,23,.05);
  --shadow-lg:  0 12px 40px rgba(13,17,23,.12), 0 4px 12px rgba(13,17,23,.06);
  --shadow-xl:  0 24px 64px rgba(13,17,23,.16), 0 8px 24px rgba(13,17,23,.08);
  --shadow-copper: 0 8px 32px rgba(184,115,51,.25);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:  150ms;
  --t-base:  250ms;
  --t-slow:  400ms;
  --t-xslow: 700ms;

  /* Layout */
  --container: 1200px;
  --nav-h:     68px;
}

/* ── 2. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── 3. LAYOUT ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ── 4. TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }

em { font-style: normal; color: var(--copper); }

p { color: var(--text-secondary); }

/* ── 5. BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--copper);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--r-full);
  transition: background var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-base) var(--ease-out);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #A0622A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-copper);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-full);
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-fast) var(--ease-spring);
}
.btn-outline:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: rgba(184,115,51,.05);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--r-full);
  transition: color var(--t-base), background var(--t-base);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--cream); }

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  color: rgba(245,240,235,.75);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--t-base);
}
.btn-ghost-light:hover { color: var(--white); }

.btn-large {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ── 6. SECTION SHARED ──────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(184,115,51,.1);
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: var(--space-md);
}
.section-title { margin-bottom: var(--space-md); }
.section-sub { font-size: 1.05rem; max-width: 520px; margin-inline: auto; }

/* ── 7. SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-xslow) var(--ease-out),
              transform var(--t-xslow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* ── 8. NAV ─────────────────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250,250,248,.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.nav-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
  flex-shrink: 0;
}
.logo-icon {
  font-size: 1.4rem;
  color: var(--copper);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base);
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  padding: 0.4rem 0;
}
.nav-mobile .btn-primary,
.nav-mobile .btn-ghost { width: 100%; justify-content: center; }

/* ── 9. HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,115,51,.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(47,54,64,.12) 0%, transparent 70%);
  bottom: 0; left: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.97); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: var(--space-xl);
  align-items: center;
}

.hero-badge {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--copper);
  background: rgba(184,115,51,.08);
  border: 1px solid rgba(184,115,51,.2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  width: fit-content;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--copper);
  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.4); }
}

.hero-headline {
  grid-column: 1;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-sub {
  grid-column: 1;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 480px;
  line-height: 1.7;
}

.hero-cta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.hero-social-proof {
  grid-column: 1;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.hero-social-proof strong { color: var(--text-primary); }
.proof-logos {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.proof-logos span {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* Hero visual — dashboard card */
.hero-visual {
  grid-column: 2;
  grid-row: 1 / 6;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: var(--space-lg);
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-xl);
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-12px) rotate(0.5deg); }
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}
.dash-dots { display: flex; gap: 5px; }
.dash-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cream-dark);
}
.dash-dots span:nth-child(1) { background: #FF5F57; }
.dash-dots span:nth-child(2) { background: #FEBC2E; }
.dash-dots span:nth-child(3) { background: #28C840; }
.dash-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}
.dash-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: #28C840;
}

.dash-body { display: flex; flex-direction: column; gap: var(--space-md); }

.dash-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border-radius: var(--r-md);
}
.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex: 1;
}
.metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.metric-delta {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: var(--r-sm);
}
.metric-delta.up { color: #16A34A; background: rgba(22,163,74,.1); }

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  padding: 0.5rem 0.75rem;
  background: var(--cream);
  border-radius: var(--r-md);
}
.chart-bar {
  flex: 1;
  height: var(--h);
  background: var(--cream-dark);
  border-radius: 3px 3px 0 0;
  transition: background var(--t-base);
}
.chart-bar.active { background: var(--copper); }

.dash-notif {
  position: absolute;
  bottom: -20px; right: -20px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--slate-dark);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.78rem;
  animation: notifPop 0.5s var(--ease-spring) 1.5s both;
}
@keyframes notifPop {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.notif-icon {
  width: 22px; height: 22px;
  background: #28C840;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.dash-notif strong { display: block; font-size: 0.8rem; }
.dash-notif span { color: rgba(245,240,235,.6); font-size: 0.72rem; }

/* ── 10. LOGOS STRIP ────────────────────────────────────────── */
.logos-strip {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  overflow: hidden;
}
.logos-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.logos-track { overflow: hidden; }
.logos-inner {
  display: flex;
  gap: var(--space-2xl);
  width: max-content;
  animation: logoScroll 28s linear infinite;
}
.logos-inner span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate-light);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color var(--t-base);
}
.logos-inner span:hover { color: var(--copper); }
@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 11. FEATURES ───────────────────────────────────────────── */
.features {
  padding: var(--space-4xl) 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-lg);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  transition: transform var(--t-slow) var(--ease-out),
              box-shadow var(--t-slow) var(--ease-out),
              border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,115,51,.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-slow);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184,115,51,.2);
}
.feature-card:hover::before { opacity: 1; }

.feature-card--large {
  grid-column: 1 / 3;
}
.feature-card--accent {
  background: var(--slate-dark);
  border-color: transparent;
  color: var(--white);
}
.feature-card--accent h3 { color: var(--white); }
.feature-card--accent p  { color: rgba(245,240,235,.65); }
.feature-card--accent .feature-icon { color: var(--copper-light); }
.feature-card--accent:hover { border-color: rgba(184,115,51,.3); }

.feature-icon {
  width: 52px; height: 52px;
  background: rgba(184,115,51,.1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  margin-bottom: var(--space-lg);
}
.feature-card--accent .feature-icon { background: rgba(184,115,51,.15); }

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.92rem; line-height: 1.65; }

/* Mini kanban */
.feature-visual { margin-top: var(--space-lg); }
.mini-kanban {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--r-lg);
}
.kanban-col { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.col-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.kanban-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.kanban-item.active {
  border-color: var(--copper);
  color: var(--copper);
  background: rgba(184,115,51,.05);
}
.kanban-item.done {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Feature tag list */
.feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: var(--space-lg);
}
.feature-tag-list span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-secondary);
}
.feature-card--accent .feature-tag-list span {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: rgba(245,240,235,.7);
}

/* Progress demo */
.progress-demo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--space-lg);
}
.prog-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
}
.prog-row > span:first-child {
  width: 80px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.prog-row > span:last-child {
  width: 32px;
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
}
.prog-bar {
  flex: 1;
  height: 6px;
  background: var(--cream-dark);
  border-radius: var(--r-full);
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  border-radius: var(--r-full);
  animation: progGrow 1.2s var(--ease-out) both;
}
@keyframes progGrow {
  from { width: 0; }
  to   { width: var(--w); }
}

/* Integration grid */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: var(--space-lg);
}
.integration-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  font-size: 1.2rem;
  cursor: default;
  transition: background var(--t-base), transform var(--t-fast) var(--ease-spring);
}
.integration-grid span:hover {
  background: rgba(255,255,255,.14);
  transform: scale(1.08);
}
.integration-grid span:last-child {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(245,240,235,.5);
}

/* ── 12. STATS ──────────────────────────────────────────────── */
.stats-section {
  padding: var(--space-3xl) 0;
  background: var(--slate-dark);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(184,115,51,.12) 0%, transparent 70%);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(245,240,235,.5);
  font-weight: 500;
}

/* ── 13. TESTIMONIALS ───────────────────────────────────────── */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--cream);
  overflow: hidden;
}

.carousel-wrapper { position: relative; }

.carousel {
  overflow: hidden;
  border-radius: var(--r-xl);
}

.carousel-track {
  display: flex;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: var(--space-2xl) var(--space-2xl);
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.testi-stars {
  color: var(--copper);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}
.testi-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.testi-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--t-base) var(--ease-out);
  flex-shrink: 0;
}
.carousel-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: rgba(184,115,51,.05);
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: none;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-spring);
}
.carousel-dot.active {
  background: var(--copper);
  width: 24px;
  border-radius: var(--r-full);
}

/* ── 14. PRICING ────────────────────────────────────────────── */
.pricing {
  padding: var(--space-4xl) 0;
  background: var(--bg);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}
.toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.save-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(22,163,74,.12);
  color: #16A34A;
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
}

.toggle-switch {
  width: 48px; height: 26px;
  background: var(--cream-dark);
  border-radius: var(--r-full);
  position: relative;
  transition: background var(--t-base);
  flex-shrink: 0;
}
.toggle-switch[aria-checked="true"] { background: var(--copper); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-spring);
}
.toggle-switch[aria-checked="true"] .toggle-thumb { transform: translateX(22px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  position: relative;
  transition: transform var(--t-slow) var(--ease-out),
              box-shadow var(--t-slow) var(--ease-out);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  background: var(--slate-dark);
  border-color: transparent;
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}
.pricing-card--featured:hover { transform: scale(1.03) translateY(-6px); }
.pricing-card--featured .plan-name,
.pricing-card--featured .plan-desc,
.pricing-card--featured .plan-features li { color: rgba(245,240,235,.75); }
.pricing-card--featured .price-amount,
.pricing-card--featured .price-currency,
.pricing-card--featured .price-period { color: var(--white); }
.pricing-card--featured .plan-features .check { color: var(--copper-light); }

.plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--copper);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.plan-header { margin-bottom: var(--space-xl); }
.plan-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-md);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: var(--space-md);
}
.price-currency {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 0.4rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: all var(--t-slow) var(--ease-out);
}
.price-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 0.1rem;
}
.plan-desc { font-size: 0.88rem; line-height: 1.55; }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--space-xl);
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.check {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--copper);
  flex-shrink: 0;
}
.check.muted { color: var(--text-muted); }
.muted { color: var(--text-muted); }

.plan-cta { width: 100%; justify-content: center; }

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xl);
}

/* ── 15. CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  padding: var(--space-4xl) 0;
  background: var(--slate-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-orb {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(184,115,51,.2) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: var(--space-md);
}
.cta-inner p {
  font-size: 1.05rem;
  color: rgba(245,240,235,.6);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-inline: auto;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* ── 16. FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--black);
  padding-top: var(--space-3xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-brand .nav-logo { margin-bottom: var(--space-md); }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(245,240,235,.4);
  line-height: 1.65;
  max-width: 240px;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,235,.4);
  transition: all var(--t-base);
}
.footer-social a:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: rgba(184,115,51,.1);
}

.footer-nav { display: contents; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,235,.5);
  margin-bottom: var(--space-lg);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(245,240,235,.4);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: var(--space-lg) 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(245,240,235,.25);
}

/* ── 17. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge,
  .hero-sub,
  .hero-social-proof { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--space-xl);
  }
  .dashboard-card { max-width: 420px; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--large { grid-column: 1 / 3; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer-brand { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }

  .hero { padding-top: calc(var(--nav-h) + var(--space-xl)); }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3.2rem); }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: 1; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-6px); }

  .testimonial-card { padding: var(--space-xl); }
  .testimonial-card blockquote { font-size: 1.05rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / 3; }

  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }

  .footer-bottom .container { flex-direction: column; text-align: center; }

  .hero-cta { flex-direction: column; align-items: center; }
  .btn-large { width: 100%; justify-content: center; }
}

/* ── 18. REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}