/* =========================================================
   Stefano · About Me
   Mobile-first · performance-tuned
   ========================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --fg: #e6e8ef;
  --fg-dim: #8a8fa3;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --c-violet: #7c3aed;
  --c-cyan:   #06b6d4;
  --c-pink:   #ff2bd6;
  --c-lime:   #b6ff3c;

  --grad: linear-gradient(120deg, var(--c-violet) 0%, var(--c-cyan) 50%, var(--c-pink) 100%);

  --ease: cubic-bezier(.2,.8,.2,1);

  --maxw: 1180px;
  --pad: 18px;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(124, 58, 237, .35); color: #fff; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 400; letter-spacing: 0; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   BACKGROUND LAYERS — light on mobile, richer on desktop
   ========================================================= */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  contain: strict;
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 50%, transparent 100%);
  opacity: .45;
}

/* fewer + smaller orbs on mobile, with less blur */
.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  mix-blend-mode: screen;
  will-change: transform;
}
.bg-orbs .orb-1 {
  width: 320px; height: 320px;
  left: -100px; top: -80px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 60%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.bg-orbs .orb-2 {
  width: 300px; height: 300px;
  right: -100px; top: 40vh;
  background: radial-gradient(circle, #06b6d4 0%, transparent 60%);
  animation: drift2 32s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0%   { transform: translate3d(0,0,0)   scale(1); }
  100% { transform: translate3d(60px, 30px, 0) scale(1.1); }
}
@keyframes drift2 {
  0%   { transform: translate3d(0,0,0)   scale(1); }
  100% { transform: translate3d(-50px, -20px, 0) scale(1.08); }
}

#stars {
  width: 100vw;
  height: 100vh;
  opacity: .9;
}

.bg-vignette {
  background: radial-gradient(ellipse at center,
    transparent 0%, transparent 55%, rgba(0,0,0,.55) 100%);
}

.bg-noise {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: .03;
  mix-blend-mode: overlay;
}

/* =========================================================
   CUSTOM CURSOR — disabled on touch
   ========================================================= */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px,-100px,0);
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  .cursor-dot, .cursor-ring { display: block; }
  .cursor-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.55);
    transition: width .25s var(--ease), height .25s var(--ease),
                border-color .25s var(--ease), background .25s var(--ease);
    margin-left: -18px;
    margin-top: -18px;
  }
  .cursor-ring.hover {
    width: 64px; height: 64px;
    margin-left: -32px; margin-top: -32px;
    border-color: rgba(124,58,237,.9);
    background: radial-gradient(circle, rgba(124,58,237,.18), transparent 70%);
  }
}

/* =========================================================
   SPLASH
   ========================================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(5,6,10,0.94);
  cursor: pointer;
  transition: opacity .8s var(--ease), visibility .8s;
  text-align: center;
  padding: 24px;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-inner { position: relative; }
.splash-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(124,58,237,.3), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}
.splash-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.splash-title {
  font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 18vw, 140px);
  line-height: .9;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
  text-shadow: 0 0 50px rgba(124,58,237,.25);
}
.splash-sub {
  color: var(--fg-dim);
  font-size: 14px;
  margin-bottom: 36px;
  font-family: 'JetBrains Mono', monospace;
}
.splash-foot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  background: rgba(255,255,255,0.02);
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #b6ff3c;
  display: inline-block;
  box-shadow: 0 0 8px rgba(182,255,60,.7);
}
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.85); }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  border-bottom: 1px solid transparent;
  background: rgba(5,6,10,0);
  transition: background .35s, border-color .35s;
}
.nav.scrolled {
  background: rgba(5,6,10,0.78);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: .04em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--grad);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 0 16px rgba(124,58,237,.4);
}
.brand-name {
  color: var(--fg-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.nav-links {
  display: none;
  gap: 24px;
  font-size: 14px;
  color: var(--fg-dim);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--grad);
  transition: width .35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--fg-dim);
}

.nav-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,0.025);
}
.lang-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: color .25s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  -webkit-user-select: none;
          user-select: none;
}
.lang-btn:hover { color: var(--fg); }
.lang-btn.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.lang-btn:focus-visible {
  outline: 2px solid rgba(124,58,237,.6);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .nav-clock { display: none; }
  .brand-name { display: none; }
}
@media (max-width: 380px) {
  .lang-btn { padding: 4px 7px; font-size: 9.5px; letter-spacing: .08em; }
}

/* =========================================================
   HERO  (mobile-first)
   ========================================================= */
main { padding-top: 64px; }

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  padding: 24px var(--pad) 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}
.hero-left { display: flex; flex-direction: column; align-items: center; }

.kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--fg-dim);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 20px;
}

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(72px, 20vw, 220px);
  line-height: .85;
  margin: 0 0 6px;
  letter-spacing: 0.005em;
  background: linear-gradient(180deg, #fff 0%, #b8b8c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(124,58,237,.18);
}

