:root {
  --bg: #0a0a0a;
  --bg-alt: #071117;
  --surface: rgba(9, 18, 24, 0.82);
  --surface-2: rgba(10, 15, 20, 0.92);
  --surface-3: rgba(15, 27, 35, 0.96);
  --text: #eef7fb;
  --muted: #8da8b7;
  --accent: #36cffb;
  --accent-2: #11b8a2;
  --accent-soft: rgba(54, 207, 251, 0.12);
  --border: rgba(54, 207, 251, 0.16);
  --border-strong: rgba(54, 207, 251, 0.3);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius: 28px;
  --max-width: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(17, 184, 162, 0.18), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(54, 207, 251, 0.18), transparent 24%),
    linear-gradient(180deg, #061015 0%, #090909 36%, #050607 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.34;
  mask-image: radial-gradient(circle at center, black 40%, transparent 86%);
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.page-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 18%, rgba(54, 207, 251, 0.09), transparent 26%),
    radial-gradient(circle at 76% 72%, rgba(17, 184, 162, 0.08), transparent 24%);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ecfeff;
  color: #052733;
  transform: translateY(-160%);
  z-index: 120;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.site-header, .site-main, .site-footer { position: relative; z-index: 1; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(5, 8, 10, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}
.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark { width: 42px; height: 42px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong, .hero-title, .section-title, .card h3, .plan-name, .page-title, .callout-title {
  font-family: "Space Grotesk", sans-serif;
}
.brand-copy strong { font-size: 1rem; }
.brand-copy span { font-size: 0.82rem; color: var(--muted); }
.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
}
.nav-links {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(54, 207, 251, 0.1);
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041117;
}
.button-secondary {
  background: rgba(8, 17, 22, 0.7);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.button-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(8,17,22,0.75);
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}
.lang-switcher {
  position: relative;
  flex: 0 0 auto;
}
.lang-switcher__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  min-width: 172px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 17, 22, 0.7);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.lang-switcher__button:hover {
  border-color: var(--border-strong);
  background: rgba(9, 20, 25, 0.92);
}
.lang-switcher__current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lang-switcher__current-flag,
.lang-option__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5, 14, 18, 0.95);
}
.lang-switcher__current-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.lang-switcher__button svg,
.lang-option__flag svg {
  width: 100%;
  height: 100%;
}
.lang-switcher__caret {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.lang-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(8, 12, 15, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.lang-switcher.open .lang-switcher__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-switcher__search {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-bottom: 8px;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(8, 12, 15, 0.98), rgba(8, 12, 15, 0.94));
}
.lang-switcher__search input {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border-color: rgba(54, 207, 251, 0.16);
  background: rgba(7, 17, 22, 0.96);
  font-size: 0.92rem;
}
.lang-switcher__empty {
  display: none;
  padding: 12px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}
.lang-switcher__empty.visible { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
}
.lang-option:hover,
.lang-option[aria-current="page"] {
  background: rgba(54, 207, 251, 0.1);
}
.lang-option__label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.lang-option__name {
  white-space: nowrap;
}
.lang-option__code {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.site-main { padding-bottom: 56px; }
.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 36px 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 108px);
  padding-top: 40px;
}
.panel,
.hero-copy,
.hero-panel,
.card,
.plan-card,
.agent-card,
.callout,
.form-card,
.status-card,
.side-card,
.footer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 21, 27, 0.78), rgba(6, 10, 13, 0.98));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.hero-copy, .hero-panel, .panel, .form-card, .status-card { padding: clamp(26px, 4vw, 52px); }
.hero-title, .page-title {
  margin: 0;
  line-height: 0.97;
  letter-spacing: -0.05em;
}
.hero-title { max-width: 10ch; font-size: clamp(3rem, 7vw, 6rem); }
.page-title { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}
.hero-text, .page-intro, .muted, .card p, .plan-copy, .agent-card p, .bullet-list, .footer-card p, .footer-card a, .status-copy, .field-note {
  color: var(--muted);
  line-height: 1.72;
}
.hero-text { max-width: 40rem; margin: 22px 0 0; font-size: clamp(1rem, 2vw, 1.16rem); }
.hero-actions, .page-actions, .status-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.signal-card {
  padding: 20px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(54, 207, 251, 0.14);
  background: linear-gradient(180deg, rgba(8, 16, 20, 0.96), rgba(4, 9, 12, 0.98));
}
.badge,
.step-index,
.signal-label,
.metric-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(54, 207, 251, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.signal-label, .metric-label { margin-bottom: 8px; }
.signal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(54, 207, 251, 0.6);
}
.signal-list, .metric-grid, .grid-3, .grid-2, .plans-grid, .details-grid, .sidebar-grid {
  display: grid;
  gap: 18px;
}
.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.grid-3, .plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .plan-card, .agent-card, .callout, .side-card { padding: 24px; }
.card h3, .agent-card h3, .plan-name, .section-title, .callout-title {
  margin: 16px 0 10px;
  font-size: 1.34rem;
}
.section-title {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.section-copy { max-width: 45rem; color: var(--muted); margin: 14px 0 0; line-height: 1.72; }
.plan-card {
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 207, 251, 0.22), transparent 70%);
}
.plan-card--featured { border-color: var(--border-strong); background: linear-gradient(180deg, rgba(10, 27, 34, 0.92), rgba(6, 10, 13, 0.98)); }
.plan-price {
  margin: 8px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}
