/* Y2K Player site — Frutiger Aero design system.
   Pure CSS, no dependencies. Animations honor prefers-reduced-motion. */

:root {
  --ink: #0A2E3A;          /* deep teal text on glass */
  --ink-dim: #3E6A78;
  --aqua: #0E90C8;
  --aqua-deep: #0A6E9E;
  --grass: #3FBE78;
  --gel-hi: #6FB6EE;
  --gel: #2E7DE8;
  --gel-deep: #1E5AB0;
  --glass-line: rgba(255,255,255,.85);
  --font: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* The descent: you START in blue sky and scrolling brings you down through
     aqua to grass — the gradient spans the whole document, not the viewport. */
  background: linear-gradient(180deg,
    #5FB8EE 0%, #7EC8F2 22%, #9ADCF5 48%, #A9E8E0 68%,
    #97E0B8 85%, #7FD08A 100%);
  min-height: 100vh;
}

/* ---------- the sky: sun glare + drifting light ---------- */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.sky::before {  /* sun glare, upper left */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(42% 30% at 12% -4%, rgba(255,255,255,.9), transparent 70%);
}
.sky::after {   /* slow breathing aqua light */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 78% 20%, rgba(255,255,255,.35), transparent 70%);
  animation: skydrift 14s ease-in-out infinite alternate;
}
@keyframes skydrift { from { opacity: .4; transform: translateX(0); }
                      to   { opacity: .9; transform: translateX(-4%); } }

/* the aero swooshes: two vast glossy arcs crossing the wallpaper */
.swoosh, .swoosh2 {
  position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
  border-top: 90px solid rgba(255,255,255,.28);
  border-left: 90px solid transparent; border-right: 90px solid transparent;
  border-bottom: 90px solid transparent;
  filter: blur(2px);
}
.swoosh  { width: 160vw; height: 90vh; left: -30vw; top: 18vh; transform: rotate(-9deg); }
.swoosh2 { width: 150vw; height: 80vh; left: -20vw; top: 44vh; transform: rotate(6deg);
           border-top-color: rgba(140,230,200,.25); border-top-width: 60px; }
@media (prefers-reduced-motion: no-preference) {
  .swoosh  { animation: swoosha 18s ease-in-out infinite alternate; }
  .swoosh2 { animation: swooshb 24s ease-in-out infinite alternate; }
  @keyframes swoosha { to { transform: rotate(-6deg) translateY(-3vh); } }
  @keyframes swooshb { to { transform: rotate(9deg) translateY(3vh); } }
}

/* ---------- light rays ---------- */
.rays { position: fixed; inset: -10% -10% auto -10%; height: 80vh; z-index: -1;
        pointer-events: none; overflow: hidden; opacity: .55;
        background:
          linear-gradient(112deg, transparent 28%, rgba(255,255,255,.22) 30%, transparent 34%),
          linear-gradient(105deg, transparent 40%, rgba(255,255,255,.14) 42%, transparent 47%),
          linear-gradient(118deg, transparent 55%, rgba(255,255,255,.10) 57%, transparent 63%);
        mask-image: radial-gradient(90% 80% at 10% 0%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(90% 80% at 10% 0%, #000, transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .rays { animation: raydrift 16s ease-in-out infinite alternate; }
  @keyframes raydrift { to { transform: translateX(3vw); opacity: .8; } }
}

/* ---------- bubbles ---------- */
.bubbles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; bottom: -12vh; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,.25) 22%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.12), rgba(255,255,255,.02) 60%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 -6px 12px rgba(255,255,255,.25), 0 2px 14px rgba(14,144,200,.15);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-118vh) translateX(6vw); opacity: 0; }
}

/* ---------- glass panels ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(10,80,120,.22), inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
}
.glass::before {  /* the hard-cut gloss */
  content: ""; position: absolute; inset: 1px; border-radius: 21px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.18) 49%, transparent 50%);
}
.glass > * { position: relative; }

/* shine sweep across hero glass */
.shine::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 34%;
  left: -40%; transform: skewX(-18deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: sweep 7s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { left: -40%; } 85%, 100% { left: 120%; } }

