:root {
  --bg-deep: #030303;
  --bg: #060606;
  --bg-elevated: #0c0c0c;
  --bg-card: #0f0f10;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #fafafa;
  --accent-soft: rgba(250, 250, 250, 0.12);
  --glow: rgba(255, 255, 255, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Rajdhani", system-ui, sans-serif;
  --font-metric: system-ui, sans-serif;
  --font-cjk: "PingFang SC", "Microsoft YaHei", "Heiti SC", system-ui, sans-serif;
  --font-num: "Manrope", system-ui, sans-serif;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.65);
  --header-h: 72px;
  --header-offset: clamp(4.25rem, 10vw, 5.5rem);
  --background: #030303;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-cjk);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* Numeric typography */
.hero-metrics--center dd,
.case-stats strong,
.price-tag,
.network-metric dd {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

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

img {
  max-width: 100%;
  display: block;
}

.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;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.045;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% -10%, #000 55%, transparent 75%);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

.page-main {
  padding-top: 0;
  overflow-x: clip;
}

.container {
  width: min(1200px, 100% - clamp(20px, 4vw, 40px));
  margin-inline: auto;
}

.container--hero {
  width: min(80rem, 100% - clamp(20px, 4vw, 48px));
}

.container-narrow {
  width: min(760px, 100% - clamp(20px, 4vw, 40px));
  margin-inline: auto;
}

/* Header — 参考 shadcn Hero：固定顶栏 + 滚动收缩胶囊 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.5rem clamp(8px, 2vw, 12px) 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: transparent;
  background: transparent;
  backdrop-filter: none;
}

.nav-shell {
  margin-inline: auto;
  margin-top: 0;
  max-width: 78rem;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition:
    max-width 0.35s ease,
    border-radius 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}

.site-header.is-scrolled .nav-shell {
  max-width: 72rem;
  margin-top: 0.35rem;
  border-radius: 1rem;
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg-deep) 72%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding-block: 0.35rem;
}

.nav-shell .container {
  width: min(1200px, 100% - clamp(20px, 4vw, 40px));
}

@media (min-width: 960px) {
  .nav-grid {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    min-height: calc(var(--header-h) - 4px);
  }

  .nav-brand {
    grid-column: 1;
    justify-self: start;
  }

  .header-actions {
    grid-column: 2;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 960px) {
  .nav-brand {
    justify-content: flex-start;
  }

  .nav-brand .menu-toggle {
    display: none;
  }
}

.nav--center {
  display: none;
  justify-content: center;
  justify-self: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 960px) {
  .nav--center {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90vw;
    pointer-events: none;
  }

  .nav--center a {
    pointer-events: auto;
  }
}

.nav--center a {
  position: relative;
  padding-block: 0.25rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.header-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  justify-self: end;
}

@media (min-width: 960px) {
  .header-actions {
    display: flex;
  }
}

.header-cta-compact {
  display: none;
}

.site-header.is-scrolled .header-login,
.site-header.is-scrolled .header-signup {
  display: none;
}

.site-header.is-scrolled .header-cta-compact {
  display: inline-flex;
}

.menu-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.menu-icon-open {
  opacity: 1;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
  opacity: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-mark-icon {
  width: 26px;
  height: 26px;
  color: #f4f4f5;
}

.logo-footer .logo-mark {
  box-shadow: none;
}

.nav--center a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav--center a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.menu-toggle:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 20px 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a:not(.btn) {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.mobile-nav a:not(.btn):hover {
  color: var(--text);
  background: var(--accent-soft);
}

@media (min-width: 960px) {
  .nav-brand .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.btn .lucide {
  width: 18px;
  height: 18px;
}

.btn-lg {
  padding: 0.58rem 1.18rem;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: 0.65rem;
}

.header-actions .btn-sm {
  min-height: 2rem;
  padding-block: 0.32rem;
  padding-inline: 0.8rem;
}

.header-actions .header-signup {
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.header-actions .header-signup:hover {
  transform: none;
  background: var(--accent-soft);
  border-color: var(--border);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: #050505;
  border-color: #e4e4e7;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #fff;
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: #d4d4d8;
  background: var(--accent-soft);
}

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

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

.icon-inline {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 0.25rem;
}

/* Hero — 居中叙事 + Three.js 点阵背景 + 光锥 + 产品大图 */
.hero--marketing {
  position: relative;
  min-height: clamp(calc(42rem + 30px), calc(90dvh + 30px), calc(56rem + 30px));
  padding: var(--header-offset) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.hero-dotted-surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-dotted-surface canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-deco {
  display: none;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  isolation: isolate;
  opacity: 0.5;
  contain: strict;
}

@media (min-width: 1024px) {
  .hero-deco {
    display: block;
  }
}

.hero-deco__beam {
  position: absolute;
  left: 0;
  top: 0;
  width: 14rem;
  height: 80rem;
  transform: rotate(-45deg);
  border-radius: 999px;
  transform-origin: left top;
}

.hero-deco__beam--a {
  width: 35rem;
  transform: translateY(-350px) rotate(-45deg);
  background: radial-gradient(
    68.54% 68.72% at 55.02% 31.46%,
    hsla(0, 0%, 85%, 0.08) 0,
    hsla(0, 0%, 55%, 0.02) 50%,
    hsla(0, 0%, 45%, 0) 80%
  );
}

.hero-deco__beam--b {
  width: 14rem;
  transform: translate(5%, -50%) rotate(-45deg);
  background: radial-gradient(
    50% 50% at 50% 50%,
    hsla(0, 0%, 85%, 0.06) 0,
    hsla(0, 0%, 45%, 0.02) 80%,
    transparent 100%
  );
}

.hero-deco__beam--c {
  width: 14rem;
  transform: translateY(-350px) rotate(-45deg);
  background: radial-gradient(
    50% 50% at 50% 50%,
    hsla(0, 0%, 85%, 0.04) 0,
    hsla(0, 0%, 45%, 0.02) 80%,
    transparent 100%
  );
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-bg__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(125% 125% at 50% 115%, rgba(0, 0, 0, 0) 28%, rgba(36, 36, 36, 0.72) 100%),
    radial-gradient(125% 125% at 50% 100%, transparent 0%, var(--background) 74%);
}

.hero-stage {
  position: relative;
  z-index: 3;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.hero-copy {
  text-align: center;
  margin-inline: auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 auto 1.5rem;
  padding: 0.2rem 0.2rem 0.2rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-pill:hover {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  color: var(--text);
}

.hero-pill__lead-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  opacity: 0.92;
  flex-shrink: 0;
}

.hero-pill__text {
  text-align: left;
  line-height: 1.35;
  max-width: 20rem;
}

@media (min-width: 480px) {
  .hero-pill__text {
    max-width: none;
    white-space: nowrap;
  }
}

.hero-pill__rule {
  width: 1px;
  height: 1rem;
  background: color-mix(in srgb, var(--text) 22%, transparent);
}

.hero-pill__icon {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-pill__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1.6rem;
  transform: translateX(-1.6rem);
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-pill:hover .hero-pill__track {
  transform: translateX(0);
}

.hero-pill__arrow {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--text);
}

.hero-title--center {
  margin: 0 auto 1.25rem;
  max-width: min(60rem, 92vw);
  font-family: var(--font-cjk);
  font-weight: 600;
  font-size: clamp(2rem, 6.5vw, 4.25rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-accent {
  background: linear-gradient(90deg, #fafafa, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub--center {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  font-family: var(--font-cjk);
  color: var(--text-muted);
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  line-height: 1.72;
  text-wrap: balance;
}

.tag-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-list--center {
  justify-content: center;
}

.tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.tag-list .lucide {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
}

.hero-cta--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .hero-cta--center {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.6rem;
  }

  .hero-cta__primary-wrap {
    display: flex;
    padding: 0;
    border: 0;
    background: transparent;
    min-width: 0;
  }

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

@media (min-width: 640px) {
  .hero-cta--center {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-cta__primary-wrap {
  padding: 2px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.btn-hero-primary {
  border-radius: 12px;
  min-height: 2.45rem;
  padding-inline: 1.2rem;
}

.btn-hero-secondary {
  border-radius: 12px;
  min-height: 2.45rem;
  padding-inline: 1.15rem;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn-hero-secondary:hover {
  border-color: var(--border);
  background: var(--accent-soft);
}

.hero-metrics--center {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 65rem;
  margin-inline: auto;
  margin-top: 5rem;
  padding: 1.25rem 0 0;
  text-align: center;
}

.hero-metrics--center::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 16%,
    rgba(255, 255, 255, 0.05) 84%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero-metrics--center dt {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-metrics--center dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-metrics--center {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 3.25rem;
  }
}

@media (max-width: 560px) {
  .hero-metrics--center {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.85rem;
    margin-top: 2.75rem;
  }

  .hero-metrics--center dt {
    font-size: 0.7rem;
  }

  .hero-metrics--center dd {
    font-size: 1.35rem;
  }
}

.hero-animate-group > * {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(10px);
  animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate-group .hero-pill {
  animation-delay: 0.05s;
}

.hero-animate-group .hero-title--center {
  animation-delay: 0.14s;
}

.hero-animate-group .hero-sub--center {
  animation-delay: 0.22s;
}

.hero-animate-group .tag-list {
  animation-delay: 0.28s;
}

.hero-animate-group .hero-cta--center {
  animation-delay: 0.34s;
}

.hero-animate-group .hero-metrics--center {
  animation-delay: 0.4s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate-group > * {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-pill__track {
    transition: none;
  }
}

/* Sections */
.section {
  padding: clamp(4.5rem, 9vw, 6.75rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
    radial-gradient(800px 400px at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 3.25rem;
}

@media (max-width: 640px) {
  .section {
    padding: clamp(3.25rem, 9vw, 4.5rem) 0;
  }

  .section-head {
    margin-bottom: 2.2rem;
    margin-inline: auto;
    text-align: center;
  }
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: inherit;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-row {
  display: grid;
  gap: 1rem 1.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

@media (min-width: 720px) {
  .feature-row {
    grid-template-columns: 44px minmax(0, 1fr) 140px;
    align-items: center;
  }
}

.feature-row:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.feature-icon .lucide {
  width: 22px;
  height: 22px;
  color: #fafafa;
}

.feature-body h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.18rem, 1.05rem + 0.35vw, 1.34rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.feature-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  width: 140px;
  justify-self: end;
}

.mini-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.35;
}

.mini-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #52525b;
}

@media (max-width: 720px) {
  .feature-row {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }

  .feature-body {
    grid-column: 2;
  }

  .mini-list {
    grid-column: 2;
    width: 100%;
    justify-self: start;
    align-self: start;
    text-align: left;
    margin-top: 0.25rem;
  }
}

@media (max-width: 640px) {
  .feature-row {
    padding: 1.35rem 1.1rem;
  }
}

/* Tech list */
.tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 960px) {
  .tech-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 1.35rem 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  min-height: 100%;
  position: relative;
}

.tech-item::after {
  content: none;
}

.tech-item .lucide {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  margin-top: 0;
  color: #e4e4e7;
  padding: 0.52rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.tech-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: clamp(1.08rem, 0.98rem + 0.28vw, 1.2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 0.15rem;
}

.tech-item span {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 30ch;
}

/* Service network map */
.network-map {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  border: none;
  background: transparent;
  min-height: clamp(17rem, 40vw, 25rem);
  overflow: hidden;
}

.network-map__svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}

.network-map__world-image {
  opacity: 0.88;
  filter: brightness(1.1) saturate(0.7);
}

.network-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
}

.network-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem 0.9rem;
  border-right: 1px solid var(--border);
}

.network-metric:last-child {
  border-right: none;
}

.network-metric dt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  text-align: center;
  color: var(--text-dim);
}

.network-metric dd {
  margin: 0;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 900px) {
  .network-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-metric:nth-child(2n) {
    border-right: none;
  }

  .network-metric {
    border-bottom: 1px solid var(--border);
  }

  .network-metric:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

.network-node {
  fill: #8fb8ff;
}

.network-node--pulse {
  fill: transparent;
  stroke: rgba(143, 184, 255, 0.75);
  stroke-width: 1.2;
  transform-origin: center;
  animation: networkNodePulse 2.2s ease-out infinite;
}

@keyframes networkNodePulse {
  0% {
    r: 3;
    opacity: 0.7;
  }
  100% {
    r: 11;
    opacity: 0;
  }
}

/* Cases */
.case-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .case-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.case-card {
  padding: 1.7rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.case-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.03);
}

.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-badge {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.case-top .lucide {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}

.case-card h3 {
  margin: 0;
  font-size: clamp(1.14rem, 1.02rem + 0.3vw, 1.28rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.case-card > p {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.case-stats {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.case-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.case-stats span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.case-stats strong {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 1rem;
}

/* Customers */
.customer-directory {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.customer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1rem 1rem 0.95rem;
  border-bottom: 1px solid var(--border);
}

.customer-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.customer-filter:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.customer-filter.is-active {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-weight: 600;
}

.customer-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.customer-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.customer-rows .customer-row:first-child {
  border-top: none;
}

.customer-row__name {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.customer-row__name .lucide {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.customer-row__name strong {
  font-size: 0.95rem;
  white-space: nowrap;
}

.customer-row__tags {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.customer-row__action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #ececef;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.customer-row__action .lucide {
  width: 0.92rem;
  height: 0.92rem;
}

.customer-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 840px) {
  .customer-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-block: 0.85rem;
  }

  .customer-row__name strong {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .customer-filters {
    padding: 0.85rem 0.85rem 0.75rem;
    gap: 0.45rem;
  }

  .customer-rows {
    display: grid;
    gap: 0.7rem;
    padding: 0.85rem;
  }

  .customer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 0.75rem;
    border-top: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.95rem 0.9rem;
  }

  .customer-row__name {
    grid-column: 1 / -1;
  }

  .customer-row__tags {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  .customer-row__action {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    padding-top: 0;
  }
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.price-card {
  position: relative;
  padding: 1.9rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.price-card:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)), var(--bg-elevated);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.price-card h3 {
  margin: 0;
  font-family: inherit;
  font-size: 1.1rem;
}

.price-tag {
  margin: 0;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 2rem;
  font-weight: 600;
}

.price-tag .currency {
  font-size: 1rem;
  vertical-align: super;
  margin-right: 0.15rem;
  color: var(--text-muted);
}

.price-tag .suffix {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.price-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.price-features {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.price-features .lucide {
  width: 16px;
  height: 16px;
  color: #fafafa;
}

.price-features .muted {
  color: var(--text-dim);
}

.price-card-featured {
  border-color: var(--border);
  background: var(--bg-elevated);
  box-shadow: none;
}

.price-ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #fafafa;
  color: #050505;
  font-weight: 700;
}

/* Quotes */
.quote-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .quote-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quote-card {
  padding: 1.7rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.015));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.quote-card:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.quote-icon {
  width: 28px;
  height: 28px;
  color: var(--text-dim);
  opacity: 0.9;
}

.quote-card > p {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.quote-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  background: #18181b;
  border: 1px solid var(--border);
  color: #fafafa;
}

.avatar-img {
  width: 46px;
  height: 46px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.quote-meta strong {
  display: block;
  font-size: 0.95rem;
}

.quote-meta span {
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* FAQ */
#faq .container-narrow {
  width: min(1200px, 100% - clamp(20px, 4vw, 40px));
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
}

#faq .section-head {
  max-width: none;
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  margin: 0;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.3rem 1.05rem 1.1rem;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.faq-item:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0.25rem 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  #faq .container-narrow {
    display: block;
    width: min(760px, 100% - clamp(20px, 4vw, 40px));
  }

  #faq .section-head {
    margin-bottom: 3.25rem;
  }

  .faq-list {
    width: 100%;
  }
}

/* CTA */
.cta-band {
  padding: clamp(3.4rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--border);
  background: #050505;
}

.cta-inner {
  display: flex;
  justify-content: center;
}

.cta-title {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.86rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 18ch;
}

.cta-sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.75;
  text-align: center;
}

.cta-actions {
  width: min(100%, 62rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2rem) 1rem;
}

.cta-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.cta-action-row .hero-cta__primary-wrap {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cta-action-row .btn {
  min-width: 9rem;
  width: auto;
}

.cta-link {
  color: var(--text-dim);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.cta-actions .btn {
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #020202;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-tag {
  margin: 0.75rem 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-heading {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-build {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-build .lucide {
  width: 14px;
  height: 14px;
}

/* Auth page */
.auth-page {
  min-height: 100dvh;
}

.auth-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0.8rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--background) 82%, transparent);
}

.auth-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-back-btn {
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.auth-back-btn:hover {
  transform: none;
  background: var(--accent-soft);
  border-color: var(--border);
  color: var(--text);
}

.auth-back-btn .lucide {
  width: 14px;
  height: 14px;
}

.auth-main.hero--marketing {
  min-height: 100dvh;
  padding: calc(var(--header-offset) + 1rem) 0 2.25rem;
}

.auth-main .hero-bg__scrim {
  background:
    radial-gradient(125% 125% at 50% 115%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0.18) 100%),
    radial-gradient(125% 125% at 50% 100%, rgba(0, 0, 0, 0) 0%, rgba(5, 5, 7, 0.28) 82%);
}

.auth-stage {
  position: relative;
  z-index: 4;
  min-height: calc(100dvh - var(--header-offset) - 2.25rem);
  display: flex;
  align-items: center;
}

.auth-layout {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0;
}

.auth-copy {
  display: none;
}

.auth-copy__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.auth-copy__badge .lucide {
  width: 14px;
  height: 14px;
}

.auth-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.auth-sub {
  margin: 1rem 0 1.4rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.auth-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

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

.auth-highlights .lucide {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}

.auth-card-shell {
  position: relative;
  width: min(432px, 100%);
}

.auth-card-glow {
  position: absolute;
  inset: -15% -10%;
  z-index: 0;
  background: none;
  filter: none;
  opacity: 0;
  pointer-events: none;
}

.auth-card {
  --beam-x: 50%;
  --beam-y: 50%;
  position: relative;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(32px) saturate(155%);
  -webkit-backdrop-filter: blur(32px) saturate(155%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  padding: 1.28rem calc(1.16rem + 10px) calc(1.08rem + 20px);
  transform-style: preserve-3d;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.24s ease-out;
  overflow: hidden;
}

.auth-card,
.auth-card * {
  font-size: 14px !important;
}

.auth-card__beam {
  position: absolute;
  inset: -45% -10%;
  pointer-events: none;
  background: none;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  pointer-events: none;
}

.auth-card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.auth-card__head {
  position: relative;
  margin-bottom: 2rem;
  text-align: center;
}

.auth-card__logo {
  display: inline-flex;
  align-items: center;
}

.auth-card__logo .logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 11px;
}

.auth-card__logo .logo-mark-icon {
  width: 64px;
  height: 64px;
}

.auth-card__head h2 {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.2;
}

.auth-card__head p {
  margin: 0.4rem 0 0;
  color: var(--text-dim);
  font-size: 1rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 2.35rem;
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.auth-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.auth-tab.is-active {
  color: #0a0a0a;
  background: #f4f4f5;
  border-color: #f4f4f5;
}

.auth-form {
  display: none;
  gap: 0.76rem;
}

.auth-form.is-active {
  display: grid;
}

.auth-field {
  display: grid;
  gap: 0.38rem;
}

.auth-field > span {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.72rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.005);
  padding: 0 0.68rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.auth-input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--text) 40%, transparent);
  background: rgba(255, 255, 255, 0.02);
}

.auth-input-wrap.is-error {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(127, 29, 29, 0.12);
}

.auth-input-wrap .lucide {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.auth-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 0.96rem;
}

.auth-input-wrap input::placeholder {
  color: var(--text-dim);
}

.auth-pass-toggle {
  display: inline-grid;
  place-items: center;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  flex-shrink: 0;
  padding: 0;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.auth-pass-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.auth-pass-toggle.is-visible {
  color: var(--text);
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.68rem;
  margin: 0.12rem 0 0.24rem;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.auth-checkbox input {
  width: 13px;
  height: 13px;
  accent-color: #f5f5f5;
}

.auth-link {
  color: var(--text-dim);
  font-size: 0.72rem;
  transition: color 0.2s ease;
}

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

.auth-link-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.auth-code-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  min-height: 1.85rem;
  padding: 0 0.52rem;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.auth-code-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.auth-code-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-submit {
  min-height: 2.68rem;
  gap: 0.4rem;
  font-size: 0.88rem;
  border-radius: 999px;
}

.auth-submit .lucide {
  width: 14px;
  height: 14px;
}

.auth-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 14px);
  z-index: 100;
  padding: 0.62rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.88);
  color: var(--text);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.auth-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth-toast.is-success {
  border-color: rgba(74, 222, 128, 0.42);
}

.auth-toast.is-error {
  border-color: rgba(248, 113, 113, 0.5);
}

.auth-register-entry {
  margin: 0.2rem 0 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.95rem 0;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.auth-oauth {
  min-height: 2.55rem;
  gap: 0.4rem;
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.auth-oauth:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-oauth .lucide {
  width: 15px;
  height: 15px;
}

@media (max-width: 979px) {
  .auth-stage {
    min-height: calc(100dvh - var(--header-offset) - 1.5rem);
  }

  .auth-card-shell {
    width: min(416px, 100%);
  }
}

@media (max-width: 640px) {
  .auth-topbar {
    padding: 0.65rem 0;
  }

  .auth-topbar__inner {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    box-sizing: border-box;
    gap: 0.65rem;
  }

  .auth-topbar__inner.container {
    width: 100%;
  }

  .auth-topbar__inner .logo {
    min-width: 0;
  }

  .auth-topbar__inner .logo-text {
    display: none;
  }

  .auth-back-btn {
    flex-shrink: 0;
    margin-right: 16px;
    margin-right: max(16px, env(safe-area-inset-right));
  }

  .auth-main.hero--marketing {
    padding-top: calc(var(--header-offset) + 0.6rem);
  }

  .auth-layout {
    width: 100%;
    padding-inline: 16px;
    box-sizing: border-box;
  }

  .auth-card {
    padding: 1.05rem calc(0.86rem + 10px) calc(0.92rem + 20px);
  }

  .auth-card__head h2 {
    font-size: 1.12rem;
  }

  .auth-card__head p,
  .auth-field > span,
  .auth-link,
  .auth-checkbox,
  .auth-register-entry {
    font-size: 0.7rem;
  }

  .auth-input-wrap {
    min-height: 2.5rem;
    padding: 0 0.6rem;
  }

  .auth-input-wrap input {
    font-size: 0.84rem;
  }

  .auth-submit {
    min-height: 2.45rem;
    font-size: 0.8rem;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary:hover,
  .feature-row:hover {
    transform: none;
  }

  .faq-chevron {
    transition: none;
  }

}
