:root {
  --bg: #040b14;
  --cyan: #00f3ff;
  --blue: #0077ff;
  --text: #eaf6ff;
  --dim: #8fa8bf;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-b: rgba(0, 243, 255, 0.28);
  --head: "Exo 2", "Orbitron", system-ui, sans-serif;
  --logo: "Orbitron", "Exo 2", sans-serif;
  --body: Inter, Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.65;
  background:
    radial-gradient(ellipse 60% 40% at 80% 8%, rgba(0, 119, 255, .22), transparent 70%),
    radial-gradient(ellipse 50% 35% at 10% 55%, rgba(0, 243, 255, .08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--cyan); color: #021018; font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
h1, h2, h3 { font-family: var(--head); margin: 0; }
.dim { color: var(--dim); }
.k { font-size: 11px; letter-spacing: .14em; color: var(--dim); margin: 0 0 6px; text-transform: uppercase; }

#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#globe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100svh; z-index: 1;
  cursor: grab; touch-action: pan-y; display: block;
}
#globe:active { cursor: grabbing; }
#planet { display: none; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-b);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 10px 40px rgba(0, 20, 60, .45);
}

/* header */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 20;
  width: min(1180px, calc(100% - 24px));
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 22px; border-radius: 16px;
}
.logo {
  font-family: var(--logo); font-weight: 900; font-size: 24px; letter-spacing: .12em; margin: 0; text-decoration: none;
  color: #fff; text-shadow: 0 0 8px var(--cyan), 0 0 22px var(--blue);
}
.nav nav { display: flex; gap: clamp(12px, 2.6vw, 32px); align-items: center; }
.nav nav a { font-size: 14px; text-decoration: none; color: var(--text); opacity: .85; transition: color .2s, text-shadow .2s, opacity .2s; }
.nav nav a:hover { color: var(--cyan); opacity: 1; text-shadow: 0 0 12px var(--cyan); }
.nav-login { border: 1px solid var(--cyan); padding: 5px 14px; border-radius: 999px; color: var(--cyan) !important; }
.nav-login:hover { background: rgba(0, 243, 255, .15); }

