/* EDUVANCE official download website — static, no build step.
   Palette: navy #00194F, royal blue #1E5AFF, gold #F5A300, white.
   Fonts: Clash Display (headings) + Satoshi (body), both from Fontshare,
   self-hosted under assets/fonts/ — no external font/CDN requests.
   Fontshare fonts are free for commercial use. */

/* ---------- Self-hosted Fontshare fonts ---------- */
@font-face {
  font-family: 'Clash Display';
  src: url('assets/fonts/clash-display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('assets/fonts/clash-display-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00194f;
  --navy-dark: #001233;
  --blue: #1e5aff;
  --gold: #f5a300;
  --gold-dark: #c07f00;
  --white: #ffffff;
  --bg-light: #f4f7ff;
  --text: #16213a;
  --text-muted: #4a5570;
  --border: #d7deee;
  --radius: 12px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Satoshi', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, .btn, .badge, .nav-list a, .release-table caption {
  font-family: 'Clash Display', 'Satoshi', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: .01em;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand-logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  background: var(--white);
  border-radius: 8px;
  padding: 4px 8px;
}
.main-nav { position: relative; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  padding: .3rem .6rem;
  border-radius: 8px;
  cursor: pointer;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-list a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: .45rem .7rem;
  border-radius: 8px;
  display: block;
}
.nav-list a:hover, .nav-list a:focus-visible {
  background: rgba(255, 255, 255, .12);
  color: var(--gold);
  outline-color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* fffuel-style layered background: gold + royal-blue radial glows
     over the navy gradient; the inline SVG waves sit on top of this. */
  background:
    radial-gradient(720px 360px at 88% -10%, rgba(245, 163, 0, .28), transparent 65%),
    radial-gradient(640px 420px at -8% 108%, rgba(30, 90, 255, .38), transparent 60%),
    radial-gradient(480px 300px at 55% 0%, rgba(30, 90, 255, .22), transparent 70%),
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, #0a2f7a 100%);
  color: var(--white);
  padding: 3rem 0 3.5rem;
}
/* Decorative layered waves (inline SVG in index.html, aria-hidden).
   pointer-events:none so it never blocks clicks; sits behind content. */
.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 190px;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-logo {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  margin-bottom: 1rem;
  background: var(--white);
}
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.hero-lede { font-size: 1.1rem; color: #dbe4ff; margin: 0 0 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.25rem; }
.release-status {
  background: rgba(245, 163, 0, .14);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin: 0 0 1rem;
}
.release-status strong { color: var(--gold); }
.offline-note {
  background: rgba(255, 255, 255, .08);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .75rem 1rem;
  margin: 0;
  font-size: .95rem;
  color: var(--text);
}
.hero .offline-note {
  background: rgba(255, 255, 255, .08);
  color: #dbe4ff;
}
.section-alt .offline-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
}
.hero-art img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: .7rem 1.4rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffc233; color: var(--navy); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-download {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  margin-top: 1rem;
}
.btn-download:not(:disabled):hover { background: #0f47d6; }
.btn-download:disabled, .btn-download[aria-disabled="true"] {
  background: #8b93a7;
  color: #eef1f8;
  cursor: not-allowed;
}

/* ---------- Sections ---------- */
/* W-8A (2026-11-15): anchor targets must clear the 64px sticky header.
   80px = header height + 16px breathing room, so nav clicks never hide
   a section heading under the header. Covers all 7 nav anchors, plus
   the #main skip-link target. */
section[id],
.hero,
#main {
  scroll-margin-top: 80px;
}
.section { padding: 3rem 0; }
/* Subtle fffuel-style dot-grid accent on alternate sections. */
.section-alt {
  background-color: var(--bg-light);
  background-image: radial-gradient(rgba(30, 90, 255, .07) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
.section h2 {
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0 0 .75rem;
}
.section h3 { color: var(--navy); margin: 1.75rem 0 .5rem; }
.section-intro { color: var(--text-muted); max-width: 70ch; margin: 0 0 1.5rem; }
.manifest-note {
  background: #fff8e1;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: .6rem 1rem;
  font-size: .95rem;
}
.verify-note { margin-top: 1.5rem; }

/* ---------- Download cards ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.download-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 25, 79, .07);
}
.download-card.available { border-top-color: var(--gold); }
.download-card h3 { margin: .6rem 0 .4rem; font-size: 1.25rem; }
.card-desc { color: var(--text-muted); margin: 0 0 1rem; flex: none; }
.meta { margin: 0 0 .5rem; }
.meta > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .4rem 0;
  border-bottom: 1px solid #eef1f8;
  overflow-wrap: anywhere;
}
.meta dt { font-weight: 700; color: var(--navy); flex: none; }
.meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.meta dd code {
  font-size: .8rem;
  word-break: break-all;
  background: var(--bg-light);
  padding: .1rem .3rem;
  border-radius: 4px;
}
.install-blurb { font-size: .93rem; color: var(--text-muted); margin: .75rem 0 0; }
.install-blurb a { overflow-wrap: anywhere; }
.badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .25rem .6rem;
  border-radius: 999px;
  align-self: flex-start;
}
.badge-unavailable { background: #eceff6; color: #4a5570; border: 1px solid #c9d1e3; }
.badge-available { background: #e6f4ea; color: #137333; border: 1px solid #a8dab5; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.feature h3 { margin: 0 0 .4rem; }
.feature p { margin: 0; color: var(--text-muted); }
.feature-stub { border: 2px dashed var(--gold); background: #fffaf0; }
.stub-tag {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: .15rem .5rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Screenshots ---------- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.shot {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img { width: 100%; }
.shot-desktop { grid-column: span 2; }
.shot figcaption {
  padding: .6rem .8rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-light);
}

/* ---------- Install / steps ---------- */
.steps, .trouble { max-width: 75ch; }
.steps li, .trouble li { margin-bottom: .5rem; }

/* ---------- Release table ---------- */
.release-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  margin-bottom: 1rem;
}
.release-table caption {
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: .5rem;
}
.release-table th, .release-table td {
  border: 1px solid var(--border);
  padding: .6rem .8rem;
  text-align: left;
  vertical-align: top;
}
.release-table thead th { background: var(--navy); color: var(--white); }
.release-table .badge { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #c9d4f2;
  padding: 2rem 0;
  font-size: .95rem;
}
.site-footer p { margin: .3rem 0; }
.site-footer strong { color: var(--white); }
.footer-note { color: #93a3cf; font-size: .88rem; }

/* ---------- Creator card (footer, last element) ---------- */
.creator-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  max-width: 40rem;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .12);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.creator-photo {
  flex: 0 0 auto;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}
.creator-eyebrow {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .15rem;
}
.creator-name {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .15rem;
}
.creator-role { color: #c9d4f2; margin: 0 0 .4rem; }
.creator-bio { color: #93a3cf; font-size: .92rem; margin: 0 0 .5rem; }
.creator-links { margin: 0; font-size: .92rem; }
.creator-links a { color: var(--gold); margin-right: 1rem; }
.creator-links a:hover { color: var(--white); }
.privacy-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .75rem 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .download-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-desktop { grid-column: span 2; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    flex-direction: column;
    min-width: 200px;
    padding: .5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  }
  .nav-list.open { display: flex; }
  .hero { padding: 2rem 0 2.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-logo { width: 110px; height: 110px; }
  .section { padding: 2rem 0; }
  .section h2 { font-size: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .shot-desktop { grid-column: span 1; }
  .release-table { display: block; overflow-x: auto; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1 1 auto; }
  .creator-card { flex-direction: column; text-align: center; padding: 1.25rem 1rem; }
  .creator-links a { display: block; margin: .3rem 0; }
}

/* ==================================================================
   Premium glass + motion layer (added 2026-11-15).
   - Glass surfaces: translucent panels + backdrop blur + soft borders.
   - Animated hero orbs, button shine, gold heading underlines.
   - Scroll-reveal (class added by JS only — no-JS keeps content visible).
   - Custom cursor glow/ring/dot (decorative; native cursor stays).
   - All motion disabled under prefers-reduced-motion; cursor effects
     disabled on coarse pointers (touch). No external assets added.
   ================================================================== */

/* ---------- Glass header ---------- */
.site-header {
  background: rgba(0, 25, 79, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  backdrop-filter: blur(14px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

/* ---------- Glass cards ---------- */
.download-card,
.feature:not(.feature-stub),
.shot {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow:
    0 8px 28px rgba(0, 25, 79, .10),
    inset 0 1px 0 rgba(255, 255, 255, .8);
  transition:
    transform .35s cubic-bezier(.22, 1, .36, 1),
    box-shadow .35s ease,
    border-color .35s ease;
  will-change: transform;
}
.download-card:hover,
.feature:not(.feature-stub):hover,
.shot:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 163, 0, .55);
  box-shadow:
    0 18px 40px rgba(0, 25, 79, .16),
    0 0 0 1px rgba(245, 163, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
.feature-stub {
  background: rgba(255, 250, 240, .78);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
  box-shadow: 0 8px 28px rgba(0, 25, 79, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition:
    transform .35s cubic-bezier(.22, 1, .36, 1),
    box-shadow .35s ease;
}
.feature-stub:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 25, 79, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* Glass treatment for the hero status panels. */
.release-status,
.hero .offline-note {
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
}
.release-status {
  background: rgba(245, 163, 0, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.hero .offline-note {
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

/* ---------- Animated hero orbs ---------- */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.orb-1 {
  width: 420px; height: 420px;
  background: #1e5aff;
  top: -120px; right: -60px;
  opacity: .5;
  animation: orb-drift-1 18s ease-in-out infinite alternate;
}
.orb-2 {
  width: 340px; height: 340px;
  background: #f5a300;
  bottom: -140px; left: -80px;
  opacity: .32;
  animation: orb-drift-2 22s ease-in-out infinite alternate;
}
.orb-3 {
  width: 220px; height: 220px;
  background: #64e9f8;
  top: 28%; left: 45%;
  opacity: .28;
  animation: orb-drift-3 16s ease-in-out infinite alternate;
}
@keyframes orb-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 40px) scale(1.15); }
}
@keyframes orb-drift-2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, -30px) scale(1.12); }
}
@keyframes orb-drift-3 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, -50px) scale(1.2); }
}

/* ---------- Button shine + glow ---------- */
.btn { position: relative; overflow: hidden; }
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn-gold:hover::after { left: 130%; }
.btn-gold:hover {
  box-shadow: 0 8px 24px rgba(245, 163, 0, .45);
}
.btn-outline:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 8px 24px rgba(0, 0, 0, .25);
}

/* ---------- Gold heading underline (grows on reveal) ---------- */
.section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: .35rem;
}
.section h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 2px;
  transition: width .8s ease .25s;
}
.section.visible h2::after { width: 100%; }

/* ---------- Scroll reveal (JS-added class only) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Custom cursor layer ---------- */
.cursor-dot,
.cursor-ring,
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  /* Parked off-screen until the first mousemove (JS overwrites this). */
  transform: translate(-100px, -100px);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(245, 163, 0, .8);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(245, 163, 0, .7);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background-color .25s ease;
}
.cursor-ring.is-hover {
  width: 58px; height: 58px;
  background: rgba(245, 163, 0, .12);
  border-color: rgba(245, 163, 0, .9);
}
.cursor-glow {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245, 163, 0, .09), rgba(30, 90, 255, .07) 45%, transparent 70%);
  z-index: 9998;
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring, .cursor-glow { display: none; }
}

/* ---------- Reduced motion: everything calm, content always visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .section h2::after { width: 100%; transition: none; }
  .btn-gold::after { display: none; }
  .cursor-dot, .cursor-ring, .cursor-glow { display: none; }
}
