/* =============================================================
   SILLY SUMAN — stylesheet
   1. Tokens   2. Reset   3. Utilities   4. Loader   5. Cursor
   6. Nav      7. Hero    8. Marquee     9. About   10. Features
   11. Latest  12. Socials 13. CTA       14. Footer 15. Misc
   16. Responsive   17. Reduced motion
   ============================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* colour */
  --bg:          #050508;
  --bg-soft:     #08080f;
  --surface:     #0d0d14;
  --surface-2:   #13131e;
  --line:        rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);

  --primary:   #8b5cf6;
  --primary-2: #a78bfa;
  --secondary: #06b6d4;
  --accent:    #ec4899;

  --text:  #ffffff;
  --text-2: #d4d4dd;
  --muted: #a1a1aa;

  --yt: #ff3d3d;
  --ig: #e1306c;
  --fb: #2d88ff;

  --grad-main: linear-gradient(100deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
  --grad-soft: linear-gradient(140deg, rgba(139,92,246,.16), rgba(6,182,212,.10));

  /* type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* space & shape */
  --container: 1200px;
  --pad: clamp(1rem, 4vw, 2rem);
  --radius: 18px;
  --radius-lg: 26px;
  --nav-h: 68px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;

  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .9);
  --glow-primary: 0 0 0 1px rgba(139,92,246,.35), 0 12px 40px -12px rgba(139,92,246,.55);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.is-locked, body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}
p { margin: 0 0 1rem; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em; color: var(--primary-2);
  background: rgba(139,92,246,.12);
  padding: .1em .4em; border-radius: 6px;
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--primary); color: #fff; }

/* ---------- 3. UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 999;
  background: var(--primary); color: #fff;
  padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .32; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* --- buttons --- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .86rem; letter-spacing: .06em;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.btn > svg { flex: none; }
.btn::after { /* light sweep */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(130%); }
.btn:active { transform: scale(.97); }

.btn--primary {
  color: #fff;
  background: linear-gradient(100deg, var(--primary), #6d28d9);
  box-shadow: var(--glow-primary);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(167,139,250,.6), 0 18px 45px -12px rgba(139,92,246,.8); transform: translateY(-2px); }

.btn--accent {
  color: #fff;
  background: linear-gradient(100deg, var(--accent), #be185d);
  box-shadow: 0 0 0 1px rgba(236,72,153,.35), 0 12px 40px -14px rgba(236,72,153,.6);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(244,114,182,.6), 0 18px 45px -12px rgba(236,72,153,.75); }

.btn--cyan {
  color: #04222a;
  background: linear-gradient(100deg, var(--secondary), #0891b2);
  box-shadow: 0 0 0 1px rgba(6,182,212,.35), 0 12px 40px -14px rgba(6,182,212,.6);
}
.btn--cyan:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(34,211,238,.6), 0 18px 45px -12px rgba(6,182,212,.75); }

.btn--ghost {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-2); transform: translateY(-2px); }

.btn--outline {
  color: var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-strong);
}
.btn--outline:hover { border-color: currentColor; transform: translateY(-2px); }

.btn--sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .76rem; }
.btn--block { width: 100%; margin-top: auto; }

.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: scale(0); opacity: .7;
  pointer-events: none; z-index: -1;
  animation: ripple .6s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.iconbtn {
  display: grid; place-items: center;
  width: 46px; height: 46px; min-height: 44px;
  border-radius: 14px;
  color: var(--text-2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), color .3s, border-color .3s, background .3s;
}
.iconbtn:hover { transform: translateY(-4px) rotate(-4deg); color: #fff; border-color: var(--primary); background: rgba(139,92,246,.16); }

/* --- section shells --- */
.section { position: relative; padding: clamp(4.5rem, 11vw, 8rem) 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-soft) 18%, var(--bg-soft) 82%, transparent); }

.sectionhead { max-width: 760px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .76rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: .9rem;
}

.sectiontitle {
  font-size: clamp(1.9rem, 6.4vw, 3.4rem);
  font-weight: 700; margin-bottom: .6rem;
}

.sectionsub { color: var(--muted); font-size: clamp(.95rem, 2.4vw, 1.05rem); margin: 0; }

