:root{
  --bg: #161616;
  --surface: #1c1c1c;
  --border: #2e2e2e;
  --text-main: #ededed;
  --text-muted: #858585;
  --primary: #3ecf8e;
  --primary-hover: #34b27b;
  --primary-light: rgba(62, 207, 142, 0.15);
  --danger: #ef4444;
  --container: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text-main); letter-spacing: -0.02em; }

.container { width: min(var(--container), 92vw); margin-inline: auto; }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22, 22, 22, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.brand-logo-anim { width: 24px; height: 24px; color: var(--primary); display: flex; align-items: center; }
.brand-logo-anim svg { width: 100%; height: 100%; overflow: visible; }
.logo-path {
  fill: none; stroke: currentColor; stroke-width: 5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: logo-draw 2s linear infinite;
}
@keyframes logo-draw {
  0% { stroke-dashoffset: 200; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}

.nav-links { display: flex; gap: 16px; align-items: center; }

/* Layout */
.wrap { padding: 60px 0; }
.grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

/* Cards */
.card, .plan-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* Form Elements */
.badge {
  display: inline-block; padding: 4px 12px;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid rgba(62, 207, 142, 0.2);
  font-size: 12px; font-weight: 600; border-radius: 50px;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em;
}

.title { font-size: 28px; margin-bottom: 12px; }
.lead { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

.field { margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--text-main); margin-bottom: 8px; }
input {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: var(--text-main); padding: 10px 12px; border-radius: 6px;
  font-size: 14px; outline: none; transition: border-color 0.2s;
  font-family: inherit;
}
input:focus { border-color: var(--primary); }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.2s; border: 1px solid transparent;
  text-decoration: none;
}
.btn.primary { background: var(--primary); color: #000; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.secondary { background: transparent; border-color: var(--border); color: var(--text-main); }
.btn.secondary:hover { border-color: var(--text-muted); }
.btn.full-width { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Plan Box */
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.price { font-size: 32px; font-weight: 700; color: var(--text-main); margin: 0 0 24px; letter-spacing: -0.02em; }
.price span { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.features { display: grid; gap: 12px; }
.feat { display: flex; gap: 10px; font-size: 14px; color: var(--text-muted); align-items: center; }
.dot {
  width: 8px; height: 8px;
  background: var(--primary); border-radius: 50%; flex-shrink: 0;
}

/* Error & Loader */
.error {
  display: none; margin-top: 20px; padding: 12px;
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger); border-radius: 6px; font-size: 13px;
}
.spinner {
  display: none; width: 16px; height: 16px; margin-left: 10px;
  border: 2px solid rgba(0,0,0,0.1); border-left-color: #000;
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }