:root {
  --bg: #050811;
  --bg-deep: #08101a;
  --surface: rgba(9, 18, 28, 0.76);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f6fb;
  --muted: #93a1b3;
  --gold: #d7b36f;
  --gold-soft: rgba(215, 179, 111, 0.18);
  --ice: #82d2ff;
  --ice-soft: rgba(130, 210, 255, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 172px;
}

html.locale-ready body {
  opacity: 1;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(215, 179, 111, 0.12), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(130, 210, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #03060d 0%, #050811 22%, #08101a 100%);
  min-height: 100vh;
  overflow-x: hidden;
  transition: opacity 0.18s ease;
}

body.nav-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.network-canvas,
.page-vignette,
.page-grain,
.cursor-aura,
.scroll-progress {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.network-canvas,
.page-vignette,
.page-grain {
  inset: 0;
}

.page-vignette {
  background:
    radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
}

.page-grain {
  opacity: 0.08;
  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: 80px 80px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
}

.cursor-aura {
  width: 30rem;
  height: 30rem;
  left: -15rem;
  top: -15rem;
  background: radial-gradient(circle, rgba(130, 210, 255, 0.14), transparent 72%);
  opacity: 0.9;
  transition: transform 0.14s ease-out;
}

.scroll-progress {
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #fff1ca 40%, var(--ice));
  z-index: 4;
  box-shadow: 0 0 18px rgba(130, 210, 255, 0.34);
}

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

.site-header-shell {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  gap: 10px;
  padding: 18px 0 18px;
  background: linear-gradient(180deg, rgba(3, 6, 13, 0.96) 0%, rgba(5, 8, 17, 0.88) 72%, rgba(5, 8, 17, 0) 100%);
  backdrop-filter: blur(8px);
}

.site-header {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 22px;
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(7, 14, 23, 0.74);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #ffffff;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(130, 210, 255, 0.16);
}

.brand-symbol img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  display: block;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.eyebrow,
.section-kicker,
.status-pill,
.mode-button {
  font-family: "IBM Plex Mono", monospace;
}

.brand-copy strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.94;
  text-transform: none;
}

.brand-copy span {
  font-size: 0.72rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: nowrap;
  min-width: 0;
}

.site-nav a {
  font-family: "Manrope", sans-serif;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
  padding: 8px 2px;
  transition: color 0.24s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--ice));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions,
.hero-actions,
.contact-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-panel {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(7, 14, 23, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.mobile-nav-panel[hidden] {
  display: none;
}

.mobile-nav-links,
.mobile-header-actions {
  display: grid;
  gap: 10px;
}

.mobile-nav-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
}

.mobile-header-actions {
  margin-top: 16px;
}

.mobile-header-actions .button {
  width: 100%;
}

.footer-social {
  display: flex;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.lang-button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-button.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.32) 50%, transparent 80%);
  transform: translateX(-140%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 0;
}

.button > * {
  position: relative;
  z-index: 1;
}

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

.button:hover::before {
  transform: translateX(140%);
}

.button-primary {
  color: #07101a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), #fff0cd 42%, var(--ice));
  box-shadow: 0 12px 30px rgba(130, 210, 255, 0.16);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.button-campaign {
  color: #07101a;
  border-color: rgba(255, 224, 138, 0.48);
  background: linear-gradient(135deg, #ffd86f, #fff2c2 48%, #8ee6ff);
  box-shadow: 0 12px 28px rgba(255, 216, 111, 0.16);
  font-weight: 800;
}

.button-icon {
  gap: 10px;
  padding-inline: 16px;
}

.button-icon svg,
.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-auth-stack {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  justify-content: center;
  gap: 22px;
}

.social-auth-button {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  padding: 0;
  justify-content: center;
  align-items: center;
  gap: 0;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

.social-auth-button:hover {
  border-color: rgba(130, 210, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.social-auth-label {
  display: none;
}

.social-auth-badge {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.social-auth-badge svg {
  width: 24px;
  height: 24px;
}

.social-auth-badge-google {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.social-auth-badge-github {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.social-auth-badge-telegram {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.social-auth-button-google {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(66, 133, 244, 0.14), rgba(52, 168, 83, 0.08));
}

.social-auth-button-github {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(148, 163, 184, 0.16), rgba(99, 102, 241, 0.06));
}

.social-auth-button-telegram {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(39, 167, 231, 0.18), rgba(87, 210, 255, 0.08));
}

.social-auth-status {
  max-width: min(100%, 360px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.social-auth-status[data-state="error"] {
  color: #ffb4b4;
}

main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 90px;
  min-width: 0;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 172px;
}

section[id]::before {
  content: "";
  display: block;
  height: 172px;
  margin-top: -172px;
  visibility: hidden;
  pointer-events: none;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
  padding-top: 56px;
  perspective: 1400px;
}

.hero-copy {
  grid-column: 1;
  align-self: start;
  min-width: 0;
  max-width: 100%;
}

.hero-panel {
  grid-column: 2;
  align-self: start;
  min-width: 0;
}

.page-hero-copy,
.section-intro,
.overview-card,
.feature-card,
.provider-card,
.reliability-card,
.routing-panel,
.contact-panel {
  min-width: 0;
}

.page-hero {
  padding-top: 48px;
}

body[data-page="company"] .page-hero.section {
  padding-top: 28px;
  padding-bottom: 20px;
}

body[data-page="company"] .page-hero-copy {
  max-width: 1120px;
}

body[data-page="company"] .page-hero-copy h1 {
  max-width: 15.5ch;
}

body[data-page="company"] .page-hero + .section {
  padding-top: 10px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(215, 179, 111, 0.58);
}

.hero h1 {
  margin: 18px 0 0;
  max-width: 8.5ch;
  font-size: clamp(2.8rem, 4.8vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-intro h2,
.contact-panel h2 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 3.5vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 18ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-hero-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(2.35rem, 4.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 16ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--gold), #fff5df 35%, var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text,
.section-text,
.feature-card p,
.routing-panel p,
.provider-card p,
.reliability-card p,
.integration-card p,
.faq-content p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.76;
  font-size: 1.02rem;
}

.hero-text,
.section-text {
  margin-top: 24px;
  max-width: 62ch;
}

.hero-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
  color: #dce6f2;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--ice));
  box-shadow: 0 0 12px rgba(130, 210, 255, 0.32);
}

.glass-panel,
.feature-card,
.routing-panel,
.routing-visual,
.provider-card,
.reliability-card,
.integration-card,
.faq-item,
.contact-panel,
.trust-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.interactive-surface {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
    translate3d(0, var(--surface-lift, 0px), 0);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.38s ease;
  will-change: transform;
}

.interactive-surface::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(420px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(130, 210, 255, 0.14), transparent 34%),
    radial-gradient(320px circle at calc(var(--pointer-x, 50%) + 12%) calc(var(--pointer-y, 50%) + 6%), rgba(215, 179, 111, 0.12), transparent 28%);
  opacity: var(--surface-glow, 0);
  transition: opacity 0.32s ease;
  pointer-events: none;
  z-index: 0;
}

.interactive-surface > * {
  position: relative;
  z-index: 1;
}

.overview-card {
  padding: 24px;
}

.overview-card::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -14%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(130, 210, 255, 0), rgba(130, 210, 255, 0.28), rgba(215, 179, 111, 0.3), rgba(130, 210, 255, 0));
  filter: blur(26px);
  opacity: 0.48;
  animation: orbitGlow 14s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.overview-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(215, 179, 111, 0.12);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.status-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.overview-metrics article {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
}

.metric-value {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.provider-rail {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.provider-rail-item {
  min-height: 82px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 14px;
}

.provider-rail-item.tone-openai,
.provider-logo-wrap.tone-openai {
  box-shadow: inset 0 0 0 1px rgba(16, 163, 127, 0.18);
}

.provider-rail-item.tone-anthropic,
.provider-logo-wrap.tone-anthropic {
  box-shadow: inset 0 0 0 1px rgba(217, 119, 87, 0.18);
}

.provider-rail-item.tone-google,
.provider-logo-wrap.tone-google {
  box-shadow: inset 0 0 0 1px rgba(66, 133, 244, 0.18);
}

.provider-rail-item.tone-deepseek,
.provider-logo-wrap.tone-deepseek {
  box-shadow: inset 0 0 0 1px rgba(77, 107, 254, 0.18);
}

.provider-rail-item.tone-suno,
.provider-logo-wrap.tone-suno {
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.18);
}

.provider-rail-item.tone-alibaba,
.provider-logo-wrap.tone-alibaba {
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.18);
}

.provider-rail-item.tone-bytedance,
.provider-logo-wrap.tone-bytedance {
  box-shadow: inset 0 0 0 1px rgba(43, 120, 255, 0.18);
}

.provider-rail-item.tone-kuaishou,
.provider-logo-wrap.tone-kuaishou {
  box-shadow: inset 0 0 0 1px rgba(255, 91, 31, 0.18);
}

.provider-rail-item.tone-bigmodel,
.provider-logo-wrap.tone-bigmodel {
  box-shadow: inset 0 0 0 1px rgba(14, 159, 110, 0.2);
}

.provider-rail-item.tone-moonshot,
.provider-logo-wrap.tone-moonshot {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.provider-rail-item.tone-xai,
.provider-logo-wrap.tone-xai {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.provider-rail-item.tone-mistral,
.provider-logo-wrap.tone-mistral {
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.provider-rail-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 1;
}

.provider-rail-copy strong {
  display: block;
  font-size: 0.95rem;
}

.provider-rail-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.trust-band {
  margin-top: -18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trust-item {
  padding: 18px 20px;
}

.trust-item strong {
  display: block;
  font-size: 1rem;
}

.trust-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.section-intro {
  max-width: 840px;
  margin-bottom: 30px;
}

.feature-grid,
.reliability-grid,
.integration-layout,
.compat-grid {
  display: grid;
  gap: 18px;
}

.feature-grid,
.reliability-grid,
.integration-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.routing-panel,
.routing-visual,
.provider-card,
.reliability-card,
.integration-card {
  padding: 24px;
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(215, 179, 111, 0.12);
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
}

.feature-card h3,
.routing-panel h3,
.provider-card h3,
.reliability-card h3,
.integration-card h3 {
  margin: 18px 0 12px;
  font-size: 1.32rem;
}

.routing-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.mode-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.24s ease;
}

.mode-button.active {
  color: #07101a;
  background: linear-gradient(135deg, var(--gold), var(--ice));
}

.mode-content {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.mode-copy h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

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

.mode-stat {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-stat strong {
  display: block;
  font-size: 1.54rem;
}

.mode-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.routing-visual {
  min-height: 390px;
  position: relative;
  overflow: hidden;
}

.routing-lines {
  position: absolute;
  inset: 0;
}

.routing-node {
  position: absolute;
  min-width: 126px;
  padding: 12px 18px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 18, 28, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.node-client {
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
}

.node-closeai {
  top: 43%;
  left: 50%;
  transform: translateX(-50%);
}

.node-provider {
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
}

.routing-arc {
  position: absolute;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(130, 210, 255, 0.12), rgba(215, 179, 111, 0.56), rgba(130, 210, 255, 0.12));
}

.arc-primary {
  top: 22%;
  height: 104px;
}

.arc-secondary {
  top: 52%;
  height: 104px;
}

.routing-ping {
  position: absolute;
  top: 43%;
  left: 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(130, 210, 255, 0.16);
  transform: translate(-50%, -50%);
  animation: pulseRing 4s ease-in-out infinite;
}

.ping-b {
  width: 320px;
  height: 320px;
  border-color: rgba(215, 179, 111, 0.14);
  animation-delay: -2s;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.provider-card {
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.provider-card.tone-openai:hover {
  border-color: rgba(16, 163, 127, 0.28);
}

.provider-card.tone-anthropic:hover {
  border-color: rgba(217, 119, 87, 0.28);
}

.provider-card.tone-google:hover {
  border-color: rgba(66, 133, 244, 0.28);
}

.provider-card.tone-deepseek:hover {
  border-color: rgba(77, 107, 254, 0.28);
}

.provider-card.tone-suno:hover {
  border-color: rgba(124, 58, 237, 0.28);
}

.provider-card.tone-alibaba:hover {
  border-color: rgba(255, 106, 0, 0.28);
}

.provider-card.tone-bytedance:hover {
  border-color: rgba(43, 120, 255, 0.28);
}

.provider-card.tone-kuaishou:hover {
  border-color: rgba(255, 91, 31, 0.28);
}

.provider-card.tone-bigmodel:hover {
  border-color: rgba(14, 159, 110, 0.3);
}

.provider-card.tone-moonshot:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

.provider-card.tone-xai:hover {
  border-color: rgba(148, 163, 184, 0.3);
}

.provider-card.tone-mistral:hover {
  border-color: rgba(249, 115, 22, 0.3);
}

.provider-card:hover {
  border-color: rgba(215, 179, 111, 0.22);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.22);
}

.provider-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
}

.provider-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 1;
}

.provider-card h3 {
  margin: 16px 0 8px;
  font-size: 1.06rem;
}

.provider-models {
  margin-top: 16px;
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.provider-card p {
  margin: 0;
}

.compat-grid {
  margin-top: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compat-card {
  padding: 18px;
}

.compat-card strong {
  display: block;
  margin-bottom: 8px;
}

.compat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.64;
}

.code-card pre {
  margin: 0;
  overflow: auto;
  color: #d5ebff;
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
}

.faq-button {
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  cursor: pointer;
}

.faq-button strong {
  font-size: 1rem;
}

.faq-icon {
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform 0.24s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-content p {
  margin: 0;
  padding: 0 22px 22px;
}

.contact-panel {
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.site-footer {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 32px;
  padding: 28px 0 0;
  position: relative;
  z-index: 1;
}

.simple-footer {
  padding-top: 0;
}

.footer-brand {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-brand strong {
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.7;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-nav-grid h4 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.95rem;
}

.footer-nav-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

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

.footer-bottom {
  padding: 20px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}

.compact-header {
  width: min(960px, calc(100% - 40px));
}

.auth-shell {
  width: min(100% - 24px, 1120px);
  margin: 0 auto;
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
  padding: 48px 0 80px;
  position: relative;
  z-index: 1;
}

.auth-shell-compact {
  width: min(100% - 24px, 620px);
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.auth-aside {
  padding: 30px;
  display: grid;
  gap: 22px;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(130, 210, 255, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(215, 179, 111, 0.14), transparent 30%),
    rgba(7, 14, 23, 0.76);
}

.auth-aside-copy {
  display: grid;
  gap: 12px;
}

.auth-aside-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-aside-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

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

.auth-signal-card {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 8px;
}

.auth-signal-card strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  color: var(--text);
}

.auth-signal-card span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.auth-proof-list {
  display: grid;
  gap: 12px;
}

.auth-proof-item {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  display: grid;
  gap: 6px;
}

.auth-proof-item strong {
  font-size: 0.98rem;
}

.auth-proof-item span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.auth-aside-cta {
  margin-top: 4px;
}

.auth-card {
  padding: 32px;
}

.auth-card-focused {
  max-width: 620px;
  margin: 0 auto;
}

.auth-main {
  display: grid;
  align-content: start;
}

.auth-context-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.auth-context-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(130, 210, 255, 0.18);
  background: rgba(130, 210, 255, 0.08);
  color: #d8f0ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-context-meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-text {
  color: var(--muted);
  line-height: 1.75;
  margin: 20px 0 0;
}

.auth-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.auth-social-block {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.auth-social-block-top {
  margin-top: 18px;
  margin-bottom: 6px;
}

.auth-social-block-bottom {
  margin-top: 20px;
  padding-top: 8px;
  border-top: none;
}

.auth-social-mount {
  display: flex;
  justify-content: center;
}

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

.auth-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form span {
  color: var(--text);
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.button-inline {
  min-height: 52px;
  white-space: nowrap;
}

.auth-help {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.auth-policy {
  margin-top: -6px;
}

.auth-status {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.auth-status[data-state="info"] {
  border-color: rgba(130, 210, 255, 0.22);
  background: rgba(130, 210, 255, 0.08);
  color: #d8f0ff;
}

.auth-status[data-state="success"] {
  border-color: rgba(94, 234, 212, 0.22);
  background: rgba(16, 185, 129, 0.1);
  color: #d8fff0;
}

.auth-status[data-state="error"] {
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(239, 68, 68, 0.1);
  color: #ffe0e0;
}

.full-width {
  width: 100%;
}

.auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-links a {
  color: var(--muted);
}

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

.auth-assurance-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-assurance-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.auth-assurance-item strong {
  font-size: 0.9rem;
}

.auth-assurance-item span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.contact-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 16px;
}

.contact-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.contact-line span {
  color: var(--muted);
}

.contact-line strong {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.975);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

body[data-page="signin"] .network-canvas,
body[data-page="signin"] .cursor-aura,
body[data-page="signin"] .scroll-progress,
body[data-page="signup"] .network-canvas,
body[data-page="signup"] .cursor-aura,
body[data-page="signup"] .scroll-progress,
body[data-page="forgot"] .network-canvas,
body[data-page="forgot"] .cursor-aura,
body[data-page="forgot"] .scroll-progress,
body[data-page="reset"] .network-canvas,
body[data-page="reset"] .cursor-aura,
body[data-page="reset"] .scroll-progress {
  display: none;
}

body[data-page="signin"] .reveal,
body[data-page="signup"] .reveal,
body[data-page="forgot"] .reveal,
body[data-page="reset"] .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@keyframes pulseRing {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.46;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: 1;
  }
}

@keyframes orbitGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .interactive-surface,
  .button,
  .site-nav a::after,
  .overview-card::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 1180px) {
  .hero,
  .routing-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    grid-column: auto;
  }

  .trust-band,
  .feature-grid,
  .reliability-grid,
  .integration-layout,
  .compat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-stage {
    grid-template-columns: 1fr;
  }

  .auth-assurance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 116px;
  }

  .site-header-shell {
    padding: 14px 0 12px;
  }

  .site-header {
    width: min(100% - 24px, 1280px);
    padding: 14px 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    border-radius: 28px;
  }

  .site-header:not(.compact-header) > .site-nav,
  .site-header:not(.compact-header) > .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav-panel {
    width: min(100% - 24px, 1280px);
  }

  main,
  .site-footer,
  .compact-header {
    width: min(100% - 24px, 1280px);
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
    gap: 22px;
  }

  .hero-copy,
  .hero-panel,
  .page-hero-copy,
  .section-intro {
    max-width: 100%;
  }

  .hero h1,
  .page-hero-copy h1,
  .section-intro h2,
  .contact-panel h2 {
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .auth-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-assurance-grid {
    grid-template-columns: 1fr;
  }

  .overview-topline {
    flex-wrap: wrap;
    align-items: flex-start;
  }

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

  .routing-visual {
    min-height: 320px;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .site-header-shell {
    padding: 14px 0 12px;
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .overview-card,
  .routing-panel,
  .routing-visual,
  .provider-card,
  .feature-card,
  .reliability-card,
  .integration-card,
  .contact-panel {
    padding: 20px;
  }

  .provider-rail,
  .trust-band,
  .feature-grid,
  .mode-stats,
  .reliability-grid,
  .integration-layout,
  .compat-grid {
    grid-template-columns: 1fr;
  }

  .provider-rail {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
  }

  .input-action {
    grid-template-columns: 1fr;
  }

  .auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 104px;
  }

  body {
    background:
      radial-gradient(circle at 18% 8%, rgba(215, 179, 111, 0.1), transparent 20%),
      radial-gradient(circle at 82% 12%, rgba(130, 210, 255, 0.12), transparent 20%),
      linear-gradient(180deg, #03060d 0%, #050811 22%, #08101a 100%);
  }

  .cursor-aura {
    display: none;
  }

  .site-header {
    padding: 12px 14px;
  }

  .compact-header {
    gap: 8px;
    overflow: visible;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 14px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 1.22rem;
    letter-spacing: -0.06em;
  }

  .brand-copy span {
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .compact-header .brand-copy span {
    display: none;
  }

  .compact-header .brand-copy strong {
    font-size: 1.08rem;
    letter-spacing: -0.04em;
  }

  .compact-header .header-actions {
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .compact-header .header-actions .button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }

  .button {
    min-height: 46px;
    padding: 0 16px;
  }

  .social-auth-stack {
    grid-template-columns: repeat(3, 64px);
    gap: 16px;
  }

  .social-auth-button {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }

  .social-auth-badge {
    width: 100%;
    height: 100%;
  }

  .social-auth-badge svg {
    width: 21px;
    height: 21px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 16px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: 0.96;
    max-width: 100%;
  }

  .section-intro h2,
  .page-hero-copy h1,
  .contact-panel h2 {
    font-size: clamp(1.72rem, 8.8vw, 2.45rem);
    line-height: 1.04;
  }

  .hero-text,
  .section-text {
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .contact-copy p,
  .faq-answer {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .hero-points {
    gap: 10px;
  }

  .hero-points li {
    padding-left: 18px;
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .hero-points li::before {
    top: 8px;
    width: 8px;
    height: 8px;
  }

  .overview-card,
  .routing-panel,
  .routing-visual,
  .provider-card,
  .feature-card,
  .reliability-card,
  .integration-card,
  .auth-aside,
  .contact-panel,
  .auth-card,
  .faq-button,
  .faq-content p,
  .trust-item,
  .contact-box {
    border-radius: 22px;
  }

  .overview-card,
  .routing-panel,
  .routing-visual,
  .provider-card,
  .feature-card,
  .reliability-card,
  .integration-card,
  .auth-aside,
  .contact-panel,
  .auth-card {
    padding: 18px;
  }

  .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .overview-metrics article {
    padding: 14px;
  }

  .metric-value {
    font-size: 1.8rem;
  }

  .metric-label {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .status-pill {
    width: 100%;
    justify-content: center;
  }

  .provider-rail-item {
    min-height: 74px;
    padding: 12px 14px;
  }

  .mode-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-button {
    width: 100%;
    padding: 0 12px;
  }

  .routing-visual {
    min-height: 272px;
  }

  .routing-node {
    min-width: 104px;
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .arc-primary,
  .arc-secondary {
    height: 84px;
  }

  .routing-ping {
    width: 160px;
    height: 160px;
  }

  .ping-b {
    width: 228px;
    height: 228px;
  }

  .contact-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .contact-line strong {
    text-align: left;
  }

  .auth-shell {
    width: min(100% - 20px, 620px);
    min-height: calc(100vh - 148px);
    padding: 28px 0 56px;
  }

  body[data-page="company"] .page-hero.section {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  body[data-page="company"] .page-hero + .section {
    padding-top: 18px;
  }

  .auth-form input,
  .button-inline {
    min-height: 50px;
  }

  .auth-signal-grid {
    grid-template-columns: 1fr;
  }

  .auth-proof-item {
    padding: 14px 16px;
  }

  .auth-context-row {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-social {
    width: 100%;
  }

  .social-link {
    width: 100%;
    justify-content: center;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .lang-button {
    flex: 1;
  }

  .compact-header {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 380px) {
  .overview-metrics {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 10.8vw, 2.45rem);
  }

  .section-intro h2,
  .page-hero-copy h1,
  .contact-panel h2 {
    font-size: clamp(1.52rem, 8.2vw, 2.05rem);
  }

  .compact-header .header-actions .button {
    padding: 0 10px;
    font-size: 0.8rem;
  }
}