/* --- reveal animations --- */
.js .reveal {
  opacity: 0;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal[data-reveal="up"]    { transform: translate3d(0, 34px, 0); }
.js .reveal[data-reveal="left"]  { transform: translate3d(-38px, 0, 0); }
.js .reveal[data-reveal="right"] { transform: translate3d(38px, 0, 0); }
.js .reveal[data-reveal="scale"] { transform: scale(.93); }
.js .reveal[data-reveal="blur"]  { filter: blur(14px); transform: translate3d(0, 22px, 0); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
/* once revealed, hand transitions back to the component's own hover rules */
.js .reveal.is-done { will-change: auto; transition-delay: 0ms !important; }
.js .feat.reveal.is-done, .js .scard.reveal.is-done, .js .stat.reveal.is-done, .js .media.reveal.is-done {
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

/* ---------- 4. LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .5s var(--ease), visibility .5s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
/* failsafe: even if JS never runs, the loader can never stay forever */
.loader { animation: loaderOut .5s var(--ease) 2.6s forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader__inner { text-align: center; padding: 0 1.5rem; }
.loader__logo {
  width: 96px; height: 96px; margin: 0 auto 1.1rem;
  filter: drop-shadow(0 10px 30px rgba(6,182,212,.5));
  animation: bob 2.4s ease-in-out infinite;
}
.loader__word {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 7vw, 2.4rem);
  font-weight: 700; letter-spacing: .22em; margin: 0 0 1.1rem;
  background: var(--grad-main);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shift 2.2s linear infinite;
}
@keyframes shift { to { background-position: 250% 0; } }
.loader__bar {
  width: min(240px, 62vw); height: 3px; margin-inline: auto;
  border-radius: 99px; overflow: hidden;
  background: rgba(255,255,255,.1);
}
.loader__bar span {
  display: block; height: 100%; width: 40%;
  border-radius: 99px; background: var(--grad-main);
  animation: slide 1.1s var(--ease) infinite;
}
@keyframes slide {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(270%); }
}

/* ---------- 5. CUSTOM CURSOR (desktop only, enabled by JS) ---------- */
.cursor-dot, .cursor-ring { display: none; }

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  display: block;
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-100px, -100px, 0);
}
body.has-cursor .cursor-dot {
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  background: var(--primary-2);
  box-shadow: 0 0 12px rgba(167,139,250,.9);
}
body.has-cursor .cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(167,139,250,.6);
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease),
              border-color .25s var(--ease), background .25s var(--ease);
}
body.has-cursor.cursor-hover .cursor-ring {
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-color: var(--accent);
  background: rgba(236,72,153,.10);
}

/* ---------- 6. NAVIGATION ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5, 5, 8, .78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%;
  display: flex; align-items: center; gap: 1rem;
}
.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad-main);
}

.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: .1em;
  font-size: clamp(.9rem, 3.2vw, 1.02rem);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.logo__mark {
  display: block;
  width: 40px; height: 40px; flex: none;
  filter: drop-shadow(0 4px 12px rgba(6,182,212,.45));
  transition: transform .4s var(--ease);
}
.logo__mark img { width: 100%; height: 100%; object-fit: contain; }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.08); }
.logo__text em { font-style: normal; color: var(--primary-2); }
.logo.is-silly { animation: wobble .5s var(--ease); }
@keyframes wobble {
  0%,100% { transform: rotate(0); }
  25% { transform: rotate(-5deg) scale(1.06); }
  75% { transform: rotate(5deg) scale(1.06); }
}

.nav__links { display: none; gap: .3rem; }
.nav__link {
  position: relative;
  padding: .55rem .85rem;
  font-size: .84rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .25rem;
  height: 1.5px; border-radius: 2px; background: var(--grad-main);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { display: none; }

.burger {
  position: relative;
  width: 46px; height: 46px; min-height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block; position: absolute;
  width: 20px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .35s var(--ease), opacity .2s var(--ease), width .35s var(--ease);
}
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3) { transform: translateY(6px); width: 13px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); width: 20px; }

/* mobile menu */
.mobilemenu {
  position: fixed; inset: 0; z-index: 890;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 3rem;
  background: rgba(5,5,8,.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mobilemenu[hidden] { display: none; }
.mobilemenu.is-open { opacity: 1; visibility: visible; }
.mobilemenu::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 20% 15%, rgba(139,92,246,.20), transparent 70%),
    radial-gradient(50% 40% at 85% 80%, rgba(6,182,212,.16), transparent 70%);
}
.mobilemenu__nav {
  position: relative;
  display: flex; flex-direction: column; gap: .4rem;
  width: 100%; max-width: 420px;
}
.mobilemenu__link {
  display: flex; align-items: center;
  min-height: 60px; padding: .8rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), border-color .3s, background .3s, color .3s;
}
.mobilemenu.is-open .mobilemenu__link { opacity: 1; transform: none; }
.mobilemenu.is-open .mobilemenu__link:nth-child(1) { transition-delay: .06s; }
.mobilemenu.is-open .mobilemenu__link:nth-child(2) { transition-delay: .12s; }
.mobilemenu.is-open .mobilemenu__link:nth-child(3) { transition-delay: .18s; }
.mobilemenu.is-open .mobilemenu__link:nth-child(4) { transition-delay: .24s; }
.mobilemenu__link:hover, .mobilemenu__link:focus-visible {
  border-color: var(--primary); background: rgba(139,92,246,.14); color: #fff;
}
.mobilemenu__socials { position: relative; display: flex; gap: .8rem; }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 5.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 20%, transparent 78%);
}
.hero__orb {
  position: absolute; border-radius: 50%; z-index: 0;
  filter: blur(70px); opacity: .55;
  animation: float 16s ease-in-out infinite;
}
.hero__orb--1 { width: 46vw; max-width: 460px; aspect-ratio: 1; top: -8%; left: -14%; background: rgba(139,92,246,.55); }
.hero__orb--2 { width: 40vw; max-width: 400px; aspect-ratio: 1; bottom: -14%; right: -10%; background: rgba(6,182,212,.42); animation-delay: -5s; }
.hero__orb--3 { width: 30vw; max-width: 320px; aspect-ratio: 1; top: 42%; right: 26%; background: rgba(236,72,153,.34); animation-delay: -9s; }
@keyframes float {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  33%     { transform: translate3d(4%, -6%, 0) scale(1.08); }
  66%     { transform: translate3d(-5%, 4%, 0) scale(.95); }
}
.hero__glow {
  position: absolute; z-index: 0; width: 520px; height: 520px;
  margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.22), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
  will-change: transform;
}
body.has-cursor .hero:hover .hero__glow { opacity: 1; }