/* glitch — lighter on mobile */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  width: 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glitch::before {
  background: linear-gradient(180deg, #ff2bd6, #7c3aed);
  -webkit-background-clip: text; background-clip: text;
  transform: translate(-1.5px, 0);
  mix-blend-mode: screen;
  opacity: .5;
}
.glitch::after {
  background: linear-gradient(180deg, #06b6d4, #b6ff3c);
  -webkit-background-clip: text; background-clip: text;
  transform: translate(1.5px, 0);
  mix-blend-mode: screen;
  opacity: .4;
}

.hero-role {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 14px;
  margin: 8px 0 18px;
  color: var(--fg-dim);
  height: 1.4em;
  overflow: hidden;
}
.hero-role span {
  display: inline-block;
  border-right: 2px solid var(--c-cyan);
  padding-right: 6px;
  white-space: nowrap;
}

.hero-quote {
  font-style: italic;
  color: #c5c8d3;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 460px;
}
.quote-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-style: normal;
  font-size: 1.4em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 4px;
  vertical-align: -0.1em;
}

.hero-bio {
  font-size: 15px;
  line-height: 1.65;
  color: #c5c8d3;
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .02em;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  flex: 1 1 auto;
  min-width: 160px;
  -webkit-user-select: none;
          user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* avatar */
.hero-right { display: grid; place-items: center; }
.avatar-wrap {
  position: relative;
  width: clamp(180px, 55vw, 280px);
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.avatar-rings { position: absolute; inset: 0; }
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.12);
}
.ring.r1 { animation: rotate 30s linear infinite; }
.ring.r2 {
  inset: 14px;
  border-style: dotted;
  border-color: rgba(124,58,237,.3);
  animation: rotate 22s linear infinite reverse;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.avatar {
  position: relative;
  width: 78%; height: 78%;
  border-radius: 50%;
  padding: 3px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 60px rgba(124,58,237,.3),
    0 20px 50px rgba(6,182,212,.2);
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #0b0d16;
}

.badge {
  position: absolute;
  bottom: 0;
  left: 50%; transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 100px;
  background: rgba(5,6,10,.85);
  border: 1px solid var(--line-2);
}

/* marquee */
.marquee {
  margin-top: 48px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .15em;
  color: rgba(255,255,255,.85);
  will-change: transform;
}
.marquee-track i {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-size: 18px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.scroll-hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.scroll-hint .line {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--c-cyan), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
  max-width: var(--maxw);
  margin: 32px auto 56px;
  padding: 24px var(--pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 14px 12px; }
.stat:nth-child(2) { border-left: 1px solid var(--line); }
.stat:nth-child(3) { border-top: 1px solid var(--line); }
.stat:nth-child(4) { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 10vw, 64px);
  line-height: 1;
  background: linear-gradient(180deg, #fff, #aab0c2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--pad);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.section-num {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: .2em;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 11vw, 80px);
  margin: 0;
  line-height: 1;
  letter-spacing: 0.005em;
}

/* glass card baseline */
.glass {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.01);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%, rgba(124,58,237,.25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* tilt — desktop only via JS, but we keep transition smooth */
.tilt {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.about-card { padding: 22px; }
.about-card-tag {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.about-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #d2d5e0;
}
.about-card b { color: #fff; font-weight: 600; }

/* =========================================================
   CHANNELS
   ========================================================= */
.channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.channel {
  display: block;
  padding: 22px;
  position: relative;
  transition: transform .4s var(--ease);
}

.channel-glow {
  position: absolute;
  top: -40%; left: -10%;
  width: 70%; height: 80%;
  background: radial-gradient(circle, var(--c1, #7c3aed), transparent 60%);
  filter: blur(50px);
  opacity: .25;
  pointer-events: none;
  z-index: 0;
  transition: opacity .4s;
}

.channel-top {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.channel-pic {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.channel-pic img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.channel-pic-ring {
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.channel-meta { flex: 1; min-width: 0; }
.channel-handle {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.channel-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.channel-arrow {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  color: var(--fg);
  background: rgba(255,255,255,0.03);
  transition: transform .35s var(--ease), background .35s, border-color .35s;
  flex-shrink: 0;
}

.channel-desc {
  position: relative; z-index: 1;
  margin: 18px 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5c8d3;
}

.channel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative; z-index: 1;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 11px;
  color: var(--fg-dim);
}

.more-projects {
  text-align: center;
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 12px 16px;
  border: 1px dashed var(--line-2);
  border-radius: 100px;
  display: block;
}

/* =========================================================
   BOT FEATURE CARD
   ========================================================= */
.bot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px;
  align-items: start;
  position: relative;
  text-align: left;
  transition: transform .4s var(--ease);
}

.bot-glow {
  position: absolute;
  top: -30%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(255,43,214,.3), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  opacity: .55;
}

.bot-left { display: flex; }
.bot-pic {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
}
.bot-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bot-pic-ring {
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.2),
    0 12px 40px rgba(255,43,214,.3);
}

.bot-mid { min-width: 0; position: relative; z-index: 1; }
.bot-tag {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.bot-name {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: 0.005em;
}
.bot-handle {
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.bot-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #c5c8d3;
  margin: 0 0 16px;
}
.bot-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bot-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #d2d5e0;
}
.bullet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 0 10px rgba(182,255,60,.7);
}

.bot-right { position: relative; z-index: 1; }
.bot-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 100px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px rgba(124,58,237,.35);
  transition: transform .35s var(--ease);
}
.bot:active .bot-cta { transform: scale(.98); }
.bot-cta-label {
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.bot-cta-arrow {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.bot-mini {
  margin-top: 10px;
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: .15em;
  text-transform: uppercase;
  text-align: center;
}

/* =========================================================
   CONNECT
   ========================================================= */
.connect {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.link-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  transition: transform .35s var(--ease);
}
.link-tile:active { transform: scale(.98); }
.link-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(124,58,237,.3);
}
.link-icon svg { width: 20px; height: 20px; }
.link-title { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.link-sub { font-size: 11px; color: var(--fg-dim); }

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 20px var(--pad) 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 10px;
}
.foot-l { display: inline-flex; align-items: center; gap: 8px; }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   DESKTOP ENHANCEMENTS
   ========================================================= */
@media (min-width: 720px) {
  :root { --pad: clamp(20px, 4vw, 48px); }

  .nav { padding: 18px var(--pad); }
  .nav-links { display: flex; }
  .nav-meta { font-size: 12px; }

  .hero { padding: 48px var(--pad) 80px; }
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    text-align: left;
  }
  .hero-left { align-items: flex-start; }
  .hero-cta { justify-content: flex-start; }
  .hero-cta .btn { flex: 0 0 auto; min-width: 0; }
  .scroll-hint { display: inline-flex; }

  .stats {
    grid-template-columns: repeat(4, 1fr);
    margin: 40px auto 80px;
    padding: 28px var(--pad);
  }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-top: 0; }
  .stat:nth-child(2),
  .stat:nth-child(3),
  .stat:nth-child(4) { border-left: 1px solid var(--line); }

  .section { padding: 80px var(--pad); }
  .section-head { gap: 18px; margin-bottom: 36px; }

  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-card { padding: 28px; }
  .about-card.wide { grid-column: 1 / -1; }
  .about-card p { font-size: 16px; line-height: 1.7; }

  .channels { grid-template-columns: 1fr 1fr; gap: 18px; }
  .channel { padding: 28px; }
  .channel-pic { width: 64px; height: 64px; border-radius: 16px; }
  .channel-name { font-size: 22px; }
  .channel-desc { font-size: 15px; margin: 22px 0; }

  .bot {
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    padding: 36px;
    align-items: center;
  }
  .bot-pic { width: 130px; height: 130px; border-radius: 26px; }
  .bot-list { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .bot-cta { padding: 18px 24px; }
  .bot-mini { text-align: left; }

  .connect { grid-template-columns: repeat(2, 1fr); }

  .foot { padding: 24px var(--pad) 40px; }
}

@media (min-width: 1024px) {
  .connect { grid-template-columns: repeat(4, 1fr); }
}

/* hover-only refinements (skip on touch) */
@media (hover: hover) and (pointer: fine) {
  .btn { will-change: transform; }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 16px 50px rgba(124,58,237,.5); }
  .btn-ghost:hover { border-color: var(--fg-dim); }

  .channel:hover { transform: translateY(-3px); }
  .channel:hover .channel-glow { opacity: .55; }
  .channel:hover .channel-pic img { transform: scale(1.06); }
  .channel:hover .channel-arrow {
    transform: translate(2px, -2px);
    background: var(--grad);
    border-color: transparent;
  }

  .bot:hover { transform: translateY(-3px); }
  .bot:hover .bot-cta { transform: translateY(-2px); }

  .link-tile:hover { transform: translateY(-2px); }

  /* hover tilt spotlight */
  .tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
      500px circle at var(--mx, 50%) var(--my, 50%),
      rgba(255,255,255,0.06),
      transparent 40%
    );
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
    border-radius: inherit;
  }
  .tilt:hover::after { opacity: 1; }
  .tilt:hover { box-shadow: 0 24px 60px rgba(0,0,0,.4); }

  /* subtle continuous glitch on the big name (desktop only) */
  .glitch::before { animation: glitchA 5s infinite steps(1); }
  .glitch::after { animation: glitchB 5s infinite steps(1); }
  @keyframes glitchA {
    0%,94%,100% { transform: translate(-1.5px, 0); }
    95% { transform: translate(-5px, 1px); }
    96% { transform: translate(2px, -1px); }
    97% { transform: translate(-3px, 2px); }
    98% { transform: translate(0, 0); }
  }
  @keyframes glitchB {
    0%,94%,100% { transform: translate(1.5px, 0); }
    95% { transform: translate(5px, -1px); }
    96% { transform: translate(-2px, 1px); }
    97% { transform: translate(3px, -2px); }
    98% { transform: translate(0, 0); }
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
