/* ========================================
   Chartimatic Marketing Site — Design Tokens + Components
   ======================================== */

/* --- Type Scale (Fluid) --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 250 / 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* --- Light Mode (Default) --- */
:root, [data-theme="light"] {
  --color-bg: #FAFAF7;
  --color-surface: #F2F1ED;
  --color-surface-2: #FFFFFF;
  --color-primary: #1B2B4B;
  --color-accent: #E85D40;
  --color-accent-hover: #D04D32;
  --color-text: #2D2D2D;
  --color-text-muted: #6B7280;
  --color-text-faint: #9CA3AF;
  --color-border: #D4D1CA;
  --color-success: #2D8B55;
  --color-warning: #D97706;
  --color-error: #DC2626;
  --color-navy: #1B2B4B;
  --color-coral: #E85D40;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --color-bg: #0F1729;
  --color-surface: #1A2642;
  --color-surface-2: #233050;
  --color-primary: #4A6FA5;
  --color-accent: #F07A60;
  --color-accent-hover: #E85D40;
  --color-text: #E2E4E9;
  --color-text-muted: #8B92A5;
  --color-text-faint: #5C6478;
  --color-border: #2A3A5C;
  --color-success: #4ADE80;
  --color-warning: #FBBF24;
  --color-error: #F87171;
  --color-navy: #4A6FA5;
  --color-coral: #F07A60;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0F1729;
    --color-surface: #1A2642;
    --color-surface-2: #233050;
    --color-primary: #4A6FA5;
    --color-accent: #F07A60;
    --color-accent-hover: #E85D40;
    --color-text: #E2E4E9;
    --color-text-muted: #8B92A5;
    --color-text-faint: #5C6478;
    --color-border: #2A3A5C;
    --color-success: #4ADE80;
    --color-warning: #FBBF24;
    --color-error: #F87171;
    --color-navy: #4A6FA5;
    --color-coral: #F07A60;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

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

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-primary) l c h / 0.8);
  transition: box-shadow 0.3s var(--ease-out);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.header__logo svg {
  height: 32px;
  width: auto;
}
.header__logo-img {
  height: 36px;
  width: auto;
}
.header__logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.header__nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.header__nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.header__nav-links a:hover {
  color: #FFFFFF;
}

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

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #FFFFFF;
}

@media (max-width: 768px) {
  .header__nav-links { display: none; }
  .mobile-nav-toggle { display: flex; }
  .header__nav { gap: var(--space-3); }
  .btn--secondary.desktop-only { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 60px;
  z-index: 49;
  background: var(--color-bg);
  padding: var(--space-8) var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-accent);
  color: #FFFFFF;
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  border-color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}

/* Header-specific secondary button (Log in) */
.header .btn--secondary {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.3);
}
.header .btn--secondary:hover {
  border-color: rgba(255,255,255,0.6);
  box-shadow: none;
}

.btn--large {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  padding: var(--space-2) var(--space-4);
}
.btn--ghost:hover {
  background: oklch(from var(--color-accent) l c h / 0.1);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}
.theme-toggle:hover {
  color: #FFFFFF;
  background: oklch(1 0 0 / 0.1);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-12), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: oklch(from var(--color-accent) l c h / 0.1);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: var(--space-6);
}
.hero__badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  line-height: 1.05;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.hero__proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__proof-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-success);
}

/* Briefing mockup */
.hero__mockup {
  position: relative;
}
.briefing-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.briefing-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.briefing-card__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.briefing-card__logo svg {
  height: 20px;
}
.briefing-card__logo span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
}
.briefing-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.briefing-card__greeting {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.kpi-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.kpi-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.kpi-card__value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  font-feature-settings: "tnum";
}
.kpi-card__delta {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: var(--space-1);
}
.kpi-card__delta--up { color: var(--color-success); }
.kpi-card__delta--down { color: var(--color-error); }

