/* Core theme */
:root{
  --bg:#0a1122;
  --panel:#0b1730;
  --panel-2:#0a152b;
  --ink:#f2f6ff;
  --muted:#cfe0ff;
  --line:rgba(255,255,255,.22);
  --brand:#11c6ff;
  --brand-2:#2ad173;
  --shadow:0 18px 48px rgba(0,0,0,.55);
  --radius:18px;
  --maxw:1080px;
  --font-main:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  font:var(--font-main)/1.7 Inter,ui-sans-serif,system-ui,Segoe UI,Roboto,Arial;
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(17,198,255,.12), transparent 60%),
    radial-gradient(900px 500px at 92% -8%, rgba(42,209,115,.10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 80px),
    var(--bg);
  letter-spacing:.2px;
}
a{color:var(--brand);text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:20px}

/* Header and brand */
.header{background:none;border:none}
.brand{
  margin:0 auto 4px;
  padding:16px 0 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  position:relative;
}
.brand-img{
  height:56px;
  width:auto;
  display:block;
  position:relative;
  z-index:1;
  animation:logoFloat 2.8s ease-in-out infinite;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.7));
}
.brand-lockup{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand-name{
  font-weight:900;
  font-size:1.35rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.brand-tagline{
  font-size:.8rem;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.16em;
}
.brand-scanline{
  position:absolute;
  inset:auto 14px -2px 14px;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--brand),transparent);
  opacity:.45;
  animation:scanline 2.4s linear infinite;
}
@keyframes logoFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-3px);}
}
@keyframes scanline{
  0%{opacity:.15;}
  40%{opacity:.55;}
  100%{opacity:.15;}
}

/* Hero area */
.hero{
  padding:18px 0 10px;
  display:grid;
  gap:18px;
}
.title{
  font-weight:900;
  font-size:clamp(26px,4.4vw,40px);
  line-height:1.15;
}
.sub{
  color:var(--muted);
  font-size:.98rem;
}
.hero-points{
  margin:10px 0 0;
  padding-left:1.1rem;
  color:var(--muted);
  font-size:.9rem;
}
.hero-points li{margin-bottom:4px}
.hero-trust{
  margin-top:10px;
  font-size:.82rem;
  color:rgba(207,224,255,.9);
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(5,10,22,.85);
}

/* Cards */
.card{
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.panel-pad{padding:18px}

/* Quiz structure */
.quizCard{
  display:grid;
  gap:16px;
  padding:18px;
}
.progress{
  height:9px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
}
.bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  transition:width .22s ease;
}
.q{
  display:grid;
  gap:12px;
}
.qTitle{
  font-weight:800;
  font-size:.98rem;
}
.qDesc{
  color:var(--muted);
  font-size:.9rem;
}
.qList{
  display:grid;
  gap:12px;
}
.helper-note{
  font-size:.78rem;
  color:rgba(207,224,255,.86);
  margin-top:2px;
}

/* Ticker input */
.ticker-input{
  width:100%;
  padding:14px 14px;
  font-size:1rem;
  color:var(--ink);
  background:rgba(4,8,18,.96);
  border-radius:14px;
  border:1px solid var(--line);
  outline:none;
  transition:.18s ease;
}
.ticker-input::placeholder{
  color:rgba(207,224,255,.5);
}
.ticker-input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 1px rgba(17,198,255,.26);
}
.input-error{
  border-color:#ff6b81 !important;
  box-shadow:0 0 0 1px rgba(255,107,129,.35);
}

/* Step options */
.qItem{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(6,10,20,.86);
  cursor:pointer;
  transition:.16s ease;
  color:#e8efff;
}
.qItem:hover{
  border-color:rgba(17,198,255,.7);
  background:rgba(10,16,30,.98);
  transform:translateY(-1px);
}
.qItem:focus-visible{
  outline:2px solid var(--brand);
}
.radio{
  width:20px;
  height:20px;
  border:2px solid rgba(255,255,255,.9);
  border-radius:999px;
  position:relative;
  flex:0 0 auto;
  margin-top:2px;
}
.qItem[aria-checked="true"] .radio::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--brand),var(--brand-2));
}

/* Buttons */
.btn{
  -webkit-tap-highlight-color:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.9rem 1.15rem;
  border-radius:999px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.03));
  color:var(--ink);
  font-weight:800;
  font-size:.95rem;
  cursor:pointer;
  transition:.18s ease;
  box-shadow:var(--shadow);
  min-height:44px;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{
  background:linear-gradient(180deg,rgba(17,198,255,.3),rgba(17,198,255,.08));
  border-color:rgba(17,198,255,.6);
}
.btn.ghost{
  background:transparent;
  box-shadow:none;
  color:var(--muted);
  border-color:rgba(255,255,255,.18);
}
.btn.sm{
  padding:.7rem .95rem;
  min-height:38px;
  font-size:.9rem;
}

/* Features section */
.media-img{
  display:block;
  margin:14px auto 0;
  width:100%;
  max-width:960px;
  height:auto;
  border:none;
  border-radius:14px;
  box-shadow:0 12px 36px rgba(0,0,0,.45);
  object-fit:cover;
  background:transparent;
  aspect-ratio:16/9;
}
.section{margin-top:26px}
.feature{
  display:grid;
  gap:16px;
  grid-template-columns:1.25fr .75fr;
}
@media (max-width:960px){
  .feature{grid-template-columns:1fr}
}
.klist{
  display:grid;
  gap:10px;
  margin:12px 0 0;
  padding:0;
  list-style:none;
}
.kitem{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:.9rem;
}
.kitem i{
  width:22px;
  height:22px;
  border-radius:8px;
  border:1px solid rgba(42,209,115,.66);
  background:linear-gradient(180deg,rgba(42,209,115,.38),rgba(42,209,115,.1));
  display:inline-grid;
  place-items:center;
  color:#eafff1;
  font-weight:800;
}

/* Result block */
.result-wrap{
  display:grid;
  gap:10px;
}
.result-title{
  margin:4px 0 2px;
  font-weight:900;
  font-size:1.1rem;
}
.result-card{
  margin-top:4px;
  padding:16px;
}
.result-mentor{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:8px;
}
.mentor-avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  background:
    radial-gradient(circle at 30% 20%, #ffffff, #11c6ff),
    radial-gradient(circle at 70% 90%, rgba(42,209,115,.8), transparent);
  box-shadow:0 6px 16px rgba(0,0,0,.6);
}
.mentor-name{
  font-weight:800;
  font-size:.98rem;
}
.mentor-role{
  font-size:.8rem;
  color:var(--muted);
}
.result-list{
  margin:6px 0 4px;
  padding-left:1.1rem;
  font-size:.86rem;
  color:var(--muted);
}
.result-list li{margin-bottom:4px}
.result-note{
  font-size:.78rem;
  color:var(--muted);
  margin:4px 0 0;
}
.result-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* Risk / disclaimer */
.risk{
  display:grid;
  place-items:center;
  margin:0 auto;
}
.risk .box{
  width:min(100%,860px);
  padding:22px 24px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:16px;
  background:
    radial-gradient(120% 140% at 15% -40%, rgba(255,106,106,.2), transparent 60%),
    linear-gradient(180deg, rgba(24,28,48,.96), rgba(16,22,40,.98));
  box-shadow:0 10px 30px rgba(0,0,0,.45);
  color:var(--muted);
  line-height:1.6;
  text-align:left;
}
.risk-title{
  margin:0 0 8px;
  font-size:1rem;
  color:#ffd1d1;
}

/* Footer */
.footer{
  margin:20px 0 32px;
  color:#b8c9f4;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  font-size:.8rem;
}
.links{
  display:grid;
  grid-auto-flow:column;
  gap:14px;
}
.links a{
  font-size:.8rem;
  color:#9fb0ff;
}

/* Utility */
.hide{display:none !important}

/* Usage / cookie banner */
.cookie-banner{
  position:fixed;
  inset:auto 0 0 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 16px;
  z-index:9999;
  background:rgba(6,10,22,.97);
  color:#ffffff;
  box-shadow:0 -6px 24px rgba(0,0,0,.4);
  font-size:.78rem;
}
.cookie-text{
  margin:0;
}
.cookie-banner a{
  color:var(--brand-2);
  text-decoration:underline;
  font-size:.78rem;
}
.cookie-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.cookie-banner .btn{
  box-shadow:none;
  min-height:32px;
  padding:.45rem .7rem;
  font-size:.78rem;
}
.cookie-close{
  background:transparent;
  border-color:rgba(255,255,255,.18);
}

/* Mobile */
@media (max-width:600px){
  .wrap{padding:16px}
  .btn{width:100%}
  .btn.sm{width:auto}
  .quizCard{padding:14px}
  .qItem{padding:12px}
  .brand{
    flex-direction:row;
    align-items:flex-end;
  }
  .brand-img{height:52px}
  .footer{flex-direction:column;align-items:flex-start}
  .cookie-banner{
    flex-direction:column;
    align-items:stretch;
  }
  .cookie-actions{
    width:100%;
    display:grid;
    grid-auto-flow:row;
  }
  .cookie-banner .btn{
    width:100%;
  }
}
