/* ahoiparty.app – the look of the AHOI! app icon: night-blue sky, glowing purple → pink → orange, confetti, wide heavy type. */
@font-face { font-family: "Archivo"; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --night: #0B0A26;
  --night-2: #141039;
  --ink: #0A1020;
  --cream: #FFFDF9;
  --muted: rgba(255, 255, 255, .72);
  --blue: #2F6BFF;
  --purple: #7B2FF7;
  --pink: #E8338F;
  --orange: #FF6B35;
  --yellow: #FFC531;
  --glow: linear-gradient(100deg, #7B2FF7, #E8338F 50%, #FF6B35);
  --display: "Archivo", system-ui, sans-serif;
  --rounded: "Nunito", "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --radius: clamp(22px, 3vw, 34px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
body { font-family: var(--display); background: var(--night); color: #fff; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
.wide { font-family: var(--display); font-stretch: 125%; font-weight: 900; letter-spacing: -0.01em; line-height: 1; }
.bang { color: var(--orange); }
.wrap { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; }
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* ---------- Sky: glow blobs, waves, confetti ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sky .blob { position: absolute; border-radius: 50%; }
.sky .b1 { width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax; background: radial-gradient(circle, rgba(123,47,247,.55), rgba(123,47,247,0) 62%); animation: drift1 26s ease-in-out infinite alternate; }
.sky .b2 { width: 60vmax; height: 60vmax; right: -25vmax; top: 0; background: radial-gradient(circle, rgba(232,51,143,.4), rgba(232,51,143,0) 62%); animation: drift2 31s ease-in-out infinite alternate; }
.sky .b3 { width: 50vmax; height: 50vmax; left: 30%; bottom: -30vmax; background: radial-gradient(circle, rgba(255,107,53,.35), rgba(255,107,53,0) 62%); animation: drift1 37s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12vw, 8vh); } }
@keyframes drift2 { to { transform: translate(-10vw, 12vh); } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 14vw, 200px); }
.confetti i { position: absolute; width: 34px; height: 12px; border-radius: 6px; opacity: .9; animation: flutter 6s ease-in-out infinite alternate; }
@keyframes flutter { from { transform: translateY(0) rotate(var(--r)); } to { transform: translateY(-18px) rotate(calc(var(--r) + 25deg)); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; background: radial-gradient(120% 90% at 50% 0%, #1D1550 0%, var(--night) 60%); overflow: hidden; display: flex; flex-direction: column; }
.nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding-top: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; text-decoration: none; }
.logo img { width: 44px; height: 44px; border-radius: 11px; }
.lang { display: flex; gap: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 4px; }
.lang a { font: 800 14px var(--display); text-decoration: none; padding: 9px 14px; border-radius: 999px; min-width: 44px; text-align: center; }
.lang a[aria-current] { background: #fff; color: var(--ink); }

.hero-body { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-top: 30px; padding-bottom: clamp(120px, 16vw, 220px); }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; }
.chip b { color: var(--yellow); }
.hero h1 { font-size: clamp(80px, 11vw, 168px); margin-top: 22px; text-shadow: 0 10px 50px rgba(123,47,247,.5); }
.hero .lead { font: 900 clamp(26px, 3.3vw, 42px)/1.12 var(--rounded); margin-top: 18px; max-width: 15em; }
.hero .lead span { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 16px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.store { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 999px; padding: 12px 26px 12px 14px; text-decoration: none; min-height: 60px; box-shadow: 0 12px 40px rgba(232,51,143,.35); }
.store img { width: 36px; height: 36px; border-radius: 9px; }
.store small { display: block; font-size: 12px; font-weight: 700; color: #5E5A66; line-height: 1.1; }
.store b { display: block; font-size: 19px; font-stretch: 125%; font-weight: 900; line-height: 1.1; }
.age { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--yellow); color: var(--yellow); font: 900 18px var(--display); font-stretch: 125%; flex: none; }

.icon-stage { position: relative; display: grid; place-items: center; min-height: 420px; }
.icon-stage .halo { position: absolute; width: 115%; max-width: 560px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, rgba(123,47,247,0), rgba(123,47,247,.6), rgba(232,51,143,.6), rgba(255,107,53,.55), rgba(123,47,247,0)); filter: blur(60px); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-stage .app { position: relative; width: min(100%, 420px); border-radius: 22.5%; box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); transform: rotate(-6deg); animation: bob 6s ease-in-out infinite alternate; }
@keyframes bob { to { transform: rotate(-3deg) translateY(-14px); } }

/* ---------- Sections ---------- */
section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.kicker { display: inline-block; font-size: 14px; font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: .1em; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(40px, 6.6vw, 88px); margin-top: 14px; max-width: 12em; }
.intro { font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); margin-top: 20px; max-width: 34em; }

/* Sneak peek: real cards */
.peek { display: flex; justify-content: center; gap: clamp(14px, 3vw, 34px); margin-top: clamp(40px, 6vw, 70px); flex-wrap: wrap; }
.card { width: min(100%, 300px); aspect-ratio: 3 / 4; background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; box-shadow: 0 30px 70px rgba(0,0,0,.45); transition: transform .4s cubic-bezier(.2, .9, .3, 1.3); }
.card:nth-child(1) { transform: rotate(-5deg) translateY(16px); }
.card:nth-child(3) { transform: rotate(5deg) translateY(16px); }
.card:hover { transform: rotate(0) translateY(-8px) scale(1.03); }
.card .cap { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; font-stretch: 125%; color: #6E6A66; }
.card .cap i { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.card p { flex: 1; display: flex; align-items: center; font: 900 clamp(22px, 2.2vw, 26px)/1.15 var(--rounded); }
.card .who { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #6E6A66; }
.card .who img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.card.hot { box-shadow: 0 0 0 5px var(--orange), 0 0 60px 12px rgba(255,107,53,.55), 0 30px 70px rgba(0,0,0,.45); }
.badge { margin-left: auto; background: #C71A24; color: #fff; border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 900; text-transform: uppercase; transform: rotate(4deg); }

/* Games: glowing cards like the ones on the icon */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.game { --c: var(--purple); --c2: var(--pink); position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background: linear-gradient(155deg, var(--c2), var(--c) 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 18px 40px -12px var(--c); transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), box-shadow .35s; }
.game::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.28), rgba(255,255,255,0) 55%); pointer-events: none; }
.game:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 26px 60px -10px var(--c); }
.game svg { position: absolute; top: 22px; left: 24px; width: 46px; height: 46px; opacity: .92; }
.game h3 { font-size: clamp(22px, 2.2vw, 28px); overflow-wrap: normal; }
.game p { font: 800 17px/1.3 var(--rounded); color: rgba(255,255,255,.88); }

/* TV */
.tv { background: linear-gradient(180deg, var(--night), var(--night-2)); }
.ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ways span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 15px; }
.screen { margin-top: clamp(40px, 6vw, 64px); position: relative; }
.screen::before { content: ""; position: absolute; inset: 8% 6%; background: var(--glow); filter: blur(70px); opacity: .55; }
.screen .bezel { position: relative; background: #000; border-radius: clamp(14px, 2vw, 26px); padding: clamp(8px, 1.2vw, 16px); box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 2px #26233F; }
.screen iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: clamp(6px, 1vw, 12px); background: #D8402B; }
.screen .stand { position: relative; width: 22%; height: 18px; margin: 0 auto; background: linear-gradient(#26233F, #0B0A26); border-radius: 0 0 14px 14px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.feature { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-size: 26px; }
.feature p { color: var(--muted); font-size: 17px; }
.feature .art { height: 110px; display: flex; align-items: center; margin-bottom: 6px; }
.crew { display: flex; }
.crew img { width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--night-2); margin-right: -14px; }
.steps { display: flex; gap: 8px; align-items: center; }
.steps i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.2); }
.steps i:first-child { width: 40px; border-radius: 6px; background: var(--glow); }
.feature .play { display: inline-flex; align-items: center; gap: 10px; background: var(--glow); border-radius: 999px; padding: 14px 22px; font: 900 18px var(--display); font-stretch: 125%; }