.briefing-card__insight {
  background: oklch(from var(--color-accent) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border-left: 3px solid var(--color-accent);
}
.briefing-card__insight-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.briefing-card__insight-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

/* Floating badge on mockup */
.mockup-badge {
  position: absolute;
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
}
.mockup-badge--top {
  top: -12px;
  right: -12px;
}
.mockup-badge--bottom {
  bottom: -12px;
  left: -12px;
}
.mockup-badge svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero__title {
    font-size: var(--text-2xl);
  }
  .hero__ctas {
    flex-direction: column;
  }
  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__proof {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .mockup-badge { display: none; }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  text-align: left;
  max-width: 56ch;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section-header--center {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.6;
}
.section-header--center .section-desc {
  margin-inline: auto;
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem {
  background: var(--color-surface);
}
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.problem__visual {
  position: relative;
}
.dashboard-chaos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.chaos-tab {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  opacity: 0.7;
  position: relative;
}
.chaos-tab__name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.chaos-tab__name::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.chaos-tab:nth-child(1) .chaos-tab__name::before { background: #4285F4; }
.chaos-tab:nth-child(2) .chaos-tab__name::before { background: #0C70F2; }
.chaos-tab:nth-child(3) .chaos-tab__name::before { background: #E85D40; }
.chaos-tab:nth-child(4) .chaos-tab__name::before { background: #7C3AED; }
.chaos-tab__value {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 600;
  font-feature-settings: "tnum";
  color: var(--color-text);
}
.chaos-tab__sub {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}
.chaos-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(from var(--color-bg) l c h / 0.6);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
}
.chaos-overlay__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-accent);
  text-align: center;
  line-height: 1.3;
}

.problem__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.problem__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.problem__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: oklch(from var(--color-accent) l c h / 0.1);
  color: var(--color-accent);
}
.problem__icon svg {
  width: 20px;
  height: 20px;
}
.problem__item-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.problem__item-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .problem__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
}
.step__number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.step__number::before {
  content: counter(step, decimal-leading-zero);
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.step__visual {
  margin-top: var(--space-5);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.step__visual-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}
.step__visual-row + .step__visual-row {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.step__visual-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step__visual-icon svg {
  width: 18px;
  height: 18px;
}
.step__visual-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
}
.step__visual-status {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 4px;
}
.step__visual-status svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ========================================
   FEATURES
   ======================================== */
.features__grid {
  display: grid;
  gap: var(--space-6);
}
.features__grid--main {
  grid-template-columns: 1.2fr 0.8fr;
}
.features__grid--secondary {
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-6);
}

.feature-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}
.feature-card--large {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 44ch;
}

.feature-card--small .feature-card__title {
  font-size: var(--text-lg);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

/* Mini briefing inside feature card */
.feature-mini-briefing {
  margin-top: var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.feature-mini-briefing__line {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}
.feature-mini-briefing__line + .feature-mini-briefing__line {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.04);
}
.feature-mini-briefing__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.feature-mini-briefing__text {
  color: var(--color-text);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .features__grid--main {
    grid-template-columns: 1fr;
  }
  .features__grid--secondary {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   INTEGRATIONS
   ======================================== */
.integrations {
  background: var(--color-surface);
}
.integrations__logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-8);
}
.integration-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.integration-logo svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   PRICING
   ======================================== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.pricing-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card--popular {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.pricing-card--popular::before {
  content: 'Most popular';
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #FFFFFF;
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-display);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.pricing-card__audience {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}
.pricing-card__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text);
  font-feature-settings: "tnum";
}
.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}
.pricing-card__features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: 1.4;
}
.pricing-card__features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--color-success);
}
.pricing-card .btn {
  width: 100%;
}

@media (max-width: 1024px) {
  .pricing__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}
@media (max-width: 640px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SOCIAL PROOF / TESTIMONIALS
   ======================================== */
.testimonials {
  background: var(--color-surface);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.testimonial-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.testimonial-card__quote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: oklch(from var(--color-primary) l c h / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
}
.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--color-primary);
  color: #FFFFFF;
  text-align: center;
}
[data-theme="dark"] .cta-section {
  background: #1A2642;
}
.cta-section .section-label {
  color: oklch(from var(--color-accent) l c h / 0.9);
}
[data-theme="light"] .cta-section .section-label {
  color: var(--color-accent);
}
.cta-section .section-title {
  color: #FFFFFF;
}
.cta-section .section-desc {
  color: oklch(1 0 0 / 0.7);
  margin-inline: auto;
}
.cta-section .section-header {
  max-width: 48ch;
  margin-inline: auto;
}
.cta-section__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-section .btn--primary {
  background: var(--color-accent);
  color: #FFFFFF;
}
.cta-section .btn--secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: oklch(1 0 0 / 0.3);
}
.cta-section .btn--secondary:hover {
  border-color: oklch(1 0 0 / 0.6);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-primary);
  color: oklch(1 0 0 / 0.8);
  padding-block: var(--space-12) var(--space-8);
}
[data-theme="dark"] .footer {
  background: #0A0F1E;
  border-top: 1px solid oklch(1 0 0 / 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer__brand-desc {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.6);
  line-height: 1.6;
  max-width: 32ch;
  margin-top: var(--space-4);
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer__logo svg {
  height: 28px;
}
.footer__logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: #FFFFFF;
}
.footer__logo img {
  height: 28px;
  width: auto;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(1 0 0 / 0.5);
  margin-bottom: var(--space-4);
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__links a {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.7);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__links a:hover {
  color: #FFFFFF;
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid oklch(1 0 0 / 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.4);
}
.footer__bottom a {
  color: oklch(1 0 0 / 0.5);
  text-decoration: none;
}
.footer__bottom a:hover {
  color: oklch(1 0 0 / 0.8);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

.reveal-up {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .reveal-up {
    clip-path: inset(30% 0 0 0);
    opacity: 0;
    animation: reveal-clip-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-clip-up {
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* ========================================
   FAQ
   ======================================== */
.faq__list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-item__question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.3s var(--ease-out);
}
.faq-item.is-open .faq-item__question svg {
  transform: rotate(45deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}
.faq-item.is-open .faq-item__answer {
  max-height: 500px;
}
.faq-item__answer-inner {
  padding: 0 var(--space-6) var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========================================
   Waitlist Modal
   ======================================== */
.waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.15 0.02 250 / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s;
  padding: var(--space-4);
}
.waitlist-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.waitlist-modal {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 64px oklch(0.15 0.02 250 / 0.2);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--ease-out);
}
.waitlist-overlay.is-active .waitlist-modal {
  transform: translateY(0) scale(1);
}
.waitlist-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.waitlist-modal__close:hover {
  color: var(--color-text);
  background: var(--color-surface);
}
.waitlist-modal__content {
  text-align: center;
}
.waitlist-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.waitlist-modal__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 360px;
  margin-inline: auto;
}
.waitlist-modal__check {
  margin-bottom: var(--space-4);
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.waitlist-form__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.waitlist-form__input::placeholder {
  color: var(--color-text-faint);
}
.waitlist-form__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(0.6 0.15 30 / 0.15);
}
.waitlist-form__submit {
  width: 100%;
  margin-top: var(--space-2);
}
.waitlist-form__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.waitlist-form__submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.waitlist-form__error {
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-top: var(--space-2);
}
