:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef1f5;
  --border: #e5e7eb;
  --border-soft: #eef0f3;
  --text: #000000;
  --text-body: #171717;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --accent: #0074e0;
  --accent-dark: #0066cc;
  --accent-bright: #0084ff;
  --accent-tint: #eaf4ff;
  --ink: #171717;
  --ink-hover: #333333;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-brand: 'Fustat', 'Outfit', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

/* Dark theme — toggled by setting data-theme="dark" on <html> (see js/animations.js) */
:root[data-theme="dark"] {
  --bg: #0a0e14;
  --surface: #12171f;
  --surface-2: #1a212c;
  --border: #262e3a;
  --border-soft: #1e252f;
  --text: #f5f7fa;
  --text-body: #e4e7ec;
  --text-secondary: #9aa4b2;
  --text-muted: #6b7684;
  --accent: #3b9eff;
  --accent-dark: #2483e0;
  --accent-bright: #5eb2ff;
  --accent-tint: #16283f;
  --ink: #2b3442;
  --ink-hover: #3a4556;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: var(--accent-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon--lg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

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

.btn--sm {
  font-size: 13.5px;
  padding: 11px 20px;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: white;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--white {
  background: white;
  color: var(--accent-dark);
}

.btn--white:hover {
  color: var(--accent);
}

/* Nav */

.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 16px;
  margin-bottom: -56px;
  pointer-events: none;
}

.nav__inner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  height: 56px;
  margin: 0 auto;
  padding: 8px 20px;
  border-radius: 16px;
  pointer-events: auto;
}

/* Liquid-glass bar. The glass sits on a pseudo-element so the bar itself has
   no backdrop-filter (that would trap the fixed mobile menu inside it). */
.nav__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 8px 30px -8px rgba(0, 60, 130, 0.15), inset 0 2px 3px rgba(255, 255, 255, 0.9);
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand .icon {
  color: var(--accent-bright);
}

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

.brand__sub {
  font-weight: 800;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.nav .btn--primary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 14px;
  padding: 9px 18px;
}

.nav .btn--primary:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.2);
}

.nav .btn--primary::after {
  display: none;
}

/* Mobile nav toggle */

.nav__toggle {
  display: none;
}

.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms ease;
}

.nav__burger:hover {
  background: var(--accent-tint);
}

.nav__burger svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__burger .icon-close {
  display: none;
}

/* Theme toggle */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.theme-toggle__icon--moon {
  display: none;
}

.theme-toggle__label--dark {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--moon {
  display: block;
}

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

:root[data-theme="dark"] .theme-toggle__label--dark {
  display: inline;
}

/* Hero */

.hero {
  position: relative;
  padding: 96px 24px 88px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
}

.hero::before {
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: rgba(96, 177, 255, 0.2);
}

.hero::after {
  bottom: -220px;
  left: -160px;
  width: 560px;
  height: 560px;
  background: rgba(49, 154, 255, 0.16);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 0 0;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
  max-width: 620px;
  padding: 0;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero .lead {
  max-width: 520px;
  color: var(--text-secondary);
}

.accent-text {
  color: var(--accent);
}

.hero__actions {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn--bead {
  padding: 8px 8px 8px 24px;
  gap: 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: inset 0 4px 4px 0 rgba(255, 255, 255, 0.35), 0 10px 25px -5px rgba(0, 132, 255, 0.25);
}

.btn__bead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  transition: transform 200ms ease;
}

.btn--bead:hover .btn__bead {
  transform: translateX(3px);
}

.btn__bead svg,
.link-bead__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-bead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.link-bead:hover {
  color: var(--accent-dark);
}

.link-bead__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  transition: background-color 150ms ease;
}

.link-bead:hover .link-bead__icon {
  background: #dbeafe;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.hero__aura {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 420px;
  height: 420px;
  max-width: 80%;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
}

.hero__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  max-width: 120%;
  transform: translate(-50%, -52%);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.glass {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), inset 0 2.5px 4px rgba(255, 255, 255, 0.8);
}

