:root{
  --bg:#0b1220;
  --card:#0f1a33;
  --muted:#9fb0d0;
  --text:#eaf0ff;
  --accent:#6ee7ff;
  --accent2:#a78bfa;
  --border:rgba(255,255,255,.10);
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius:18px;
  --max:1100px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(110,231,255,.12), transparent 60%),
    radial-gradient(700px 420px at 85% 15%, rgba(167,139,250,.14), transparent 55%),
    linear-gradient(180deg, #070b14, var(--bg));
  color:var(--text);
  line-height:1.5;
}

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

.wrap{max-width:var(--max); margin:0 auto; padding:24px}

/* ===== NAV ===== */
.nav{
  position:sticky;
  top:0;
  z-index:100;
  background: rgba(11,18,32,0.92);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--border);
}

.nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position:relative;
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:800;
  text-decoration:none;
}

.nav-logo{
  height:44px;
  width:auto;
  border-radius:8px;
}

/* Desktop nav links */
.links{
  display:flex;
  gap:4px;
}

.links a{
  color: rgba(234,240,255,0.78);
  font-weight:700;
  padding:8px 14px;
  border-radius:10px;
  transition: background 0.2s ease, color 0.2s ease;
  font-size:14px;
}

.links a:hover{
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.links a.active{
  color: var(--accent);
  background: rgba(110,231,255,0.08);
}

.nav-cta{ font-size:13px; padding:10px 16px; }

/* Hamburger button */
.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  padding:10px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}

.menu-toggle span{
  display:block;
  width:22px;
  height:2px;
  background: rgba(234,240,255,0.92);
  border-radius:2px;
  transition: all 0.3s ease;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}

.btn.primary{
  border:none;
  background: linear-gradient(135deg, rgba(110,231,255,.95), rgba(167,139,250,.95));
  color:#06101b;
  box-shadow: 0 0 20px rgba(110,231,255,.3);
  transition: all 0.3s ease;
}

.btn.primary:hover{
  box-shadow: 0 0 30px rgba(110,231,255,.5), 0 0 60px rgba(110,231,255,.25);
}

/* ===== Layout / Typography ===== */
.hero{
  padding:44px 0;
  position:relative;
  overflow:hidden;
}

.hero::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(800px 500px at 50% 0%, rgba(110,231,255,.08), transparent 50%),
    radial-gradient(600px 600px at 30% 80%, rgba(167,139,250,.06), transparent 60%);
  animation: electricPulse 4s ease-in-out infinite;
}

.hero .grid{
  position:relative;
  z-index:1;
}

.hero .card{
  position:relative;
  display:flex;
  flex-direction:column;
  padding:24px 20px;
}

.hero .card:first-child{
  box-shadow: 0 0 30px rgba(110,231,255,.15), var(--shadow);
  min-height:auto;
  justify-content:flex-start;
}

.hero h1{
  background: linear-gradient(135deg, var(--text), rgba(110,231,255,.9));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation: electricGlow 3s ease-in-out infinite;
}

@keyframes electricPulse{
  0%, 100%{ opacity:0.8; }
  50%{ opacity:1; }
}

@keyframes electricGlow{
  0%, 100%{
    filter:drop-shadow(0 0 8px rgba(110,231,255,.3));
    text-shadow:none;
  }
  50%{
    filter:drop-shadow(0 0 16px rgba(110,231,255,.5));
    text-shadow:0 0 10px rgba(110,231,255,.4);
  }
}

.grid{
  display:grid;
  gap:18px;
  grid-template-columns: 1.2fr .8fr;
}

.card{
  background: rgba(15,26,51,.78);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:20px;
}

h1{font-size:42px;margin:0 0 10px}
h2{font-size:22px;margin:0 0 12px}
h3{margin:0 0 8px}

.sub{color:var(--muted);margin-bottom:16px}
.small{font-size:13px;color:var(--muted)}