.hero__inner { position: relative; z-index: 3; text-align: center; }

.hero__logo {
  width: clamp(92px, min(24vw, 17vh), 168px); height: auto; aspect-ratio: 1;
  margin: 0 auto .9rem;
  filter: drop-shadow(0 16px 40px rgba(6,182,212,.35)) drop-shadow(0 6px 18px rgba(139,92,246,.35));
}
.js .hero__logo.is-done { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem; margin: 0 0 1.4rem;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  font-size: .76rem; letter-spacing: .08em; color: var(--text-2);
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero__title {
  font-size: clamp(2.7rem, min(15vw, 15vh), 9rem);
  font-weight: 700; letter-spacing: -.04em; line-height: .92;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.hero__title-line { display: block; }
.hero__title-line--grad {
  background: var(--grad-main);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shift 7s linear infinite;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.2vw, 1.6rem);
  font-weight: 600; letter-spacing: .02em;
  color: var(--text); margin: 0 0 .9rem;
}
.hero__desc {
  max-width: 560px; margin: 0 auto 2rem;
  color: var(--muted); font-size: clamp(.95rem, 2.6vw, 1.08rem);
}

.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
  margin-bottom: 2.2rem;
}
.hero__actions .btn { flex: 1 1 260px; max-width: 320px; }

.hero__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
}
.hero__chips li {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size: .8rem; color: var(--text-2);
}

.scrollcue {
  position: absolute; left: 50%; bottom: 1.4rem; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.scrollcue:hover { color: var(--text); }
.scrollcue__mouse {
  width: 22px; height: 34px; border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  display: grid; justify-items: center; padding-top: 6px;
}
.scrollcue__mouse i {
  width: 3px; height: 7px; border-radius: 2px; background: var(--primary-2);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 8. MARQUEE ---------- */
.marquee {
  position: relative; overflow: hidden;
  padding: .9rem 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(139,92,246,.10), rgba(236,72,153,.08), rgba(6,182,212,.10));
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(.85rem, 2.6vw, 1.1rem);
  font-weight: 600; letter-spacing: .18em;
  color: rgba(255,255,255,.55);
  white-space: nowrap; padding-right: 1rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. ABOUT ---------- */
.about { display: grid; gap: clamp(2rem, 6vw, 3.5rem); }

.about__visual { display: grid; justify-items: center; gap: 1rem; }
.avatar {
  position: relative;
  width: min(280px, 72vw); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
}
.avatar__ring {
  position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--secondary), var(--primary));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar__img {
  position: absolute; left: 0; right: 0; bottom: -4%;
  margin-inline: auto;
  height: 114%; width: auto; max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.55));
  animation: bob 6s ease-in-out infinite;
}
.avatar__tag {
  padding: .4rem .95rem; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: .78rem; color: var(--muted); letter-spacing: .06em;
}