.sample-glass {
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 24px 60px -20px rgba(0, 90, 200, 0.25), inset 0 2.5px 4px rgba(255, 255, 255, 0.8);
}

.sample-glass .panel-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sample-glass__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.sample-glass__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 20px;
  text-align: left;
  line-height: 1.2;
}

.float-card--a {
  top: -20px;
  right: -6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 12px 32px -4px rgba(0, 132, 255, 0.14), inset 0 2.5px 4px rgba(255, 255, 255, 0.8);
}

.float-card--b {
  top: 46%;
  left: -6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 12px 32px -4px rgba(16, 185, 129, 0.14), inset 0 2.5px 4px rgba(255, 255, 255, 0.8);
}

.float-card--c {
  bottom: -22px;
  right: -6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 12px 32px -4px rgba(147, 51, 234, 0.14), inset 0 2.5px 4px rgba(255, 255, 255, 0.8);
}

.float-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  flex-shrink: 0;
}

.float-card__icon svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-card--a .float-card__icon {
  background: linear-gradient(to bottom right, #0084ff, #0066cc);
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
}

.float-card--b .float-card__icon {
  background: linear-gradient(to bottom right, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.float-card--c .float-card__icon {
  background: linear-gradient(to bottom right, #9333ea, #7e22ce);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.float-card strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-body);
}

.float-card span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, -8px); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, 8px); }
}

@keyframes float-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1px, -10px); }
}

@media (prefers-reduced-motion: no-preference) {
  .float-card--a { animation: float-a 5s ease-in-out infinite; }
  .float-card--b { animation: float-b 5.5s ease-in-out infinite; }
  .float-card--c { animation: float-c 4.8s ease-in-out infinite; }

  .float-card {
    transition: box-shadow 250ms ease;
  }

  .hero__aura {
    animation: aura-pulse 7s ease-in-out infinite;
  }
}

@keyframes aura-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (min-width: 640px) {
  .float-card--a { right: -32px; }
  .float-card--b { left: -20px; top: -22px; }
  .float-card--c { right: -24px; }

  .sample-glass {
    padding-top: 48px;
  }
}

@media (min-width: 1280px) {
  .float-card--b { left: -124px; top: 44%; }

  .sample-glass {
    padding-top: 24px;
  }
}

/* On phones the cards drop below the panel instead of overlapping the records */
@media (max-width: 639px) {
  .hero__stage {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .sample-glass {
    width: 100%;
  }

  .float-card {
    position: static;
    animation: none;
    padding: 10px 14px;
  }
}

@media (max-width: 520px) {
  .nav .btn {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 112px;
  }

  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
  }

  .hero__inner {
    grid-column: span 5;
  }

  .hero__visual {
    grid-column: span 7;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pill .icon {
  width: 16px;
  height: 16px;
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
}

/* Tabs */

.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-pill {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tab-pill--active {
  font-weight: 600;
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

/* Stat row */

.stat-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 36px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.stat-row::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: min(640px, 80%);
  height: 60px;
  background: radial-gradient(ellipse at center, oklch(60% 0.14 250 / 0.35), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 48px;
  border-left: 1px solid var(--border-soft);
}

.stat:first-child {
  border-left: none;
}

.stat__num {
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 800;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Logo strip */

.logo-strip-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* Logo marquee (auto-scrolling loop) */

.logo-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  gap: 16px;
}

.logo-marquee .logo-strip {
  flex-wrap: nowrap;
  flex-shrink: 0;
  justify-content: flex-start;
}

@media (prefers-reduced-motion: no-preference) {
  .logo-marquee__track {
    animation: logo-marquee-scroll 34s linear infinite;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-marquee__track {
    flex-wrap: wrap;
  }

  .logo-marquee .logo-strip {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo-marquee .logo-strip[aria-hidden="true"] {
    display: none;
  }
}

/* Category directory */

.category-search-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.category-search {
  width: 100%;
  max-width: 480px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-sans);
  box-shadow: 0 1px 3px oklch(0% 0 0 / 0.15), inset 0 1px 0 oklch(100% 0 0 / 0.02);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.category-search::placeholder {
  color: var(--text-muted);
}

.category-search:focus {
  outline: none;
  border-color: var(--accent);
}

.category-count {
  font-size: 13px;
  color: var(--text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  align-items: start;
}

.category-grid[hidden] {
  display: none;
}

.cat-chip {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.cat-chip__n {
  margin-left: auto;
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.cat-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}

.cat-sort__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.cat-sort__btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.cat-sort__btn:hover,
.cat-sort__btn.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-tint);
}

.cat-chip:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-tint);
}

.cat-chip[hidden] {
  display: none;
}

.category-empty {
  color: var(--text-muted);
  font-size: 14px;
  display: none;
}

/* Category browse: main-category cards + subcategory drill-down */

.cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  font-size: 14px;
}

.cat-breadcrumb[hidden] {
  display: none;
}

.cat-breadcrumb__name {
  font-weight: 700;
  color: var(--text);
}

.cat-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 150ms ease, border-color 150ms ease;
}

.cat-back-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  text-align: left;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-sans);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.cat-card[hidden] {
  display: none;
}

button.cat-card:hover,
a.cat-card:hover {
  cursor: pointer;
  transform: translateY(-3px) scale(1.02);
  background: var(--accent-tint);
  border-color: var(--accent);
  box-shadow: 0 10px 28px oklch(20% 0.02 250 / 0.08);
}

.cat-card__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
}

