@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

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

:root{
  --blue:#225bff;
  --pink:#f680e8;
  --ink:#001e3c;
  --mint:#2ad6c4;
  --text:#e9f0ff;
  --dim:#a8bcdd;
  --line:rgba(140,180,255,.22);
  --panel:rgba(255,255,255,.045);
  --shadow:0 22px 46px -26px rgba(0,8,24,.95);
  --r:4px;
}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:'Space Mono','PingFang SC','Hiragino Sans GB','Microsoft YaHei',ui-monospace,monospace;
  font-size:17px;
  line-height:1.68;
  color:var(--text);
  background:var(--ink);
  overflow-x:hidden;
}

body::before{
  content:'';
  position:fixed;
  inset:-20vh -10vw;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(42vw 42vw at 12% 8%,rgba(34,91,255,.42),transparent 62%),
    radial-gradient(38vw 38vw at 88% 26%,rgba(246,128,232,.28),transparent 64%),
    radial-gradient(46vw 46vw at 60% 96%,rgba(42,214,196,.18),transparent 60%);
  filter:blur(24px);
  animation:drift 26s ease-in-out infinite alternate;
}

html.nav-open body{overflow:hidden}

h1{
  margin:0;
  font-size:clamp(1.85rem,5.2vw,3.05rem);
  line-height:1.28;
  letter-spacing:.005em;
  color:#fff;
  text-wrap:balance;
  text-shadow:0 8px 34px rgba(34,91,255,.5);
}

h2{
  margin:.1rem 0 .8rem;
  font-size:clamp(1.32rem,3.2vw,1.88rem);
  line-height:1.36;
  color:#fff;
  text-wrap:balance;
}

h3{
  margin:1.4rem 0 .5rem;
  font-size:1.1rem;
  line-height:1.45;
  color:#fff;
  text-wrap:balance;
}

p{margin:0 0 .9rem}
ul,ol{margin:0 0 1rem;padding-left:1.15rem}
li{margin:.3rem 0}

a{color:#aecbff;text-decoration-color:rgba(246,128,232,.72);text-underline-offset:3px}
a:hover{color:var(--pink)}

img{max-width:100%;height:auto}

.masthead{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(0,22,44,.85);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}

.brandrow{
  display:flex;
  align-items:center;
  gap:.7rem;
  padding:.5rem clamp(14px,4vw,40px);
}

.brandlink{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:44px;
  margin-right:auto;
  text-decoration:none;
  color:#fff;
}

.mark{width:26px;height:26px;object-fit:contain;display:block}

.brand{
  font-weight:700;
  font-size:1.02rem;
  letter-spacing:.1em;
}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 1.05rem;
  border-radius:999px;
  background:linear-gradient(115deg,var(--pink),var(--blue));
  color:#fff;
  font-size:.86rem;
  font-weight:700;
  letter-spacing:.06em;
  text-decoration:none;
  box-shadow:0 10px 22px -10px var(--pink);
}

.cta:hover{color:#fff;filter:saturate(1.2)}

.menubar{padding:0 clamp(14px,4vw,40px) .55rem}

.burger{
  display:flex;
  align-items:center;
  gap:.65rem;
  width:100%;
  min-height:44px;
  padding:.3rem .8rem;
  font:inherit;
  font-size:.82rem;
  letter-spacing:.22em;
  color:var(--text);
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius:var(--r);
  cursor:pointer;
}

.burger:hover{border-color:rgba(246,128,232,.6)}

.burger-lines{display:grid;gap:4px;width:20px}

.burger-lines i{
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--pink),var(--blue));
}

.scrim{
  position:fixed;
  inset:0;
  z-index:50;
  opacity:0;
  pointer-events:none;
  background:rgba(0,14,32,.68);
  backdrop-filter:blur(3px);
  transition:opacity .35s ease;
}

html.nav-open .scrim{opacity:1;pointer-events:auto}

.drawer{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  z-index:60;
  width:min(400px,86vw);
  padding:1.05rem 1.15rem 2.2rem;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:linear-gradient(180deg,#001c39,#002a55 58%,#001124);
  box-shadow:26px 0 60px -32px #000;
  transform:translateX(-104%);
  transition:transform .42s cubic-bezier(.5,.05,.2,1);
}

html.nav-open .drawer{transform:none}

.drawer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding-bottom:.85rem;
  border-bottom:1px solid var(--line);
}

.drawer-brand{font-weight:700;letter-spacing:.12em;color:#fff}

.drawer-close{
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.07);
  color:#fff;
  font-size:1.3rem;
  line-height:1;
  cursor:pointer;
}

.drawer small,
section article > small{
  display:block;
  margin:.9rem 0 .25rem;
  font-size:.72rem;
  letter-spacing:.26em;
  color:var(--pink);
}

p small{
  display:inline;
  margin:0;
  font-size:.86em;
  letter-spacing:0;
  color:inherit;
}

.drawer-h{font-size:1.24rem;margin:0 0 .7rem}

.menu ul{list-style:none;margin:0;padding:0}

.menu li + li{border-top:1px solid rgba(140,180,255,.15)}

.menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:52px;
  padding:.4rem .15rem;
  color:var(--text);
  text-decoration:none;
  font-size:1rem;
  letter-spacing:.04em;
}

.menu a::after{
  content:'';
  width:8px;
  height:8px;
  flex:0 0 auto;
  border-radius:50%;
  background:linear-gradient(140deg,var(--pink),var(--blue));
  opacity:.55;
}