.section{padding:24px 0}

/* Common rows */
.price{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  padding:14px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  margin-top:10px;
}

.price strong{font-weight:800}

.price .small{
  white-space:nowrap;
  margin-left:auto;
  text-align:right;
}

/* Inputs */
input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
  font-size:14px;
}

/* ===== Footer ===== */
.footer{
  padding:40px 0 30px;
  color:var(--muted);
  font-size:13px;
  border-top:1px solid var(--border);
  margin-top:40px;
}

.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:0 24px;
  text-align:center;
}

.footer-links{
  display:flex;
  justify-content:center;
  gap:20px;
  margin-bottom:16px;
}

.footer-links a{
  color:var(--muted);
  font-weight:600;
  transition: color 0.2s;
}

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

/* ===== Page Styles ===== */
.page-header{
  text-align:center;
  padding:48px 0 24px;
}

.page-header h1{
  font-size:36px;
  margin-bottom:8px;
}

.page-header p{
  color:var(--muted);
  max-width:520px;
  margin:0 auto;
}

.content-card{
  max-width:720px;
  margin:0 auto 20px;
}

.content-card h3{
  color:var(--accent);
  margin-top:20px;
}

.content-card p,
.content-card li{
  color:var(--muted);
  line-height:1.7;
}

.content-card ul{
  padding-left:20px;
}

