/* ═══════════════════════════════════════════════════════════════════
   ISLAND RUSH — Custom Design System
   All dark-theme styles live here. No <style> tags in templates.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── RESET + DESIGN TOKENS ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #04070a;
  --surface: #0e1318;
  --surf2:   #131a1f;
  --white:   #dfebd4;
  --gold:    #b08d49;
  --crimson: #7a1c1c;
  --silver:  #78848a;
  --border:  rgba(176,141,73,0.14);
  --ff-d:    'Pirata One', cursive;
  --ff-b:    'Spectral', serif;
  --ff-m:    'DM Mono', monospace;
}

/* ─── BASE ──────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--ff-b); font-weight: 400; overflow-x: hidden; }

/* Neutralise Ananke's pb7 padding on <main> */
main.pb7 { padding-bottom: 0 !important; }

/* ─── NAV ───────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
nav.scrolled { background: rgba(4,7,10,.96); backdrop-filter: blur(14px); border-color: rgba(176,141,73,.22); }
.nav-logo { font-family: var(--ff-d); font-size: 1.5rem; letter-spacing: .1em; color: var(--gold); text-decoration: none; }
.nav-logo span { color: var(--white); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-family: var(--ff-m); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--silver); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { font-family: var(--ff-m); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); border: 2px solid rgba(176,141,73,.45); padding: .5rem 1.1rem; text-decoration: none; transition: background .2s, color .2s; }
.nav-cta:hover { background: var(--gold); color: var(--bg); }

/* ─── HERO ──────────────────────────────────────────────────────── */
#hero {
  position: relative; height: 100vh; min-height: 720px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 25%, #0a1418 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 65%, rgba(176,141,73,.04) 0%, transparent 60%),
    var(--bg);
}
.hero-stars { position: absolute; inset: 0; pointer-events: none; }

.fog-container { position: absolute; inset: 0; pointer-events: none; }
.fog { position: absolute; bottom: 0; left: -15%; right: -15%; border-radius: 50%; }
.fog-1 { height: 58%; background: radial-gradient(ellipse 100% 70% at 38% 100%, rgba(5,10,14,.93) 0%, transparent 68%); animation: fd1 20s ease-in-out infinite; }
.fog-2 { height: 50%; background: radial-gradient(ellipse 90% 65% at 62% 100%, rgba(4,8,12,.9) 0%, transparent 64%); animation: fd2 26s ease-in-out infinite; }
.fog-3 { height: 38%; background: radial-gradient(ellipse 130% 90% at 50% 100%, rgba(3,6,9,.98) 0%, transparent 58%); animation: fd3 16s ease-in-out infinite; }
.fog-4 { height: 24%; background: radial-gradient(ellipse 110% 100% at 50% 100%, rgba(3,5,8,1) 0%, transparent 70%); }

@keyframes fd1 { 0%,100%{transform:translateX(0) scaleY(1);opacity:.85} 40%{transform:translateX(-4%) scaleY(1.08);opacity:.95} 70%{transform:translateX(3%) scaleY(.94);opacity:.78} }
@keyframes fd2 { 0%,100%{transform:translateX(0) scaleY(1);opacity:.72} 35%{transform:translateX(5%) scaleY(.92);opacity:.88} 68%{transform:translateX(-3%) scaleY(1.07);opacity:.66} }
@keyframes fd3 { 0%,100%{transform:scaleX(1);opacity:.98} 50%{transform:scaleX(1.05);opacity:1} }

.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 72% 72% at 50% 50%, transparent 36%, rgba(4,7,10,.82) 100%); box-shadow: inset 0 0 150px rgba(4,7,10,.6), inset 0 0 40px rgba(4,7,10,.85); }

.island-silhouette { position: absolute; bottom: 0; left: 0; right: 0; pointer-events: none; }
.island-silhouette svg { display: block; width: 100%; height: auto; }

