/* ============================================================================
   tokkyo leaks* — the shared design layer (v2, black & white)

   Every page loads this after its own stylesheet: one header, one footer, one
   type system. Display type is Archivo stretched wide (125%) and slanted, with
   the white halo the brand has always had; text is Inter. Pure black, pure
   white, and the greys between — no colour except Discord's own blurple.
============================================================================ */
:root{
  --bg:#000;
  --ink:#fff;
  --ink-2:rgba(255,255,255,.72);
  --ink-3:rgba(255,255,255,.50);
  --ink-4:rgba(255,255,255,.32);
  --line:rgba(255,255,255,.12);
  --line-2:rgba(255,255,255,.20);
  --glass:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  --glass-strong:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  --halo:0 0 18px rgba(255,255,255,.45), 0 0 46px rgba(255,255,255,.22);
  --halo-soft:0 0 10px rgba(255,255,255,.35), 0 0 28px rgba(255,255,255,.15);
  --blurple:#5865F2;
  --r:20px;
  --r-lg:28px;
  --max:1240px;
  --e-out:cubic-bezier(.22,1,.36,1);
  --e-io:cubic-bezier(.65,0,.35,1);
  --font:'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --display:'Archivo', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------------------------------------------------------------- display */
.tl-display{
  font-family:var(--display); font-stretch:125%; font-weight:900;
  text-transform:uppercase; letter-spacing:-.01em; line-height:.92;
  color:#fff; text-shadow:var(--halo);
  transform:skewX(-10deg); transform-origin:0 100%;
}
.tl-outline{
  color:transparent; -webkit-text-stroke:2px rgba(255,255,255,.92); text-shadow:none;
  filter:drop-shadow(0 0 14px rgba(255,255,255,.28));
}
.tl-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font:600 11.5px/1 var(--font); letter-spacing:.22em; text-transform:uppercase; color:var(--ink-3);
}
.tl-eyebrow i{ width:6px; height:6px; border-radius:50%; background:#fff; box-shadow:0 0 10px #fff }
.tl-pill{
  display:inline-flex; align-items:center; gap:9px; height:32px; padding:0 14px; border-radius:999px;
  background:var(--glass); border:1px solid var(--line); color:var(--ink-2);
  font:500 12.5px/1 var(--font); letter-spacing:-.01em; white-space:nowrap;
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
}
.tl-pill b{ color:#fff; font-weight:650; font-variant-numeric:tabular-nums }
.tl-pill i{ width:6px; height:6px; border-radius:50%; background:#3ba55d; box-shadow:0 0 8px rgba(59,165,93,.9) }

/* ---------------------------------------------------------------- buttons */
.tl-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:50px; padding:0 24px; border-radius:999px; border:1px solid transparent; cursor:pointer;
  font:650 14.5px/1 var(--font); letter-spacing:-.01em; text-decoration:none; white-space:nowrap;
  transition:transform .25s var(--e-out), background-color .2s ease, box-shadow .3s ease, border-color .2s ease, color .2s ease;
}
.tl-btn svg{ width:17px; height:17px; flex:none }
.tl-btn.primary{ background:#fff; color:#000; box-shadow:0 0 0 rgba(255,255,255,0) }
.tl-btn.primary:hover{ transform:translateY(-2px); box-shadow:0 10px 40px rgba(255,255,255,.28), 0 0 0 4px rgba(255,255,255,.08) }
.tl-btn.ghost{ background:var(--glass); color:#fff; border-color:var(--line-2); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px) }
.tl-btn.ghost:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,.4); background:var(--glass-strong) }
.tl-btn.discord{ background:var(--blurple); color:#fff }
.tl-btn.discord:hover{ transform:translateY(-2px); background:#4752c4; box-shadow:0 10px 36px rgba(88,101,242,.4) }
.tl-btn .arrow{ transition:transform .25s var(--e-out) }
.tl-btn:hover .arrow{ transform:translateX(3px) }

/* ---------------------------------------------------------------- header */
.tl-nav{
  position:fixed; z-index:50; top:14px; left:50%; transform:translateX(-50%);
  width:min(calc(100% - 28px), 1180px); height:60px; padding:0 10px 0 18px;
  display:flex; align-items:center; gap:18px;
  border-radius:999px; border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(18,18,20,.72), rgba(8,8,10,.62));
  -webkit-backdrop-filter:blur(22px) saturate(160%); backdrop-filter:blur(22px) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 18px 50px rgba(0,0,0,.45);
  font-family:var(--font);
  transition:top .35s var(--e-out), box-shadow .35s ease;
}
.tl-nav.scrolled{ top:8px; box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 18px 60px rgba(0,0,0,.65) }
.tl-brand{ display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; flex:none }
.tl-brand img{ width:30px; height:30px; display:block; filter:drop-shadow(0 0 8px rgba(255,255,255,.35)) }
.tl-brand span{ font:700 17px/1 var(--font); letter-spacing:-.03em; white-space:nowrap }
.tl-brand span sup{ font-size:.75em; margin-left:1px; top:-.15em }
.tl-links{ display:flex; align-items:center; gap:4px; margin:0 auto }
.tl-links a{
  position:relative; padding:10px 15px; border-radius:999px; color:var(--ink-2); text-decoration:none;
  font:500 13.5px/1 var(--font); letter-spacing:-.01em; transition:color .2s ease, background-color .2s ease;
}
.tl-links a:hover{ color:#fff; background:rgba(255,255,255,.07) }
.tl-links a[aria-current="page"]{ color:#fff; text-shadow:var(--halo-soft) }
.tl-links a[aria-current="page"]::after{
  content:''; position:absolute; left:50%; bottom:3px; width:4px; height:4px; margin-left:-2px; border-radius:50%;
  background:#fff; box-shadow:0 0 8px #fff;
}
.tl-actions{ display:flex; align-items:center; gap:6px; flex:none }
.tl-icon{
  display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%;
  color:var(--ink-2); background:transparent; border:0; cursor:pointer; text-decoration:none;
  transition:color .2s ease, background-color .2s ease, transform .2s ease;
}
.tl-icon:hover{ color:#fff; background:rgba(255,255,255,.08) }
.tl-icon svg{ width:20px; height:20px }
.tl-icon.dc{ color:#fff }
.tl-icon.dc:hover{ color:#fff; background:var(--blurple) }
.tl-cta{ height:40px; padding:0 18px; font-size:13.5px }
.tl-burger{ display:none }

/* language */
.tl-lang{ position:relative }
.tl-lang > button{
  display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 12px; border-radius:999px;
  border:0; background:transparent; color:var(--ink-2); cursor:pointer;
  font:500 13px/1 var(--font); transition:color .2s ease, background-color .2s ease;
}
.tl-lang > button:hover, .tl-lang[data-open="true"] > button{ color:#fff; background:rgba(255,255,255,.08) }
.tl-lang > button svg{ width:16px; height:16px }
.tl-lang-menu{
  display:none; position:absolute; top:calc(100% + 10px); right:0; min-width:170px; padding:6px;
  border-radius:16px; border:1px solid var(--line-2); background:rgba(12,12,14,.96);
  -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); box-shadow:0 22px 60px rgba(0,0,0,.6);
}
.tl-lang[data-open="true"] .tl-lang-menu{ display:block; animation:tl-pop .22s var(--e-out) }
.tl-lang-menu button{
  display:flex; align-items:center; justify-content:space-between; width:100%; padding:11px 12px; border:0;
  border-radius:11px; background:transparent; color:var(--ink-2); cursor:pointer; text-align:left;
  font:500 13.5px/1 var(--font);
}
.tl-lang-menu button:hover{ background:rgba(255,255,255,.07); color:#fff }
.tl-lang-menu button[aria-selected="true"]{ color:#fff }
.tl-lang-menu button[aria-selected="true"]::after{ content:''; width:6px; height:6px; border-radius:50%; background:#fff; box-shadow:0 0 8px #fff }
@keyframes tl-pop{ from{ opacity:0; transform:translateY(-6px) scale(.98) } to{ opacity:1; transform:none } }

/* mobile sheet */
.tl-sheet{
  display:none; position:fixed; z-index:49; top:84px; left:14px; right:14px; padding:10px;
  border-radius:24px; border:1px solid var(--line-2); background:rgba(10,10,12,.97);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); box-shadow:0 30px 80px rgba(0,0,0,.7);
  font-family:var(--font);
}
.tl-sheet[data-open="true"]{ display:block; animation:tl-pop .25s var(--e-out) }
.tl-sheet a{ display:block; padding:16px 16px; border-radius:14px; color:#fff; text-decoration:none; font:600 17px/1 var(--font) }
.tl-sheet a:hover{ background:rgba(255,255,255,.06) }
.tl-sheet .tl-sheet-langs{ display:flex; gap:6px; margin-top:6px; padding-top:10px; border-top:1px solid var(--line) }
.tl-sheet .tl-sheet-langs button{
  flex:1; padding:11px 0; border-radius:12px; border:1px solid var(--line); background:transparent; color:var(--ink-2);
  font:600 12.5px/1 var(--font); cursor:pointer;
}
.tl-sheet .tl-sheet-langs button[aria-selected="true"]{ background:#fff; color:#000; border-color:#fff }

@media (max-width:980px){
  .tl-links, .tl-actions .tl-lang, .tl-actions .tl-cta{ display:none }
  .tl-burger{ display:inline-flex }
  .tl-nav{ justify-content:space-between }
}

/* ---------------------------------------------------------------- footer */
.tl-foot{
  position:relative; z-index:2; margin-top:120px; padding:70px 24px 34px;
  border-top:1px solid var(--line); background:linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%);
  font-family:var(--font); color:var(--ink-3);
}
.tl-foot-in{ max-width:var(--max); margin:0 auto }
.tl-foot-top{ display:grid; grid-template-columns:1.4fr repeat(3, 1fr); gap:40px }
.tl-foot-brand p{ margin:16px 0 0; max-width:320px; font-size:14px; line-height:1.6 }
.tl-foot h4{ margin:4px 0 16px; font:600 11.5px/1 var(--font); letter-spacing:.2em; text-transform:uppercase; color:var(--ink-4) }
.tl-foot a{ color:var(--ink-2); text-decoration:none; transition:color .2s ease }
.tl-foot a:hover{ color:#fff }
.tl-foot ul{ list-style:none; margin:0; padding:0; display:grid; gap:12px; font-size:14px }
.tl-foot-word{
  margin:70px 0 0; font-family:var(--display); font-stretch:125%; font-weight:900; text-transform:uppercase;
  font-size:clamp(34px, 8.4vw, 110px); line-height:.85; letter-spacing:-.02em; white-space:nowrap;
  color:transparent; -webkit-text-stroke:1px rgba(255,255,255,.16); transform:skewX(-10deg);
  user-select:none; overflow:hidden;
}
.tl-foot-bottom{ display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:28px; font-size:13px }
.tl-socials{ display:flex; gap:6px }
.tl-socials a{ display:inline-flex; width:40px; height:40px; align-items:center; justify-content:center; border-radius:50%; border:1px solid var(--line) }
.tl-socials a:hover{ border-color:rgba(255,255,255,.4); filter:drop-shadow(0 0 8px rgba(255,255,255,.4)) }
.tl-socials svg{ width:18px; height:18px }
@media (max-width:860px){
  .tl-foot-top{ grid-template-columns:1fr 1fr; gap:34px }
  .tl-foot-brand{ grid-column:1 / -1 }
  .tl-foot-bottom{ flex-direction:column-reverse; align-items:flex-start }
}

/* ---------------------------------------------------------------- page hero (subpages) */
.tl-hero{ position:relative; z-index:2; padding:150px 24px 34px; text-align:center; font-family:var(--font) }
.tl-hero .tl-eyebrow{ display:flex; justify-content:center }
.tl-hero .tl-display{ display:table; font-size:clamp(46px, 8.4vw, 118px); margin:18px auto 0 }
.tl-hero p{ max-width:640px; margin:22px auto 0; font-size:17px; line-height:1.6; color:var(--ink-2) }

/* ---------------------------------------------------------------- beam card edge */
.tl-beam{ position:absolute; inset:-1px; border-radius:inherit; pointer-events:none; z-index:3;
  filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 12px rgba(255,255,255,.6)) }
.tl-beam i{ position:absolute; inset:0; border-radius:inherit; padding:1.5px; overflow:hidden;
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
          mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0) }
.tl-beam i::before{ content:''; position:absolute; left:50%; top:50%; width:170%; aspect-ratio:1;
  background:conic-gradient(from 0deg, transparent 0 55%, rgba(255,255,255,.3) 70%, #fff 86%, rgba(255,255,255,.3) 95%, transparent);
  transform:translate(-50%,-50%); animation:tl-spin 4.2s linear infinite }
@keyframes tl-spin{ to{ transform:translate(-50%,-50%) rotate(360deg) } }

/* ---------------------------------------------------------------- reveal + grain */
.tl-reveal{ opacity:0; transform:translateY(26px); transition:opacity .9s var(--e-out), transform .9s var(--e-out) }
.tl-reveal.in{ opacity:1; transform:none }
.tl-grain{
  position:fixed; inset:-50%; z-index:1; pointer-events:none; opacity:.05;
  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='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation:tl-grain 1.2s steps(6) infinite;
}
@keyframes tl-grain{ 0%{ transform:translate(0,0) } 33%{ transform:translate(-3%,2%) } 66%{ transform:translate(2%,-3%) } 100%{ transform:translate(0,0) } }

@media (prefers-reduced-motion:reduce){
  .tl-reveal{ opacity:1; transform:none; transition:none }
  .tl-grain, .tl-beam i::before{ animation:none }
}
