:root {
  --bg-deep: #0c0c10;
  --bg-window: #121218;
  --bg-child: #17171e;
  --bg-frame: #1f1f28;
  --bg-hover: #2a2a35;
  --bg-active: #333340;
  --text-primary: #f4f4f8;
  --text-secondary: #9ca0b4;
  --text-muted: #6b7085;
  --accent: #8b7cff;
  --accent-hover: #a99bff;
  --radius: 14px;
  --radius-sm: 9px;
  --border: 1px solid rgba(255, 255, 255, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient glow */
.glow {
  position: fixed;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(139, 124, 255, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* NAV */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 16, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta { display: flex; gap: 10px; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: var(--border);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0c0c10;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 124, 255, 0.28);
}

.btn-ghost {
  background: var(--bg-frame);
  color: var(--text-primary);
}
.btn-ghost:hover {
  background: var(--bg-hover);
}

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 110px 24px 90px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-frame);
  border: var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 10px #6ee7a8;
  animation: pulse 2.2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 520px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* SECTIONS */
section {
  position: relative;
  z-index: 1;
  padding: 70px 0;
}

.section-head {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-window);
  border: var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  background: var(--bg-child);
  border-color: rgba(139, 124, 255, 0.22);
  transform: translateY(-4px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-frame);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* STATUS */
.status-panel {
  background: var(--bg-window);
  border: var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(110, 231, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6ee7a8;
}

.status-left h3 { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.status-left p { font-size: 13px; color: var(--text-muted); }

.status-meta {
  display: flex;
  gap: 36px;
  font-size: 13px;
}

.status-meta div span {
  display: block;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: 12px;
}

.status-meta div strong {
  font-size: 15px;
  font-weight: 600;
}

/* PORTAL / AUTH */
.portal-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-window);
  border: var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.portal-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.portal-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.input-group { margin-bottom: 14px; }

.input-group input {
  width: 100%;
  background: var(--bg-frame);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.18s ease;
}

.input-group input::placeholder { color: var(--text-muted); }

.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.15);
}

.portal-card .btn {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
}

/* RESULT BOX */
.result-box {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: none;
  border: var(--border);
}
.result-box.show { display: block; }
.result-box.success {
  background: rgba(110, 231, 168, 0.08);
  border-color: rgba(110, 231, 168, 0.25);
  color: #6ee7a8;
}
.result-box.error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.25);
  color: #ff8a8a;
}

/* AUTH TABS */
.auth-tabs {
  display: flex;
  margin-bottom: 22px;
  gap: 8px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--bg-frame);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border: var(--border);
  transition: all 0.18s ease;
}

.auth-tab.active {
  background: var(--accent);
  color: #0c0c10;
  border-color: var(--accent);
}

/* DASHBOARD */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 65px);
}

.dashboard-sidebar {
  background: var(--bg-window);
  border-right: var(--border);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.sidebar-tab:hover {
  background: var(--bg-frame);
  color: var(--text-primary);
}

.sidebar-tab.active {
  background: var(--accent);
  color: #0c0c10;
  font-weight: 600;
}

.dashboard-content {
  padding: 48px 40px;
  max-width: 860px;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.dashboard-stats {
  background: var(--bg-frame);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.dashboard-stats h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--accent);
}

.dashboard-stats p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* FAQ */
.faq-item {
  background: var(--bg-window);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 12px;
}

.faq-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 16, 0.88);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-window);
  border: var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.key-display {
  background: var(--bg-frame);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: monospace;
  font-size: 17px;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  user-select: all;
}

/* FOOTER */
footer {
  border-top: var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .status-panel { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 14px;
  }
  .sidebar-tab { white-space: nowrap; width: auto; }
  .dashboard-content { padding: 32px 20px; }
}