:root {
  --bg: #0f172a;
  --bg-alt: #111c34;
  --surface: #172544;
  --surface-2: #1e2f56;
  --border: #2a3b63;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1em; color: var(--text-dim); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a { color: var(--text-dim); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; gap: 0.75rem; align-items: center; }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #06283f; }
.btn-primary:hover { background: #5cd1ff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-danger { background: var(--red); color: #350a0a; }

/* Hero */
.hero {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
.hero p.lead { font-size: 1.2rem; max-width: 42rem; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.domain-search {
  max-width: 36rem;
  margin: 2.5rem auto 0;
  display: flex;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 999px;
}
.domain-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0.6rem 1rem;
  font-size: 1rem;
  outline: none;
}

/* Sections */
section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-alt { background: var(--bg-alt); }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { margin-bottom: 0.4rem; }
.icon-badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Pricing */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card .plan-name { font-weight: 700; font-size: 1.1rem; }
.price-card .plan-price { font-size: 2.2rem; font-weight: 800; }
.price-card .plan-price small { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; color: var(--text-dim); }
.price-card ul li::before { content: "✓ "; color: var(--green); font-weight: 700; }

table.price-table { width: 100%; border-collapse: collapse; }
table.price-table th, table.price-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.price-table th { color: var(--text-dim); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Forms */
.form-card {
  max-width: 28rem;
  margin: 3rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-wide { max-width: 40rem; }
label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}
.alert-error { background: rgba(248, 113, 113, 0.12); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); }
.alert-success { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.3); }

/* Badges */
.badge { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-green { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.badge-yellow { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.badge-red { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }
.badge-gray { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.badge-blue { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { color: var(--text); font-size: 0.95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* App shell (portal / admin) */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar .brand { display: block; padding: 0.5rem 0.75rem 1.5rem; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.92rem;
}
.sidebar a:hover { background: var(--surface); text-decoration: none; color: var(--text); }
.sidebar a.active { background: var(--surface-2); color: var(--text); }
.sidebar .sidebar-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.main { flex: 1; padding: 2rem 2.5rem; max-width: 1100px; }
.main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.main-header h1 { margin: 0; font-size: 1.6rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.stat-card .label { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.4rem; }
.stat-card .value { font-size: 1.8rem; font-weight: 700; }

table.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.data-table th, table.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem; }
table.data-table th { color: var(--text-dim); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; background: var(--surface-2); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table-wrap table.data-table { border-radius: 0; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-dim); }

@media (max-width: 900px) {
  .grid-3, .grid-2, .footer-grid, .field-row, .stat-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
  .sidebar .sidebar-footer { display: none; }
  .main { padding: 1.5rem; }
}
