/* ═══════════════════════════════════════════
   BASE — dark sci-fi / magenta coding palette
═══════════════════════════════════════════ */

:root {
  /* ── Colours ── */
  --bg:           #07070f;
  --bg-card:      #0e0e1c;
  --bg-dark:      #04040a;
  --text:         #ede8ff;
  --text-muted:   rgba(237,232,255,0.48);
  --text-light:   rgba(237,232,255,0.25);
  --accent:       #e91e8c;
  --accent-dark:  #b8136d;
  --accent-2:     #8b2fff;
  --border:       rgba(233,30,140,0.14);
  --border-soft:  rgba(237,232,255,0.08);

  /* ── Shadows (magenta glow) ── */
  --shadow:     0 2px 16px rgba(233,30,140,0.08);
  --shadow-md:  0 4px 32px rgba(233,30,140,0.14);
  --shadow-lg:  0 12px 56px rgba(233,30,140,0.20);

  /* ── Geometry / Type ── */
  --radius:       16px;
  --radius-sm:    10px;
  --font-sans:    'Space Grotesk', sans-serif;
  --font-hand:    'Caveat', cursive;
  --font-mono:    'Fira Code', monospace;
  --transition:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;   /* clip ≠ hidden: no scroll container, sticky still works */
  -webkit-font-smoothing: antialiased;
}
ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { border: none; background: none; font-family: var(--font-sans); }

/* ── CRT scanlines overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.045) 0px,
    rgba(0,0,0,0.045) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 9990;
}

/* ── Subtle magenta/purple ambient glow ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 40%,  rgba(233,30,140,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 60%,  rgba(139,47,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  border-radius: 3px;
}

/* ─── Selection ─── */
::selection { background: rgba(233,30,140,0.22); color: #fff; }

/* ─── Custom Cursor (desktop only) ─── */
@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}
#cursor-dot {
  position: fixed; z-index: 9999;
  top: 0; left: 0;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s;
}
#cursor-ring {
  position: fixed; z-index: 9998;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.35;
  transition: width .22s, height .22s, opacity .22s;
}
body.cursor-hover #cursor-dot  { width: 12px; height: 12px; }
body.cursor-hover #cursor-ring { width: 46px; height: 46px; opacity: 0.18; }
@media (hover: none) { #cursor-dot, #cursor-ring { display: none; } }

/* ─── Loader ─── */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity .6s ease, visibility .6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-lang {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  min-height: 1.2em;
  transition: opacity 0.15s;
}

.loader-word {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: opacity 0.12s;
}

/* Cursor blink in loader */
.loader-word::after {
  content: '_';
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.loader-bar {
  position: absolute; bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  width: 0;
  animation: loaderBar 1.6s ease forwards;
}
@keyframes loaderBar { to { width: 100%; } }

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Shared typography helpers ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.section-heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px clamp(1.2rem, 5vw, 3rem);
}

@media (max-width: 640px) {
  .section-inner { padding: 70px clamp(1rem, 4vw, 1.5rem); }
}
