:root {
  --bg: #020817;
  --panel: rgba(8, 27, 52, .74);
  --panel-strong: rgba(7, 22, 43, .92);
  --line: rgba(125, 231, 255, .18);
  --cyan: #6eeeff;
  --cyan-strong: #26d9ff;
  --blue: #0a95ff;
  --white: #f7fbff;
  --muted: #a8c2d9;
  --muted-strong: #d5ecff;
  --shadow: 0 24px 80px rgba(0, 8, 22, .45);
  --soft: 0 18px 42px rgba(0, 155, 255, .14);
  --radius-lg: 30px;
  --radius-md: 20px;
  --container: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 8%, rgba(38, 217, 255, .18), transparent 30rem),
    radial-gradient(circle at 88% 22%, rgba(10, 149, 255, .22), transparent 28rem),
    linear-gradient(180deg, var(--bg), #041225 48%, #020813);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(110,238,255,.12) 0 2px, transparent 2.5px);
  background-size: 150px 150px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
code { color: var(--cyan); overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 12px 16px;
  border-radius: 999px; color: #02101f; background: var(--cyan); transform: translateY(-140%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 90;
  border-bottom: 1px solid rgba(125,231,255,.12);
  background: rgba(3,12,25,.76);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled { background: rgba(3,12,25,.94); box-shadow: 0 18px 50px rgba(0,0,0,.26); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.03em; }
.brand img { width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 0 28px rgba(38,217,255,.22); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; min-height: 42px; align-items: center; border-radius: 999px; padding: 0 14px;
  color: var(--muted-strong); font-size: .92rem; font-weight: 800;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); background: rgba(110,238,255,.1); }
.nav-links .nav-discord { color: #02101f; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 15px;
  background: rgba(255,255,255,.04); color: var(--white); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; border-radius: 999px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero, .page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(90deg, rgba(2,8,23,.94), rgba(2,8,23,.74) 54%, rgba(2,8,23,.32)),
    url("../images/hero-ocean.svg") center/cover no-repeat;
}
.hero { min-height: 100svh; display: grid; align-items: center; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(2,8,23,.02), rgba(2,8,23,.9)), radial-gradient(circle at 36% 38%, rgba(38,217,255,.18), transparent 28rem);
}
.hero__ambient {
  position: absolute; right: 8%; bottom: 8%; width: min(42vw,520px); aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(38,217,255,.16), transparent 68%);
  filter: blur(10px); pointer-events: none;
}
.hero__grid, .page-hero__grid { display: grid; grid-template-columns: minmax(0,1fr); max-width: 920px; gap: 32px; }
.hero__grid { padding-block: 124px 96px; }
.page-hero { padding: clamp(82px, 10vw, 128px) 0 clamp(48px, 7vw, 84px); }
.hero__content { max-width: 900px; }
.eyebrow { margin: 0 0 16px; color: var(--cyan); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero__logo { display: inline-block; margin-bottom: 22px; }
.hero__logo img { width: clamp(108px, 13vw, 150px); height: clamp(108px, 13vw, 150px); border-radius: 34px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 26px 70px rgba(0,166,255,.26); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(3.4rem, 9vw, 8.2rem); line-height: .9; letter-spacing: -.075em; text-shadow: 0 14px 60px rgba(0,166,255,.24); }
h2 { margin: 0; font-size: clamp(1.9rem, 4.4vw, 4.2rem); line-height: .98; letter-spacing: -.055em; }
h3 { margin: 0; }
.hero__subtitle, .page-hero p, .section__header p, .feature-card p, .download-card p, .rules-document p { color: var(--muted-strong); line-height: 1.72; }
.hero__subtitle { max-width: 680px; margin: 26px 0 0; font-size: clamp(1.08rem,2vw,1.34rem); }
.page-hero p { max-width: 720px; font-size: 1.08rem; }
.hero__actions, .inline-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 999px; padding: 0 24px; font-weight: 900; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: #02101f; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 16px 34px rgba(10,149,255,.3); }
.btn--ghost { color: var(--white); border-color: rgba(110,238,255,.28); background: rgba(255,255,255,.055); }
.scroll-indicator { position: absolute; left: 50%; bottom: 28px; width: 30px; height: 48px; border: 1px solid rgba(110,238,255,.42); border-radius: 999px; transform: translateX(-50%); }
.scroll-indicator span { position: absolute; left: 50%; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translate(-50%,0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(-50%,20px); opacity: 0; } }

.section { padding: clamp(72px, 9vw, 124px) 0; }
.section--compact { padding: clamp(56px, 7vw, 96px) 0; }
.section__header { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.section__header p { margin: 20px 0 0; }

.quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.quick-card, .feature-card, .download-card, .map-embed-shell, .rules-document {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--soft); backdrop-filter: blur(16px);
}
.quick-card {
  position: relative; min-height: 126px; padding: 20px; overflow: hidden; text-align: left; color: inherit;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.quick-card:hover, .feature-card:hover, .download-card:hover { transform: translateY(-4px); border-color: rgba(110,238,255,.42); box-shadow: 0 22px 48px rgba(0,125,255,.15); }
.quick-card strong { display: block; color: var(--cyan); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.quick-card span { display: block; font-size: 1.12rem; font-weight: 900; letter-spacing: -.03em; }
.quick-card small { display: block; margin-top: 8px; color: var(--muted); font-weight: 750; }
.quick-card--button { cursor: pointer; }

.feature-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.feature-card { overflow: hidden; border-radius: 20px; background: linear-gradient(180deg, rgba(8,31,58,.76), rgba(4,16,31,.78)); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.feature-preview { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.feature-card__body { padding: 14px; }
.feature-tag { display: inline-flex; margin-bottom: 10px; padding: 5px 8px; border-radius: 999px; color: #02101f; background: var(--cyan); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.feature-card h2 { font-size: .96rem; line-height: 1.2; letter-spacing: -.025em; }
.feature-card p { margin: 9px 0 0; font-size: .86rem; line-height: 1.5; color: var(--muted-strong); }
.feature-command { display: block; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.feature-card a:not(.btn), .download-card a:not(.btn), .rules-document a {
  color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(110,238,255,.45); text-underline-offset: 3px;
}
.feature-list { margin: 9px 0 0; padding-left: 18px; color: var(--muted-strong); font-size: .84rem; line-height: 1.48; }
.feature-list li + li { margin-top: 5px; }
.feature-card--sponsor { border-color: rgba(255,221,116,.34); background: linear-gradient(180deg, rgba(36,31,12,.74), rgba(4,16,31,.82)); }
.feature-card--sponsor .feature-tag { background: linear-gradient(135deg, #ffe083, var(--cyan)); }


.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.download-card { padding: 28px; background: linear-gradient(180deg, rgba(8,31,58,.76), rgba(4,16,31,.78)); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.download-card img { margin-bottom: 20px; filter: drop-shadow(0 0 16px rgba(38,217,255,.22)); }
.download-card h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.download-card--featured { grid-column: span 2; border-color: rgba(110,238,255,.34); background: linear-gradient(180deg, rgba(9,39,73,.82), rgba(4,16,31,.8)); }
.card-actions--split .btn { flex: 1 1 230px; }
.download-meta { margin-top: 16px; display: grid; gap: 6px; }
.download-meta span { color: var(--muted); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.map-embed-shell { padding: 10px; overflow: hidden; }
.map-iframe { display: block; width: 100%; height: min(78vh, 760px); min-height: 520px; border: 0; border-radius: 24px; background: rgba(2,8,23,.7); }

.rules-document { padding: clamp(24px, 5vw, 54px); }
.rules-document h2 { margin: 36px 0 16px; font-size: clamp(1.55rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.rules-document h2:first-child { margin-top: 0; }
.rules-document h3 { margin: 26px 0 12px; color: var(--cyan); font-size: 1.12rem; }
.rules-document p { margin: 10px 0; line-height: 1.75; }
.rule-point { padding-left: 14px; border-left: 2px solid rgba(110,238,255,.32); }
.rule-bullet { padding-left: 18px; color: var(--white); }

.site-footer { padding: 42px 0; border-top: 1px solid rgba(125,231,255,.12); background: rgba(2,8,23,.82); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-copy { margin: 14px 0 0; color: var(--muted); }
.social-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-links a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; color: var(--muted-strong); background: rgba(255,255,255,.04); font-weight: 800; }
.social-links img { width: 22px; height: 22px; }
.back-to-top, .toast { position: fixed; z-index: 100; pointer-events: none; opacity: 0; transform: translateY(12px); transition: opacity .22s ease, transform .22s ease; }
.back-to-top { right: 22px; bottom: 22px; width: 48px; height: 48px; border: 1px solid rgba(110,238,255,.32); border-radius: 16px; color: var(--white); background: rgba(5,18,38,.86); box-shadow: var(--soft); cursor: pointer; }
.back-to-top.is-visible { pointer-events: auto; opacity: 1; transform: translateY(0); }
.toast { left: 50%; bottom: 26px; padding: 12px 18px; border: 1px solid rgba(110,238,255,.28); border-radius: 999px; color: #02101f; background: var(--cyan); font-weight: 900; box-shadow: 0 16px 38px rgba(0,0,0,.3); transform: translate(-50%,20px); }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.reveal { transition: opacity .65s ease, transform .65s ease; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .quick-grid, .feature-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .quick-grid, .feature-grid, .download-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .download-card--featured { grid-column: 1 / -1; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .social-links { justify-content: flex-start; }
}
@media (max-width: 780px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute; left: 14px; right: 14px; top: calc(100% + 10px);
    display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 22px;
    background: rgba(3,12,25,.97); box-shadow: var(--shadow); transform-origin: top;
    transform: scaleY(.92); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: scaleY(1); }
  .nav-links a { justify-content: center; border-radius: 16px; }
  .hero { min-height: auto; }
  .hero__grid { padding-block: 98px 78px; }
  .hero__actions, .inline-actions, .card-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .map-iframe { min-height: 430px; }
}
@media (max-width: 540px) {
  h1 { font-size: clamp(2.9rem, 17vw, 5rem); }
  .download-card--featured { grid-column: auto; }
  h2 { font-size: clamp(1.8rem, 10vw, 3rem); }
  .quick-grid, .feature-grid, .download-grid { grid-template-columns: 1fr; }
  .feature-card, .download-card, .rules-document { border-radius: 22px; }
  .page-hero { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}
