/* SkateNip — skatenip.netlify.app
   Daylight. The palette is lifted off two of the game's own screens: the
   skatepark at noon (pale concrete, a big blue sky, yellow coping on every
   transition) and the garage studio (cool blue light, teal trim). The page
   is a bright afternoon at the park with the kitten's gear left lying
   around in the background. */

:root {
  color-scheme: light;

  --paper:   #EFF3F8;   /* concrete in the sun */
  --paper-2: #E4EBF3;
  --card:    #FFFFFF;
  --line:    #D9E3EE;
  --line-2:  #C3D2E1;

  --ink:   #14202C;
  --ink-2: #55677C;
  --ink-3: #8797A9;

  --sky:     #BEDDF6;   /* the park's sky, near the horizon */
  --sky-2:   #7FBCEB;
  --coping:  #E4AC14;   /* the yellow bar on every transition */
  --teal:    #0E9A8E;   /* the garage's trim */
  --lime:    #C2E85A;   /* the fish counter, and every button in the game */
  --lime-ink:#3F5210;
  --grass:   #4E8B3C;

  --measure: 64ch;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --lift: 0 1px 2px rgba(20, 32, 44, .05), 0 12px 28px -18px rgba(20, 32, 44, .35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.05vw + 13px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px;
}

.wrap { width: min(1180px, 100% - calc(var(--pad) * 2)); margin-inline: auto;
  position: relative; z-index: 1; }
.narrow { width: min(74ch, 100% - calc(var(--pad) * 2)); margin-inline: auto;
  position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: "Anybody", "Figtree", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.03;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: .74rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 .9rem;
}

/* ---------------------------------------------------------------- props
   Boards, toys and gear scattered behind the content. Decoration only —
   hidden from assistive tech, ignored by the pointer, and faint enough to
   read text straight through. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.props { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.prop {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  color: var(--ink);
  opacity: var(--o, .12);
  transform: rotate(var(--r, 0deg));
  animation: bob 9s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}
.prop svg { width: 100%; height: 100%; fill: currentColor; }
.prop.warm { color: var(--coping); opacity: var(--o, .3); }
.prop.cool { color: var(--teal); opacity: var(--o, .2); }

@keyframes bob {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50%      { transform: rotate(calc(var(--r, 0deg) + 2.5deg)) translateY(-9px); }
}

@media (max-width: 760px) { .prop.hide-sm { display: none; } }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.top.stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px -18px rgba(20,32,44,.5); }
.top .wrap { display: flex; align-items: center; gap: 1rem; height: 66px; }

.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800;
  font-family: "Anybody", sans-serif; font-stretch: 112%; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; font-size: 1.12rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span i { color: var(--teal); font-style: normal; }

.top nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
.top nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 800px) { .top nav .hide-sm { display: none; } }

/* language menu */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem;
  color: var(--ink-2); font-size: .93rem; padding: .3rem .55rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); border-color: var(--ink-3); }
.lang[open] summary { color: var(--ink); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: .4rem; min-width: 11rem; display: grid; gap: 1px;
  box-shadow: 0 20px 44px -20px rgba(20, 32, 44, .45);
}
.lang-menu a { display: block; padding: .42rem .6rem; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.lang-menu a:hover { background: var(--paper-2); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--teal); font-weight: 600; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .78rem 1.35rem; border-radius: 999px;
  font-weight: 700; font-size: .97rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn-primary {
  background: var(--lime); color: var(--lime-ink);
  border-color: color-mix(in srgb, var(--lime) 70%, #000);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--lime) 62%, #000);
}
.btn-primary:hover { transform: translateY(-2px);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--lime) 62%, #000), 0 14px 28px -14px rgba(20,32,44,.4); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(2.6rem, 8vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: -160px -10% auto -10%; height: 150%;
  background:
    radial-gradient(58% 46% at 78% 10%, color-mix(in srgb, var(--sky-2) 45%, transparent), transparent 68%),
    linear-gradient(180deg, var(--sky) 0%, color-mix(in srgb, var(--sky) 30%, var(--paper)) 46%, var(--paper) 78%);
  z-index: -1;
  transform: translate3d(0, var(--sky-shift, 0px), 0);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.5rem, 7vw, 4.7rem); }
.hero .lede { color: var(--ink-2); font-size: clamp(1.02rem, .5vw + .9rem, 1.2rem);
  max-width: 46ch; margin: 1.15rem 0 0; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero .fineprint { margin: 1.35rem 0 0; color: var(--ink-3); font-size: .87rem;
  font-family: "DM Mono", ui-monospace, monospace; }

.phone { position: relative; justify-self: center; width: min(100%, 620px); }
.phone-frame {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 2px 6px rgba(20,32,44,.06), 0 40px 70px -34px rgba(20, 32, 44, .5);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) translate3d(0, var(--tilt, 0px), 0);
  transition: transform .5s var(--ease);
  background: var(--card);
}
@media (max-width: 900px) { .phone-frame { transform: none; } }