.hero-content { position: relative; z-index: 10; text-align: center; max-width: 960px; padding: 0 2rem; }
.hero-eyebrow {
  font-family: var(--ff-m); font-size: .62rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 1.75rem; display: flex; align-items: center; justify-content: center; gap: 0;
}
.hero-eyebrow .sep { color: var(--gold); opacity: .6; margin: 0 1em; }
.hero-title {
  font-family: var(--ff-d); font-size: clamp(4.5rem, 10vw, 9.5rem); line-height: .88; letter-spacing: .04em;
  color: var(--white); text-shadow: 5px 5px 0 rgba(0,0,0,.9), -1px 1px 0 rgba(0,0,0,.55), 0 0 70px rgba(176,141,73,.22);
  margin-bottom: .25em;
}
.hero-subtitle { font-family: var(--ff-d); font-size: clamp(1.2rem, 2.6vw, 2.6rem); letter-spacing: .55em; color: var(--gold); opacity: .9; margin-bottom: 2.25rem; text-shadow: 2px 2px 0 rgba(0,0,0,.8); }
.hero-desc { font-size: .97rem; line-height: 1.75; color: var(--silver); max-width: 500px; margin: 0 auto 2.75rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--ff-m); font-size: .52rem; letter-spacing: .28em; text-transform: uppercase; color: var(--silver);
  animation: scrollpulse 2.8s ease-in-out infinite;
}
.hero-scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, rgba(155,168,180,.6), transparent); }
@keyframes scrollpulse { 0%,100%{opacity:.35;transform:translateX(-50%) translateY(0)} 55%{opacity:.65;transform:translateX(-50%) translateY(6px)} }

/* ─── SHARED SECTION SYSTEM (reusable on all pages) ─────────────── */
section { padding: 6rem 3rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-label { font-family: var(--ff-m); font-size: .6rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.section-title { font-family: var(--ff-d); font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: .04em; line-height: 1; margin-bottom: .9rem; text-shadow: 3px 3px 0 rgba(0,0,0,.8); }
.section-sub { color: var(--silver); font-size: .94rem; line-height: 1.75; max-width: 500px; margin-bottom: 3rem; }

/* ─── BUTTON SYSTEM (reusable on all pages) ──────────────────────── */
.btn-primary {
  display: inline-block; font-family: var(--ff-d); font-size: 1.25rem; letter-spacing: .15em;
  color: var(--bg); background: var(--gold); padding: .95rem 2.75rem; text-decoration: none;
  border: 3px solid rgba(176,141,73,.75); box-shadow: 5px 5px 0 rgba(0,0,0,.85);
  transition: background .18s, box-shadow .15s, transform .15s, color .18s, border-color .18s;
}
.btn-primary:hover { background: var(--crimson); color: var(--white); border-color: rgba(122,28,28,.7); box-shadow: 2px 2px 0 rgba(0,0,0,.85); transform: translate(3px,3px); }
.btn-ghost {
  display: inline-block; font-family: var(--ff-m); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--silver); padding: .95rem 1.75rem; border: 2px solid rgba(176,141,73,.2); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(176,141,73,.5); }

/* Download section larger CTA variant */
.dl-btn {
  display: inline-block; font-family: var(--ff-d); font-size: 1.4rem; letter-spacing: .15em;
  color: var(--bg); background: var(--gold); padding: 1.1rem 3rem; text-decoration: none;
  border: 3px solid rgba(176,141,73,.75); box-shadow: 5px 5px 0 rgba(0,0,0,.85);
  transition: background .18s, box-shadow .15s, transform .15s, color .18s, border-color .18s;
}
.dl-btn:hover { background: var(--crimson); color: var(--white); border-color: rgba(122,28,28,.7); box-shadow: 2px 2px 0 rgba(0,0,0,.85); transform: translate(3px,3px); }

/* ─── GALLERY ───────────────────────────────────────────────────── */
#gallery { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.art-card { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; background: var(--bg); border: 3px solid rgba(176,141,73,.18); }
.art-card svg { width: 100%; height: 100%; display: block; transition: transform .65s cubic-bezier(.25,0,0,1); }
.art-card:hover svg { transform: scale(1.05); }
.art-card-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(6,10,15,.95) 0%, rgba(6,10,15,.5) 60%, transparent 100%);
  transition: opacity .3s;
}
.art-card-tag { font-family: var(--ff-m); font-size: .53rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); opacity: .82; margin-bottom: .28rem; }
.art-card-title { font-family: var(--ff-d); font-size: 1.45rem; letter-spacing: .07em; color: var(--white); }
.art-crosshatch {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background-image:
    repeating-linear-gradient(11deg,  rgba(176,141,73,.07) 0px, rgba(176,141,73,.07) 1.5px, transparent 1.5px, transparent 8px),
    repeating-linear-gradient(-7deg,  rgba(176,141,73,.05) 0px, rgba(176,141,73,.05) 1px,   transparent 1px,   transparent 11px),
    repeating-linear-gradient(94deg,  rgba(223,235,212,.025) 0px, rgba(223,235,212,.025) 1px, transparent 1px, transparent 18px);
}
.art-card:hover .art-crosshatch { opacity: 1; }

