:root{
  --bg:#0b1020;
  --card:#121a33;
  --alt:#0f1630;
  --text:#e9ecff;
  --muted:#b9c0ffcc;
  --line:#ffffff1a;
  --brand1:#6ee7ff;
  --brand2:#a78bfa;
  --brand3:#34d399;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius:18px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(110,231,255,.15), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(167,139,250,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1120px, 92%); margin:0 auto; }

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.65);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
}
.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color:#081026; font-weight:800;
}
.brand-title{ font-weight:800; letter-spacing:.2px; }
.brand-sub{ font-size:12px; color:var(--muted); }

.menu{ display:flex; gap:18px; align-items:center; }
.menu a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
}
.menu a:hover{ background:rgba(255,255,255,.06); color:var(--text); }

.burger{
  display:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  font-size:18px;
}

.hero{ padding:56px 0 26px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:stretch;
}
.pill{
  display:inline-flex; gap:8px;
  padding:8px 12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
}
h1{
  margin:14px 0 10px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height:1.08;
}
.grad{
  background: linear-gradient(90deg, var(--brand1), var(--brand2), var(--brand3));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lead{ color:var(--muted); font-size:16px; line-height:1.6; max-width:54ch; }

.cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 18px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:700;
}
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  border:none;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color:#071024;
}
.btn.ghost{ background: rgba(255,255,255,.05); }
.btn.small{ padding:10px 12px; border-radius:12px; font-size:14px; }

.stats{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.stat{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding:14px;
}
.stat-num{ font-weight:900; font-size:18px; }
.stat-label{ color:var(--muted); font-size:12px; margin-top:4px; }

.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.video-card{ display:flex; flex-direction:column; height:100%; }
.card-head{ margin-bottom:10px; }
.card-title{ font-weight:900; font-size:18px; }
.card-sub{ color:var(--muted); font-size:13px; margin-top:4px; }

.video-wrap{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#000;
  aspect-ratio: 16 / 9;
}
.video-wrap iframe{ width:100%; height:100%; }

.card-foot{
  display:flex; gap:10px; margin-top:12px; flex-wrap:wrap;
}

.section{ padding:56px 0; }
.section.alt{ background: rgba(255,255,255,.03); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

.section-title h2{
  margin:0; font-size: clamp(24px, 2.2vw, 34px);
}
.section-title p{ margin:10px 0 22px; color:var(--muted); max-width:70ch; }

.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.grid2{ display:grid; grid-template-columns: repeat(2, 1fr); gap:14px; }

.badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  background: rgba(110,231,255,.16);
  border:1px solid rgba(110,231,255,.25);
  color: var(--text);
  margin-bottom:10px;
}
.badge.soft{
  background: rgba(167,139,250,.16);
  border:1px solid rgba(167,139,250,.25);
}

.mini-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

.note{
  margin-top:16px;
  padding:14px;
  border-radius: 16px;
  border:1px dashed rgba(255,255,255,.25);
  color: var(--muted);
  background: rgba(255,255,255,.03);
}

.feature{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding:16px;
}
.feature h3{ margin:0 0 8px; }
.feature p{ margin:0; color:var(--muted); line-height:1.6; }

.timeline{
  display:grid; gap:12px;
}
.step{
  display:grid;
  grid-template-columns: 18px 1fr;
  gap:12px;
  padding:14px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.dot{
  width:12px; height:12px; margin-top:6px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 0 0 4px rgba(110,231,255,.12);
}
.step h3{ margin:0 0 6px; }
.step p{ margin:0; color:var(--muted); line-height:1.6; }

.cta-banner{
  margin-top:18px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding:18px;
  border-radius: 18px;
  border:1px solid rgba(110,231,255,.22);
  background: radial-gradient(600px 220px at 30% 20%, rgba(110,231,255,.18), transparent 60%),
              radial-gradient(600px 220px at 70% 10%, rgba(167,139,250,.18), transparent 60%),
              rgba(255,255,255,.03);
}
.cta-banner h3{ margin:0 0 6px; }
.cta-banner p{ margin:0; color:var(--muted); }

.link-list{ display:grid; gap:10px; margin-top:10px; }
.link-list a{
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.link-list a:hover{ color:var(--text); background: rgba(255,255,255,.06); }
.small-note{ margin-top:12px; color:var(--muted); font-size:13px; }

.divider{ height:1px; background: var(--line); margin:14px 0; }
.muted{ color:var(--muted); line-height:1.6; }

.footer{
  padding:22px 0;
  border-top:1px solid var(--line);
  background: rgba(11,16,32,.7);
}
.footer-row{
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
}
.footer-links{ display:flex; gap:14px; }
.footer-links a:hover{ color:var(--text); }

@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .menu{ display:none; }
  .burger{ display:inline-flex; }
  .menu.open{
    display:flex;
    position:absolute;
    top:64px;
    right:4%;
    flex-direction:column;
    background: rgba(11,16,32,.96);
    border:1px solid var(--line);
    border-radius: 16px;
    padding:10px;
    width: 220px;
  }
}





.nav-link{
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
  font: inherit;
  color: var(--muted);
}

.nav-link:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

#user-info{
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}





/* Dashboard extras */
.course-card .price-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:10px 0 8px;
}
.course-card .price{
  font-size:28px;
  font-weight:900;
}
.lockbox, .unlockbox{
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}



/* Sale UI */
.price-stack{ display:flex; flex-direction:column; line-height:1.1; }
.old-price{
  font-size:14px;
  color: var(--muted);
  text-decoration: line-through;
  opacity: .9;
}
.right-meta{ display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.discount-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(34,197,94,.15);
}

.unlockPulse { animation: pulse 0.6s ease; }
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}


.exam-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: 'Inter', sans-serif;
}

.exam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: white;
  padding: 12px 20px;
}

.timer {
  font-weight: bold;
  font-size: 18px;
  background: #ef4444;
  padding: 6px 12px;
  border-radius: 6px;
}

.exam-main {
  display: flex;
  flex: 1;
}

.question-sidebar {
  width: 200px;
  background: #f8fafc;
  padding: 15px;
  border-right: 1px solid #e2e8f0;
}

.question-panel {
  flex: 1;
  padding: 25px;
  background: #ffffff;
}

.palette {
  width: 220px;
  background: #f1f5f9;
  padding: 15px;
  border-left: 1px solid #e2e8f0;
}

.navigation-buttons button {
  margin: 10px 5px;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

.navigation-buttons button:hover {
  background: #1d4ed8;
}

/* Palette colors */
.palette-btn {
  width: 40px;
  height: 40px;
  margin: 5px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.answered { background: #22c55e; color: white; }
.not-answered { background: #e5e7eb; }
.review { background: #f59e0b; color: white; }


.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:12px;
  font-weight:700;
}

@media (max-width: 900px){
  #free-test .card > div{
    grid-template-columns:1fr !important;
  }
}