.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  font-weight: 600; color: var(--text); line-height: 1.35;
}
.about__body p { color: var(--text-2); }
.about__body em { color: var(--primary-2); font-style: italic; }

.stats { display: grid; gap: .8rem; margin-top: 2rem; }
.stat {
  position: relative;
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-main);
}
.stat:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.stat__label {
  display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: .2rem;
}
.stat__value {
  display: block; font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.18rem); font-weight: 600; color: var(--text);
}

/* ---------- 10. FEATURE CARDS ---------- */
.featgrid { display: grid; gap: 1rem; }

.feat {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.feat::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,.18), transparent 60%);
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.feat:hover { border-color: rgba(139,92,246,.45); box-shadow: 0 22px 50px -26px rgba(139,92,246,.7); }
.feat:hover::before { opacity: 1; }
.feat__emoji {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 1rem;
  font-size: 1.6rem; border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
.feat:hover .feat__emoji { transform: translateY(-4px) rotate(-8deg) scale(1.06); }
.feat__title { font-size: 1.12rem; margin-bottom: .35rem; }
.feat__text { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- 11. LATEST / FEATURED CONTENT ---------- */
.latestgrid { display: grid; gap: 1.1rem; }

.media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.media:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.media__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000;
}
.media__frame--vertical { aspect-ratio: 9 / 16; max-height: 70vh; }
.media__frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.media__body { padding: 1.1rem 1.2rem 1.3rem; }
.media__platform {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: .4rem;
}
.media__title { font-size: 1.05rem; margin: 0 0 .8rem; }
.media__link {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  color: var(--primary-2);
}
.media__link:hover { color: var(--accent); }

.media--link .media__frame {
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(139,92,246,.18), rgba(6,182,212,.10));
}
.media--link .media__frame span { font-size: 2.6rem; }

.emptystate {
  grid-column: 1 / -1;
  display: grid; place-items: center; gap: .6rem; text-align: center;
  padding: clamp(2.5rem, 8vw, 4rem) 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: linear-gradient(150deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.emptystate__emoji { font-size: 2.6rem; }
.emptystate h3 { font-size: 1.2rem; margin: 0; }
.emptystate p { color: var(--muted); max-width: 460px; margin: 0; font-size: .95rem; }
.emptystate .btn { margin-top: .6rem; }

/* ---------- 12. SOCIAL CARDS ---------- */
.socialgrid { display: grid; gap: 1.1rem; }

.scard {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 280px;
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.scard__shine {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 55%);
  transition: opacity .35s var(--ease);
}
.scard:hover .scard__shine { opacity: 1; }
.scard::after { /* animated gradient edge */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, var(--c1), var(--c2), var(--c1));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease);
  animation: shift 4.5s linear infinite;
  pointer-events: none;
}
.scard:hover::after, .scard:focus-within::after { opacity: 1; }
.scard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px var(--c1); }

