/* Coma Cloud — Aurora + Glass design system (static, no Tailwind) */

/* ------------------------------
   Theme tokens
---------------------------------*/
:root {
  --primary: #635bff;
  --primary-hover: #4b44e0;
  --secondary: #00d4ff;

  --bg: #f8f9fa;
  /* More transparent “glass” base */
  --surface: rgba(255, 255, 255, 0.30);
  --surface-strong: rgba(255, 255, 255, 0.42);
  --border: rgba(255, 255, 255, 0.28);
  --border-strong: rgba(0, 0, 0, 0.06);
  /* Glass sheen tuning */
  --glass-sheen-hi: rgba(255, 255, 255, 0.72);
  --glass-sheen-lo: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.42);
  --glass-inset: rgba(255, 255, 255, 0.70);
  --glass-ring: rgba(255, 255, 255, 0.26);
  --glass-spotlight: rgba(255, 255, 255, 0.45);

  --text: #1a1a1a;
  --text-muted: #5a6b7c;

  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 0 3px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  --radius: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-pill: 999px;

  --nav-h: 80px;
}

html[data-theme="dark"] {
  --bg: #0b0e14;
  --surface: rgba(21, 25, 34, 0.34);
  --surface-strong: rgba(21, 25, 34, 0.46);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.10);
  --glass-sheen-hi: rgba(255, 255, 255, 0.14);
  --glass-sheen-lo: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-inset: rgba(255, 255, 255, 0.18);
  --glass-ring: rgba(255, 255, 255, 0.12);
  --glass-spotlight: rgba(255, 255, 255, 0.12);

  --text: #e2e8f0;
  --text-muted: #94a3b8;

  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.35), 0 0 3px rgba(0, 0, 0, 0.25);
  --shadow-float: 0 10px 40px -10px rgba(0, 0, 0, 0.40);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.30);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0b0e14;
    --surface: rgba(21, 25, 34, 0.34);
    --surface-strong: rgba(21, 25, 34, 0.46);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.10);
    --glass-sheen-hi: rgba(255, 255, 255, 0.12);
    --glass-sheen-lo: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-inset: rgba(255, 255, 255, 0.18);
    --glass-ring: rgba(255, 255, 255, 0.12);
    --glass-spotlight: rgba(255, 255, 255, 0.12);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.35), 0 0 3px rgba(0, 0, 0, 0.25);
    --shadow-float: 0 10px 40px -10px rgba(0, 0, 0, 0.40);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.30);
  }
}

/* ------------------------------
   Base / reset
---------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Ensure HTML `hidden` attribute always hides elements (our component CSS uses display rules) */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(circle at 0% 0%, #f3e7e9 0%, #e3eeff 50%, #e3eeff 100%);
  transition: background 200ms ease, color 200ms ease;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* ------------------------------
   Scroll animations (fade + letter)
---------------------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.7s ease-out;
  will-change: opacity, transform, filter;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.letter-animate {
  display: inline-block;
}

.letter-animate span:not(.letter-word) {
  opacity: 0;
  display: inline-block;
  transform: translateY(4px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.letter-animate.visible span:not(.letter-word) {
  opacity: 1;
  transform: translateY(0);
}

.letter-animate span.space {
  width: 0.25em;
}

.letter-animate .letter-word {
  display: inline-block;
  white-space: nowrap;
}

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

  .fade-in,
  .fade-in.visible,
  .letter-animate span,
  .letter-animate.visible span {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

html[data-theme="dark"] body {
  background: radial-gradient(circle at 50% 50%, #1a1f2e 0%, #0f1115 100%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body {
    background: radial-gradient(circle at 50% 50%, #1a1f2e 0%, #0f1115 100%);
  }
}

::selection {
  background: rgba(99, 91, 255, 0.2);
}

a {
  color: inherit;
}

/* Content links: dashed underline for readability (exclude nav/buttons via existing rules) */
main a,
.site-footer a,
.legal-doc a {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(99, 91, 255, 0.45);
}

main a:hover,
.site-footer a:hover,
.legal-doc a:hover {
  text-decoration-color: rgba(99, 91, 255, 0.70);
}

/* Icon-only links should not be underlined */
.site-footer .social a {
  text-decoration: none !important;
}

img {
  max-width: 100%;
  height: auto;
}

/* ------------------------------
   Layout helpers
---------------------------------*/
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------
   Heroicons (SVG sprite)
---------------------------------*/
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  stroke: currentColor;
  fill: none;
}

/* ------------------------------
   Glass building blocks
---------------------------------*/
.glass {
  position: relative;
  background:
    linear-gradient(135deg, var(--glass-sheen-hi) 0%, var(--glass-sheen-lo) 100%),
    var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(34px) saturate(1.75);
  -webkit-backdrop-filter: blur(34px) saturate(1.75);
  box-shadow:
    var(--shadow-glass),
    inset 0 1px 0 var(--glass-inset),
    inset 0 0 0 1px var(--glass-ring);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 20% 15%, var(--glass-spotlight) 0%, transparent 55%);
  opacity: 0.9;
}

.glass-strong {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%),
    var(--surface-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(42px) saturate(1.85);
  -webkit-backdrop-filter: blur(42px) saturate(1.85);
  box-shadow:
    var(--shadow-glass),
    inset 0 1px 0 var(--glass-inset),
    inset 0 0 0 1px var(--glass-ring);
}

.glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 25% 10%, var(--glass-spotlight) 0%, transparent 60%);
  opacity: 0.85;
}

.blob {
  filter: blur(80px);
  opacity: 0.6;
  border-radius: 999px;
}

/* ------------------------------
   Header / nav
---------------------------------*/
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 200ms ease, border-color 200ms ease;
}