/* Pro */
.pro { padding-top: 0; }
.pro-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; border-radius: clamp(28px, 4vw, 48px); padding: clamp(30px, 5vw, 64px); background: linear-gradient(120deg, #3A1C9C, #7B2FF7 35%, #E8338F 70%, #FF6B35); box-shadow: 0 40px 100px -20px rgba(232,51,143,.55); }
.pro-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 0% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%); pointer-events: none; }
.pro-panel img { width: clamp(150px, 20vw, 260px); border-radius: 22.5%; box-shadow: 0 30px 60px rgba(0,0,0,.4); transform: rotate(-6deg); }
.pro-panel h2 { margin-top: 0; font-size: clamp(38px, 5.4vw, 72px); }
.pro-panel ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.pro-panel li { display: flex; gap: 12px; align-items: flex-start; font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; }
.pro-panel li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8338F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.pro-panel .note { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,.85); }

/* Responsible */
.band { padding: 0 0 clamp(80px, 10vw, 130px); }
.band .box { display: flex; align-items: center; gap: clamp(20px, 4vw, 44px); border: 1px solid rgba(255,197,49,.35); background: rgba(255,197,49,.06); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); }
.band .box > div { min-width: 0; }
.band .age { width: 92px; height: 92px; font-size: 26px; }
.band h2 { font-size: clamp(28px, 4vw, 48px); margin: 0; max-width: none; }
.band p { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 10px; max-width: 46em; }