.cat-card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.cat-subgrid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
  scroll-margin-top: 100px;
}

.cat-subgrid[hidden] {
  display: none;
}

.cat-subgrid-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: gap 150ms ease;
}

.cat-subgrid-cta:hover {
  gap: 10px;
  color: var(--accent-dark);
}

.cat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.cat-modal-backdrop[hidden] {
  display: none;
}

.cat-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cat-detail {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  width: min(560px, calc(100vw - 32px));
  max-height: min(80vh, calc(100vh - 64px));
  overflow-y: auto;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px oklch(0% 0 0 / 0.4);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
}

.cat-detail[hidden] {
  display: none;
}

.cat-detail.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .cat-detail,
  .cat-modal-backdrop {
    transition: none;
  }
}

.cat-detail__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.cat-detail__close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.cat-detail__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding-right: 30px;
}

.cat-detail__name {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  padding-right: 30px;
}

.cat-detail__desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 22px;
}

/* Free trial */

.trial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 64px oklch(20% 0.02 210 / 0.08);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.trial-card__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trial-card__info h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.trial-card__info p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.trial-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trial-form input,
.trial-form select,
.trial-form textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font-sans);
  transition: border-color 150ms ease;
}

.trial-form input::placeholder,
.trial-form textarea::placeholder {
  color: var(--text-muted);
}

.trial-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8a86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}

.trial-form select:invalid {
  color: var(--text-muted);
}

.trial-form input:focus,
.trial-form select:focus,
.trial-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.trial-form .btn {
  margin-top: 4px;
  width: 100%;
}

.trial-form__note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

.trial-form__status {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.trial-form__status--success {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-dark);
}

.trial-form__status--error {
  color: oklch(80% 0.12 25);
  background: oklch(20% 0.06 25);
  border-color: oklch(45% 0.13 25);
}

.trial-form__status[hidden] {
  display: none;
}

/* Dashboard card */

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 64px oklch(20% 0.02 210 / 0.08);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dashboard-card__icons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chip svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip--blue { background: oklch(90% 0.05 255); }
.chip--blue svg { stroke: oklch(45% 0.15 255); }
.chip--green { background: oklch(92% 0.06 150); }
.chip--green svg { stroke: oklch(42% 0.12 150); }
.chip--orange { background: oklch(90% 0.07 55); }
.chip--orange svg { stroke: oklch(48% 0.15 55); }
.chip--purple { background: oklch(90% 0.06 320); }
.chip--purple svg { stroke: oklch(45% 0.14 320); }
.chip--cyan { background: oklch(90% 0.06 200); }
.chip--cyan svg { stroke: oklch(45% 0.13 200); }
.chip--olive { background: oklch(92% 0.04 100); }
.chip--olive svg { stroke: oklch(42% 0.1 100); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}