/* ---------- Lagoon-glass buttons (the app's own aero chrome) ---------- */
.gel-btn {
  display: inline-block; position: relative; text-decoration: none; text-align: center;
  color: var(--ink); font-weight: 800; font-size: 16.5px; letter-spacing: .2px;
  padding: 14px 30px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(160,220,240,.55));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 10px 26px rgba(14,144,200,.35), inset 0 1px 0 rgba(255,255,255,.95);
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.gel-btn::before {  /* the bright gloss across the top half, hard cut */
  content: ""; position: absolute; inset: 1px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.25) 49%, transparent 50%);
}
.gel-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(14,144,200,.45), inset 0 1px 0 rgba(255,255,255,.95); }
.gel-btn::after {  /* shimmer that crosses on hover */
  content: ""; position: absolute; top: -30%; bottom: -30%; width: 30%; left: -50%;
  transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  transition: left .6s ease;
}
.gel-btn:hover::after { left: 130%; }
.text-link { font-weight: 800; color: var(--aqua-deep); text-decoration: none;
             border-bottom: 2px solid rgba(14,144,200,.35); padding-bottom: 1px; }
.text-link:hover { border-color: var(--aqua-deep); }
.gel-btn.grass {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(150,225,175,.6));
  box-shadow: 0 10px 26px rgba(46,148,88,.32), inset 0 1px 0 rgba(255,255,255,.95);
}
.gel-btn.grass:hover { box-shadow: 0 14px 34px rgba(46,148,88,.42), inset 0 1px 0 rgba(255,255,255,.95); }

/* ---------- nav ---------- */
nav.aero {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.6);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
nav.aero.scrolled {
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.6));
  border-bottom-color: rgba(255,255,255,.95);
  box-shadow: 0 4px 24px rgba(10,80,120,.18);
}
.nav-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 60px;
          display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800;
         letter-spacing: 2.5px; font-size: 15px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px;
             box-shadow: 0 2px 8px rgba(10,80,120,.3); }
.brand b { color: var(--aqua); }
.nav-links { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav-links a { color: var(--ink-dim); text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-links a:hover { color: var(--aqua); }
.nav-cta { margin-left: 8px; font-size: 13px !important; padding: 8px 16px !important; }
@media (max-width: 820px) { .nav-links a:not(.nav-cta) { display: none; } .nav-links { margin-left: auto; } }

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-bottom: 40px; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -1px;
     font-weight: 800; margin: 0 0 16px;
     text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 0 24px rgba(255,255,255,.55); }
h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.5px; margin: 0 0 12px;
     text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 0 18px rgba(255,255,255,.4); }
h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.lede { font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-dim); max-width: 52ch; }
.lede strong, p strong { color: var(--ink); }
section { padding-top: clamp(72px, 12vh, 150px); }
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
          color: var(--aqua-deep); margin: 0 0 8px; }
p { color: var(--ink-dim); }
a { color: var(--aqua-deep); }
.grad-aqua {
  background: linear-gradient(180deg, #2FA8E0 20%, #0A6E9E 60%, #3FBE78 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.stanza { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; color: var(--ink-dim); }
.stanza p { margin: 0 0 10px; }
.stanza strong { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.grid.weighted { grid-template-columns: repeat(6, 1fr); }
.grid.weighted > * { grid-column: span 2; }
.grid.weighted > .major { grid-column: span 3; }
.grid.weighted .major h3 { font-size: 21px; }
.grid.weighted .major p { font-size: 15.5px; }
@media (max-width: 900px) { .grid.weighted > *, .grid.weighted > .major { grid-column: span 3; } }
@media (max-width: 620px) { .grid.weighted { grid-template-columns: 1fr; } .grid.weighted > *, .grid.weighted > .major { grid-column: auto; } }
.ico.lime   { background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.95) 0 18%, rgba(255,255,255,.2) 42%, transparent 60%), linear-gradient(180deg, rgba(255,255,255,.9), rgba(190,240,150,.6)); box-shadow: 0 6px 16px rgba(110,190,60,.3), inset 0 1px 0 rgba(255,255,255,.95); }
.ico.violet { background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.95) 0 18%, rgba(255,255,255,.2) 42%, transparent 60%), linear-gradient(180deg, rgba(255,255,255,.9), rgba(200,180,250,.6)); box-shadow: 0 6px 16px rgba(140,110,220,.3), inset 0 1px 0 rgba(255,255,255,.95); }
.ico.sun    { background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.95) 0 18%, rgba(255,255,255,.2) 42%, transparent 60%), linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,225,150,.65)); box-shadow: 0 6px 16px rgba(230,170,60,.3), inset 0 1px 0 rgba(255,255,255,.95); }
.card { padding: 22px; }
.card p { margin: 0; font-size: 14.5px; }
.card .ico {
  font-size: 22px; width: 52px; height: 52px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.95) 0 18%, rgba(255,255,255,.2) 42%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(160,220,240,.55));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 16px rgba(14,144,200,.3), inset 0 1px 0 rgba(255,255,255,.95);
}
a.card { text-decoration: none; color: inherit; display: block;
         transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(10,80,120,.3), inset 0 1px 0 rgba(255,255,255,.9); }