/* ─── DOWNLOAD ──────────────────────────────────────────────────── */
#download { background: var(--bg); position: relative; overflow: hidden; }
.dl-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 70% at 85% 50%, rgba(122,28,28,.07) 0%, transparent 65%); pointer-events: none; }
.dl-rule { width: 48px; height: 3px; background: var(--gold); margin-bottom: 2rem; }
.dl-layout { display: grid; grid-template-columns: 1fr; max-width: 680px; }
.dl-title { font-family: var(--ff-d); font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: .88; letter-spacing: .03em; margin-bottom: 1.5rem; }
.dl-title em { font-style: normal; color: var(--gold); }
.dl-desc { color: var(--silver); font-size: .94rem; line-height: 1.78; margin-bottom: 2rem; }
.alpha-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2.75rem; }
.alpha-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--silver); line-height: 1.5; }
.alpha-list li::before { content: '—'; color: var(--gold); font-family: var(--ff-m); flex-shrink: 0; margin-top: .05em; }

/* ─── DEVLOG ────────────────────────────────────────────────────── */
#devlog { background: var(--surface); border-top: 1px solid var(--border); }
.devlog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(176,141,73,.22); border: 2px solid rgba(176,141,73,.22); }
.devlog-card { background: var(--bg); padding: 2.25rem 2rem; display: flex; flex-direction: column; transition: background .2s; cursor: pointer; border: 3px solid transparent; }
.devlog-card:hover { background: #0b1012; border-color: rgba(176,141,73,.18); }
.devlog-meta { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.devlog-date { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .14em; color: var(--silver); }
.devlog-tag { font-family: var(--ff-m); font-size: .52rem; letter-spacing: .2em; text-transform: uppercase; color: #d05050; background: rgba(122,28,28,.15); border: 1px solid rgba(122,28,28,.35); padding: .2em .65em; }
.devlog-title { font-family: var(--ff-d); font-size: 1.65rem; letter-spacing: .04em; line-height: 1.1; margin-bottom: 1rem; }
.devlog-excerpt { font-size: .85rem; line-height: 1.75; color: var(--silver); flex: 1; margin-bottom: 1.75rem; }
.devlog-more { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); text-decoration: none; display: flex; align-items: center; gap: .45rem; transition: gap .2s; margin-top: auto; }
.devlog-card:hover .devlog-more { gap: .8rem; }

/* ─── FOOTER ────────────────────────────────────────────────────── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2.25rem 3rem; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: var(--ff-d); font-size: 1.2rem; letter-spacing: .1em; }
.footer-logo span { color: var(--gold); }
.footer-copy { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .15em; color: var(--silver); opacity: .45; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: var(--silver); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--white); }

/* ─── REVEAL ANIMATION SYSTEM (reusable on all pages) ───────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }
.reveal-d6 { transition-delay: .48s; }
