:root {
  --bg: #060c10;
  --panel: rgba(10, 22, 28, .72);
  --ink: #e9f1ec;
  --dim: #94a8a6;
  --jade: #9fe7dc;
  --jade2: #5fc4bb;
  --line: rgba(159, 231, 220, .28);
  --line2: rgba(159, 231, 220, .14);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Alegreya Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--dim); }

/* ---------- shared bits ---------- */
.eyebrow { font: 500 12px var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--jade2); margin: 0 0 14px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; }
h2 {
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.12; text-transform: uppercase; letter-spacing: .03em;
  background: linear-gradient(180deg, #f3fbf8 10%, var(--jade) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rule { width: 220px; height: 14px; margin: 22px auto; position: relative; }
.rule::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--jade2) 30%, var(--jade2) 70%, transparent); }
.rule::after { content: ""; position: absolute; left: 50%; top: 2px; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg); background: var(--bg); border: 1px solid var(--jade); box-shadow: -14px 14px 0 -3px var(--jade2), 14px -14px 0 -3px var(--jade2); }

.btn {
  --cut: 14px; position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px;
  font: 500 13px var(--sans); letter-spacing: .2em; text-transform: uppercase; border: 0; cursor: pointer;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  transition: filter .25s, transform .25s, background .25s;
}
.btn svg { width: 16px; height: 16px; }
.btn-solid { color: #04201e; font-weight: 700; background: linear-gradient(180deg, #c9f6ee, var(--jade) 45%, var(--jade2)); }
.btn-solid:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-line { color: var(--ink); background: var(--line); isolation: isolate; }
/* The fill, 1px inside the same shape: the outline shows on the slanted edges too. */
.btn-line::before { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: inherit; background: #0a1519; }
.btn-line:hover { background: var(--jade); }
.btn-line:hover::before { background: #10272a; }
.btn-sm { padding: 10px 22px; font-size: 12px; --cut: 11px; }

/* Ornate frame: outer line, inner line, diamond corners. */
.frame { position: relative; margin: 0; padding: 10px; border: 1px solid var(--line); background: var(--panel); }
.frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line2); pointer-events: none; z-index: 2; }
.frame::after {
  content: ""; position: absolute; inset: -5px; pointer-events: none; z-index: 3;
  --d: linear-gradient(45deg, transparent 35%, var(--jade) 35% 65%, transparent 65%);
  background: var(--d) 0 0 / 10px 10px no-repeat, var(--d) 100% 0 / 10px 10px no-repeat, var(--d) 0 100% / 10px 10px no-repeat, var(--d) 100% 100% / 10px 10px no-repeat;
}
.frame .img { overflow: hidden; position: relative; }
.frame .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.frame:hover .img img { transform: scale(1.04); }
figcaption { padding: 18px 8px 8px; font: 400 22px var(--serif); color: #eef6f1; }
figcaption span { display: block; font: 500 11px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--jade2); margin-bottom: 4px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 50; width: min(1400px, calc(100% - 28px));
  display: flex; align-items: center; gap: 28px; padding: 12px 22px;
  background: rgba(6, 12, 16, .55); border: 1px solid var(--line2); backdrop-filter: blur(14px) saturate(1.3); transition: background .3s, border-color .3s;
}
.nav.solid { background: rgba(6, 12, 16, .9); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 28px; height: 28px; stroke: var(--jade); stroke-width: 3; flex: none; }
.mark .fill { fill: var(--jade); stroke: none; }
.brand b { display: block; font: 500 19px var(--serif); letter-spacing: .02em; }
.brand small { display: block; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.links { display: flex; gap: 30px; margin: 0 auto; }
.links a { font-size: 15px; color: #c5d4d0; transition: color .2s; }
.links a:hover { color: var(--jade); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(100svh, 760px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -3%; z-index: -3; background: url(/assets/media/hero.jpg) 22% 40% / cover no-repeat; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.06) translate(-1%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(6,12,16,.92) 0%, rgba(6,12,16,.7) 32%, rgba(6,12,16,.1) 62%, rgba(6,12,16,.15) 100%),
    linear-gradient(180deg, rgba(6,12,16,.6) 0%, transparent 22%, transparent 55%, rgba(6,12,16,.85) 85%, var(--bg) 100%); }
#spores { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { width: min(1400px, 100%); margin: 0 auto; padding: 150px clamp(24px, 5vw, 60px) 30px; }
.hero-inner > * { max-width: 620px; }
.badge { display: inline-block; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--jade); border: 1px solid var(--line); padding: 6px 14px; background: rgba(6,12,16,.5); margin: 0 0 26px; }
h1 { line-height: .95; margin-bottom: 26px; }
.h-main {
  display: block; font: 500 clamp(64px, 10vw, 140px) var(--serif); letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #e3f7f2 45%, var(--jade) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-sub { display: block; margin-top: 14px; font: 500 clamp(16px, 2vw, 24px) var(--serif); letter-spacing: .62em; text-transform: uppercase; color: var(--jade); padding-left: .2em; }
.tagline { font: 400 clamp(22px, 2.4vw, 30px) var(--serif); margin: 0 0 12px; color: #f2f8f5; }
.intro { color: #c3d3cf; margin: 0 0 34px; font-size: 19px; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.hero-stats { width: min(1100px, calc(100% - 48px)); margin: 30px auto 40px; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid var(--line2); padding-top: 28px; }
.hero-stats div + div { border-left: 1px solid var(--line2); }
.hero-stats b { display: flex; align-items: center; justify-content: center; gap: 10px; font: 400 21px var(--serif); }
.hero-stats small { color: var(--dim); font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6ff0b4; box-shadow: 0 0 12px #6ff0b4; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.rise { opacity: 0; transform: translateY(18px); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.rise:nth-child(2) { animation-delay: .12s; } .rise:nth-child(3) { animation-delay: .24s; } .rise:nth-child(4) { animation-delay: .36s; } .rise:nth-child(5) { animation-delay: .48s; }
.hero-stats.rise { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { width: min(1240px, 100%); margin: 0 auto; padding: clamp(90px, 11vw, 140px) clamp(20px, 5vw, 50px) 0; }
.section.narrow { width: min(860px, 100%); }
.head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.head > p:last-child:not(.eyebrow) { color: var(--dim); margin: 0; }
.note { text-align: center; color: #6f8584; font-size: 14px; margin: 34px 0 0; }

.gallery { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: center; }
.gallery .img { aspect-ratio: 16 / 10; }

.story { position: relative; margin-top: clamp(90px, 11vw, 140px); padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 50px); overflow: hidden; isolation: isolate; }
.story-bg { position: absolute; inset: 0; z-index: -2; background: url(/assets/media/ss01.jpg) center / cover; opacity: .14; filter: saturate(.6) blur(2px); }
.story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg), transparent 25%, transparent 75%, var(--bg)); }
.story-inner { width: min(1140px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.arch .img { aspect-ratio: 4 / 4.6; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.arch figcaption { text-align: center; }
.story-text h2 { margin-bottom: 30px; max-width: 16ch; }
.story-text p:not(.eyebrow) { color: #bccbc8; margin: 0 0 18px; }
.story-text .btn { margin-top: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { display: flex; flex-direction: column; }
.arch-top { aspect-ratio: 16 / 11; border-radius: 50% 50% 0 0 / 34% 34% 0 0; }
.card .body { padding: 26px 16px 20px; display: flex; flex-direction: column; flex: 1; }
.card .eyebrow { margin-bottom: 8px; }
.card h3 { font-size: 24px; line-height: 1.25; margin-bottom: 14px; }
.card p:not(.eyebrow) { color: #aebfbc; font-size: 17px; margin: 0 0 22px; }
.more { margin-top: auto; font-weight: 700; color: #eaf3ef; font-size: 16px; }
.more span { display: inline-block; color: var(--jade); transition: transform .25s; }
.more:hover span { transform: translateX(5px); }

/* servers */
.servers { padding: 10px 26px 16px; }
.srv-head, .srv { display: grid; grid-template-columns: 1fr 220px 210px; gap: 24px; align-items: center; }
.srv-head { padding: 16px 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--jade2); border-bottom: 1px solid var(--line2); }
.srv { padding: 22px 0; border-bottom: 1px solid var(--line2); }
.srv:last-child { border-bottom: 0; }
.srv-name { font: 400 21px var(--serif); display: flex; align-items: center; gap: 12px; }
.srv-name i { width: 8px; height: 8px; border-radius: 50%; background: #6ff0b4; box-shadow: 0 0 10px #6ff0b4; flex: none; }
.srv-name i.off { background: #e06a6a; box-shadow: none; }
.srv-name i.unk { background: var(--dim); box-shadow: none; }
.srv-desc { color: var(--dim); margin: 2px 0 8px 20px; font-size: 16px; }
.tags { margin-left: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--jade); border: 1px solid var(--line2); padding: 1px 9px; }
.srv-players b { font: 400 20px var(--serif); }
.srv-players span { color: var(--dim); }
.bar { height: 3px; background: rgba(159,231,220,.1); margin-top: 8px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--jade2), var(--jade)); transition: width 1s; }
.srv .btn { justify-self: end; }
.srv-empty { padding: 44px 0 34px; text-align: center; color: var(--dim); }
.srv-empty b { display: block; font: 400 22px var(--serif); color: var(--ink); margin-bottom: 6px; }

/* join */
.join { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.steps li { display: grid; grid-template-columns: 60px 1fr; gap: 22px; align-items: start; }
.steps span { position: relative; width: 52px; height: 52px; display: grid; place-items: center; font: 500 17px var(--serif); color: var(--jade); }
.steps span::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); transform: rotate(45deg); }
.steps h3 { font-size: 22px; margin: 8px 0 6px; }
.steps p { margin: 0; color: #aebfbc; }
.shot .img { aspect-ratio: 1120 / 700; }
.shot .img img { object-position: top left; }

/* changelog */
.release { display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; }
.release-text { padding: 46px 48px; position: relative; z-index: 4; }
.release .title { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; color: #f0f8f4; }
.release .lead { font-size: 19px; color: #d2e0dc; margin: 0 0 22px; }
.release ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.release li { position: relative; padding-left: 24px; color: #b6c6c3; font-size: 16px; }
.release li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--jade2); }
.release-img { position: relative; overflow: hidden; }
.release-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.release-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,22,28,1), rgba(10,22,28,0) 45%); }
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; border: 1px solid var(--line2); }
.rm { padding: 22px 24px; }
.rm + .rm { border-left: 1px solid var(--line2); }
.rm span { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.rm.done span, .rm.now span { color: var(--jade); }
.rm.now { background: rgba(159,231,220,.05); }
.rm h4 { font-size: 19px; margin: 6px 0 4px; }
.rm p { margin: 0; font-size: 15px; color: var(--dim); }

/* faq */
details { border-bottom: 1px solid var(--line2); }
summary { cursor: pointer; list-style: none; padding: 22px 0; font: 400 21px var(--serif); display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 9px; height: 9px; margin-top: 8px; flex: none; border-right: 1px solid var(--jade); border-bottom: 1px solid var(--jade); transform: rotate(45deg); transition: transform .3s; }
details[open] summary::after { transform: rotate(-135deg); }
details p { margin: 0 0 24px; color: #aebfbc; }

/* finale */
.finale { position: relative; margin-top: clamp(100px, 12vw, 150px); padding: clamp(110px, 14vw, 180px) 24px; text-align: center; overflow: hidden; isolation: isolate; }
.finale-bg { position: absolute; inset: 0; z-index: -2; background: url(/assets/media/ss02.jpg) center 60% / cover; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(6,12,16,.55), rgba(6,12,16,.85)), linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.finale-inner { max-width: 640px; margin: 0 auto; }
.finale h2 { font-size: clamp(36px, 5.4vw, 66px); }
.finale p:not(.eyebrow) { color: #d0dedb; margin: 0 0 34px; font-size: 20px; }

/* footer */
.footer { border-top: 1px solid var(--line2); padding: 64px clamp(20px, 5vw, 50px) 40px; }
.foot-grid { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--dim); max-width: 360px; font-size: 16px; }
.footer h5 { font: 500 12px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--jade2); margin: 6px 0 16px; }
.footer .foot-grid a:not(.brand) { display: block; color: #bccbc8; margin-bottom: 8px; font-size: 16px; }
.footer .foot-grid a:not(.brand):hover { color: var(--jade); }
.legal { width: min(1240px, 100%); margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--line2); }
.legal p { font-size: 13px; line-height: 1.6; color: #73898a; margin: 0 0 10px; max-width: 1000px; }
.legal b { color: #a6bab8; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .gallery, .story-inner, .join, .release { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .rm:nth-child(3) { border-left: 0; }
  .rm:nth-child(n+3) { border-top: 1px solid var(--line2); }
  .release-img { height: 260px; order: -1; }
  .release-img::before { background: linear-gradient(0deg, rgba(10,22,28,1), rgba(10,22,28,0) 60%); }
  .hero-bg { background-position: 46% 20%; }
  .hero::before { background: linear-gradient(180deg, rgba(6,12,16,.45) 0%, rgba(6,12,16,.72) 30%, rgba(6,12,16,.9) 65%, var(--bg) 100%); }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .brand small { display: none; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-stats div + div { border-left: 0; }
  .srv-head { display: none; }
  .srv { grid-template-columns: 1fr; gap: 12px; }
  .srv .btn { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .h-sub { letter-spacing: .4em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .rise { opacity: 1; transform: none; }
}