a.card .more { color: var(--aqua-deep); font-weight: 800; font-size: 13.5px; display: inline-block; margin-top: 10px; }

/* screenshots */
.shot { width: 100%; max-width: 320px; border-radius: 22px;
        box-shadow: 0 24px 60px rgba(10,60,100,.4);
        -webkit-box-reflect: below 6px
          linear-gradient(transparent 68%, rgba(255,255,255,.22)); }

/* the hero phone: artwork, not product image */
.hero-phone { position: relative; display: inline-block; }
.hero-phone::before {   /* soft bloom behind the device */
  content: ""; position: absolute; inset: -18% -30%;
  background: radial-gradient(50% 50% at 50% 42%,
    rgba(255,255,255,.75), rgba(140,225,245,.35) 45%, transparent 72%);
  filter: blur(6px); z-index: -1;
}
.hero-phone img {
  width: min(100%, 400px); height: auto; border-radius: 26px;
  transform: perspective(1200px) rotateY(-5deg) rotateZ(.4deg);
  box-shadow: 26px 40px 80px rgba(8,50,90,.45);
  -webkit-box-reflect: below 8px
    linear-gradient(transparent 62%, rgba(255,255,255,.28));
}
@media (prefers-reduced-motion: no-preference) {
  .hero-phone img { animation: sway 11s ease-in-out infinite; }
  @keyframes sway {
    0%, 100% { transform: perspective(1200px) rotateY(-5deg) rotateZ(.4deg) translateY(0); }
    50%      { transform: perspective(1200px) rotateY(-3.4deg) rotateZ(-.3deg) translateY(-12px); }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 8s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
}

/* ---------- glass OS window ---------- */
.window { padding: 0; }
.titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.8);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(210,238,250,.55));
}
.titlebar .orb {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.9);
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.95) 0 20%, transparent 55%),
    linear-gradient(180deg, var(--o1, #7FD08A), var(--o2, #3FBE78));
  box-shadow: 0 2px 5px rgba(10,80,120,.3);
}
.titlebar .orb.aqua { --o1: #7FD4F5; --o2: #0E90C8; }
.titlebar .orb.sun  { --o1: #FFE08A; --o2: #F5B93C; }
.titlebar .title { margin-left: 8px; font-size: 12.5px; font-weight: 800;
                   letter-spacing: 1.5px; color: var(--ink-dim); text-transform: uppercase; }
.window .win-body { padding: 26px; }

/* FAQ */
details { border: 1px solid rgba(255,255,255,.9); border-radius: 16px; margin-bottom: 10px;
          background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.45)); }
summary { cursor: pointer; list-style: none; padding: 15px 20px; font-weight: 800; font-size: 15px;
          display: flex; justify-content: space-between; gap: 14px; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--aqua); font-weight: 800; font-size: 19px; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 20px 16px; font-size: 14.5px; }

/* footer wave */
footer.aero { margin-top: clamp(50px, 9vh, 90px); position: relative; color: var(--ink-dim);
              background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.75));
              border-top: 1px solid rgba(255,255,255,.9); }
.waves { position: absolute; top: -34px; left: 0; right: 0; height: 36px; overflow: hidden; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; fill: rgba(255,255,255,.6); }
@media (prefers-reduced-motion: no-preference) {
  .waves svg { animation: drift 12s linear infinite; }
  .waves svg.back { animation-duration: 19s; opacity: .5; bottom: 4px; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}
.foot-in { max-width: 1080px; margin: 0 auto; padding: 26px 20px 34px; font-size: 13.5px;
           display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot-in a { color: var(--ink-dim); text-decoration: none; font-weight: 700; }
.foot-in a:hover { color: var(--aqua-deep); }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* store badge (black, per Apple convention — pops on the sky) */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: linear-gradient(180deg, #2A2A30, #000); color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 14px; padding: 10px 22px 10px 17px;
  box-shadow: 0 8px 24px rgba(0,20,40,.35);
  transition: transform .15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 25px; height: 25px; fill: #fff; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge small { font-size: 10.5px; font-weight: 500; color: #d8d8de; }
.store-badge strong { font-size: 18px; font-weight: 650; letter-spacing: -.2px; }

@media (prefers-reduced-motion: reduce) {
  .sky::after, .bubble, .shine::after { animation: none !important; }
  .bubble { display: none; }
}
