@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --accent: #1a8cff;
  --accent2: #0066dd;
  --accent-glow: rgba(26,140,255,0.25);
  --red: #ef4444;
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --card: #111120;
  --card2: #16162a;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(26,140,255,0.4);
  --text: #f1f1f5;
  --text-dim: #6b7280;
  --text-mid: #9ca3af;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26,140,255,0.12), transparent);
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .logo-icon { font-size: 1.2rem; }
.nav-logo span.brand { color: var(--accent); }

.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions { display: flex; gap: 0.7rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(26,140,255,0.3), 0 4px 12px rgba(26,140,255,0.3);
}
.btn-primary:hover {
  background: #1070cc;
  box-shadow: 0 0 0 1px rgba(26,140,255,0.5), 0 6px 20px rgba(26,140,255,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); }

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  padding: 7px 16px;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.btn-sm { padding: 6px 14px; font-size: 0.78rem; }

main { padding-top: 60px; position: relative; z-index: 1; }

/* HERO */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(26,140,255,0.1);
  border: 1px solid rgba(26,140,255,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #60b0ff;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: #6366f1;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  animation: fadeUp 0.6s 0.08s ease both;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(135deg, #1a8cff, #0066dd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.6s 0.16s ease both;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.24s ease both;
  margin-bottom: 5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.32s ease both;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  letter-spacing: -1px;
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }

@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* SECTIONS */
.page-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { margin-bottom: 3.5rem; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.8rem;
  background: rgba(26,140,255,0.1);
  padding: 3px 10px;
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 0.8rem;
}

.section-desc { color: var(--text-dim); font-size: 1rem; max-width: 500px; line-height: 1.8; }

.hr { max-width: 100%; border: none; height: 1px; background: var(--border); }

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background: var(--card);
  padding: 2rem;
  transition: background 0.25s;
}
.feature-card:hover { background: var(--card2); }

.feature-icon { font-size: 2rem; margin-bottom: 1.2rem; display: block; }
.feature-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.7; }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  align-items: start;
}

.price-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  transition: all 0.25s;
}
.price-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); }

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--card2), var(--card));
  box-shadow: 0 0 0 1px rgba(26,140,255,0.2), 0 20px 50px rgba(26,140,255,0.1);
}
.price-card.featured:hover { box-shadow: 0 0 0 1px rgba(26,140,255,0.4), 0 25px 60px rgba(26,140,255,0.15); }

.price-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1a8cff, #0055cc);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-tier { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.price-amount { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -2px; }
.price-amount sup { font-size: 1.2rem; vertical-align: super; letter-spacing: 0; }
.price-amount .suffix { font-size: 1rem; font-weight: 400; color: var(--text-dim); letter-spacing: 0; }
.price-duration { font-size: 0.82rem; color: var(--text-dim); margin: 0.6rem 0 1.8rem; }

.price-features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-dim); }
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; font-size: 0.85rem; }
.price-features li.hi { color: var(--text); font-weight: 500; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin-top: 3.5rem; }
.step { }
.step-num { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: rgba(26,140,255,0.12); line-height: 1; display: block; margin-bottom: -0.5rem; letter-spacing: -2px; }
.step h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--text); }
.step p { color: var(--text-dim); font-size: 0.875rem; line-height: 1.7; }

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.875rem; margin-top: 0.8rem; line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; color: var(--text-mid); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text-dim); }

/* AUTH */
.auth-page { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.auth-box h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.4rem; }
.auth-box .subtitle { color: var(--text-dim); font-size: 0.875rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-mid); margin-bottom: 0.5rem; }
.form-group input, .form-group select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  outline: none;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,140,255,0.12); }
.form-group input::placeholder { color: #3f3f5a; }
.form-link { display: block; text-align: center; margin-top: 1.2rem; font-size: 0.85rem; color: var(--text-dim); }
.form-link a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* DASHBOARD */
.dashboard-layout { display: flex; min-height: calc(100vh - 60px); }
.sidebar { width: 230px; flex-shrink: 0; background: var(--bg2); border-right: 1px solid var(--border); padding: 1.5rem 0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.sidebar-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-dim); padding: 0 1.2rem; margin: 1.2rem 0 0.5rem; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 0.65rem 1.2rem; text-decoration: none; color: var(--text-dim); font-size: 0.875rem; font-weight: 500; transition: all 0.15s; border-radius: 0; margin: 1px 0.6rem; border-radius: 8px; }
.sidebar-link span { font-size: 1rem; }
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-link.active { color: var(--text); background: rgba(26,140,255,0.12); }

.dashboard-content { flex: 1; padding: 2.5rem; overflow-x: hidden; }
.dash-header { margin-bottom: 2rem; }
.dash-header h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.3rem; }
.dash-header p { color: var(--text-dim); font-size: 0.9rem; }

.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.dash-card { background: var(--card); border: 1px solid var(--border); padding: 1.5rem; border-radius: 10px; transition: border-color 0.2s; }
.dash-card:hover { border-color: rgba(255,255,255,0.12); }
.dash-card-label { font-size: 0.75rem; font-weight: 500; color: var(--text-dim); margin-bottom: 0.6rem; }
.dash-card-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--text); letter-spacing: -1px; }
.dash-card-sub { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.3rem; }

.panel { background: var(--card); border: 1px solid var(--border); padding: 1.5rem; border-radius: 10px; margin-bottom: 1.2rem; }
.panel h3 { font-size: 0.875rem; font-weight: 600; color: var(--text-mid); margin-bottom: 1.3rem; text-transform: uppercase; letter-spacing: 0.3px; }

.license-display { display: flex; align-items: center; gap: 1rem; background: var(--bg2); border: 1px solid var(--border); padding: 0.9rem 1.2rem; border-radius: 8px; margin-bottom: 1.2rem; }
.license-display code { font-family: 'Courier New', monospace; font-size: 0.95rem; letter-spacing: 2px; color: #60b0ff; flex: 1; }

.activate-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.activate-row .form-group { flex: 1; min-width: 200px; margin: 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; font-size: 0.72rem; letter-spacing: 0.2px; font-weight: 600; border-radius: 100px; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-active { background: rgba(34,197,94,0.1); color: #4ade80; }
.badge-expired { background: rgba(239,68,68,0.1); color: #f87171; }
.badge-none { background: rgba(100,100,120,0.15); color: var(--text-dim); }

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.download-card { background: var(--bg2); border: 1px solid var(--border); padding: 1.5rem; border-radius: 10px; display: flex; flex-direction: column; gap: 0.8rem; transition: border-color 0.2s; }
.download-card:hover { border-color: rgba(255,255,255,0.12); }
.download-card h4 { font-size: 0.9rem; font-weight: 600; }
.download-card .version { font-size: 0.75rem; color: var(--text-dim); }
.download-card p { color: var(--text-dim); font-size: 0.83rem; flex: 1; line-height: 1.6; }

.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--card2); border: 1px solid var(--border); padding: 0.85rem 1.3rem; font-size: 0.85rem; color: var(--text); z-index: 9999; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); animation: slideIn 0.3s ease, fadeOut 0.3s 2.5s ease forwards; }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-dim); padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
td { padding: 0.9rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-dim); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; padding: 0.8rem; display: flex; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-label { display: none; }
  .sidebar-link { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
  .dashboard-content { padding: 1.5rem; }
  .activate-row { flex-direction: column; }
  .hero-stats { gap: 2rem; }
}
