:root {
  --deep: #063f4d;
  --deep-2: #052f3a;
  --teal: #087f88;
  --aqua: #35c2bc;
  --foam: #e9fbf4;
  --sand: #f4dda8;
  --sand-light: #fff4d7;
  --gold: #f4ae32;
  --coral: #ee6c55;
  --ink: #19383d;
  --white: #fffdf6;
  --shadow: 0 28px 70px rgba(4, 42, 51, 0.22);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand-light);
  font-family: Avenir, "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200; padding: 10px 14px;
  color: white; background: var(--deep); border-radius: 10px; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; z-index: 100; top: 18px; left: 50%; width: min(1180px, calc(100% - 32px));
  min-height: 66px; transform: translateX(-50%); display: flex; align-items: center;
  padding: 9px 12px 9px 18px; border: 1px solid rgba(255,255,255,.42); border-radius: 22px;
  background: rgba(255, 250, 232, .88); box-shadow: 0 12px 40px rgba(4,47,57,.12);
  backdrop-filter: blur(18px); transition: background .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(255, 250, 232, .97); box-shadow: 0 14px 45px rgba(4,47,57,.2); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.site-nav { margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; font-size: .9rem; font-weight: 800; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 3px;
  border-radius: 3px; background: var(--coral); transition: right .2s;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.header-cta { padding: 12px 18px; color: white; background: var(--deep); border-radius: 14px; font-size: .87rem; font-weight: 900; }
.nav-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; width: 24px; height: 3px; margin: 4px; background: var(--deep); border-radius: 4px; }