.menu a:hover{color:var(--pink);padding-left:.6rem}

main{
  position:relative;
  z-index:1;
  padding:clamp(16px,4vw,42px) clamp(14px,4vw,40px) clamp(42px,7vw,80px);
}

.prose{
  display:grid;
  gap:clamp(16px,3vw,30px);
  max-width:1120px;
  margin:0 auto;
}

.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:clamp(16px,4vw,40px);
  min-height:70vh;
  padding:clamp(20px,4vw,46px);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:
    radial-gradient(120% 130% at 0% 0%,rgba(34,91,255,.34),transparent 56%),
    radial-gradient(100% 110% at 100% 100%,rgba(246,128,232,.3),transparent 62%),
    rgba(255,255,255,.04);
  box-shadow:var(--shadow);
  scroll-margin-top:130px;
}

.hero-text{
  position:relative;
  z-index:2;
  display:grid;
  justify-items:center;
  gap:1rem;
  text-align:center;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding:.32rem .85rem;
  border-radius:999px;
  font-size:.76rem;
  letter-spacing:.18em;
  color:#fff;
  background:rgba(246,128,232,.18);
  border:1px solid rgba(246,128,232,.55);
  animation:breathe 6.5s ease-in-out infinite;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 1.15rem;
  border-radius:999px;
  color:#fff;
  font-size:.86rem;
  font-weight:700;
  letter-spacing:.08em;
  text-decoration:none;
  border:1px solid rgba(246,128,232,.6);
  background:rgba(34,91,255,.28);
}

.hero-cta:hover{color:#fff;background:rgba(246,128,232,.35)}

.hero-art{
  position:relative;
  justify-self:center;
  width:100%;
  max-width:400px;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:48% 52% 60% 40% / 54% 46% 54% 46%;
  box-shadow:0 26px 60px -30px rgba(246,128,232,.8);
  animation:morph 20s ease-in-out infinite alternate;
}

.hero-art::before{
  content:'';
  position:absolute;
  inset:-40%;
  background:conic-gradient(from 0deg,var(--blue),var(--pink),var(--mint),var(--blue));
  animation:spin 26s linear infinite;
}

.hero-art::after{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.34),transparent 58%);
}

.hero-img{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

section > article:not(.hero){
  padding:clamp(18px,3.4vw,34px);
  border:1px solid var(--line);
  border-left:3px solid rgba(246,128,232,.6);
  border-radius:var(--r);
  background:var(--panel);
  box-shadow:var(--shadow);
  backdrop-filter:blur(4px);
  scroll-margin-top:132px;
}

section > article:not(.hero)::after{
  content:'';
  display:block;
  clear:both;
}

.foot{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(16px,3.5vw,40px);
  padding:clamp(30px,6vw,62px) clamp(14px,4vw,40px) 0;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,transparent,rgba(34,91,255,.14));
}

.foot-brand{
  grid-column:1/-1;
  margin:0 0 .3rem;
  font-size:clamp(2.35rem,11vw,5.6rem);
  line-height:.98;
  font-weight:700;
  letter-spacing:-.02em;
  color:transparent;
  -webkit-text-stroke:1.4px rgba(246,128,232,.78);
  word-break:break-word;
}

.foot dl{margin:0}

.foot dt{
  margin-bottom:.55rem;
  font-size:.73rem;
  letter-spacing:.24em;
  color:var(--pink);
}

.foot dd{margin:0}

.foot dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:.9rem;
  color:var(--dim);
  text-decoration:none;
}

.foot dd a:hover{color:#fff}

.copy{
  grid-column:1/-1;
  margin:clamp(18px,4vw,32px) 0 0;
  padding:1rem 0 1.5rem;
  border-top:1px solid var(--line);
  font-size:.76rem;
  letter-spacing:.12em;
  color:var(--dim);
}

.totop{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:45;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .95rem;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(0,26,52,.88);
  color:var(--text);
  font-size:.78rem;
  letter-spacing:.08em;
  text-decoration:none;
  backdrop-filter:blur(6px);
}

.totop:hover{color:#fff;border-color:rgba(246,128,232,.7)}

.js section > article:not(.hero){
  opacity:0;
  transform:translateY(20px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);
}

.js section > article.in{opacity:1;transform:none}

@keyframes breathe{
  0%,100%{transform:scale(1);opacity:.86}
  50%{transform:scale(1.07);opacity:1}
}

@keyframes morph{
  0%{border-radius:48% 52% 60% 40% / 54% 46% 54% 46%}
  50%{border-radius:58% 42% 44% 56% / 46% 58% 42% 54%}
  100%{border-radius:40% 60% 52% 48% / 60% 40% 60% 40%}
}

@keyframes spin{
  to{transform:rotate(1turn)}
}

@keyframes drift{
  0%{transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(2%,-2%,0) scale(1.07)}
}

@media (max-width:860px){
  .hero{grid-template-columns:1fr;min-height:auto;padding-top:clamp(24px,7vw,40px)}
  .hero-art{max-width:290px;order:2}
  .foot{grid-template-columns:1fr 1fr}
  .foot dl:last-of-type{grid-column:1/-1}
}

@media (max-width:560px){
  body{font-size:16px}
  .foot{grid-template-columns:1fr}
  .foot dl:last-of-type{grid-column:auto}
  .brand{letter-spacing:.06em}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001s!important;
    animation-iteration-count:1!important;
    transition-duration:.001s!important;
  }
  .js section > article:not(.hero){opacity:1;transform:none}
}

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