/* =====================================================================
   3x Landing — style.css
   Vanilla CSS, dark-by-default with light theme override.
   No preprocessor, no @import. Hand-tuned tokens below.
   ===================================================================== */

/* ===== Design Tokens ===== */
:root {
  /* Color palette — dark (base) */
  --bg:           #0a0a14;
  --bg-elev:      #12121f;
  --bg-elev-2:    #1a1a2e;
  --border:       rgba(255, 255, 255, 0.08);
  --border-strong:rgba(255, 255, 255, 0.14);
  --text:         #f0f0f7;
  --text-muted:   #9a9ab0;
  --text-dim:     #6c6c80;
  --accent:       #7c5cff;
  --accent-hover: #9b7dff;
  --accent-soft:  rgba(124, 92, 255, 0.12);
  --accent-soft-2:rgba(124, 92, 255, 0.22);
  --success:      #22c55e;
  --code-bg:      #0d0d18;
  --footer-bg:    #07070e;

  /* Gradients */
  --gradient-hero:
    radial-gradient(60% 60% at 50% 0%,
      rgba(124, 92, 255, 0.28) 0%,
      rgba(124, 92, 255, 0.08) 35%,
      transparent 70%);
  --gradient-text:
    linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 50%, #7c5cff 100%);
  --gradient-primary:
    linear-gradient(135deg, #7c5cff 0%, #9b7dff 100%);

  /* Spacing scale (4px base, t-shirt sizes) */
  --space-1:  0.25rem;   /* 4 */
  --space-2:  0.5rem;    /* 8 */
  --space-3:  0.75rem;   /* 12 */
  --space-4:  1rem;      /* 16 */
  --space-5:  1.5rem;    /* 24 */
  --space-6:  2rem;      /* 32 */
  --space-7:  2.5rem;    /* 40 */
  --space-8:  3rem;      /* 48 */
  --space-9:  4rem;      /* 64 */
  --space-10: 5rem;      /* 80 */
  --space-11: 6rem;      /* 96 */
  --space-12: 8rem;      /* 128 */

  /* Radii */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas,
    monospace;

  --fs-xs:   0.75rem;   /* 12 */
  --fs-sm:   0.875rem;  /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md:   1.125rem;  /* 18 */
  --fs-lg:   1.25rem;   /* 20 */
  --fs-xl:   1.5rem;    /* 24 */
  --fs-2xl:  2rem;      /* 32 */
  --fs-3xl:  2.5rem;    /* 40 */
  --fs-4xl:  3rem;      /* 48 */
  --fs-5xl:  3.75rem;   /* 60 */
  --fs-6xl:  4.5rem;    /* 72 */

  --lh-tight:   1.15;
  --lh-normal:  1.55;
  --lh-relaxed: 1.7;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.4),
                 0 8px 32px rgba(124, 92, 255, 0.35);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    120ms;
  --dur-base:    220ms;
  --dur-slow:    400ms;

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

/* Light theme overrides */
:root.theme-light {
  --bg:           #fafafe;
  --bg-elev:      #ffffff;
  --bg-elev-2:    #f1f1f8;
  --border:       rgba(10, 10, 30, 0.08);
  --border-strong:rgba(10, 10, 30, 0.14);
  --text:         #0a0a14;
  --text-muted:   #4d4d63;
  --text-dim:     #7a7a90;
  --accent-soft:  rgba(124, 92, 255, 0.10);
  --accent-soft-2:rgba(124, 92, 255, 0.18);
  --code-bg:      #11111c;
  --footer-bg:    #f1f1f8;
  --shadow-sm:    0 1px 2px rgba(10, 10, 30, 0.06);
  --shadow-md:    0 4px 12px rgba(10, 10, 30, 0.08);
  --shadow-lg:    0 16px 40px rgba(10, 10, 30, 0.10);
  --gradient-hero:
    radial-gradient(60% 60% at 50% 0%,
      rgba(124, 92, 255, 0.18) 0%,
      rgba(124, 92, 255, 0.04) 35%,
      transparent 70%);
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--lh-normal);
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, var(--fs-6xl));
}

h2 {
  font-size: clamp(1.875rem, 4vw, var(--fs-4xl));
}

h3 {
  font-size: var(--fs-xl);
}

p {
  text-wrap: pretty;
}

::selection {
  background-color: var(--accent-soft-2);
  color: var(--text);
}

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

:focus:not(:focus-visible) {
  outline: none;
}

