:root {
  --ink: #03020a;
  --night: #08041a;
  --panel: rgba(8, 7, 27, 0.78);
  --white: #f7f5ff;
  --muted: #bbb7d0;
  --cyan: #15dcff;
  --blue: #3075ff;
  --violet: #8b35ff;
  --pink: #f326e8;
  --line: rgba(119, 100, 255, 0.32);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; color: var(--white); background: var(--ink); font-family: "Segoe UI", Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.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; }
.site-shell { position: relative; overflow: hidden; }
.site-shell::before { content: ""; position: fixed; inset: 0; opacity: .16; pointer-events: none; z-index: 30; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"); }

.topbar { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; height: 86px; padding: 0 clamp(24px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(3,2,10,.88), rgba(3,2,10,.1)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: Impact, "Arial Black", sans-serif; font-size: 1.08rem; letter-spacing: .12em; }
.brand > span:last-child > span { color: var(--cyan); }
.brand-crown { color: var(--pink); font-size: 1.25rem; text-shadow: 0 0 16px var(--pink); transform: rotate(-10deg); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.site-nav a { text-decoration: none; color: #dfdbf4; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--cyan); }
.site-nav .nav-cta { padding: 12px 16px; color: var(--white); border: 1px solid rgba(21,220,255,.65); background: rgba(21,220,255,.09); box-shadow: inset 0 0 18px rgba(21,220,255,.08), 0 0 18px rgba(21,220,255,.08); }
.menu-button { display: none; padding: 8px; border: 0; background: transparent; }
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--white); }

.hero { position: relative; min-height: 830px; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -5; background: url("assets/knightw0lf-hero.webp") center 17% / cover no-repeat; transform: scale(1.015); animation: hero-breathe 14s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; z-index: -4; background: linear-gradient(90deg, rgba(3,2,10,.94) 0%, rgba(3,2,10,.75) 37%, rgba(3,2,10,.14) 72%), linear-gradient(0deg, var(--ink) 0%, transparent 30%, rgba(3,2,10,.2) 80%); }
.aurora { position: absolute; z-index: -3; width: 45vw; height: 45vw; border-radius: 50%; filter: blur(100px); opacity: .18; pointer-events: none; }
.aurora-one { left: -15vw; bottom: -20vw; background: var(--blue); animation: drift-one 9s ease-in-out infinite alternate; }
.aurora-two { right: -18vw; top: 10vh; background: var(--pink); animation: drift-two 11s ease-in-out infinite alternate; }
.hero-content { width: min(var(--max), calc(100% - 48px)); margin: 82px auto 0; padding-right: 50%; }
.eyebrow { margin: 0 0 20px; color: var(--cyan); font-size: .75rem; line-height: 1.4; font-weight: 900; text-transform: uppercase; letter-spacing: .23em; }
.live-pip { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 5px rgba(243,38,232,.12), 0 0 18px var(--pink); animation: pulse 1.8s infinite; }
h1, h2 { margin: 0; font-family: Impact, "Arial Black", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .015em; line-height: .88; }
h1 { font-size: clamp(4.4rem, 8vw, 8.2rem); max-width: 760px; text-shadow: 0 5px 35px rgba(0,0,0,.7); }
h1 span, h2 span { color: transparent; background: linear-gradient(90deg, var(--cyan), var(--blue) 35%, var(--pink) 86%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 22px rgba(139,53,255,.28)); }
.hero-copy { max-width: 610px; margin: 26px 0 0; color: #d3cee4; font-size: clamp(1rem, 1.5vw, 1.17rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 24px; color: var(--white); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; text-decoration: none; border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-3px); }
.button-primary { border-color: var(--cyan); background: linear-gradient(115deg, #1464de 0%, #7a27eb 55%, #e61edc 100%); box-shadow: 0 12px 42px rgba(101,38,234,.34), inset 0 0 16px rgba(255,255,255,.12); }
.button-primary:hover, .button-primary:focus-visible { box-shadow: 0 18px 54px rgba(101,38,234,.52), 0 0 20px rgba(21,220,255,.26); }
.button-flare { position: absolute; z-index: -1; top: -100%; left: -30%; width: 30%; height: 300%; transform: rotate(24deg); background: rgba(255,255,255,.34); filter: blur(6px); animation: flare 4.5s ease-in-out infinite; }
.button-ghost { background: rgba(4,3,14,.54); backdrop-filter: blur(12px); }
.button-ghost:hover, .button-ghost:focus-visible { border-color: var(--pink); box-shadow: 0 0 22px rgba(243,38,232,.18); }
.scroll-cue { position: absolute; right: clamp(24px, 5vw, 72px); bottom: 38px; display: flex; align-items: center; gap: 16px; color: #d7d2e8; text-decoration: none; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 800; writing-mode: vertical-rl; }
.scroll-cue b { color: var(--cyan); font-size: 1.1rem; }

.signal-strip { position: relative; z-index: 3; overflow: hidden; padding: 13px 0; border-top: 1px solid rgba(21,220,255,.4); border-bottom: 1px solid rgba(243,38,232,.35); background: linear-gradient(90deg, rgba(20,100,222,.2), rgba(122,39,235,.25), rgba(230,30,220,.2)); box-shadow: 0 0 32px rgba(90,44,223,.25); transform: rotate(-1deg) scale(1.01); }
.signal-track { width: max-content; display: flex; align-items: center; gap: 30px; animation: marquee 28s linear infinite; font-family: Impact, "Arial Black", sans-serif; font-style: italic; font-size: .9rem; letter-spacing: .2em; }
.signal-track i { color: var(--pink); }

.section { position: relative; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 130px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 58px; }
h2 { font-size: clamp(3.5rem, 6vw, 6.5rem); }
.about-section { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(380px, 1fr); gap: 44px clamp(50px, 9vw, 120px); align-items: start; }
.about-section::after { content: ""; position: absolute; z-index: -1; left: 34%; top: 100px; width: 460px; height: 460px; border-radius: 50%; background: var(--violet); filter: blur(150px); opacity: .1; }
.about-intro { position: sticky; top: 40px; }
.about-copy { padding-top: 4px; color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.about-copy p { margin: 0 0 24px; }
.about-copy strong { color: var(--white); }
.about-lead { color: var(--white); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.45; font-weight: 650; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.topic-tags span { padding: 9px 12px; border: 1px solid rgba(21,220,255,.36); color: var(--cyan); background: rgba(21,220,255,.05); font-size: .64rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.quick-answers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; }
.quick-answers div { padding: 25px; border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--cyan), var(--pink)) 1; background: linear-gradient(145deg, rgba(15,12,45,.65), rgba(4,3,14,.8)); }
.quick-answers dt { margin-bottom: 11px; color: var(--white); font-family: Impact, "Arial Black", sans-serif; font-size: 1.15rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.quick-answers dd { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.schedule-section::before, .connect-section::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(130px); opacity: .14; background: var(--blue); }
.schedule-section::before { left: -340px; top: 210px; }
.next-stream { min-width: 250px; padding: 18px 20px; border-left: 2px solid var(--pink); background: linear-gradient(90deg, rgba(243,38,232,.1), transparent); }
.next-stream span, .next-stream small { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .17em; }
.next-stream strong { display: block; margin: 7px 0 5px; font-family: Impact, "Arial Black", sans-serif; font-size: 1.65rem; letter-spacing: .04em; }
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 44px; align-items: start; }
.schedule-art { position: sticky; top: 34px; padding: 5px; border: 1px solid rgba(21,220,255,.44); background: rgba(8,7,27,.75); box-shadow: 0 22px 80px rgba(0,0,0,.55), 0 0 35px rgba(55,94,255,.14); }
.schedule-art img { width: 100%; }
.image-glow { position: absolute; inset: -1px; pointer-events: none; box-shadow: inset 0 0 30px rgba(21,220,255,.15); }
.schedule-list { border-top: 1px solid var(--line); }
.schedule-row { position: relative; min-height: 105px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); overflow: hidden; }
.schedule-row::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-101%); transition: transform .35s ease; background: linear-gradient(90deg, rgba(21,220,255,.11), rgba(243,38,232,.08)); }
.schedule-row:hover::before { transform: none; }
.day-number { color: var(--pink); font-size: .69rem; font-weight: 900; letter-spacing: .14em; }
.schedule-row h3 { margin: 0 0 4px; font-family: Impact, "Arial Black", sans-serif; font-size: 1.65rem; text-transform: uppercase; letter-spacing: .04em; }
.schedule-row p { margin: 0; color: var(--cyan); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.schedule-row time { color: #d9d5e7; font-size: .74rem; font-weight: 800; white-space: nowrap; }

.highlight-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .65fr); justify-content: space-between; gap: clamp(60px, 10vw, 150px); align-items: center; }
.highlight-section::after { content: "05"; position: absolute; z-index: -1; left: 12%; bottom: 35px; color: rgba(255,255,255,.018); font-family: Impact, sans-serif; font-size: 34rem; line-height: .7; }
.highlight-copy p:not(.eyebrow) { max-width: 540px; margin: 30px 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.text-link { display: inline-flex; gap: 11px; color: var(--cyan); text-decoration: none; text-transform: uppercase; font-weight: 900; letter-spacing: .13em; font-size: .76rem; border-bottom: 1px solid rgba(21,220,255,.45); padding-bottom: 8px; }
.video-stage { position: relative; width: min(100%, 430px); justify-self: end; }
.video-frame { position: relative; padding: 7px; background: linear-gradient(150deg, var(--cyan), var(--pink)); clip-path: polygon(0 0, 89% 0, 100% 6%, 100% 100%, 10% 100%, 0 95%); box-shadow: 0 25px 100px rgba(33,45,145,.4); }
.video-frame video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.corner { position: absolute; width: 54px; height: 54px; border-color: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.corner-tl { left: -16px; top: -16px; border-left: 2px solid; border-top: 2px solid; }
.corner-br { right: -16px; bottom: 45px; border-right: 2px solid; border-bottom: 2px solid; border-color: var(--pink); }
.video-caption { display: flex; justify-content: space-between; gap: 20px; margin: 18px 3px 0; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; }
.video-caption span { color: var(--cyan); font-weight: 900; }

.code-section { text-align: center; }
.code-section .eyebrow { text-align: center; }
.code-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; text-align: left; }
.code-card { min-height: 270px; padding: 30px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(15,12,45,.82), rgba(4,3,14,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: transform .25s ease, border-color .25s ease; }
.code-card:hover { transform: translateY(-7px); border-color: rgba(21,220,255,.6); }
.code-card b { color: var(--pink); font-size: .72rem; letter-spacing: .18em; }
.code-card h3 { margin: 68px 0 12px; font-family: Impact, "Arial Black", sans-serif; font-size: 2rem; text-transform: uppercase; letter-spacing: .04em; }
.code-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.connect-section::before { right: -360px; top: 100px; background: var(--pink); }
.connect-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 58px; }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.social-card { --platform: var(--cyan); min-height: 135px; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; padding: 24px; color: var(--white); text-decoration: none; border: 1px solid var(--line); background: rgba(9,7,29,.72); backdrop-filter: blur(10px); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.social-card:hover, .social-card:focus-visible { transform: translateY(-4px); border-color: var(--platform); box-shadow: 0 18px 44px rgba(0,0,0,.35), 0 0 24px color-mix(in srgb, var(--platform) 18%, transparent); }
.platform-mark { width: 62px; height: 62px; display: grid; place-items: center; color: var(--platform); border: 1px solid var(--platform); font-family: Impact, "Arial Black", sans-serif; font-size: 1.25rem; letter-spacing: .05em; box-shadow: inset 0 0 18px color-mix(in srgb, var(--platform) 13%, transparent), 0 0 16px color-mix(in srgb, var(--platform) 12%, transparent); }
.social-card small, .social-card em { display: block; color: var(--muted); font-style: normal; font-size: .63rem; text-transform: uppercase; letter-spacing: .14em; }
.social-card strong { display: block; margin: 5px 0 7px; font-family: Impact, "Arial Black", sans-serif; font-size: 1.65rem; text-transform: uppercase; letter-spacing: .05em; }
.social-card em { color: var(--platform); font-weight: 900; }
.social-card > b { color: var(--platform); font-size: 1.2rem; }
.twitch { --platform: #a970ff; }
.tiktok { --platform: #20f5ed; }
.youtube { --platform: #ff3650; }
.instagram { --platform: #f244d1; }
.discord { --platform: #8797ff; grid-column: 1 / -1; }

.final-cta { position: relative; min-height: 650px; padding: 120px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: radial-gradient(circle at center, rgba(77,60,223,.28), transparent 30%), linear-gradient(180deg, var(--ink), #08051d 50%, var(--ink)); }
.final-cta::before { content: ""; position: absolute; inset: 0; opacity: .5; background: linear-gradient(transparent 50%, rgba(0,0,0,.6)), url("assets/knightw0lf-hero.webp") center 23% / cover no-repeat; mix-blend-mode: screen; filter: saturate(1.15) contrast(1.1); }
.final-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 0 13%, rgba(3,2,10,.35) 35%, var(--ink) 78%); }
.final-cta > * { position: relative; z-index: 2; }
.final-cta h2 { font-size: clamp(4.5rem, 10vw, 10rem); }
.final-cta > p:not(.eyebrow) { color: #d4cee8; margin: 22px 0 28px; }
.moon-ring { position: absolute; z-index: 1; width: 340px; height: 340px; border: 1px solid rgba(21,220,255,.38); border-radius: 50%; box-shadow: 0 0 60px rgba(21,220,255,.2), inset 0 0 80px rgba(139,53,255,.2); animation: moon-pulse 4s ease-in-out infinite alternate; }

footer { min-height: 110px; padding: 28px clamp(24px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); background: #020107; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.25,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes hero-breathe { from { transform: scale(1.015); } to { transform: scale(1.07) translate3d(1%, -1%, 0); } }
@keyframes drift-one { to { transform: translate(12vw, -6vw); } }
@keyframes drift-two { to { transform: translate(-9vw, 8vw); } }
@keyframes pulse { 50% { opacity: .45; box-shadow: 0 0 0 9px rgba(243,38,232,.04), 0 0 24px var(--pink); } }
@keyframes flare { 0%, 18% { transform: translateX(-250%) rotate(24deg); } 52%, 100% { transform: translateX(650%) rotate(24deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes moon-pulse { to { transform: scale(1.07); opacity: .65; } }

@media (max-width: 980px) {
  .hero { min-height: 760px; }
  .hero-content { padding-right: 28%; }
  .schedule-layout { grid-template-columns: 1fr; }
  .schedule-art { position: relative; top: auto; }
  .about-section { grid-template-columns: 1fr; }
  .about-intro { position: relative; top: auto; }
  .quick-answers { grid-template-columns: 1fr; }
  .highlight-section { gap: 50px; }
  .code-grid { grid-template-columns: 1fr; }
  .code-card { min-height: auto; }
  .code-card h3 { margin-top: 34px; }
}

@media (max-width: 760px) {
  .topbar { height: 74px; padding-inline: 20px; }
  .menu-button { display: block; position: relative; z-index: 2; }
  .site-nav { position: absolute; top: 0; right: 0; width: min(320px, 85vw); min-height: 100vh; padding: 110px 30px 40px; align-items: stretch; flex-direction: column; background: rgba(4,3,16,.97); border-left: 1px solid var(--line); transform: translateX(102%); transition: transform .28s ease; }
  .site-nav.is-open { transform: none; }
  .site-nav a { padding: 10px 0; }
  .hero { min-height: 790px; align-items: end; padding-bottom: 95px; }
  .hero-art { background-position: 58% top; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(3,2,10,.88) 32%, rgba(3,2,10,.16) 72%), linear-gradient(90deg, rgba(3,2,10,.4), transparent); }
  .hero-content { width: calc(100% - 40px); margin: 0 auto; padding: 0; }
  h1 { font-size: clamp(3.9rem, 17vw, 6rem); }
  .hero-copy { line-height: 1.55; }
  .hero-actions { align-items: stretch; }
  .button { width: 100%; }
  .scroll-cue { display: none; }
  .section { width: calc(100% - 40px); padding: 90px 0; }
  .section-heading, .connect-heading { display: block; }
  .next-stream { margin-top: 32px; }
  .schedule-layout { gap: 26px; }
  .schedule-row { grid-template-columns: 34px 1fr; }
  .schedule-row time { grid-column: 2; margin: -18px 0 18px; color: #ece9f7; }
  .highlight-section { display: flex; flex-direction: column; align-items: stretch; }
  .video-stage { justify-self: auto; align-self: center; }
  .social-grid { grid-template-columns: 1fr; }
  .discord { grid-column: auto; }
  .social-card { grid-template-columns: 58px 1fr auto; padding: 18px; }
  .platform-mark { width: 52px; height: 52px; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 430px) {
  .hero { min-height: 740px; }
  .hero-content { width: calc(100% - 32px); }
  h1 { font-size: 3.65rem; }
  h2 { font-size: 3.2rem; }
  .section { width: calc(100% - 32px); }
  .schedule-row h3 { font-size: 1.4rem; }
  .social-card strong { font-size: 1.4rem; }
  .final-cta h2 { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