html[data-theme="dark"] .site-nav {
  background: rgba(21, 25, 34, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .site-nav {
    background: rgba(21, 25, 34, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.10);
  }
}

.site-nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo {
  height: 2rem;
  width: auto;
  display: block;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

html[data-theme="dark"] .logo-light {
  display: none;
}

html[data-theme="dark"] .logo-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .logo-light {
    display: none;
  }
  html:not([data-theme="light"]) .logo-dark {
    display: block;
  }
}

.nav-links {
  display: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile nav toggle (burger) */
.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(135deg, var(--glass-sheen-hi) 0%, var(--glass-sheen-lo) 100%),
    var(--surface);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.nav-toggle:hover {
  transform: scale(1.04);
  border-color: rgba(99, 91, 255, 0.35);
}

.nav-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle .icon-x {
  display: none;
}

html.mobile-nav-open .nav-toggle .icon-bars {
  display: none;
}

html.mobile-nav-open .nav-toggle .icon-x {
  display: inline-block;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mobile-nav-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-h);
  z-index: 45;
  padding: 0.75rem 0 1rem;
}

.mobile-nav-card {
  border-radius: var(--radius-3xl);
  padding: 1rem;
}

.mobile-nav-links {
  display: grid;
  gap: 0.5rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.9rem 0.95rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

html[data-theme="dark"] .mobile-nav-links a {
  background: rgba(21, 25, 34, 0.28);
  border-color: rgba(255, 255, 255, 0.10);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .mobile-nav-links a {
    background: rgba(21, 25, 34, 0.28);
    border-color: rgba(255, 255, 255, 0.10);
  }
}

.mobile-nav-actions {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.link-muted {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: color 150ms ease;
}

.link-muted:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-links {
    display: inline-flex;
  }
  .link-muted {
    display: inline-block;
  }
}

/* Desktop: hide burger + mobile panel/backdrop */
@media (min-width: 768px) {
  .nav-toggle,
  .mobile-nav-panel,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

/* Theme toggle (small pill button) */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(135deg, var(--glass-sheen-hi) 0%, var(--glass-sheen-lo) 100%),
    var(--surface);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.theme-toggle:hover {
  transform: scale(1.04);
  border-color: rgba(99, 91, 255, 0.35);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon .icon-sun {
  display: inline-block;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-icon .icon-moon {
    display: none;
  }
  html:not([data-theme="light"]) .theme-icon .icon-sun {
    display: inline-block;
  }
}

/* ------------------------------
   Buttons
---------------------------------*/
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
  width: 100%;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.28) 0%, transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}

@media (min-width: 640px) {
  .btn {
    width: auto;
  }
}

.btn-primary {
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .btn-primary {
  background: rgba(255, 255, 255, 0.82);
  color: #000000;
  border-color: rgba(255, 255, 255, 0.22);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .btn-primary {
    background: rgba(255, 255, 255, 0.82);
    color: #000000;
    border-color: rgba(255, 255, 255, 0.22);
  }
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.btn-glass {
  background:
    linear-gradient(135deg, var(--glass-sheen-hi) 0%, var(--glass-sheen-lo) 100%),
    var(--surface);
  color: var(--text);
  border-color: var(--glass-border);
  backdrop-filter: blur(34px) saturate(1.75);
  -webkit-backdrop-filter: blur(34px) saturate(1.75);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 var(--glass-inset),
    inset 0 0 0 1px var(--glass-ring);
}

.btn-glass:hover {
  transform: scale(1.02);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 100%),
    var(--surface-strong);
}

.btn-sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
}

/* ------------------------------
   Hero (homepage)
---------------------------------*/
.hero {
  position: relative;
  /* Header bottom -> hero content start: 64px */
  padding: calc(var(--nav-h) + 64px) 0 5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    /* Keep hero rhythm consistent (no extra top padding) */
    padding: calc(var(--nav-h) + 64px) 0 8rem;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.60);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.hero__title {
  margin: 1.5rem 0 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  color: var(--text);
}

.hero__title .hero-accent {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* When the hero title is wrapped into spans for letter animation, apply gradient per-letter */
.hero__title .hero-accent .letter-word > span {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(90deg, #2563eb, #7c3aed);
}

html[data-theme="dark"] .hero__title {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hero__title {
    color: #ffffff;
  }
}

.hero__subtitle {
  /* Hero title -> subtitle: 16–24px */
  margin: 20px auto 0;
  max-width: 42rem;
  font-size: 1.25rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-muted);
}

.hero__cta {
  /* Keep a consistent “next element” gap after subtitle */
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero__cta {
    flex-direction: row;
  }
}

.hero__pills {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.30);
}

.hero-pill .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #22c55e;
}

/* ------------------------------
   Sections
---------------------------------*/
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

/* Avoid “double padding” between consecutive sections.
   This keeps Cards -> next section in the 64–96px range (we use 96px). */
.section + .section {
  padding-top: 0;
}

.page-hero + .section {
  padding-top: 0;
}

.hero + .section {
  padding-top: 0;
}

.section-header {
  max-width: 48rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-header.center {
  text-align: center;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

html[data-theme="dark"] .section-title {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .section-title {
    color: #ffffff;
  }
}

.section-subtitle {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
}

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

.grid.two {
  grid-template-columns: 1fr;
}

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

.grid.three {
  grid-template-columns: 1fr;
}

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

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

.grid.features {
  grid-template-columns: 1fr;
}

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

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

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-3xl);
  transition: transform 200ms ease, background 200ms ease;
}

.feature-card:hover {
  transform: scale(1.02);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.icon-blue {
  background: linear-gradient(135deg, rgba(219, 234, 254, 1), rgba(239, 246, 255, 1));
  color: #2563eb;
}

.icon-emerald {
  background: linear-gradient(135deg, rgba(209, 250, 229, 1), rgba(236, 253, 245, 1));
  color: #059669;
}

.icon-purple {
  background: linear-gradient(135deg, rgba(243, 232, 255, 1), rgba(250, 245, 255, 1));
  color: #7c3aed;
}

.icon-orange {
  background: linear-gradient(135deg, rgba(255, 237, 213, 1), rgba(255, 247, 237, 1));
  color: #ea580c;
}

.icon-rose {
  background: linear-gradient(135deg, rgba(255, 228, 230, 1), rgba(255, 241, 242, 1));
  color: #e11d48;
}

.icon-teal {
  background: linear-gradient(135deg, rgba(204, 251, 241, 1), rgba(240, 253, 250, 1));
  color: #0d9488;
}

html[data-theme="dark"] .icon-blue {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.40), rgba(30, 64, 175, 0.20));
  color: rgba(191, 219, 254, 0.95);
}
html[data-theme="dark"] .icon-emerald {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.40), rgba(6, 95, 70, 0.20));
  color: rgba(167, 243, 208, 0.95);
}
html[data-theme="dark"] .icon-purple {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.40), rgba(107, 33, 168, 0.20));
  color: rgba(233, 213, 255, 0.95);
}
html[data-theme="dark"] .icon-orange {
  background: linear-gradient(135deg, rgba(124, 45, 18, 0.40), rgba(154, 52, 18, 0.20));
  color: rgba(254, 215, 170, 0.95);
}
html[data-theme="dark"] .icon-rose {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.40), rgba(159, 18, 57, 0.20));
  color: rgba(254, 205, 211, 0.95);
}
html[data-theme="dark"] .icon-teal {
  background: linear-gradient(135deg, rgba(19, 78, 74, 0.40), rgba(17, 94, 89, 0.20));
  color: rgba(153, 246, 228, 0.95);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .icon-blue {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.40), rgba(30, 64, 175, 0.20));
    color: rgba(191, 219, 254, 0.95);
  }
  html:not([data-theme="light"]) .icon-emerald {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.40), rgba(6, 95, 70, 0.20));
    color: rgba(167, 243, 208, 0.95);
  }
  html:not([data-theme="light"]) .icon-purple {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.40), rgba(107, 33, 168, 0.20));
    color: rgba(233, 213, 255, 0.95);
  }
  html:not([data-theme="light"]) .icon-orange {
    background: linear-gradient(135deg, rgba(124, 45, 18, 0.40), rgba(154, 52, 18, 0.20));
    color: rgba(254, 215, 170, 0.95);
  }
  html:not([data-theme="light"]) .icon-rose {
    background: linear-gradient(135deg, rgba(136, 19, 55, 0.40), rgba(159, 18, 57, 0.20));
    color: rgba(254, 205, 211, 0.95);
  }
  html:not([data-theme="light"]) .icon-teal {
    background: linear-gradient(135deg, rgba(19, 78, 74, 0.40), rgba(17, 94, 89, 0.20));
    color: rgba(153, 246, 228, 0.95);
  }
}

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

html[data-theme="dark"] .feature-card h3 {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .feature-card h3 {
    color: #ffffff;
  }
}

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

/* Generic card */
.card {
  padding: 2rem;
  border-radius: var(--radius-3xl);
}

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

html[data-theme="dark"] .card h3 {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .card h3 {
    color: #ffffff;
  }
}

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

.list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.list li {
  margin: 0.5rem 0;
}

/* Pricing */
.billing-toggle {
  display: flex;
  justify-content: center;
  /* Pricing toggle -> cards: 48–64px */
  margin: 0 0 56px;
}

.billing-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.375rem;
  border-radius: var(--radius-pill);
  gap: 0;
}

.billing-switch::before {
  content: "";
  position: absolute;
  top: 0.375rem;
  bottom: 0.375rem;
  left: 0.375rem;
  width: calc(50% - 0.375rem);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.18) 100%),
    rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease;
}

html[data-theme="dark"] .billing-switch::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%),
    rgba(21, 25, 34, 0.35);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .billing-switch::before {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%),
      rgba(21, 25, 34, 0.35);
  }
}

.billing-switch[data-billing="annual"]::before {
  transform: translateX(100%);
}

.billing-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 150ms ease;
}

.billing-btn.is-active {
  color: var(--text);
}

.billing-save {
  position: absolute;
  top: -0.85rem;
  right: -0.6rem;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.25), rgba(0, 212, 255, 0.18));
  border: 1px solid rgba(99, 91, 255, 0.22);
  color: var(--text);
  transform: rotate(-6deg);
  pointer-events: none;
  white-space: nowrap;
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

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

.plan-card {
  padding: 2rem;
  border-radius: var(--radius-3xl);
  position: relative;
  transition: transform 200ms ease;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.plan-name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.plan-desc {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  /* Keep price/CTA/specs aligned across cards */
  min-height: 4.32rem; /* 3 lines @ 0.9rem * 1.6 */
  max-height: 4.32rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0 0 1.25rem;
  /* Stabilize vertical rhythm so CTA aligns */
  min-height: 3.4rem;
}

.plan-price .currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.plan-price .amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.plan-price .period {
  font-size: 1rem;
  color: var(--text-muted);
}

html[data-theme="dark"] .plan-price .currency,
html[data-theme="dark"] .plan-price .amount {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .plan-price .currency,
  html:not([data-theme="light"]) .plan-price .amount {
    color: #ffffff;
  }
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.plan-features li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-features .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: #22c55e;
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

/* Included-in-all row (pricing) */
.plan-includes {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-3xl);
}

.plan-includes__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.plan-includes__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.plan-includes__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.plan-includes__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-includes__list .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: #22c55e;
  flex: 0 0 auto;
}

/* FAQ (details/summary) */
.faq {
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq details {
  border-radius: var(--radius-2xl);
  padding: 0.25rem 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

html[data-theme="dark"] .faq summary {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .faq summary {
    color: #ffffff;
  }
}

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

.faq .answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq details {
  /* Match the “card” feel elsewhere: subtle motion + smooth hover */
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease,
    box-shadow 200ms ease;
  will-change: transform;
}

.faq details:hover {
  transform: translateY(-4px);
}

.faq details[open] {
  animation: faq-box-open 200ms ease-out both;
}

@keyframes faq-box-open {
  from {
    opacity: 0.92;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq .chev {
  transition: transform 150ms ease;
}

.faq details[open] .chev {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq details,
  .faq details:hover,
  .faq details[open] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ------------------------------
   Legal pages
---------------------------------*/
.legal-doc {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.75rem 1.75rem;
  border-radius: var(--radius-3xl);
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p {
  margin: 0.75rem 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-doc ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.legal-doc th,
.legal-doc td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  vertical-align: top;
}

.legal-doc thead th {
  font-weight: 800;
  color: var(--text);
  background: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .legal-doc table {
  border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .legal-doc th,
html[data-theme="dark"] .legal-doc td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .legal-doc thead th {
  background: rgba(21, 25, 34, 0.35);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .legal-doc table {
    border-color: rgba(255, 255, 255, 0.10);
  }

  html:not([data-theme="light"]) .legal-doc th,
  html:not([data-theme="light"]) .legal-doc td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  html:not([data-theme="light"]) .legal-doc thead th {
    background: rgba(21, 25, 34, 0.35);
    color: #ffffff;
  }
}

/* ------------------------------
   Cookie consent (banner + modal)
---------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.75rem 0 1rem;
}

.cookie-banner__card {
  border-radius: var(--radius-3xl);
  padding: 1.1rem 1.1rem;
}

.cookie-banner__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.cookie-banner__body {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.cookie-banner__links {
  margin-top: 0.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-banner__links a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(99, 91, 255, 0.45);
  text-underline-offset: 3px;
  font-weight: 600;
}

.cookie-banner__actions {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.cookie-banner__actions .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .cookie-banner__card {
    padding: 1.25rem 1.25rem;
  }
  .cookie-banner__actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-modal__card {
  width: 100%;
  max-width: 44rem;
  border-radius: var(--radius-3xl);
  padding: 1.25rem;
}

.cookie-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.cookie-close {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(135deg, var(--glass-sheen-hi) 0%, var(--glass-sheen-lo) 100%),
    var(--surface);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal__body {
  margin-top: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.cookie-cats {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.cookie-cat {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .cookie-cat {
  background: rgba(21, 25, 34, 0.26);
  border-color: rgba(255, 255, 255, 0.10);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .cookie-cat {
    background: rgba(21, 25, 34, 0.26);
    border-color: rgba(255, 255, 255, 0.10);
  }
}

.cookie-cat__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-cat__name {
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.cookie-cat__desc {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-switch {
  width: 48px;
  height: 28px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  min-width: 48px;
  min-height: 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
  touch-action: manipulation;
}

.cookie-switch:focus-visible {
  outline: 2px solid rgba(99, 91, 255, 0.55);
  outline-offset: 2px;
}

.cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease;
}

.cookie-switch.is-on {
  background: rgba(99, 91, 255, 0.22);
  border-color: rgba(99, 91, 255, 0.35);
}

.cookie-switch.is-on::after {
  transform: translateX(20px);
}

.cookie-switch.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cookie-modal__actions {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cookie-modal__actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .cookie-modal__actions .btn:nth-child(1) {
    grid-column: 1 / -1;
  }
}

.cookie-modal__policies {
  margin-top: 0.9rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-modal__policies a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(99, 91, 255, 0.45);
  text-underline-offset: 3px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-switch::after {
    transition: none !important;
  }
}

/* ------------------------------
   Developer tooling section
---------------------------------*/
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.tool-list {
  display: grid;
  gap: 1.5rem;
}

.tool-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-2xl);
  transition: background 150ms ease;
}

.tool-item:hover {
  background: var(--surface-strong);
}

.trusted {
  padding: 1.25rem 0 2.25rem;
}

.trusted__header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.trusted__kicker {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.8;
}

.trusted__caption {
  margin: 0.85rem auto 0;
  max-width: 48rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.9;
}

.marquee {
  color: rgba(90, 107, 124, 0.78);
}

html[data-theme="dark"] .marquee {
  color: rgba(148, 163, 184, 0.80);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .marquee {
    color: rgba(148, 163, 184, 0.80);
  }
}

.marquee__viewport {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: 0.25rem 0;
  /* soft fade at edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 70s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
}

.trusted-logo {
  height: 120px;
  width: auto;
  max-width: 320px;
  flex: 0 0 auto;
  opacity: 0.72;
  filter: grayscale(1);
}

/* ------------------------------
   Customers (logos)
---------------------------------*/
.customer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.25rem;
  margin-top: 1.25rem;
}

.customer-logo {
  height: 120px;
  width: auto;
  max-width: 320px;
  opacity: 0.72;
  filter: grayscale(1);
}

html[data-theme="dark"] .customer-logo {
  opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .customer-logo {
    opacity: 0.8;
  }
}

@media (max-width: 640px) {
  .customer-logo {
    height: 120px;
    max-width: 280px;
  }
  .customer-logos {
    gap: 1.25rem 1.5rem;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .trusted-logo {
    height: 120px;
    max-width: 280px;
  }
  .marquee__group {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none !important;
  }
  .marquee__viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scroll-snap-type: x proximity;
  }
  .marquee__group {
    padding: 0 0.75rem;
  }
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
}

html[data-theme="dark"] .tool-icon {
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .tool-icon {
    background: rgba(255, 255, 255, 0.08);
  }
}

.tool-text h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

html[data-theme="dark"] .tool-text h4 {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .tool-text h4 {
    color: #ffffff;
  }
}

.tool-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.terminal-wrap {
  position: relative;
}

.terminal-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.9), rgba(167, 139, 250, 0.9));
  filter: blur(16px);
  opacity: 0.22;
  border-radius: var(--radius-2xl);
}

.terminal {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(26, 30, 41, 0.90);
}

.terminal__topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: #1a1e29;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.traffic {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  opacity: 0.8;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal__path {
  margin-left: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.75);
}

.terminal__body {
  padding: 2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(15, 18, 24, 0.50);
  overflow-x: auto;
}

.term-green { color: #34d399; font-weight: 700; }
.term-blue { color: #60a5fa; }
.term-dim { opacity: 0.55; font-size: 0.75rem; display: block; margin: 0.5rem 0 0.75rem; }
.cursor {
  display: inline-block;
  width: 0.6rem;
  height: 1.1rem;
  margin-left: 0.2rem;
  background: rgba(99, 91, 255, 0.75);
  animation: blink 1.2s infinite;
  vertical-align: -0.2rem;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ------------------------------
   Footer
---------------------------------*/
.site-footer {
  margin-top: auto;
  padding: 5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="dark"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.10);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .site-footer {
    border-top-color: rgba(255, 255, 255, 0.10);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

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

.footer-col h4 {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.footer-about-text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.footer-addr {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.footer-entity {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-entity a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(99, 91, 255, 0.35);
  text-underline-offset: 3px;
  font-weight: 600;
}

.footer-entity a:hover {
  text-decoration-color: rgba(99, 91, 255, 0.65);
}


.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

html[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.10);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.10);
  }
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand .brand-logo {
  height: 1.5rem;
  opacity: 0.75;
}

.footer-note {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.social {
  display: flex;
  gap: 1.25rem;
}

.social a {
  color: var(--text-muted);
  transition: color 150ms ease;
}

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

.social .icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  stroke: none;
}

/* ------------------------------
   Generic page header (non-home)
---------------------------------*/
.page-hero {
  /* Header bottom -> hero content start: 64px
     Subtitle -> next component (e.g. pricing toggle): 32–40px */
  padding: calc(var(--nav-h) + 64px) 0 36px;
  position: relative;
}

.page-hero__inner {
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-hero__inner .kicker {
  margin-inline: auto;
}

.page-title {
  margin: 1.25rem 0 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  color: var(--text);
}

html[data-theme="dark"] .page-title {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .page-title {
    color: #ffffff;
  }
}

.page-desc {
  /* Hero title -> subtitle: 16–24px */
  margin: 20px auto 0;
  max-width: 44rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Make sure main content clears the fixed nav when needed */
.nav-spacer {
  height: var(--nav-h);
}


