:root {
  --bg: #07131a;
  --bg-2: #0c1d27;
  --panel: #102533;
  --line: #1e3a4a;
  --text: #e7f2f7;
  --muted: #8aa3b2;
  --accent: #1ec8a5;
  --accent-2: #0f9f82;
  --warn: #f0b429;
  --danger: #ef5b5b;
  --ok: #3dd68c;
  --font: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
  --display: "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(30, 200, 165, 0.18), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(56, 120, 180, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg), #050d12 70%);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid rgba(30, 58, 74, 0.7);
  margin-bottom: 28px;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}

.brand span { color: var(--accent); }

.nav-links { display: flex; gap: 14px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 650;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #042119;
}

.btn-primary:hover { filter: brightness(1.05); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

.btn-danger {
  background: #4a1d1d;
  color: #ffd4d4;
  border: 1px solid #7a2e2e;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  padding: 18px 0 40px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 38rem;
}

.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.hero-panel {
  background: linear-gradient(160deg, rgba(16,37,51,0.95), rgba(8,24,34,0.95));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0,0,0,0.2);
}

.section-title {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 10px 0 18px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}

.plans-4 {
  grid-template-columns: repeat(4, 1fr);
}

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.plan.featured {
  border-color: rgba(30, 200, 165, 0.55);
  box-shadow: 0 0 0 1px rgba(30,200,165,0.2), 0 18px 40px rgba(0,0,0,0.25);
}

.plan h3 { font-size: 1.15rem; }
.plan .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.plan .desc { color: var(--muted); flex: 1; line-height: 1.45; }

.auth-card, .panel {
  width: min(480px, 100%);
  margin: 10px auto 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.panel.wide { width: min(1000px, 100%); }

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px 0 6px;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.error {
  background: rgba(239, 91, 91, 0.12);
  border: 1px solid rgba(239, 91, 91, 0.35);
  color: #ffc9c9;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.ok {
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(61, 214, 140, 0.35);
  color: #c9ffe4;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.stat .v { font-size: 1.5rem; font-weight: 750; }
.stat .l { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

.key-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #061018;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
  word-break: break-all;
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { color: var(--muted); font-weight: 600; }

.footer {
  margin: 40px 0 24px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 860px) {
  .hero, .plans, .plans-4, .grid-2 { grid-template-columns: 1fr; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .plans-4 { grid-template-columns: repeat(2, 1fr); }
}