.plan-price span { font-size: 1rem; color: var(--muted); }
.bullet-list { margin: 16px 0 0; padding-left: 18px; }
.bullet-list li + li { margin-top: 8px; }
.agent-card__head, .detail-card__head, .footer-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(280px, 0.26fr);
  gap: 20px;
}
.sidebar-grid { grid-template-columns: 1fr; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid { display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-size: 0.94rem; color: var(--muted); }
input, textarea, select {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(54, 207, 251, 0.18);
  background: rgba(8, 17, 22, 0.98);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
input::placeholder, textarea::placeholder { color: rgba(141, 168, 183, 0.82); }
input:hover, textarea:hover, select:hover { border-color: rgba(54, 207, 251, 0.28); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(54, 207, 251, 0.7);
  box-shadow: 0 0 0 4px rgba(54, 207, 251, 0.12);
  background: rgba(9, 20, 26, 1);
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
select option { background: #0b1418; color: var(--text); }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(8, 17, 22, 0.98) inset;
  transition: background-color 9999s ease-in-out 0s;
}
textarea { min-height: 130px; resize: vertical; }
.flash {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.flash.success { border-color: rgba(16, 185, 129, 0.28); background: rgba(16,185,129,0.08); color: #9bf2d2; }
.flash.error { border-color: rgba(239, 68, 68, 0.26); background: rgba(239,68,68,0.08); color: #ffcece; }
.details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.detail-card, .metric-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(54, 207, 251, 0.1);
  background: rgba(7, 14, 18, 0.9);
}
.footer-card { padding: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1060px) {
  .site-header-inner { grid-template-columns: auto auto; }
  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 84px;
    display: none;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(6, 10, 13, 0.98);
    box-shadow: var(--shadow);
  }
  body.menu-open .site-nav { display: block; }
  .nav-links, .header-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-links { display: flex; gap: 8px; border-radius: 22px; }
  .nav-links a, .header-actions .button, .lang-switcher__button { width: 100%; }
  .header-actions { margin-top: 12px; }
  .lang-switcher__menu { position: static; width: 100%; margin-top: 10px; opacity: 1; pointer-events: auto; transform: none; display: none; }
  .lang-switcher.open .lang-switcher__menu { display: block; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; justify-self: end; }
  .hero, .grid-3, .grid-2, .plans-grid, .details-grid, .page-grid, .field-grid, .callout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .section { width: min(calc(100% - 20px), var(--max-width)); }
  .hero-copy, .hero-panel, .panel, .card, .plan-card, .agent-card, .form-card, .status-card, .callout, .footer-card, .side-card { border-radius: 22px; }
  .hero-actions, .page-actions, .status-actions { flex-direction: column; }
  .button { width: 100%; }
}