.scard--yt { --c1: #ff3d3d; --c2: #ff9a3d; }
.scard--ig { --c1: #e1306c; --c2: #8b5cf6; }
.scard--fb { --c1: #2d88ff; --c2: #06b6d4; }

.scard__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 1.1rem;
  border-radius: 18px;
  color: var(--c1);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.scard:hover .scard__icon { transform: translateY(-4px) scale(1.07); background: rgba(255,255,255,.09); }
.scard__title { font-size: 1.45rem; margin-bottom: .35rem; }
.scard__text { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.scard .btn { position: relative; z-index: 2; }
.scard:hover .btn--outline { border-color: var(--c1); color: #fff; }

/* ---------- 13. FINAL CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 12vw, 7.5rem) 0;
  border-block: 1px solid var(--line);
}
.cta__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 20% 20%, rgba(139,92,246,.26), transparent 65%),
    radial-gradient(55% 65% at 80% 75%, rgba(236,72,153,.22), transparent 65%),
    radial-gradient(45% 55% at 50% 50%, rgba(6,182,212,.16), transparent 70%);
  animation: float 20s ease-in-out infinite;
}
.cta__inner { position: relative; text-align: center; }
.cta__title {
  font-size: clamp(1.9rem, 8vw, 4rem);
  text-transform: uppercase; margin-bottom: .7rem;
}
.cta__sub {
  color: var(--text-2); max-width: 520px; margin: 0 auto 2rem;
  font-size: clamp(.95rem, 2.6vw, 1.08rem);
}
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.cta__actions .btn { flex: 1 1 200px; max-width: 260px; }

/* ---------- 14. FOOTER ---------- */
.footer { padding: clamp(2.5rem, 7vw, 4rem) 0 1.6rem; background: var(--bg-soft); }
.footer__inner {
  display: grid; gap: 2rem; justify-items: center; text-align: center;
  padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.footer__logo {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; letter-spacing: .14em; margin: 0 0 .4rem;
}
.footer__logo em { font-style: normal; color: var(--primary-2); }
.footer__logo img { width: 44px; height: 44px; flex: none; }
.footer__tag { color: var(--muted); font-size: .92rem; margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; }
.footer__nav a {
  position: relative; min-height: 44px; display: inline-flex; align-items: center;
  font-size: .85rem; color: var(--muted); transition: color .3s;
}
.footer__nav a:hover { color: var(--text); }
.footer__socials { display: flex; gap: .7rem; }
.footer__copy {
  margin: 1.4rem 0 0; text-align: center;
  font-size: .8rem; color: var(--muted);
}

/* ---------- 15. MISC: back-to-top, toast, confetti, 404 ---------- */
.totop {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 880;
  width: 50px; height: 50px; min-height: 44px;
  display: grid; place-items: center;
  border-radius: 16px; color: #fff;
  background: linear-gradient(140deg, var(--primary), #6d28d9);
  box-shadow: var(--glow-primary);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { transform: translateY(-4px); }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 950;
  transform: translate(-50%, 24px);
  max-width: min(420px, calc(100vw - 2rem));
  padding: .85rem 1.2rem; border-radius: 16px;
  background: rgba(13,13,20,.95);
  border: 1px solid var(--primary);
  box-shadow: var(--glow-primary);
  font-size: .92rem; text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.confetti {
  position: fixed; top: 0; z-index: 940;
  font-size: 1.6rem; pointer-events: none;
  animation: fall 2.4s linear forwards;
}
@keyframes fall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(540deg); opacity: 0; }
}

#topSentinel { position: absolute; top: 0; left: 0; width: 1px; height: 620px; pointer-events: none; }

/* 404 page */
.page404 {
  min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 4rem var(--pad);
  position: relative; overflow: hidden;
}
.page404__char {
  width: clamp(150px, 38vw, 260px); height: auto; margin: 0 auto .6rem;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.6));
  animation: bob 5s ease-in-out infinite;
}
.page404__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 22vw, 10rem);
  font-weight: 700; line-height: .9; margin: 0 0 .4rem;
  background: var(--grad-main); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shift 6s linear infinite;
}
.page404__title { font-size: clamp(1.2rem, 5vw, 2rem); margin-bottom: .6rem; }
.page404__text { color: var(--muted); max-width: 420px; margin: 0 auto 2rem; }
.page404__inner { position: relative; z-index: 3; }
.page404__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* ---------- 16. RESPONSIVE ---------- */
@media (min-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

@media (min-width: 640px) {
  .featgrid { grid-template-columns: repeat(2, 1fr); }
  .socialgrid { grid-template-columns: repeat(2, 1fr); }
  .latestgrid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr auto; justify-items: start; text-align: left; align-items: center; }
  .footer__nav { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (min-width: 900px) {
  :root { --nav-h: 78px; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }

  .about { grid-template-columns: minmax(240px, 340px) 1fr; align-items: center; }
  .about__visual { justify-items: center; }

  .featgrid { grid-template-columns: repeat(3, 1fr); }
  .featgrid .feat:nth-child(4) { grid-column: 1 / 2; }
  .socialgrid { grid-template-columns: repeat(3, 1fr); }
  .latestgrid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { text-align: left; }

  .footer__inner { grid-template-columns: 1fr auto auto; gap: 2.5rem; }
  .footer__nav { grid-column: auto; }
}

@media (min-width: 1440px) {
  :root { --container: 1320px; }
  body { font-size: 17px; }
}

@media (min-width: 1920px) {
  :root { --container: 1480px; }
}

/* very small phones */
@media (max-width: 359px) {
  .hero__chips { display: none; }
  .btn { font-size: .78rem; padding: .8rem 1.1rem; }
  .logo__text { font-size: .82rem; }
}

/* touch devices: kill hover-only transforms that can stick */
@media (hover: none) {
  .btn:hover, .feat:hover, .scard:hover, .media:hover, .stat:hover, .iconbtn:hover { transform: none; }
  .scard__shine, .feat::before { display: none; }
}

/* ---------- 17. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__orb, .cta__bg, .marquee__track, .avatar__ring { animation: none !important; }
  .grain { display: none; }
}