/* ---------------------------------------------------------------- sections */
section { padding: clamp(2.8rem, 6vw, 4.6rem) 0; position: relative; }
section[id] { scroll-margin-top: 84px; }
.sec-head { max-width: var(--measure); margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.sec-head p { color: var(--ink-2); margin: .85rem 0 0; }

.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }

/* feature cards */
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; position: relative; overflow: hidden;
  box-shadow: var(--lift);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card h3 { font-size: 1.16rem; margin-bottom: .55rem; }
.card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.card .mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-content: center;
  background: color-mix(in srgb, var(--teal) 12%, var(--card)); margin-bottom: 1rem; }
.card .mark svg { width: 19px; height: 19px; stroke: var(--teal); fill: none; stroke-width: 1.9; }

/* the fair-play strip */
.fair {
  display: flex; gap: 1rem; align-items: flex-start;
  border: 1px solid color-mix(in srgb, var(--grass) 32%, var(--line));
  background: color-mix(in srgb, var(--lime) 16%, var(--card));
  border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-top: 1rem;
}
.fair svg { width: 22px; height: 22px; stroke: var(--grass); fill: none; stroke-width: 1.9;
  flex: none; margin-top: .18rem; }
.fair p { margin: 0; color: var(--ink); font-size: .97rem; }
.fair b { color: var(--grass); }

/* shots strip */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 30rem);
  gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.shots figure { margin: 0; scroll-snap-align: center; }
.shots img { border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--lift); }
.shots figcaption { color: var(--ink-3); font-size: .84rem; margin-top: .6rem;
  font-family: "DM Mono", ui-monospace, monospace; }

.pair { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair figure { margin: 0; }
.pair img { border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--lift); }

/* circuits — each card wears its own sky, capped with its own kerb */
.runs { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .runs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .runs { grid-template-columns: repeat(3, 1fr); } }

.run {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 4px solid var(--glow, var(--coping));
  padding: 1.5rem 1.4rem;
  background: linear-gradient(168deg,
    color-mix(in srgb, var(--sky-tint, var(--sky)) 26%, var(--card)) 0%,
    var(--card) 62%);
  box-shadow: var(--lift);
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.run:hover { transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(20,32,44,.05), 0 22px 40px -22px rgba(20, 32, 44, .45); }
.run .n { font-family: "DM Mono", ui-monospace, monospace; font-size: .76rem;
  color: var(--ink-3); letter-spacing: .13em; }
.run h3 { font-size: 1.3rem; margin: .5rem 0 .6rem; }
.run p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.run .stats {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: .76rem; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.run .stats b { color: var(--ink); font-weight: 500; }

/* download band */
.band { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.band-inner {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.4rem);
  background:
    radial-gradient(80% 130% at 6% 0%, color-mix(in srgb, var(--sky) 62%, transparent), transparent 72%),
    var(--card);
  box-shadow: var(--lift);
  display: grid; gap: 1.6rem; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}
@media (max-width: 760px) { .band-inner { grid-template-columns: 1fr; } }
.band-inner > div { position: relative; z-index: 1; }
.band-inner h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.band-inner p { color: var(--ink-2); margin: .7rem 0 0; max-width: 44ch; }

/* ---------------------------------------------------------------- footer */
footer { background: var(--card); border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2.4rem 3.5rem; }
.foot-col h4 { font-family: "DM Mono", ui-monospace, monospace; font-size: .74rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 .8rem; font-weight: 500; }
.foot-col a:not(.brand), .foot-col span { display: block; color: var(--ink-2);
  text-decoration: none; font-size: .93rem; padding: .18rem 0; }
.foot-col a:not(.brand):hover { color: var(--teal); }
.foot-bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; color: var(--ink-3); font-size: .84rem; }

/* ---------------------------------------------------------------- legal */
.legal { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem);
  position: relative; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.legal .narrow > header { margin-bottom: 1rem; }
.legal .date { font-family: "DM Mono", ui-monospace, monospace; color: var(--ink-3);
  font-size: .85rem; margin: 1rem 0 0; }
.legal h2 { font-size: 1.25rem; margin: 2.6rem 0 .7rem; }
.legal p { color: var(--ink-2); margin: 0 0 .9rem; }
.legal p a { word-break: break-word; }
.legal ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--ink-2); }
.legal li { margin-bottom: .4rem; }
.legal .back { display: inline-flex; align-items: center; gap: .45rem; margin-top: 2.6rem;
  color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.legal .back:hover { color: var(--teal); }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.d1.in { transition-delay: .07s; }
.reveal.d2.in { transition-delay: .14s; }
.reveal.d3.in { transition-delay: .21s; }

/* ---------------------------------------------------------------- narrow */
@media (max-width: 640px) {
  .top .wrap { gap: .6rem; }
  .top nav { gap: .7rem; }
  .top nav .btn-primary { display: none; }   /* the hero's own button is right there */
  .brand { min-width: 0; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .lang summary { font-size: .85rem; padding: .28rem .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .hero::before, .phone-frame { transform: none !important; }
  .btn:hover, .card:hover, .run:hover { transform: none; }
  .prop { animation: none; }
  * { animation-duration: .001s !important; }
}
