:root {
  --bg: #080c14;
  --bg2: #0e1420;
  --bg3: #141c2e;
  --surface: #1a2235;
  --border: rgba(99,140,255,0.12);
  --border2: rgba(99,140,255,0.22);
  --accent: #638cff;
  --accent2: #a78bfa;
  --accent-glow: rgba(99,140,255,0.15);
  --text: #e8edf8;
  --text2: #8892aa;
  --text3: #4a5570;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::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: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.logo-icon { color: var(--accent); font-size: 20px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: -100px;
  background-image:
    linear-gradient(rgba(99,140,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,140,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,140,255,0.08);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(0.8)} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--accent); }
.hero-title em { font-style: normal; color: var(--accent2); }

.hero-sub {
  font-size: 17px;
  color: var(--text2);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta-group { display: flex; align-items: center; gap: 20px; margin-bottom: 48px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  letter-spacing: -0.2px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,140,255,0.35); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border); background: var(--surface); }

.hero-meta { font-size: 13px; color: var(--text3); }

.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-n { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); }
.stat-l { font-size: 12px; color: var(--text3); }
.stat-div { width: 1px; height: 32px; background: var(--border2); }

/* HERO VISUAL */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.laptop-mock {
  width: 340px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.laptop-screen {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px 12px 0 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.laptop-base {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-top: none;
  height: 16px;
  border-radius: 0 0 8px 8px;
  margin: 0 -10px;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  animation: slideIn 0.6s ease both;
}
.mc1 { animation-delay: 0.2s; border-color: rgba(99,140,255,0.4); }
.mc2 { animation-delay: 0.4s; }
.mc3 { animation-delay: 0.6s; }
@keyframes slideIn { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:translateX(0)} }

.mc-tag {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.mc-name { flex: 1; color: var(--text); font-weight: 500; }
.mc-price { color: var(--green); font-weight: 600; white-space: nowrap; }

/* ===== QUIZ OVERLAY ===== */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4,6,12,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}
.quiz-overlay.hidden { display: none; }

@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.quiz-container {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 28px;
  animation: scaleIn 0.3s ease;
}
@keyframes scaleIn { from{transform:scale(0.96);opacity:0} to{transform:scale(1);opacity:1} }

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.quiz-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}
.quiz-close {
  background: transparent;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.2s;
}
.quiz-close:hover { background: var(--surface); color: var(--text); }

.quiz-progress-bar {
  height: 3px;
  background: var(--surface);
  border-radius: 99px;
  margin-bottom: 10px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 8.33%;
}

.quiz-step-label { font-size: 12px; color: var(--text3); margin-bottom: 24px; }

.quiz-body { min-height: 240px; }

.q-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.q-sub { font-size: 14px; color: var(--text2); margin-bottom: 20px; }

.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-options.single { grid-template-columns: 1fr; }
.q-options.three { grid-template-columns: 1fr 1fr 1fr; }

.q-option {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
}
.q-option:hover { border-color: var(--border2); background: var(--bg3); }
.q-option.selected { border-color: var(--accent); background: rgba(99,140,255,0.08); color: var(--accent); }
.q-option .opt-icon { font-size: 20px; display: block; margin-bottom: 6px; }
.q-option .opt-label { font-weight: 500; display: block; }
.q-option .opt-desc { font-size: 12px; color: var(--text3); display: block; margin-top: 2px; }
.q-option.selected .opt-desc { color: var(--accent); opacity: 0.7; }

.slider-wrap { padding: 16px 0; }
.slider-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.slider-val span { font-size: 16px; color: var(--text2); font-weight: 400; }
input[type=range].q-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--surface);
  border-radius: 99px;
  outline: none;
  margin: 12px 0;
}
input[type=range].q-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg2);
  box-shadow: 0 0 0 2px var(--accent);
}
.slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== HOW IT WORKS ===== */
.how {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 48px;
  letter-spacing: -1px;
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.step-card:hover { border-color: var(--border2); }
.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: rgba(99,140,255,0.08);
  line-height: 1;
  position: absolute;
  top: 12px; right: 16px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.step-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ===== SEO CONTENT ===== */
.seo-content { padding: 80px 24px; }
.seo-content h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.seo-content > .section-inner > p { font-size: 15px; color: var(--text2); max-width: 700px; line-height: 1.8; margin-bottom: 40px; }
.seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.seo-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.seo-card:hover { border-color: var(--border2); }
.seo-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.seo-card p { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 14px; }
.link-arrow { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; }
.link-arrow:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}
.footer-brand p { font-size: 13px; color: var(--text3); font-family: var(--font-body); font-weight: 400; margin-top: 4px; }
.footer-brand a { color: var(--accent); text-decoration: none; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text2); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal p { font-size: 12px; color: var(--text3); line-height: 1.7; margin-bottom: 6px; }

/* RESULTS PAGE STYLES */
.results-page { max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.results-title { font-family: var(--font-display); font-size: 36px; font-weight: 800; margin-bottom: 8px; letter-spacing: -1px; }
.results-sub { color: var(--text2); margin-bottom: 40px; font-size: 15px; }
.laptop-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.laptop-card:hover { border-color: var(--border2); }
.laptop-card.top-pick { border-color: rgba(99,140,255,0.5); background: rgba(99,140,255,0.04); }
.laptop-img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--surface); border-radius: 8px; }
.laptop-info {}
.laptop-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; margin-bottom: 8px; }
.laptop-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.laptop-score { font-size: 13px; color: var(--green); margin-bottom: 10px; font-weight: 500; }
.laptop-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.spec-tag { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-size: 12px; color: var(--text2); }
.laptop-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; min-width: 140px; }
.laptop-price { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); }
.btn-buy {
  background: var(--amber);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  text-align: center;
  width: 100%;
}
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(251,191,36,0.3); }

/* Admin styles */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.admin-login-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 380px;
}
.admin-login-box h1 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.admin-login-box p { font-size: 13px; color: var(--text3); margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent); }
.form-error { font-size: 13px; color: var(--red); margin-top: 8px; display: none; }
.admin-watermark { font-size: 11px; color: var(--text3); text-align: center; margin-top: 20px; }

/* Dashboard */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-brand { padding: 0 20px 20px; font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.sidebar-link {
  padding: 10px 20px;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover { color: var(--text); background: var(--surface); }
.sidebar-link.active { color: var(--accent); border-left-color: var(--accent); background: rgba(99,140,255,0.06); }
.admin-main { padding: 32px; overflow-y: auto; }
.admin-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.5px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-box-label { font-size: 12px; color: var(--text3); margin-bottom: 8px; }
.stat-box-val { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); }
.stat-box-sub { font-size: 12px; color: var(--green); margin-top: 4px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 12px 16px; color: var(--text3); font-size: 12px; font-weight: 500; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.data-table tr:hover td { background: var(--surface); }
.table-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { display: none; }
  .steps-grid, .seo-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .laptop-card { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .q-options.three { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