/* ===== Utilities ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  width: 100%;
}

.section {
  padding-block: clamp(4rem, 10vw, 8rem);
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(1.875rem, 4vw, var(--fs-4xl));
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
}

.section-lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
  margin-inline: auto;
}

.section > .container > .section-eyebrow,
.section > .container > .section-title {
  text-align: center;
}

.section > .container > .section-lead {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-7);
  max-width: 60ch;
  margin-inline: auto;
}

.section-head h2 {
  margin-bottom: var(--space-4);
}

.section-head .lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

.lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
  margin-inline: auto;
}

/* ===== Navigation ===== */
.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background-color: var(--bg); /* fallback before backdrop-filter */
  background-color: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--dur-base) var(--ease-out);
}

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

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-brand svg,
.nav-brand img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links > ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

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

.nav-cta {
  /* uses .btn .btn-primary .btn-sm — base classes handle visuals */
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.nav-toggle:hover {
  background-color: var(--bg-elev-2);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ===== Theme Toggle ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.theme-toggle:hover {
  background-color: var(--bg-elev-2);
  color: var(--text);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Show moon in dark mode, sun in light mode */
.theme-toggle .moon { display: block; }
.theme-toggle .sun  { display: none; }

:root.theme-light .theme-toggle .moon { display: none; }
:root.theme-light .theme-toggle .sun  { display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: var(--fs-base);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.30);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: var(--shadow-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background-color: var(--bg-elev);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--bg-elev-2);
  border-color: var(--accent);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: var(--accent-soft);
  color: var(--text);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: clamp(5rem, 14vw, 9rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.hero-bg,
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-hero);
  pointer-events: none;
  animation: hero-drift 18s var(--ease-in-out) infinite alternate;
}

@keyframes hero-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, 2%, 0) scale(1.05); }
}

.eyebrow,
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-hover);
  margin-bottom: var(--space-5);
}

.eyebrow-accent {
  color: var(--text);
  font-weight: 600;
}

.eyebrow .dot,
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.hero-title .gradient,
.gradient {
  background: var(--gradient-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-shimmer 8s var(--ease-in-out) infinite alternate;
}

@keyframes gradient-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.subhead,
.hero-sub {
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-7);
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

.hero-ctas,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-microlink {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ===== Trust Strip ===== */
.trust {
  padding-block: var(--space-8);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in srgb, var(--bg-elev) 50%, transparent);
}

.trust-label {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: var(--space-5);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-7);
}

.trust-logo {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.6;
  filter: grayscale(1);
  letter-spacing: 0.02em;
  transition: opacity var(--dur-base) var(--ease-out),
              filter var(--dur-base) var(--ease-out);
}

.trust-logo:hover {
  opacity: 0.9;
  filter: grayscale(0);
}

/* ===== Features ===== */
.feature-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.feature-card {
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 0% 0%, var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.feature-desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* ===== Performance / Stats ===== */
.performance {
  position: relative;
}

.stat-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-7);
  text-align: center;
}

