/* ============================================================
   GENIUS — Base / Reset / Typography
============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  font-size:16px;
}

body{
  font-family:var(--ff-body);
  font-size:var(--fs-base);
  line-height:var(--lh-relaxed);
  color:var(--clr-text);
  background-color:var(--clr-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139,92,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 60%, rgba(56,189,248,0.07) 0%, transparent 50%);
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:var(--clr-surface)}
::-webkit-scrollbar-thumb{background:var(--clr-secondary);border-radius:var(--r-full)}
::-webkit-scrollbar-thumb:hover{background:var(--clr-primary)}

/* ── Selection ─────────────────────────────────────────── */
::selection{background:rgba(167,139,250,0.25);color:var(--clr-text)}

/* ── Focus ─────────────────────────────────────────────── */
:focus-visible{
  outline:2px solid var(--clr-primary);
  outline-offset:3px;
  border-radius:var(--r-sm);
}
:focus:not(:focus-visible){outline:none}

/* ── Typography Scale ──────────────────────────────────── */
h1,h2,h3,h4,h5,h6{
  font-family:var(--ff-display);
  font-weight:var(--fw-bold);
  line-height:var(--lh-tight);
  letter-spacing:-0.02em;
  color:var(--clr-text);
}
h1{font-size:clamp(var(--fs-3xl), 7vw, var(--fs-5xl));font-weight:var(--fw-extrabold)}
h2{font-size:clamp(var(--fs-2xl), 4vw, var(--fs-4xl))}
h3{font-size:clamp(var(--fs-xl), 2.5vw, var(--fs-3xl))}
h4{font-size:var(--fs-xl)}

p{line-height:var(--lh-relaxed);color:var(--clr-text-muted)}
a{color:var(--clr-primary);text-decoration:none;transition:color var(--dur-fast) ease}
a:hover{color:var(--clr-cyber)}

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

/* ── Utilities ─────────────────────────────────────────── */
.container{
  width:100%;
  max-width:var(--max-width);
  margin-inline:auto;
  padding-inline:clamp(var(--sp-4), 5vw, var(--sp-8));
}
.section{padding-block:var(--section-pad-y)}
.section--sm{padding-block:var(--sp-16)}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.text-gradient{
  background:var(--grad-primary);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.text-cyber{
  background:var(--grad-cyber);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.section-label{
  font-family:var(--ff-mono);
  font-size:var(--fs-xs);
  font-weight:var(--fw-semibold);
  letter-spacing:0.15em;
  text-transform:uppercase;
  color:var(--clr-primary);
  display:inline-flex;
  align-items:center;
  gap:var(--sp-2);
  margin-bottom:var(--sp-4);
}
.section-label::before{
  content:'';
  display:block;
  width:24px;
  height:1px;
  background:var(--clr-primary);
}

.section-heading{
  font-size:clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight:var(--fw-extrabold);
  margin-bottom:var(--sp-4);
}

.section-body{
  font-size:var(--fs-lg);
  color:var(--clr-text-muted);
  max-width:60ch;
}

/* ── Code / Mono ───────────────────────────────────────── */
code,kbd,samp{font-family:var(--ff-mono);font-size:0.9em}
code{
  background:rgba(167,139,250,0.12);
  color:var(--clr-primary);
  padding:0.1em 0.4em;
  border-radius:var(--r-sm);
}

/* ── Divider ───────────────────────────────────────────── */
.divider{
  border:none;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--clr-border-glass), transparent);
  margin-block:var(--sp-8);
}