.hero {
  position: relative; min-height: 960px; padding: 150px max(24px, calc((100vw - 1180px)/2)) 80px;
  background:
    linear-gradient(180deg, rgba(255,244,215,.12) 0 56%, var(--sand-light) 90%),
    url("assets/splash-cover.jpg") center 22% / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(255,244,215,.94) 0%, rgba(255,244,215,.78) 40%, rgba(255,244,215,.1) 72%);
}
.hero-water { position: absolute; z-index: -2; inset: 0 0 auto; height: 38%; background: linear-gradient(160deg, #56d2d1, #087e95); }
.hero-copy { position: relative; z-index: 4; width: min(600px, 53%); }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: .78rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #8ee7df; }
.hero-logo { width: 255px; margin: -24px 0 -18px; }
.hero h1, .section h2, .community-section h2 {
  margin: 0; font-family: "Trebuchet MS", Avenir, sans-serif; font-weight: 950;
  letter-spacing: -.055em; line-height: .96;
}
.hero h1 { max-width: 650px; font-size: clamp(3.6rem, 7.2vw, 6.7rem); color: var(--deep); }
.hero h1 span { color: var(--coral); }
.hero-lede { max-width: 570px; margin: 26px 0; font-size: clamp(1.05rem, 1.6vw, 1.24rem); font-weight: 650; }
.hero-actions, .store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
  padding: 14px 22px; border: 2px solid var(--deep); border-radius: 16px; font-weight: 950;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.button:hover, .button:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 0 rgba(5,47,58,.12); }
.button-primary { color: white; background: var(--deep); }
.button-ghost { background: rgba(255,255,255,.5); }
.button-icon { font-size: 1.35em; }
.store-row { margin-top: 26px; }
.store-badge {
  display: flex; align-items: center; gap: 10px; min-width: 180px; padding: 9px 14px;
  color: white; background: #101718; border-radius: 12px; box-shadow: 0 7px 20px rgba(0,0,0,.12);
}
.store-mark { display: grid; place-items: center; width: 28px; height: 28px; font-size: 1.2rem; font-weight: 900; }
.store-mark.play { font-size: .9rem; }
.store-badge span:last-child { display: flex; flex-direction: column; line-height: 1.03; }
.store-badge small { font-size: .58rem; }
.store-badge strong { font-size: 1rem; }

.hero-visual { position: absolute; z-index: 3; top: 130px; right: max(26px, calc((100vw - 1180px)/2)); width: min(510px, 43vw); height: 700px; }
.phone {
  position: relative; overflow: hidden; width: 280px; padding: 9px; border: 4px solid #153c42;
  border-radius: 44px; background: #153c42; box-shadow: var(--shadow);
}
.phone img { width: 100%; border-radius: 32px; }
.phone-speaker { position: absolute; z-index: 2; top: 17px; left: 50%; width: 72px; height: 17px; transform: translateX(-50%); border-radius: 20px; background: #153c42; }
.phone-main { position: absolute; z-index: 3; top: 18px; left: 55px; transform: rotate(3deg); }
.phone-back { position: absolute; z-index: 1; top: 108px; right: 3px; width: 238px; opacity: .9; transform: rotate(10deg); }
.sun-disc { position: absolute; top: 12px; right: 25px; width: 280px; height: 280px; border-radius: 50%; background: rgba(244,174,50,.38); }
.flying-gull { position: absolute; z-index: 5; top: 42px; right: -45px; width: 120px; transform: rotate(-9deg); filter: drop-shadow(0 12px 10px rgba(3,48,55,.2)); }
.pickup-card {
  position: absolute; z-index: 8; display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  color: white; background: var(--deep); border: 3px solid rgba(255,255,255,.7); border-radius: 18px;
  box-shadow: 0 15px 35px rgba(4,47,57,.25); font-weight: 950;
}
.pickup-card img { width: 42px; height: 42px; object-fit: contain; }
.pickup-card span { display: flex; flex-direction: column; line-height: 1.05; }
.pickup-card small { color: #9aeee7; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.hydration-card { top: 415px; left: -16px; transform: rotate(-5deg); }
.dash-card { right: -18px; bottom: 60px; transform: rotate(5deg); background: var(--coral); }
.bolt { display: grid !important; place-items: center; width: 40px; height: 40px; color: var(--deep); background: var(--gold); border-radius: 50%; font-size: 2rem; }
.bubble { position: absolute; z-index: 2; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.62); border-radius: 50%; }
.bubble-one { top: 150px; left: 52%; }.bubble-two { top: 210px; left: 58%; width: 10px; height: 10px; }.bubble-three { top: 105px; right: 9%; width: 28px; height: 28px; }
.hero-stats {
  position: absolute; z-index: 5; left: 50%; bottom: 70px; width: min(840px, calc(100% - 40px));
  transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden;
  color: white; background: var(--deep); border-radius: 24px; box-shadow: var(--shadow);
}
.hero-stats div { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; }
.hero-stats div + div { border-left: 1px solid rgba(255,255,255,.18); }
.hero-stats strong { color: var(--gold); font-size: 2rem; line-height: 1; }
.hero-stats span { font-size: .8rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }

.section { padding: 110px max(24px, calc((100vw - 1180px)/2)); }
.section-heading { display: grid; grid-template-columns: 1fr .72fr; column-gap: 70px; align-items: end; margin-bottom: 58px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .community-section h2 { font-size: clamp(2.8rem, 5vw, 5.1rem); color: var(--deep); }
.section-heading > p:last-child { margin: 0; font-size: 1.08rem; font-weight: 620; }
.mechanic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mechanic-card { position: relative; min-height: 330px; padding: 30px; border: 2px solid rgba(6,63,77,.12); border-radius: var(--radius); background: #fffaf0; box-shadow: 0 18px 55px rgba(53,76,67,.08); }
.mechanic-card.featured { color: white; background: var(--deep); transform: translateY(-16px); }
.card-number { position: absolute; top: 28px; right: 28px; color: var(--coral); font-size: .74rem; font-weight: 950; letter-spacing: .15em; }
.mechanic-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 18px 0 48px; color: var(--deep); background: var(--gold); border-radius: 22px; font-size: 2.8rem; font-weight: 950; transform: rotate(-4deg); }
.drop-icon { color: #4abfca; background: #dffafa; font-size: 1.8rem; }
.lane-icon { font-size: 2.2rem; }
.mechanic-card h3 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: -.025em; }
.mechanic-card p { margin: 0; opacity: .78; }

.world-section { color: white; background: var(--deep); }
.world-intro { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 70px; margin-bottom: 56px; }
.world-intro h2 { max-width: 660px; font-size: clamp(3rem, 5vw, 5.3rem); color: white; }
.world-intro > p { margin: 0; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.world-gallery { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 28px; }
.world-card { position: relative; overflow: hidden; margin: 0; border: 4px solid rgba(255,255,255,.65); border-radius: 34px; background: #0a5260; box-shadow: 0 25px 60px rgba(0,0,0,.27); }
.world-card.sunny { transform: translateY(-20px); }
.world-card img { width: 100%; aspect-ratio: 390 / 710; object-fit: cover; object-position: top; }
.world-card figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 15px; border-radius: 18px; background: rgba(4,47,58,.9); backdrop-filter: blur(8px); }
.world-card figcaption span { grid-row: 1 / 3; align-self: center; color: var(--gold); font-size: 1.45rem; font-weight: 950; }
.world-card figcaption strong { font-size: 1rem; }.world-card figcaption small { color: #a8e9e2; }
.gallery-note { margin: 30px 0 0; color: rgba(255,255,255,.62); text-align: center; font-weight: 750; }

.centered { display: block; max-width: 760px; margin: 0 auto 60px; text-align: center; }
.centered .eyebrow { display: block; }
.mode-list { border-top: 2px solid rgba(6,63,77,.15); }
.mode { display: grid; grid-template-columns: 70px 1fr 1fr; align-items: center; padding: 24px 10px; border-bottom: 2px solid rgba(6,63,77,.15); transition: padding .2s, background .2s; }
.mode:hover { padding-left: 22px; background: rgba(244,174,50,.08); }
.mode span { color: var(--coral); font-size: .75rem; font-weight: 950; letter-spacing: .14em; }
.mode h3 { margin: 0; font-size: 1.55rem; }.mode p { margin: 0; opacity: .7; }

.skins-section { color: white; background: var(--deep); }
.skins-section .section-heading h2 { color: white; }
.skins-section .section-heading > p:last-child { color: rgba(255,255,255,.72); }
.skins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skin-card { margin: 0; padding: 26px 20px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.05); text-align: center; transition: transform .2s, background .2s, border-color .2s; }
.skin-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }
.skin-art { position: relative; display: grid; place-items: center; padding: 14px 0 18px; }
.skin-art::before { content: ""; position: absolute; z-index: 0; top: 50%; left: 50%; width: 74%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--glow, var(--aqua)) 0%, transparent 68%); opacity: .32; }
.skin-art img { position: relative; z-index: 1; width: min(180px, 68%); filter: drop-shadow(0 16px 26px rgba(0,0,0,.35)); }
.skin-card figcaption { font-size: 1.08rem; font-weight: 900; letter-spacing: -.02em; }

.lagoon-section { position: relative; display: grid; grid-template-columns: .85fr 1fr; align-items: center; min-height: 820px; gap: 100px; color: white; background: linear-gradient(145deg, #078a91, #075465); overflow: hidden; }
.lagoon-section::before { content: ""; position: absolute; inset: auto -10% -35% -10%; height: 65%; border-radius: 50% 50% 0 0; background: rgba(55,201,191,.25); }
.lagoon-phone { position: relative; width: 410px; height: 620px; justify-self: center; }
.lagoon-phone .phone { z-index: 2; width: 300px; margin: 0 auto; transform: rotate(-4deg); }
.orbit { position: absolute; border: 2px solid rgba(255,255,255,.27); border-radius: 50%; }
.orbit-one { inset: 40px -20px 40px; }.orbit-two { inset: 95px -70px 95px; }
.lagoon-copy { position: relative; z-index: 2; max-width: 560px; }
.lagoon-copy h2 { font-size: clamp(3rem, 5vw, 5.2rem); color: white; }
.lagoon-copy > p:not(.eyebrow) { margin: 28px 0; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-weight: 800; }
.check-list span { display: grid; place-items: center; width: 26px; height: 26px; color: var(--deep); background: var(--gold); border-radius: 50%; }

.community-section { position: relative; min-height: 570px; display: grid; place-items: center; padding: 100px 24px; text-align: center; background: var(--sand); overflow: hidden; }
.community-section::before, .community-section::after { content: ""; position: absolute; width: 340px; height: 340px; border: 2px solid rgba(6,63,77,.12); border-radius: 50%; }
.community-section::before { left: -120px; top: -130px; }.community-section::after { right: -100px; bottom: -170px; }
.community-copy { position: relative; z-index: 2; max-width: 770px; }
.community-copy p:not(.eyebrow) { max-width: 620px; margin: 24px auto 30px; font-size: 1.08rem; }
.community-turtle { position: absolute; right: 7%; top: 50%; width: 150px; opacity: .18; transform: translateY(-50%) rotate(-18deg); }
.button-discord { color: white; background: var(--coral); border-color: #b63e32; }

.site-footer { padding: 60px max(24px, calc((100vw - 1180px)/2)) 30px; color: white; background: var(--deep-2); }
.footer-top { display: flex; align-items: center; gap: 28px; padding-bottom: 38px; }
.footer-top > p { margin-right: auto; color: rgba(255,255,255,.55); }
.footer-brand img { width: 48px; height: 48px; }.footer-brand span { font-size: 1.15rem; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; font-size: .72rem; font-weight: 950; transition: color .2s, background .2s; }
.socials a:hover { color: var(--deep); background: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: .78rem; }
.footer-bottom div { display: flex; gap: 20px; }.footer-bottom a:hover { color: white; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 28px; max-width: calc(100% - 32px); padding: 12px 18px; color: white; background: var(--deep); border: 2px solid rgba(255,255,255,.6); border-radius: 14px; box-shadow: var(--shadow); font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .site-nav { gap: 16px; }.site-nav a { font-size: .78rem; }
  .hero { min-height: 1120px; }.hero-copy { width: 64%; }.hero-visual { top: 350px; right: -40px; width: 430px; }
  .hero-stats { bottom: 55px; }
  .section-heading, .world-intro { grid-template-columns: 1fr; gap: 24px; }
  .mechanic-grid { gap: 12px; }.mechanic-card { padding: 24px; }
  .lagoon-section { grid-template-columns: .8fr 1fr; gap: 40px; }.lagoon-phone { width: 340px; }
}

@media (max-width: 720px) {
  .site-header { top: 10px; width: calc(100% - 20px); }.header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border-radius: 18px; background: var(--sand-light); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }.site-nav a { padding: 13px; font-size: .95rem; }.site-nav a::after { display: none; }
  .hero { min-height: 1370px; padding-top: 130px; background-position: 63% center; }
  .hero::before { background: linear-gradient(180deg, rgba(255,244,215,.97) 0%, rgba(255,244,215,.86) 48%, rgba(255,244,215,.24) 75%, var(--sand-light) 94%); }
  .hero-copy { width: 100%; text-align: center; }.hero-logo { margin-left: auto; margin-right: auto; }.hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions, .store-row { justify-content: center; }.store-badge { min-width: 162px; }
  .hero-visual { top: 675px; right: 50%; width: 390px; height: 600px; transform: translateX(50%); }
  .phone-main { left: 54px; width: 240px; }.phone-back { width: 200px; }.flying-gull { right: 2px; width: 95px; }
  .hydration-card { top: 360px; left: 4px; }.dash-card { right: 4px; bottom: 70px; }
  .hero-stats { bottom: 38px; }.hero-stats div { flex-direction: column; gap: 5px; padding: 16px 5px; text-align: center; }.hero-stats span { font-size: .64rem; }
  .section { padding-top: 82px; padding-bottom: 82px; }.section-heading { display: block; }.section-heading h2 { margin-bottom: 24px; }
  .mechanic-grid { grid-template-columns: 1fr; }.mechanic-card, .mechanic-card.featured { min-height: 260px; transform: none; }.mechanic-icon { margin-bottom: 30px; }
  .world-gallery { grid-template-columns: 1fr; max-width: 340px; margin: auto; }.world-card.sunny { transform: none; }.world-card img { aspect-ratio: 390 / 620; }
  .skins-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }.skin-card { padding: 20px 12px 18px; }
  .mode { grid-template-columns: 42px 1fr; }.mode p { grid-column: 2; margin-top: 4px; }
  .lagoon-section { grid-template-columns: 1fr; gap: 20px; padding-top: 80px; }.lagoon-phone { width: 300px; height: 590px; }.lagoon-phone .phone { width: 265px; }.lagoon-copy { text-align: center; }.check-list { display: inline-block; text-align: left; }
  .community-turtle { display: none; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }.footer-top > p { margin: 0; }.footer-bottom div { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .hero { min-height: 1390px; }.hero h1 { font-size: 3.25rem; }.hero-logo { width: 215px; }
  .hero-visual { width: 350px; }.phone-main { left: 55px; width: 220px; }.phone-back { right: 7px; width: 180px; }
  .pickup-card { padding: 8px 10px; font-size: .8rem; }.pickup-card img { width: 34px; height: 34px; }.hydration-card { left: 10px; }.dash-card { right: 12px; }
  .store-row { flex-direction: column; align-items: center; }.store-badge { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