/* language switch */
.lang { display: inline-flex; border: 1px solid var(--glass-b); border-radius: 999px; overflow: hidden; }
.lang button {
  font: 600 12px/1 var(--body); letter-spacing: .06em; padding: 7px 11px; border: 0; cursor: pointer;
  background: transparent; color: var(--dim); transition: color .2s, background .2s, text-shadow .2s;
}
.lang button:hover { color: var(--cyan); }
.lang button.on { background: linear-gradient(90deg, rgba(0, 119, 255, .55), rgba(0, 243, 255, .35)); color: #fff; text-shadow: 0 0 8px var(--cyan); }

/* buttons */
.btn {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .03em;
  padding: 14px 26px; border-radius: 12px; border: 1px solid var(--cyan); color: #fff;
  transition: transform .2s, box-shadow .25s, background .25s;
}
.btn-primary { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-color: transparent; color: #021018; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(0, 243, 255, .75), 0 0 60px rgba(0, 119, 255, .5); }
.btn-ghost { background: rgba(0, 243, 255, .05); box-shadow: 0 0 12px rgba(0, 243, 255, .25) inset; color: var(--cyan); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(0, 243, 255, .16); box-shadow: 0 0 22px rgba(0, 243, 255, .5); }

/* hero */
.hero { position: relative; z-index: 2; min-height: 100svh; display: flex; align-items: center; padding: 110px clamp(18px, 6vw, 96px) 60px; pointer-events: none; }
.hero-copy { max-width: min(640px, 100%); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
h1 {
  font-size: clamp(34px, 5.4vw, 76px); line-height: 1.04; font-weight: 800; margin-bottom: 24px;
  text-shadow: 0 0 18px rgba(0, 243, 255, .45), 0 0 48px rgba(0, 119, 255, .35);
}
h1 span { color: var(--cyan); }
.lead { color: #c4d6e6; max-width: 52ch; margin: 0 0 32px; font-size: clamp(15px, 1.5vw, 18px); }
.cta { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-note { margin: 12px 0 0; font-size: 13.5px; color: #a9c1d6; }
.cta-note a { color: var(--cyan); font-weight: 600; }
.plans-note { margin: 30px 0 0; text-align: center; color: #c4d6e6; }
.plans-note a { color: var(--cyan); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin: 30px 0 0; padding: 0; }
.facts li { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.facts b { display: block; margin-bottom: 2px; font-family: var(--logo); font-size: 24px; line-height: 1.1; color: #fff; text-shadow: 0 0 12px var(--cyan), 0 0 30px rgba(0, 119, 255, .5); }

/* mini test on the landing */
#quiz h2 { margin-bottom: 12px; }
.quiz-lead { margin: 0 0 22px; color: #c4d6e6; max-width: 60ch; }
.quizbox { border-radius: 18px; padding: 24px 22px; max-width: 760px; min-height: 180px; }
.qz-n { font-size: 13px; font-weight: 700; color: var(--cyan); letter-spacing: .06em; margin: 0 0 8px; }
.qz-q { font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.35; margin: 0 0 16px; }
.qz-o { display: block; width: 100%; text-align: left; font: 500 15.5px/1.4 var(--body); color: var(--text); padding: 13px 15px; margin-bottom: 9px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(4, 11, 20, .55); cursor: pointer; transition: border-color .2s; }
.qz-o:not([disabled]):hover { border-color: var(--cyan); }
.qz-o.right { border-color: #34d399; background: rgba(52, 211, 153, .14); }
.qz-o.wrong { border-color: #fb7185; background: rgba(251, 113, 133, .12); }
.qz-e { margin: 10px 0 16px; color: #c4d6e6; font-size: 15px; }
.qz-map { position: relative; z-index: 0; isolation: isolate; height: clamp(270px, 56vw, 400px); border-radius: 14px; overflow: hidden; background: #0b1120; border: 1px solid var(--glass-b); }
.qz-map.leaflet-container { cursor: crosshair; }
.qz-hint { margin: 8px 0 14px; font-size: 13.5px; color: var(--dim); }
.qz-e b { color: #fff; }
.qz-big { font-family: var(--logo); font-weight: 900; font-size: 56px; line-height: 1; margin: 0 0 10px; color: #fff; text-shadow: 0 0 18px var(--cyan); }
.qz-res { margin: 0 0 18px; color: #c4d6e6; }

/* real screens of the course */
.shots { display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: min(66vw, 250px); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * clamp(18px, 4vw, 40px)); padding: 4px clamp(18px, 4vw, 40px) 14px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shot { margin: 0; scroll-snap-align: center; }
.shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--glass-b); background: #061326; box-shadow: 0 14px 40px rgba(0, 20, 60, .55); }
.shot figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: #c4d6e6; }

/* platform features */
.feats { display: grid; gap: 18px; grid-template-columns: 1fr; }
.feat .fico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 16px; font-size: 26px; line-height: 1; background: linear-gradient(135deg, rgba(0, 119, 255, .35), rgba(0, 243, 255, .12)); border: 1px solid var(--glass-b); box-shadow: 0 0 18px rgba(0, 243, 255, .25); }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
@media (max-width: 699px) {   /* phone: nine cards stay short, the icon sits beside the text */
  .feat { display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; padding: 18px 16px; }
  .feat .fico { grid-row: 1 / span 2; margin: 0; }
  .feat h3 { font-size: 17px; margin-bottom: 4px; }
}

/* how it works + FAQ */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; list-style: none; margin: 0 0 36px; padding: 0; counter-reset: step; }
.step { position: relative; }
.step .sn { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; font-family: var(--logo); font-weight: 900; font-size: 18px; color: #021018; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 18px rgba(0, 243, 255, .45); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; color: #c4d6e6; font-size: 15px; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--head); font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--cyan); color: var(--cyan); font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: #c4d6e6; font-size: 15px; line-height: 1.6; }
.qz-share { margin-left: 10px; }
.last { border-radius: 22px; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px); text-align: center; border-color: rgba(0, 243, 255, .5); background: linear-gradient(135deg, rgba(0, 119, 255, .26), rgba(0, 243, 255, .08)); }
.last h2 { margin-bottom: 12px; }
.last p { margin: 0 auto 26px; max-width: 46ch; color: #c4d6e6; }
.last .cta { justify-content: center; }
.copyr a { color: inherit; }
.hint { position: absolute; right: 28px; bottom: 24px; margin: 0; font-size: 12px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; transition: opacity .6s; }

/* sections */
.section { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 40px); }
.eyebrow { margin: 0 0 8px; font-size: 13px; color: #888; opacity: .85; font-family: ui-monospace, Consolas, monospace; }
h2 { font-size: clamp(28px, 4vw, 50px); font-weight: 800; margin-bottom: 40px; text-shadow: 0 0 20px rgba(0, 243, 255, .3); }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* units */
.units { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { border-radius: 18px; padding: 26px 24px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 0 30px rgba(0, 243, 255, .3), 0 10px 40px rgba(0, 20, 60, .5); }
.ico { width: 46px; height: 46px; color: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); margin-bottom: 14px; }
.u { margin: 0 0 4px; font-family: var(--logo); font-size: 12px; letter-spacing: .2em; color: var(--cyan); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p:last-child { margin: 0; color: #c4d6e6; font-size: 15px; }

/* pricing */
.plans { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 26px 28px; border-radius: 20px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.plan:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 0 28px rgba(0, 243, 255, .3); }
.plan::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .7;
}
.plan h3 { font-size: 26px; margin-bottom: 12px; }
.price { font-family: var(--head); font-size: 34px; font-weight: 800; margin: 0 0 20px; color: #fff; text-shadow: 0 0 14px rgba(0, 243, 255, .5); }
.price small { font-size: 14px; font-weight: 500; color: var(--dim); text-shadow: none; }
.plan ul { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.plan li { position: relative; padding-left: 24px; margin-bottom: 10px; color: #d8e8f5; }
.plan li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border: 1.5px solid var(--cyan); transform: rotate(45deg); box-shadow: 0 0 8px var(--cyan); }
.for { margin: 0 0 22px; padding-top: 16px; border-top: 1px solid rgba(0, 243, 255, .2); color: var(--dim); font-size: 14px; }
.plan .btn { width: 100%; }
.popular {
  border: 2px solid var(--cyan); background: linear-gradient(180deg, rgba(0, 243, 255, .16), rgba(0, 119, 255, .1));
  animation: pulse 2.6s ease-in-out infinite;
}
.badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--cyan)); color: #021018; font-family: var(--logo); font-weight: 900;
  font-size: 11px; letter-spacing: .16em; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(0, 243, 255, .45), 0 0 50px rgba(0, 119, 255, .25); }
  50% { box-shadow: 0 0 34px rgba(0, 243, 255, .9), 0 0 100px rgba(0, 119, 255, .5); }
}

/* analytics HUD */
.analytics { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
.an-copy p:not(.eyebrow) { color: #c4d6e6; font-size: 18px; max-width: 44ch; }
.hud { position: relative; border-radius: 20px; padding: 22px; }
.corner { position: absolute; width: 20px; height: 20px; border: 2px solid var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.hud-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--logo); font-size: 10px; letter-spacing: .14em; color: var(--cyan); padding-bottom: 12px; border-bottom: 1px solid rgba(0, 243, 255, .2); margin-bottom: 8px; }
.hud-top span:first-child { text-shadow: 0 0 8px var(--cyan); }
.hud-body { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
.radar { width: 100%; max-width: 460px; margin: 0 auto; overflow: visible; }
.radar .area { transform-origin: 0 0; animation: radar-in 1.6s cubic-bezier(.2, .8, .2, 1) both paused; }
.in .radar .area { animation-play-state: running; }
@keyframes radar-in { from { transform: scale(.1); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.utags, .legend { display: none; }
.legend { list-style: none; margin: 0; padding: 0; gap: 6px; font-size: 14px; color: #d8e8f5; }
.legend b { display: inline-block; min-width: 2.2em; font-family: var(--logo); font-size: 12px; color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.hud-stats > div { margin-bottom: 18px; }
.big { margin: 0; font-family: var(--logo); font-weight: 900; font-size: 72px; line-height: 1; color: #fff; text-shadow: 0 0 18px var(--cyan), 0 0 44px var(--blue); }
.v { margin: 0 0 4px; font-family: var(--head); font-weight: 700; font-size: 20px; }
.meter { height: 10px; border: 1px solid var(--cyan); border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.meter b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 14px var(--cyan); transition: width 1.6s ease .4s; }
.in .meter b { width: var(--w); }

/* footer */
.footer { position: relative; z-index: 2; background: #02060c; border-top: 1px solid var(--glass-b); padding: 52px clamp(18px, 5vw, 72px) 28px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; max-width: 1180px; margin: 0 auto; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }
.footer .logo { font-size: 32px; display: inline-block; }
.copyr { max-width: 1180px; margin: 36px auto 0; font-size: 13px; color: var(--dim); }

/* phone: main buttons stay at hand after the first screen */
.mcta { display: none; }

@media (min-width: 700px) { .units, .feats { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) {
  .feats { grid-template-columns: repeat(3, 1fr); }
  .units { grid-template-columns: repeat(6, 1fr); }
  .units .card { grid-column: span 2; }
  .units .card:nth-child(4) { grid-column: 2 / span 2; }
  .units .card:nth-child(5) { grid-column: 4 / span 2; }
  .plans { grid-template-columns: 1fr 1.14fr 1fr; }
  .popular { transform: scale(1.04); padding-top: 44px; padding-bottom: 38px; }
  .popular:hover { transform: scale(1.04) translateY(-6px); }
  .analytics { grid-template-columns: .85fr 1.15fr; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 4px 0 0; }
  .hud-body { grid-template-columns: 1.15fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1.4fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav { padding: 8px 14px; }
  .nav nav { gap: 8px; }
  .lang button { padding: 11px 11px; font-size: 12px; }
  .nav-login { padding: 8px 14px; }
  .nav nav a:not(.nav-login) { display: none; }   /* room for the language switch; sections are one scroll away */
  .mcta {
    display: flex; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    padding: 8px; border-radius: 16px; background: rgba(4, 11, 20, .92); border: 1px solid var(--glass-b);
    transform: translateY(calc(100% + 24px)); transition: transform .25s; visibility: hidden;
  }
  .mcta.on { transform: none; visibility: visible; }
  .mcta .btn { padding: 12px 14px; font-size: 14px; }
  .mcta .btn-primary { flex: 1; }
  .nav nav a { font-size: 12px; }
  .logo { font-size: 20px; }
  .hero { align-items: flex-start; padding-top: 104px; }
  .hero-copy { width: 100%; }
  .cta .btn-primary, .last .btn { width: 100%; } .hero .btn-ghost { display: none; }   /* one clear action; prices stay in the bottom bar */
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(13, 24, 40, .86); }   /* blur on thirty cards makes scrolling stutter on cheap phones */
  .popular { animation: none; box-shadow: 0 0 26px rgba(0, 243, 255, .5); background: linear-gradient(180deg, rgba(0, 62, 88, .95), rgba(4, 34, 74, .92)); }
  .lead { color: #e3eefa; font-size: 16px; text-shadow: 0 1px 14px #040b14, 0 0 4px #040b14; }
  .cta-note, .facts li { color: #e3eefa; text-shadow: 0 1px 10px #040b14, 0 0 4px #040b14, 0 0 2px #040b14; }
  h1 { font-size: clamp(32px, 9.6vw, 52px); }
  .eyebrow { font-size: 13px; }
  .hint { display: none; }
  .facts { gap: 10px 16px; margin-top: 22px; } .facts b { font-size: 20px; } .facts li { font-size: 11px; letter-spacing: .05em; }
  .radar .lab { display: none; }
  .radar .utags { display: inline; }
  .legend { display: grid; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .hero { padding-bottom: 270px; }   /* main.js puts the planet in this free space */
  #globe { -webkit-mask-image: linear-gradient(to bottom, transparent var(--fade, 60%), #000 calc(var(--fade, 60%) + 44px)); mask-image: linear-gradient(to bottom, transparent var(--fade, 60%), #000 calc(var(--fade, 60%) + 44px)); }
  /* a picture of the planet shows at once; the live globe replaces it when it is ready (slow networks may never need it) */
  #planet { display: block; position: absolute; left: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; transition: opacity .7s; }
}
@media (pointer: coarse) { body { background-attachment: scroll; } }   /* a fixed background repaints the whole screen on every scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .popular { animation: none; box-shadow: 0 0 30px rgba(0, 243, 255, .6); }
  .reveal { opacity: 1; transform: none; transition: none; }
}
