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

:root {
  color-scheme: dark;
  --bg: #080e19;
  --panel: #0d1727;
  --panel-2: #101d30;
  --line: rgba(164, 190, 221, .13);
  --text: #edf5ff;
  --muted: #9baec6;
  --cyan: #54d6f4;
  --blue: #7e9dff;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
}
.ambient-one { width: 340px; height: 340px; top: 100px; left: -200px; background: #3477ff; }
.ambient-two { width: 360px; height: 360px; top: 650px; right: -250px; background: #15c6dc; }

.site-header {
  width: min(var(--max), calc(100% - 48px));
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--cyan);
  border: 1px solid rgba(84,214,244,.24);
  background: rgba(84,214,244,.07);
  border-radius: 12px;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-name { font: 700 20px 'Space Grotesk', sans-serif; letter-spacing: -.8px; }
.brand-name span { color: var(--cyan); }
.top-nav { display: flex; align-items: center; gap: 30px; }
.top-nav a { color: var(--muted); font-size: 13px; transition: color .2s; }
.top-nav a:hover, .site-footer a:hover { color: var(--cyan); }
.discord-link {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.discord-link span { color: var(--cyan); margin-left: 6px; }

.hero {
  position: relative;
  overflow: hidden;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 70px;
  border-bottom: 1px solid var(--line);
}
.eyebrow, .section-kicker, .sidebar-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--cyan);
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0 18px;
  max-width: 760px;
  font: 600 clamp(44px, 7vw, 76px)/1.04 'Space Grotesk', sans-serif;
  letter-spacing: -4px;
}
h1 span {
  color: var(--cyan);
  background: linear-gradient(100deg, var(--cyan), #a1b7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy { position: relative; z-index: 1; max-width: 590px; color: var(--muted); font-size: 16px; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); font-size: 12px; }
.hero-meta strong { color: #d9e5f5; font-weight: 600; }
.meta-icon { color: var(--cyan); font-size: 18px; }
.meta-divider { width: 1px; height: 16px; margin: 0 6px; background: var(--line); }
.hero-orbit { position: absolute; border: 1px solid rgba(84,214,244,.12); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 420px; height: 420px; right: -30px; top: 6px; }
.orbit-two { width: 300px; height: 300px; right: 30px; top: 66px; border-style: dashed; }
.hero-plane { position: absolute; right: 115px; top: 132px; color: rgba(84,214,244,.18); font-size: 125px; transform: rotate(-28deg); }

.content-layout {
  width: min(var(--max), calc(100% - 48px));
  margin: 54px auto 100px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}
.sidebar { position: sticky; top: 28px; }
.sidebar-label { color: #7187a4; margin: 0 0 18px 12px; font-size: 9px; }
.side-link {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  margin: 3px 0;
  color: #758aa5;
  font-size: 12px;
  border-left: 2px solid transparent;
  transition: .2s ease;
}
.side-link > :first-child { color: #546982; font: 600 10px 'Space Grotesk', sans-serif; }
.side-link:hover, .side-link.active {
  color: var(--text);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(84,214,244,.08), transparent);
}
.side-link.active { color: var(--cyan); }
.sidebar-note {
  margin-top: 30px;
  padding: 15px;
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16,29,48,.6);
}
.note-symbol { color: var(--cyan); font-size: 15px; }
.sidebar-note p { margin: 0; color: #8499b3; font-size: 10px; line-height: 1.65; }

.terms-content { min-width: 0; }
.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(84,214,244,.22);
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(84,214,244,.09), rgba(84,214,244,.025));
}
.notice-icon {
  display: grid;
  flex: 0 0 23px;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--bg);
  background: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}
.notice p { margin: 0; color: #afc1d8; font-size: 12px; line-height: 1.8; }
.notice strong { color: #e9faff; }
.intro-section { padding: 55px 0 26px; }
.section-kicker { margin-bottom: 10px; color: #728aa8; }
h2 { margin-bottom: 17px; font: 600 clamp(27px, 3.2vw, 38px)/1.2 'Space Grotesk', sans-serif; letter-spacing: -1.3px; }
.intro-section > p:last-child, .term-section p, .term-section li { color: var(--muted); font-size: 13px; line-height: 1.9; }
.term-section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 28px;
}
.section-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--cyan);
  background: rgba(84,214,244,.08);
  border: 1px solid rgba(84,214,244,.15);
  border-radius: 10px;
  font: 600 11px 'Space Grotesk', sans-serif;
}
h3 { margin: 3px 0 12px; font: 600 19px 'Space Grotesk', sans-serif; letter-spacing: -.4px; }
.term-section p { margin-bottom: 12px; }
.term-section p:last-child { margin-bottom: 0; }
.term-section ul { margin: 8px 0 16px; padding-left: 19px; }
.term-section li { padding-left: 3px; margin: 6px 0; }
.term-section li::marker { color: var(--cyan); }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.contact-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--cyan); background: rgba(84,214,244,.08); border-radius: 10px; }
.contact-card strong, .contact-card a, .contact-hint { display: block; }
.contact-card strong { font-size: 13px; }
.contact-card a { color: var(--cyan); font-size: 12px; overflow-wrap: anywhere; }
.contact-hint { margin-top: 5px; color: #748ba5; font-size: 10px; }
.end-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  padding: 24px;
  border: 1px solid rgba(84,214,244,.18);
  border-radius: 15px;
  background: radial-gradient(ellipse at 0 50%, rgba(84,214,244,.12), transparent 70%), var(--panel);
}
.end-plane { color: var(--cyan); font-size: 37px; transform: rotate(-20deg); }
.end-card h3 { margin: 0 0 5px; }
.end-card p { margin: 0; color: var(--muted); font-size: 12px; }
.template-disclaimer { margin: 22px 0 0; color: #62758e; font-size: 10px; line-height: 1.7; }
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 25px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7388a2;
  font-size: 11px;
}
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 18px; }
.footer-brand .brand-name { font-size: 16px; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 34px; }
  .hero-plane { right: 40px; }
  .orbit-one { right: -120px; }
  .orbit-two { right: -60px; }
}
@media (max-width: 680px) {
  .site-header, .hero, .content-layout, .site-footer { width: min(100% - 32px, var(--max)); }
  .site-header { height: 70px; }
  .top-nav { display: none; }
  .discord-link { padding: 8px 10px; }
  .hero { padding: 65px 0 48px; }
  h1 { letter-spacing: -2.5px; }
  .hero-copy { max-width: 460px; font-size: 14px; }
  .hero-meta { flex-wrap: wrap; gap: 8px; }
  .hero-plane { right: 2px; top: 80px; font-size: 82px; opacity: .55; }
  .orbit-one { width: 270px; height: 270px; right: -170px; top: 35px; }
  .orbit-two { width: 200px; height: 200px; right: -135px; top: 70px; }
  .content-layout { display: block; margin-top: 28px; }
  .sidebar { position: static; display: flex; gap: 7px; overflow-x: auto; padding: 0 0 14px; margin-bottom: 16px; }
  .sidebar-label, .sidebar-note { display: none; }
  .side-link { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin: 0; white-space: nowrap; font-size: 11px; }
  .side-link:hover, .side-link.active { border-color: rgba(84,214,244,.35); }
  .term-section { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .section-number { width: 31px; height: 31px; }
  h3 { font-size: 17px; }
  .intro-section { padding-top: 38px; }
  .notice { padding: 14px; }
  .end-card { padding: 18px; gap: 14px; }
  .site-footer { flex-wrap: wrap; justify-content: flex-start; }
  .site-footer p { flex-basis: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