.dashboard-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.panel-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}

.record-row:last-child {
  border-bottom: none;
}

.record-row__name {
  font-weight: 600;
}

.record-row__meta {
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.coverage-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 4px 0;
}

.coverage-row span:last-child {
  color: var(--text-secondary);
}

.dashboard-panel--dark {
  background: var(--accent-tint);
  border: 1px solid var(--border);
}

.dashboard-panel--dark .panel-label {
  color: var(--accent-dark);
}

.sample-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 3px 0;
}

.dashboard-footer-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.dashboard-footer-row__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.dashboard-footer-row span:not(.dashboard-footer-row__label) {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Sections */

.section {
  display: flex;
  justify-content: center;
  padding: 0 24px 96px;
}

.section:nth-of-type(even) {
  background-color: var(--surface);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 580px;
  margin-bottom: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

.section__head h2 {
  font-size: 32px;
  font-weight: 700;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .section__head h2 {
    background: linear-gradient(90deg, var(--text) 0%, var(--text) 45%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.section__head p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sample table */

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px oklch(20% 0.02 250 / 0.04), 0 8px 24px oklch(20% 0.02 250 / 0.03);
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 14px 18px;
  font-size: 14.5px;
  white-space: nowrap;
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

td {
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

/* Process steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-tint);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
}

.step h3 {
  font-size: 19px;
  font-weight: 700;
}

.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Value props */

.value-props {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 1px 3px oklch(20% 0.02 250 / 0.04), 0 8px 24px oklch(20% 0.02 250 / 0.03);
}

.value-props--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-prop {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}

.value-prop__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-tint);
}

.value-prop__icon-wrap .icon {
  width: 20px;
  height: 20px;
}

/* Pricing tiers */

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-tiers--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto;
}

.tier-card.converter:hover {
  transform: none;
  background: var(--surface);
  border-color: var(--border);
  box-shadow: none;
}

.converter__fields {
  display: grid;
  gap: 14px;
}

.converter__field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.converter__field input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-sans);
}

.converter__field input:focus {
  outline: none;
  border-color: var(--accent);
}

.converter__totals {
  display: grid;
  gap: 12px;
}

.converter__total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: var(--accent-tint);
  border-radius: 12px;
}

.converter__total-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.converter__total-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.converter__note {
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .pricing-tiers--duo {
    grid-template-columns: 1fr;
  }
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.tier-card:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--accent-tint);
  border-color: var(--accent);
  box-shadow: 0 10px 28px oklch(20% 0.02 250 / 0.08);
}

.tier-card--featured {
  background: var(--surface-2);
  border: 2px solid var(--accent);
  box-shadow: 0 20px 48px oklch(56% 0.16 250 / 0.18);
}

.tier-card__badge {
  align-self: flex-start;
  background: var(--accent);
  color: white;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.tier-card__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
}

.tier-card__range {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: -12px;
}

.tier-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tier-card__price-amount {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 800;
}

.tier-card__price-unit {
  font-size: 14px;
  color: var(--text-secondary);
}

.tier-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tier-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.tier-card__features .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.tier-card .btn {
  width: 100%;
}

/* CTA banner */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  background: var(--accent);
  background-image: radial-gradient(circle at 85% 20%, oklch(70% 0.15 250 / 0.6), transparent 55%);
  border-radius: 24px;
  padding: 72px 40px;
  box-shadow: 0 16px 40px oklch(56% 0.16 250 / 0.28);
}

.cta h2 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  max-width: 520px;
}

.cta p {
  font-size: 15.5px;
  color: oklch(94% 0.02 250);
  max-width: 460px;
  line-height: 1.6;
}

.cta .btn {
  margin-top: 6px;
}

/* Footer */