.stat-card,
.stat {
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-size: clamp(2.5rem, 5vw, var(--fs-5xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-3);
  background: var(--gradient-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat-foot {
  margin: var(--space-2) 0 0;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: var(--lh-relaxed);
}

/* ===== Docs / Code Block ===== */
.docs {
  position: relative;
}

.code-block {
  background-color: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.code-block-head {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: color-mix(in srgb, var(--code-bg) 80%, black);
  border-bottom: 1px solid var(--border);
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

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

.code-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background-color: color-mix(in srgb, var(--code-bg) 80%, black);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.code-tab {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.code-tab:hover {
  color: var(--text-muted);
}

.code-tab.is-active {
  color: var(--text);
  background-color: var(--bg-elev-2);
}

.code-panel {
  padding: var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: #d4d4e0;
  white-space: pre;
}

.code-panel.is-hidden {
  display: none;
}

/* Syntax tokens */
.tok-kw  { color: #c4b5fd; }                   /* keyword / accent */
.tok-str { color: #a5d6a7; }                   /* string  */
.tok-com { color: #6c6c80; font-style: italic; }
.tok-num { color: #fbbf24; }
.tok-fn  { color: #f472b6; }
.tok-pun { color: #9a9ab0; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.pricing-card.is-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-soft) 60%, var(--bg-elev)),
    var(--bg-elev));
}

.pricing-card.is-featured:hover,
.pricing-card-featured:hover {
  transform: scale(1.02) translateY(-2px);
}

.pricing-card-featured.is-featured {
  /* alias — picks up the .is-featured styling */
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-soft) 60%, var(--bg-elev)),
    var(--bg-elev));
}

.pricing-badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.pricing-tier {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}

.tier-name,
.pricing-tier {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  font-weight: 700;
  line-height: 1;
}

.pricing-price .amount,
.price-amount {
  font-size: var(--fs-4xl);
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pricing-price .currency {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-price .period,
.price-period {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  font-weight: 400;
}

.tier-price,
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.tier-tagline {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

.pricing-features,
.tier-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.pricing-features li,
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

.pricing-features li::before,
.tier-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-color: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c5cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-cta,
.btn-block {
  width: 100%;
  display: flex;
}

.tier-badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

/* ===== CTA Band ===== */
.cta,
.section-cta {
  text-align: center;
}

.cta-inner {
  text-align: center;
}

.cta .container,
.section-cta .container {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-soft) 50%, var(--bg-elev)),
    var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.cta .container::before,
.section-cta .container::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-hero);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.cta .container > *,
.section-cta .container > * {
  position: relative;
  z-index: 1;
}

.cta h2,
.section-cta h2 {
  margin-bottom: var(--space-4);
}

.cta p,
.section-cta p {
  margin-bottom: var(--space-6);
  color: var(--text-muted);
  max-width: 56ch;
  margin-inline: auto;
}

.cta .btn-group,
.section-cta .btn-group,
.cta .hero-ctas,
.section-cta .hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ===== FAQ ===== */
.faq,
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.faq-item {
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-weight: 600;
  color: var(--text);
  font-size: var(--fs-md);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  flex: 1;
}

.faq-q::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--bg-elev-2);
  color: var(--text-muted);
  font-weight: 400;
  font-size: var(--fs-lg);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.faq-item[open] .faq-q::after {
  content: "−";
  background-color: var(--accent-soft);
  color: var(--accent);
}

.faq-a {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.faq-a p {
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding-block: var(--space-9) var(--space-6);
  margin-top: var(--space-9);
}

.footer-grid,
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-tag {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  max-width: 30ch;
  margin: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col-title {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: var(--space-4);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-list a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-list a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.status {
  margin: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent);
  animation: status-pulse 2.4s var(--ease-in-out) infinite;
}

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0   color-mix(in srgb, var(--success) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 0%,  transparent); }
  100% { box-shadow: 0 0 0 0   color-mix(in srgb, var(--success) 0%,  transparent); }
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background-color: var(--bg-elev);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text);
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
  z-index: 100;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ===== Responsive — tablet ===== */
@media (max-width: 1023px) {
  .features-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card.is-featured,
  .pricing-card-featured {
    grid-column: span 2;
  }

  .footer-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

/* ===== Responsive — mobile ===== */
@media (max-width: 767px) {
  .nav-toggle {
      display: inline-flex;
    }

    .nav-links {
      position: fixed;
      inset: var(--nav-h) 0 auto 0;
      background-color: var(--bg);
      background-color: color-mix(in srgb, var(--bg) 92%, transparent);
      -webkit-backdrop-filter: blur(16px);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      padding: var(--space-4) var(--space-4) var(--space-6);
      z-index: 40;
    }

    .nav-links > ul {
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      gap: 0;
      transform: translateY(-110%);
      visibility: hidden;
      opacity: 0;
      transition: transform var(--dur-base) var(--ease-out),
                  opacity var(--dur-base) var(--ease-out),
                  visibility 0s linear var(--dur-base);
    }

    .nav-links.is-open > ul {
      transform: translateY(0);
      visibility: visible;
      opacity: 1;
      transition: transform var(--dur-base) var(--ease-out),
                  opacity var(--dur-base) var(--ease-out),
                  visibility 0s linear 0s;
    }

    .nav-links a {
      padding: var(--space-3) var(--space-2);
      font-size: var(--fs-md);
      border-bottom: 1px solid var(--border);
      display: block;
    }

    .nav-links li:last-child a {
      border-bottom: none;
    }

    .nav-cta {
      display: none;
    }

    .features-grid,
    .feature-grid,
    .pricing-grid,
    .stats-grid,
    .stat-grid {
      grid-template-columns: 1fr;
    }

    .pricing-card.is-featured,
    .pricing-card-featured {
      grid-column: auto;
      transform: none;
    }

    .pricing-card.is-featured:hover,
    .pricing-card-featured:hover {
      transform: translateY(-2px);
    }

    .footer-grid,
    .footer-inner {
      grid-template-columns: 1fr;
      gap: var(--space-6);
    }

    .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--space-3);
    }

    .trust-logos {
      gap: var(--space-5);
    }

    .hero-ctas,
    .hero-actions {
      width: 100%;
      flex-direction: column;
      align-items: stretch;
    }

    .hero-ctas .btn,
    .hero-actions .btn {
      width: 100%;
    }
  }

  /* ===== Reduced motion ===== */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }