:root {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #18181c;
  --border: #27272d;
  --border-hover: #3f3f4a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

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

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: grid;
  place-items: center;
  color: #04130d;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 5px;
  cursor: pointer;
}
.lang-btn.active {
  background: var(--surface-2);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--border-hover); background: var(--surface-2); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #03150e;
}
.btn-primary:hover { background: #34d399; border-color: #34d399; }
.btn-full { width: 100%; margin-top: auto; }

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(680px 320px at 12% 0%, rgba(16, 185, 129, 0.09), transparent 70%),
    radial-gradient(600px 280px at 88% 10%, rgba(56, 189, 248, 0.06), transparent 70%);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 820px;
}
.hero-sub {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 28px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.metric-val {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.metric-label {
  font-size: 0.82rem;
  color: var(--dim);
  margin-top: 4px;
}

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.section-head {
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-highlight {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), var(--surface) 45%);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.tag-green { background: var(--accent-soft); color: #34d399; }
.tag-amber { background: var(--amber-soft); color: #fbbf24; }
.tag-blue { background: var(--blue-soft); color: #7dd3fc; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price-sub {
  font-size: 0.84rem;
  color: var(--dim);
}
.plan-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  min-height: 42px;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(63, 63, 74, 0.45);
  padding-bottom: 6px;
}
.spec-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: right;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text);
}

.note-box {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ToS Layout */
.tos-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}
.tos-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 28px;
}
.tos-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.tos-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.tos-block p, .tos-block li {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.tos-block p:last-child { margin-bottom: 0; }
.tos-block ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

footer {
  padding: 36px 0;
  color: var(--dim);
  font-size: 0.88rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a:hover { color: var(--text); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .metrics, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
}

.billing-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 24px;
}
.bill-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
}
.bill-btn:hover { color: var(--text); }
.bill-btn.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-hover);
}
.bill-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: #34d399;
}
.price-old {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--dim);
  text-decoration: line-through;
  margin-right: 4px;
}