/* Parallax reveal: main sits above the footer, whose content slides up from underneath (see animations.js) */
main {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.footer {
  z-index: 0;
  overflow: hidden;
}

.footer__cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer__cta-title {
  font-size: clamp(36px, 6.5vw, 88px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer__cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.footer__top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
}

.footer {
  position: relative;
  padding: 56px 24px 56px;
  border-top: 1px solid var(--border);
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #60b1ff);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__grid.footer__grid--simple {
  grid-template-columns: 1.6fr 1fr;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
}

.footer__brand .brand {
  font-size: 16px;
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer__col a svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke 150ms ease;
}

.footer__col a:hover svg {
  stroke: var(--accent);
}

.footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
}

.footer__bottom p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* Page hero (subpages) */

.page-hero {
  display: flex;
  justify-content: center;
  padding: 128px 24px 56px;
  background-image:
    radial-gradient(circle at 18% 0%, rgba(96, 177, 255, 0.22), transparent 55%),
    radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1.5px);
  background-size: auto, 26px 26px;
}

.page-hero__inner {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-hero h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Nav active state */

.nav__links a.is-active {
  color: var(--accent);
}

/* Prose (About page) */

.prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
}

.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.checklist .icon {
  margin-top: 2px;
}

/* Field groups (Contact-level / Company-level) */

.field-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.field-group__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.field-group__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
}

.field-group__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* Field icon grid (compact tiles) */

.field-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.field-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  font-size: 13.5px;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.field-tile:hover {
  background: var(--accent-tint);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.field-tile .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Services list (field rows with description) */

.field-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.field-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-soft);
}

.field-row:last-child {
  border-bottom: none;
}

.field-row__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-row__label {
  font-weight: 600;
  font-size: 15.5px;
}

.field-row__desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.format-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.format-card:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--accent-tint);
  border-color: var(--accent);
  box-shadow: 0 10px 28px oklch(20% 0.02 250 / 0.08);
}

.format-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-tint);
}

.format-card__icon-wrap .icon {
  width: 20px;
  height: 20px;
}

.format-card__label {
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 16px;
}

.format-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px oklch(20% 0.02 250 / 0.08);
  border-color: var(--accent-tint);
}

.contact-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-tint);
  flex-shrink: 0;
}

.contact-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.contact-card__value {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
}

.contact-card:hover .contact-card__value {
  color: var(--accent);
}

.contact-note {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
}

/* Table variants */

.table-card + .table-card {
  margin-top: 28px;
}

.table-card__title {
  padding: 18px 24px 0;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Cursor glow */

.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 20%), oklch(65% 0.14 250 / 0.16), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 400ms ease;
}

.cursor-glow.is-active {
  opacity: 1;
}

.cursor-glow.is-suppressed,
:root[data-theme="dark"] .cursor-glow {
  opacity: 0;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero__inner > *,
  .page-hero__inner > * {
    opacity: 0;
    animation: fade-up-in 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero__inner > *:nth-child(1) { animation-delay: 60ms; }
  .hero__inner > *:nth-child(2) { animation-delay: 150ms; }
  .hero__inner > *:nth-child(3) { animation-delay: 240ms; }
  .hero__inner > *:nth-child(4) { animation-delay: 330ms; }

  .page-hero__inner > *:nth-child(1) { animation-delay: 60ms; }
  .page-hero__inner > *:nth-child(2) { animation-delay: 150ms; }
  .page-hero__inner > *:nth-child(3) { animation-delay: 240ms; }

  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero::before {
    animation: glow-drift 10s ease-in-out infinite;
  }
}

/* Motion layer: scroll progress, hover lifts, button sheen, sort fade */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@keyframes list-refresh {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn--primary {
    position: relative;
    overflow: hidden;
  }

  .btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, oklch(100% 0 0 / 0.28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 650ms ease;
    pointer-events: none;
  }

  .btn--primary:hover::after {
    transform: translateX(120%);
  }

  .btn:hover {
    transform: translateY(-2px);
  }

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

  .value-prop,
  .tier-card {
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease, opacity 650ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .value-prop:hover,
  .tier-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
  }

  .cat-list-refresh > * {
    animation: list-refresh 350ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--i, 0) * 20ms);
  }
}

@keyframes glow-drift {
  0%, 100% { transform: translateX(-54%) translateY(0); opacity: 0.9; }
  50% { transform: translateX(-46%) translateY(20px); opacity: 1; }
}