/* Final call */
.last { text-align: center; overflow: hidden; padding-bottom: clamp(160px, 20vw, 260px); }
.last .icon { width: 120px; margin: 0 auto 26px; border-radius: 22.5%; box-shadow: 0 20px 60px rgba(123,47,247,.6); }
.last h2 { margin: 0 auto; }
.last .cta { justify-content: center; }

footer { background: #07061A; color: rgba(255,255,255,.7); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
footer .logo { color: #fff; font-size: 20px; margin-right: auto; }
footer .logo img { width: 34px; height: 34px; border-radius: 8px; }
footer a { text-decoration: none; padding: 10px 0; }
footer a:hover { color: #fff; }

/* Legal page */
.legal { padding: 40px 0 80px; background: radial-gradient(100% 60% at 50% 0%, #1D1550, var(--night) 70%); }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin-top: 50px; }
.legal h2 { font-size: 26px; margin: 40px 0 10px; max-width: none; }
.legal p, .legal li { font-size: 17px; max-width: 46em; margin-top: 10px; color: rgba(255,255,255,.85); }
.legal ul { padding-left: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1.05); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; padding-top: 16px; }
  .icon-stage { min-height: 0; order: -1; justify-items: start; }
  .icon-stage .app { width: 150px; }
  .icon-stage .halo { width: 260px; left: -40px; }
  .hero h1 { margin-top: 10px; }
  .features { grid-template-columns: 1fr; }
  .pro-panel { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  h2 { font-size: clamp(32px, 9vw, 44px); }
  .games { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game { min-height: 176px; padding: 16px; border-radius: 22px; }
  .game svg { top: 16px; left: 16px; width: 34px; height: 34px; }
  .game h3 { font-size: 16px; font-stretch: 100%; }
  .game p { font-size: 14px; }
  .peek .card:nth-child(n+2) { display: none; }
  .card { transform: rotate(-3deg) !important; }
  .band .box { flex-direction: column; align-items: flex-start; }
  .band h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* The free trial, loud – always with the price after it. */
.trial-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 18px 8px 8px; border-radius: 999px; text-decoration: none; background: var(--yellow); color: var(--ink); font-size: 16px; box-shadow: 0 12px 34px rgba(255,197,49,.35); transition: transform .3s cubic-bezier(.2,.9,.3,1.4); }
.trial-pill img { width: 28px; height: 28px; border-radius: 7px; }
.trial-pill b { font-weight: 800; }
.trial-pill:hover { transform: scale(1.05) rotate(-1deg); }
.pro-art { position: relative; }
.sticker { position: absolute; right: -18px; bottom: 6px; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 12px 20px; font-size: clamp(16px, 1.8vw, 22px); transform: rotate(8deg); box-shadow: 0 10px 30px rgba(0,0,0,.35); white-space: nowrap; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(8deg) scale(1); } 50% { transform: rotate(4deg) scale(1.08); } }
.trial-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 14px; }
.trial-line b { font-size: clamp(30px, 4vw, 52px); color: var(--yellow); text-shadow: 0 4px 20px rgba(0,0,0,.25); }
.trial-line span { font-size: 17px; font-weight: 700; color: rgba(255,255,255,.9); }
@media (max-width: 900px) { .pro-art { justify-self: start; } }

/* Nothing may ever widen the page on a phone (iOS zooms out instead of clipping). */
html, body { overflow-x: clip; }
.hero-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game h3 { overflow-wrap: break-word; }
@media (max-width: 900px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .features, .pro-panel { grid-template-columns: minmax(0, 1fr); }
  /* One logo only: the big icon moves up next to the language switch. */
  .nav .logo { visibility: hidden; }
  .hero-body { margin-top: -54px; }
  .icon-stage { padding-top: 6px; }
}
@media (max-width: 600px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .crew img { width: 50px; height: 50px; margin-right: -12px; } }
