@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root{
  --green:#87ff71;
  --cyan:#01cdfe;
  --magenta:#ff5fd2;
  --ink:#192617;
  --bg:#0b120e;
  --text:#e6ffe0;
  --dim:#a9c9a3;
  --line:rgba(135,255,113,.24);
  --line2:rgba(1,205,254,.3);
  --r:28px;
  --f-pix:'Press Start 2P','VT323',monospace;
  --f-body:'VT323','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  background-color:var(--bg);
  background-image:
    radial-gradient(72% 40% at 50% 0%, rgba(255,95,210,.55), rgba(255,95,210,0) 72%),
    radial-gradient(130% 48% at 50% 104%, rgba(1,205,254,.28), rgba(1,205,254,0) 74%),
    linear-gradient(180deg,#231338 0%,#12211a 46%,#0b120e 100%);
  background-attachment:fixed;
  background-repeat:no-repeat;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  padding-bottom:106px;
  color:var(--text);
  font-family:var(--f-body);
  font-size:19px;
  line-height:1.65;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:90;
  pointer-events:none;
  background:repeating-linear-gradient(180deg,rgba(0,0,0,.22) 0 1px,rgba(0,0,0,0) 1px 4px);
}

img{max-width:100%;height:auto;display:block}
a{color:var(--cyan)}
a:focus-visible,summary:focus-visible,button:focus-visible{outline:2px solid var(--green);outline-offset:3px}

[id]{scroll-margin-top:22px}

/* ---------- hero ---------- */
.hero{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:16px 22px;
  min-height:45vh;
  padding:46px 18px 40px;
  text-align:center;
  overflow:hidden;
  border-bottom:1px solid var(--line2);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.55;
  background-image:
    linear-gradient(rgba(1,205,254,.24) 1px,transparent 1px),
    linear-gradient(90deg,rgba(135,255,113,.16) 1px,transparent 1px);
  background-size:34px 34px;
  -webkit-mask-image:radial-gradient(72% 84% at 50% 42%,#000 26%,transparent 100%);
  mask-image:radial-gradient(72% 84% at 50% 42%,#000 26%,transparent 100%);
}
.hero h1{
  margin:0;
  max-width:16em;
  font-family:var(--f-pix);
  font-size:clamp(17px,4.6vw,32px);
  line-height:1.55;
  letter-spacing:.02em;
  color:#f4fff2;
  text-shadow:0 0 8px rgba(1,205,254,.9),0 0 22px rgba(255,95,210,.65),0 3px 0 rgba(11,18,14,.9);
  animation:breathe 7s ease-in-out infinite;
}
@keyframes breathe{
  0%,100%{text-shadow:0 0 8px rgba(1,205,254,.9),0 0 22px rgba(255,95,210,.65),0 3px 0 rgba(11,18,14,.9)}
  50%{text-shadow:0 0 12px rgba(135,255,113,.95),0 0 30px rgba(1,205,254,.7),0 3px 0 rgba(11,18,14,.9)}
}

.art{
  margin:0;
  flex:0 0 auto;
  width:82px;
  height:82px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:var(--r);
  border:1px solid rgba(135,255,113,.5);
  background:rgba(25,38,23,.62);
  box-shadow:inset 0 0 24px rgba(135,255,113,.22),0 12px 26px rgba(0,0,0,.42);
}
.art-img{width:100%;height:100%;object-fit:cover}
.art-sun{
  width:44px;
  height:44px;
  border-radius:50%;
  background:linear-gradient(180deg,#ffe27a,#ff5fd2 56%,#01cdfe);
  box-shadow:0 0 18px rgba(255,95,210,.85);
}

/* ---------- shell / rail ---------- */
.shell{
  max-width:1120px;
  margin:0 auto;
  padding:42px 18px 10px;
  display:grid;
  grid-template-columns:206px minmax(0,1fr);
  gap:36px;
  align-items:start;
}

.rail{
  position:sticky;
  top:20px;
  padding:16px 14px 18px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(14,24,18,.74);
  box-shadow:0 14px 34px rgba(0,0,0,.38);
}
.rail-title{
  margin:0 0 10px;
  font-family:var(--f-body);
  font-size:17px;
  letter-spacing:.16em;
  color:var(--green);
}
.rail-title span{
  display:inline-block;
  padding-bottom:4px;
  border-bottom:2px solid rgba(135,255,113,.55);
}
.rail-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 8px;
  border-radius:14px;
  color:var(--text);
  text-decoration:none;
  font-size:17px;
  border-left:2px solid transparent;
  transition:background .2s,color .2s,border-color .2s;
}
.rail-list a:hover{
  background:rgba(1,205,254,.14);
  border-left-color:var(--cyan);
  color:var(--green);
}

/* ---------- content ---------- */
.body-content{max-width:70ch;min-width:0;overflow-wrap:break-word}
.body-content article{
  margin-top:38px;
  padding-top:34px;
  border-top:1px dashed var(--line2);
}
.body-content article:first-child{margin-top:0;padding-top:2px;border-top:0}
.body-content h2,.body-content h3{
  margin:0 0 14px;
  font-family:var(--f-pix);
  line-height:1.6;
  color:#effff4;
}
.body-content h2{font-size:clamp(15px,3.3vw,21px);text-shadow:0 0 10px rgba(1,205,254,.55)}
.body-content h3{font-size:clamp(13px,2.8vw,17px);text-shadow:0 0 10px rgba(255,95,210,.45)}
.body-content h2 span,.body-content h3 span{
  display:inline-block;
  padding-bottom:6px;
  border-bottom:2px solid var(--green);
}
.body-content h3 span{border-bottom-color:var(--magenta)}
.body-content p{margin:0 0 1.05em}
.body-content ul,.body-content ol{margin:0 0 1.1em;padding-left:1.25em}
.body-content li{margin:0 0 .5em}
.body-content strong{color:var(--green)}
.body-content a{color:var(--cyan);text-decoration:underline;text-underline-offset:3px}
.body-content a:hover{color:var(--green)}
.body-content figure,.body-content aside{
  margin:0 0 1.1em;
  padding:14px 16px;
  border:1px dashed var(--line2);
  border-radius:20px;
  background:rgba(25,38,23,.5);
}

/* ---------- footer ---------- */
.foot{max-width:1120px;margin:60px auto 0;padding:0 18px 34px}
.foot-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:26px 24px;
  border-radius:var(--r);
  border:1px solid rgba(135,255,113,.45);
  background:linear-gradient(120deg,rgba(255,95,210,.22),rgba(1,205,254,.18) 52%,rgba(135,255,113,.2));
  box-shadow:0 18px 44px rgba(0,0,0,.44);
}
.foot-cta h2{
  margin:0;
  font-family:var(--f-pix);
  font-size:clamp(12px,2.9vw,17px);
  line-height:1.7;
  color:#fff;
  text-shadow:0 0 12px rgba(255,95,210,.85);
}
.foot-cta h2 span{display:inline-block}
.shout{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 24px;
  border-radius:999px;
  background:var(--green);
  color:#0b120e;
  font-weight:700;
  font-size:17px;
  text-decoration:none;
  box-shadow:0 0 0 2px rgba(11,18,14,.35),0 8px 20px rgba(135,255,113,.4);
  transition:transform .18s,box-shadow .18s;
}
.shout:hover{transform:translateY(-2px);box-shadow:0 0 0 2px rgba(11,18,14,.35),0 12px 26px rgba(1,205,254,.5)}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 20px;
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:17px;
  color:var(--dim);
}
address{font-style:normal;color:var(--green);letter-spacing:.04em}
.foot-links{display:flex;flex-wrap:wrap;gap:4px 18px;list-style:none;margin:0;padding:0}
.foot-links a{display:inline-flex;align-items:center;min-height:40px;color:var(--text);text-decoration:none}
.foot-links a:hover{color:var(--cyan)}
.copy{margin:0 0 0 auto}

/* ---------- dock ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:50;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:8px;
  padding:9px 12px calc(9px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(11,18,14,.84),rgba(11,18,14,.98));
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border-top:1px solid rgba(135,255,113,.42);
  box-shadow:0 -12px 32px rgba(0,0,0,.46);
}
.brand{
  justify-self:center;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  text-decoration:none;
  color:var(--green);
  font-family:var(--f-pix);
  font-size:11px;
  line-height:1.8;
  text-shadow:0 0 10px rgba(135,255,113,.8);
  transition:color .2s,text-shadow .2s;
}
.brand:hover{
  color:#fff;
  text-shadow:2px 0 0 var(--cyan),-2px 0 0 var(--magenta),0 0 16px rgba(255,95,210,.9);
}

.dock-menu{position:relative}
.dock-menu summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(135,255,113,.45);
  background:rgba(25,38,23,.66);
  color:var(--green);
  font-size:16px;
  cursor:pointer;
  user-select:none;
}
.dock-menu summary::-webkit-details-marker{display:none}
.dock-menu summary::after{
  content:"";
  width:6px;
  height:6px;
  margin-left:7px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(-135deg);
  transition:transform .2s;
}
.dock-menu[open] summary::after{transform:rotate(45deg)}
.dock-menu summary:hover{background:rgba(135,255,113,.16)}

.dock-menu menu{
  position:absolute;
  left:0;
  bottom:calc(100% + 12px);
  margin:0;
  padding:10px;
  list-style:none;
  display:grid;
  gap:4px;
  min-width:184px;
  background:rgba(11,20,15,.97);
  border:1px solid var(--line2);
  border-radius:22px;
  box-shadow:0 18px 44px rgba(0,0,0,.62);
}
.dock-menu--r menu{left:auto;right:0}
.dock-menu menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  border-radius:14px;
  color:var(--text);
  text-decoration:none;
  font-size:16px;
}
.dock-menu menu a:hover{background:rgba(135,255,113,.16);color:var(--green)}

.dock-cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--green),var(--cyan));
  color:#0b120e;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 0 18px rgba(1,205,254,.45);
  transition:filter .2s,transform .18s;
}
.dock-cta:hover{filter:hue-rotate(-18deg) saturate(1.2);transform:translateY(-2px)}

/* ---------- reveal ---------- */
.rv{opacity:0;transform:translateY(16px);transition:opacity .55s ease,transform .55s ease}
.rv.in{opacity:1;transform:none}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .shell{grid-template-columns:1fr;gap:26px;padding-top:30px}
  .rail{position:static}
  .rail-list{display:flex;flex-wrap:wrap;gap:6px}
  .rail-list a{border-left:0;border:1px solid var(--line);border-radius:999px;padding:0 13px;min-height:40px;font-size:16px}
  .rail-list a:hover{border-color:var(--cyan)}
}

@media (max-width:720px){
  body{font-size:18px;padding-bottom:100px}
  .hero{min-height:42vh;padding:38px 16px 32px}
  .art{width:64px;height:64px;border-radius:22px}
  .art-sun{width:34px;height:34px}
  .dock{gap:6px;padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
  .dock-menu summary{padding:0 10px}
  .dock-cta{padding:0 12px}
  .brand{font-size:10px}
  .copy{margin-left:0}
  .foot{padding-bottom:24px}
}

@media (max-width:380px){
  .brand{font-size:9px}
  .dock-menu summary,.dock-cta{font-size:15px}
}

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

button[aria-expanded]{min-width:44px;min-height:44px}