@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.nav__links a.is-active {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
}

/* Dark theme overrides — the nav's liquid-glass bar and the hero's glass
   cards are built from hardcoded white-tinted translucency, since that's
   what a frosted light-glass effect needs. Dark mode gets the same
   treatment inverted to a frosted dark glass instead of trying to make one
   set of rgba() values work on both backgrounds. */

:root[data-theme="dark"] .nav__inner::before {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 30px -8px rgba(0, 0, 0, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.06);
}

@media (min-width: 901px) {
  :root[data-theme="dark"] .nav__links a,
  :root[data-theme="dark"] .theme-toggle {
    color: rgba(255, 255, 255, 0.68);
  }
}

:root[data-theme="dark"] .nav__links a:hover,
:root[data-theme="dark"] .theme-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .nav__links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .nav .btn--primary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .nav .btn--primary:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .glass {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 2.5px 4px rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .sample-glass {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 24px 60px -20px rgba(0, 0, 0, 0.55), inset 0 2.5px 4px rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .sample-glass__foot {
  border-top-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .float-card--a {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 32px -4px rgba(0, 132, 255, 0.25), inset 0 2.5px 4px rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .float-card--b {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 32px -4px rgba(16, 185, 129, 0.25), inset 0 2.5px 4px rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .float-card--c {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 32px -4px rgba(147, 51, 234, 0.25), inset 0 2.5px 4px rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .link-bead__icon {
  background: rgba(59, 158, 255, 0.14);
  border-color: rgba(59, 158, 255, 0.28);
}

:root[data-theme="dark"] .link-bead:hover .link-bead__icon {
  background: rgba(59, 158, 255, 0.22);
}

:root[data-theme="dark"] .page-hero {
  background-image:
    radial-gradient(circle at 18% 0%, rgba(59, 158, 255, 0.18), transparent 55%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.5px);
}

/* Responsive */

/* Narrow desktop windows: keep the nav on one line */
.brand,
.theme-toggle,
.nav__links a,
.nav .btn--primary {
  white-space: nowrap;
}

.nav__links {
  flex-wrap: nowrap;
}

@media (min-width: 901px) and (max-width: 1200px) {
  .nav__inner {
    gap: 12px;
    padding: 8px 14px;
  }

  .brand {
    font-size: 19px;
  }

  .nav__links {
    gap: 0;
  }

  .nav__links a,
  .theme-toggle {
    padding: 8px 9px;
    font-size: 13.5px;
  }

  .theme-toggle span {
    display: none;
  }

  .nav .btn--primary {
    padding: 9px 14px;
  }
}

@media (max-width: 900px) {
  .trial-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .pricing-tiers {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .footer__grid.footer__grid--simple {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }

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

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

/* Full-screen mobile menu (checkbox-driven; body scroll lock is in animations.js) */
@media (max-width: 900px) {
  .nav__burger {
    display: flex;
  }

  .nav__toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .nav__toggle:focus-visible ~ .nav__burger {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .nav__burger {
    position: relative;
    z-index: 2;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    background: var(--bg);
    border: none;
    border-radius: 0;
    padding: 104px 24px 32px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }

  .nav__links a,
  .theme-toggle {
    width: 100%;
    padding: 12px 0;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    border-bottom: 1px solid var(--border-soft);
  }

  .theme-toggle .theme-toggle__icon {
    width: 22px;
    height: 22px;
  }

  .nav__toggle:checked ~ .nav__links {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .nav__toggle:checked ~ .nav__burger .icon-menu {
    display: none;
  }

  .nav__toggle:checked ~ .nav__burger .icon-close {
    display: block;
  }
}

@media (max-width: 600px) {
  .dashboard-card {
    padding: 20px;
  }

  .stat-row {
    flex-direction: column;
    gap: 24px;
  }

  .stat {
    border-left: none;
    padding: 0;
  }

  .value-props {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 32px 20px 56px;
  }


  .cta {
    padding: 48px 24px;
  }

  .cta h2 {
    font-size: 26px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .field-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* Keyboard focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