/* Contact form */
.contact-form{
  max-width:520px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.contact-form textarea{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
  font-size:14px;
  font-family:inherit;
  resize:vertical;
  min-height:140px;
}

.contact-form .btn{
  align-self:flex-start;
}

/* Pricing page */
.pricing-section{
  max-width:820px;
  margin:0 auto;
}

.pricing-section .tier-grid{
  max-width:720px;
  margin:0 auto 30px;
}

/* ===== Responsive ===== */
@media(max-width:900px){
  .grid{ grid-template-columns:1fr; }
}

@media (max-width:700px){
  .wrap{ padding:16px; }

  h1{
    font-size:34px;
    line-height:1.15;
  }

  .hero h3{
    font-size:18px;
    margin-top:6px;
  }

  .hero .btn{ width:100%; }
  .price{ flex-wrap:wrap; }
  .price .small{ white-space:normal; }

  /* Mobile hamburger */
  .menu-toggle{
    display:flex;
  }

  .links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    background:rgba(11,18,32,0.97);
    backdrop-filter:blur(16px);
    border-bottom:1px solid var(--border);
    padding:12px 24px;
    gap:2px;
  }

  .links a{
    padding:12px 14px;
    font-size:16px;
  }

  body.menu-open .links{
    display:flex;
  }

  body.menu-open .menu-toggle span:nth-child(1){
    transform: translateY(6px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2){
    opacity:0;
  }

  body.menu-open .menu-toggle span:nth-child(3){
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-cta{
    display:none;
  }

  .page-header{ padding:32px 0 16px; }
  .page-header h1{ font-size:28px; }
}

/* ===== Quiz Styles ===== */
.quiz-card{ max-width:720px; margin:0 auto; }

.hidden{ display:none !important; }

/* Exam selection */
.exam-select{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:12px;
}

.exam-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:18px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  transition: all 0.25s ease;
}

.exam-btn:hover{
  background:rgba(110,231,255,.08);
  border-color:rgba(110,231,255,.3);
}

.exam-btn.selected{
  background:rgba(110,231,255,.12);
  border-color:var(--accent);
  box-shadow: 0 0 16px rgba(110,231,255,.2);
}

.exam-icon{
  font-size:22px;
  font-weight:900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.exam-label{
  font-weight:700;
  font-size:14px;
}

/* Length selection */
.length-select{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.length-btn{
  padding:10px 20px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition: all 0.2s ease;
}

.length-btn:hover{
  background:rgba(110,231,255,.08);
  border-color:rgba(110,231,255,.3);
}

.length-btn.selected{
  background:rgba(110,231,255,.12);
  border-color:var(--accent);
}

/* Begin button */
.quiz-begin{
  margin-top:24px;
  width:100%;
  padding:14px;
  font-size:16px;
  opacity:0.5;
  cursor:not-allowed;
  transition: opacity 0.3s;
}

.quiz-begin.ready{
  opacity:1;
  cursor:pointer;
}

/* Quiz header / progress */
.quiz-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:20px;
}

.quiz-progress-wrap{ flex:1; }

.quiz-progress-bar{
  height:8px;
  border-radius:8px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
  margin-bottom:6px;
}

.quiz-progress-fill{
  height:100%;
  width:0%;
  border-radius:8px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.4s ease;
}

.quiz-score{
  white-space:nowrap;
  font-weight:700;
}

/* Question */
.quiz-question{
  font-size:18px;
  font-weight:600;
  line-height:1.5;
  margin-bottom:18px;
}

/* Options */
.quiz-options{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.quiz-option{
  width:100%;
  text-align:left;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:15px;
  cursor:pointer;
  transition: all 0.2s ease;
}

.quiz-option:hover:not(:disabled){
  background:rgba(110,231,255,.08);
  border-color:rgba(110,231,255,.3);
}

.quiz-option:disabled{ cursor:default; }

.quiz-option.correct{
  background:rgba(107,207,127,.15);
  border-color:rgba(107,207,127,.6);
  color:#6bcf7f;
}

.quiz-option.wrong{
  background:rgba(255,71,87,.12);
  border-color:rgba(255,71,87,.5);
  color:#ff6b6b;
}

/* Feedback */
.quiz-feedback{
  margin-top:16px;
  padding:16px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
}

.feedback-header{
  font-weight:800;
  font-size:16px;
  margin-bottom:8px;
}

.feedback-header.correct{ color:#6bcf7f; }
.feedback-header.wrong{ color:#ff6b6b; }

.feedback-explain{
  font-size:14px;
  color:var(--muted);
  margin:0;
  line-height:1.6;
}

/* Next button */
.quiz-next{
  margin-top:18px;
  width:100%;
  padding:14px;
  opacity:0.5;
  cursor:not-allowed;
  transition: opacity 0.3s;
}

.quiz-next.ready{
  opacity:1;
  cursor:pointer;
}

/* Results */
.result-title{
  text-align:center;
  font-size:24px;
  margin-bottom:20px;
}

.result-ring-wrap{
  position:relative;
  width:140px;
  height:140px;
  margin:0 auto 16px;
}

.result-ring{
  width:100%;
  height:100%;
}

.result-ring-text{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.result-pct{
  font-size:28px;
  font-weight:900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.result-score{
  text-align:center;
  font-size:16px;
  color:var(--muted);
  margin:0 0 8px;
}

.result-msg{
  text-align:center;
  font-weight:700;
  font-size:16px;
  margin:0 0 20px;
}

.result-msg.great{ color:#6bcf7f; }
.result-msg.good{ color:var(--accent); }
.result-msg.okay{ color:#ffd93d; }
.result-msg.needs-work{ color:#ff6b6b; }

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

.result-actions .btn{
  min-width:140px;
  justify-content:center;
}

/* Loading state */
.loading-wrap{
  text-align:center;
  padding:40px 20px;
}

.loading-spinner{
  width:48px;
  height:48px;
  border:4px solid rgba(255,255,255,.1);
  border-top-color:var(--accent);
  border-radius:50%;
  margin:0 auto 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

.loading-text{
  font-weight:700;
  font-size:16px;
  margin:0 0 8px;
}

/* ===== Quiz Responsive ===== */
@media (max-width:700px){
  .exam-select{ grid-template-columns:repeat(2,1fr); }
  .length-select{ flex-wrap:wrap; }
  .quiz-question{ font-size:16px; }
  .result-actions{ flex-direction:column; align-items:stretch; }
  .result-actions .btn{ min-width:auto; }
}

@media (max-width:480px){
  h1{ font-size:30px; }
  input{ padding:11px 11px; }
}

/* ═══════════ Paywall ═══════════ */

.paywall-price{
  text-align:center;
  margin:24px 0 20px;
}

.paywall-amount{
  font-size:48px;
  font-weight:800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.paywall-period{
  display:block;
  font-size:14px;
  color:var(--muted);
  margin-top:4px;
}

.paywall-features{
  list-style:none;
  padding:0;
  margin:0 0 24px;
  text-align:left;
  max-width:340px;
  margin-left:auto;
  margin-right:auto;
}

.paywall-features li{
  padding:6px 0 6px 24px;
  position:relative;
  color:var(--muted);
}

.paywall-features li::before{
  content:"\2713";
  position:absolute;
  left:0;
  color:var(--accent);
  font-weight:700;
}

/* Tier grid */
.tier-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:24px;
}

.tier-card{
  position:relative;
  padding:20px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
}

.tier-card.popular{
  border-color:var(--accent);
  background:rgba(110,231,255,.06);
  box-shadow: 0 0 20px rgba(110,231,255,.15);
}

.tier-badge{
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  padding:2px 12px;
  border-radius:20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#06101b;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}

.tier-name{
  font-weight:700;
  font-size:15px;
  margin-top:4px;
}

.tier-price{
  font-size:32px;
  font-weight:900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.tier-unit{
  font-size:16px;
  font-weight:700;
}

.tier-desc{
  margin-bottom:4px;
}

.tier-buy{
  width:100%;
  padding:10px 16px;
  font-size:14px;
  margin-top:auto;
}

@media (max-width:600px){
  .tier-grid{ grid-template-columns:1fr; max-width:300px; margin-left:auto; margin-right:auto; }
}

.paywall-trial-section{
  border-top:1px solid var(--border);
  padding-top:20px;
  text-align:center;
  background: linear-gradient(135deg, rgba(110,231,255,0.04), rgba(167,139,250,0.04));
  margin:0 -20px;
  padding:20px 20px;
}

.paywall-code-section{
  border-top:1px solid var(--border);
  padding-top:20px;
  text-align:center;
}

.paywall-code-input{
  display:flex;
  gap:8px;
  max-width:380px;
  margin:10px auto 0;
}

.paywall-code-input input{
  flex:1;
  padding:10px 14px;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:10px;
  color:var(--text);
  font-size:14px;
}

.code-error{
  color:#ff6b6b;
  margin-top:8px;
}

/* Email success display */

.access-code-display{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:12px 0 16px;
}

.access-code-display code{
  font-size:16px;
  font-weight:700;
  padding:12px 20px;
  background:var(--bg);
  border:2px solid var(--accent);
  border-radius:12px;
  color:var(--accent);
  word-break:break-all;
}

/* Free banner */

.free-banner{
  background: linear-gradient(135deg, rgba(110,231,255,0.1), rgba(167,139,250,0.1));
  border:1px solid rgba(110,231,255,0.2);
  border-radius:10px;
  padding:10px 16px;
  text-align:center;
  font-size:13px;
  font-weight:600;
  color:var(--accent);
  margin-bottom:16px;
}

/* Access status */

.access-status{
  text-align:center;
  margin-bottom:12px;
  padding:8px 16px;
  background:rgba(110,231,255,0.06);
  border-radius:10px;
  border:1px solid rgba(110,231,255,0.15);
}

/* Result upgrade prompt */

.result-upgrade{
  margin:20px 0;
  padding:16px;
  background: linear-gradient(135deg, rgba(110,231,255,0.08), rgba(167,139,250,0.08));
  border:1px solid rgba(110,231,255,0.2);
  border-radius:12px;
  text-align:center;
}

.result-upgrade .btn{
  margin-top:10px;
}
