:root {
  --blue: #1D56C9;
  --blue-deep: #143F9C;
  --green: #2FA84F;
  --green-soft: #BFE8C9;
  --yellow: #E4F23A;
  --yellow-deep: #C9DA1E;
  --ink: #0E1B3D;
  --ink-soft: #3A4870;
  --glass: #EAF1FF;
  --white: #fff;

  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;

  --r-lg: 40px;
  --r-md: 28px;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--glass);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--ink); }
img, svg { display: block; }
a { color: inherit; text-underline-offset: .2em; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 12px; }
.family :focus-visible, .how :focus-visible, .formats :focus-visible { outline-color: var(--blue); }

html { scrollbar-color: var(--blue) var(--glass); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--yellow); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 16px; }

.ic { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--spring), background-color .2s, box-shadow .3s var(--ease);
}
.pill:hover { transform: translateY(-3px) rotate(-1.5deg); }
.pill:active { transform: scale(.94); }
.pill-lg { font-size: 1rem; padding: 1em 1.45em; }
.pill-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(14,27,61,.55); }
.pill-yellow:hover { box-shadow: 0 16px 30px -12px rgba(14,27,61,.6); }
.pill-ghost { color: var(--white); box-shadow: inset 0 0 0 2.5px rgba(255,255,255,.75); }
.pill-ghost:hover { background: rgba(255,255,255,.12); }
.pill-ink { background: var(--ink); color: var(--yellow); }
.pill .ic { transition: transform .35s var(--spring); }
.pill:hover .ic { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 22px var(--gutter);
  color: var(--white);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 900; font-size: 1.35rem; letter-spacing: -.04em;
  text-decoration: none;
}
.logo-mark { width: 56px; height: 46px; flex: none; overflow: visible; }
/* hover: the ball shrinks, drops onto the first point and bounces up the chart */
.logo.is-hopping .logo-hop { animation: logo-hop 1.1s both; }
@keyframes logo-hop {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; animation-timing-function: ease-in; }
  8%   { transform: translate(0, 0) scale(.3); opacity: 0; }
  9%   { transform: translate(-76px, 6px) scale(.45); opacity: 0; animation-timing-function: ease-in; }
  20%  { transform: translate(-76px, 34px) scale(.45); opacity: 1; animation-timing-function: ease-out; }
  34%  { transform: translate(-62px, -4px) scale(.45); animation-timing-function: ease-in; }
  48%  { transform: translate(-49px, 24px) scale(.45); animation-timing-function: ease-out; }
  68%  { transform: translate(-20px, -28px) scale(.8); animation-timing-function: ease-in; }
  83%  { transform: translate(0, 3px) scale(1.1, .88); animation-timing-function: ease-out; }
  91%  { transform: translate(0, -4px) scale(.94, 1.06); }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
.logo-word span { color: var(--yellow); }
.nav nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; }
.nav nav a {
  display: block; padding: .5em .95em; border-radius: 999px;
  font-weight: 500; text-decoration: none; transition: background-color .2s;
}
.nav nav a:hover { background: rgba(255,255,255,.14); }
.nav-cta { font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(760px, 100svh, 980px);
  background: var(--blue);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: 140px var(--gutter) 150px;
  overflow: hidden;
}
.hero-court, .hero-arc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-arc { z-index: 0; pointer-events: none; }
.hero-mini { display: none; }
.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 120px); z-index: 1; }
.hero-ball { filter: drop-shadow(0 18px 14px rgba(14,27,61,.35)); }
.hero-racket {
  position: absolute; z-index: -1; color: var(--yellow);
  width: clamp(140px, 15vw, 230px); height: auto; aspect-ratio: 120 / 220;
  right: -30px; bottom: 40px; transform: rotate(-28deg);
  filter: drop-shadow(0 24px 24px rgba(14,27,61,.3));
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3.4rem, 8.4vw, 6rem); line-height: .92; letter-spacing: -.04em;
}
.hl {
  display: inline-block; color: var(--yellow);
  transform: rotate(-3deg); transform-origin: left bottom;
}
.lede { margin-top: 28px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 34em; color: #E6EDFF; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Demo ---------- */
.demo {
  position: relative; z-index: 2;
  justify-self: center; width: min(100%, 440px);
  background: var(--white); color: var(--ink);
  border-radius: var(--r-lg);
  padding: 30px 30px 24px;
  transform: rotate(2.5deg);
  box-shadow: 0 40px 60px -30px rgba(14,27,61,.65), 0 0 0 10px rgba(255,255,255,.18);
}
.demo-actions { position: relative; }
.demo-sticker { position: absolute; right: 28px; bottom: -18px; transform: rotate(-6deg); pointer-events: none; z-index: 1; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-head h2 { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.03em; }
.chip { background: var(--glass); color: var(--blue); font-weight: 700; font-size: .85rem; padding: .35em .85em; border-radius: 999px; }
.demo-score { display: flex; align-items: flex-end; gap: 16px; margin-top: 18px; }
.flip { display: flex; gap: 6px; }
.flip .d {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 84px; border-radius: 16px;
  background: var(--blue); color: var(--white);
  font-family: var(--display); font-weight: 900; font-size: 3rem;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.flip .d::after { content: ""; position: absolute; inset: 50% 0 auto; height: 3px; background: rgba(14,27,61,.28); }
.flip .d.flipping { animation: flip .45s var(--ease); }
@keyframes flip {
  0% { transform: rotateX(0); }
  45% { transform: rotateX(90deg); filter: brightness(.7); }
  100% { transform: rotateX(0); }
}
.trend {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .4em .8em; border-radius: 999px; margin-bottom: 6px;
  font-weight: 700; font-size: .9rem;
  background: var(--glass); color: var(--ink-soft);
  transition: background-color .3s, color .3s;
}
.trend[data-dir="flat"] .ic { opacity: .35; }
.trend[data-dir="up"] { background: var(--green-soft); color: #145C2A; }
.trend[data-dir="down"] { background: #FFE1D6; color: #9A2E0E; }
.trend[data-dir="down"] .ic { transform: rotate(180deg); }

.ladder { margin-top: 24px; }
.ladder-track { position: relative; height: 18px; border-radius: 999px; background: var(--glass); }
.ladder-fill {
  position: absolute; inset: 0 auto 0 0; width: 50%; border-radius: inherit;
  background: var(--green);
  transition: width .6s var(--spring);
}
.ladder-ball {
  position: absolute; top: 50%; left: 50%; width: 38px; height: 38px;
  transform: translate(-50%, -50%);
  transition: left .6s var(--spring);
  filter: drop-shadow(0 6px 6px rgba(14,27,61,.25));
}
.ladder-labels { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: .78rem; color: var(--ink-soft); }
.ladder-labels .now { color: var(--blue); }
.demo-msg { margin-top: 14px; font-weight: 700; min-height: 1.55em; }
.demo-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: .85em 1.3em; font: 700 1rem var(--display); letter-spacing: -.01em;
  transition: transform .3s var(--spring), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.9, .86); }
.btn-win { flex: 1; background: var(--green); color: var(--ink); }
.btn-loss { flex: 1; background: var(--ink); color: var(--white); }
.btn-reset { background: var(--glass); color: var(--ink); padding-inline: 1em; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.demo-note { margin-top: 14px; font-size: .82rem; color: var(--ink-soft); }

/* ---------- Stickers & stamps ---------- */
.sticker {
  display: inline-block; padding: .45em 1em; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  box-shadow: 0 8px 16px -8px rgba(14,27,61,.45);
}
.sticker-white { background: var(--yellow); color: var(--ink); }
.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .35em .9em; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
}
.stamp-live { background: var(--green); color: var(--ink); }
.stamp-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.5); opacity: .5; } }
.stamp-plain { box-shadow: inset 0 0 0 2px currentColor; color: var(--ink); }
.stamp-soon { background: var(--ink); color: var(--yellow); transform: rotate(-4deg); }
.stamp-beta { background: var(--yellow); color: var(--ink); transform: rotate(-4deg); box-shadow: 0 8px 16px -8px rgba(14,27,61,.45); }

/* ---------- Sections ---------- */
section:not(.hero) { padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(40px, 6vw, 80px); }
.section-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.04em;
  max-width: 16ch; text-wrap: balance;
}
.section-lede { margin-top: 18px; font-size: 1.15rem; max-width: 36em; color: var(--ink-soft); }
.hl-blue { color: var(--blue); }
.hl-green { color: #1B7F38; }

/* family */
.family { position: relative; margin-top: -60px; z-index: 3; }
.rally {
  display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: start; gap: clamp(12px, 2vw, 28px);
  margin-top: clamp(40px, 6vw, 72px);
}
.tool {
  position: relative; border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
}
.tool-klassement { background: var(--yellow); border-radius: 48px 48px 48px 120px; transform: rotate(-1.2deg); }
.tool-toernooi { background: var(--green); border-radius: 48px 120px 48px 48px; transform: rotate(1.2deg); margin-top: 70px; }
.tool-art { position: relative; margin: -8px -8px 18px; }
.art-stamp { position: absolute; top: 4px; left: 4px; transform: rotate(-8deg); box-shadow: 0 8px 16px -8px rgba(14,27,61,.45); }
.art-stamp-2 { top: 44px; left: 18px; transform: rotate(5deg); background: var(--white); box-shadow: inset 0 0 0 2px var(--ink), 0 8px 16px -8px rgba(14,27,61,.35); }
.tool-art svg { width: 100%; height: auto; }
.tool h3 {
  font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -.04em; line-height: 1.05; margin: 16px 0 12px; hyphens: manual;
}
.tool p { max-width: 34em; }
.ticks { margin: 18px 0 26px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.ticks li::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.75) 0 1.5px, transparent 2.5px), var(--ink); transform: translateY(1px);
}
.fine { margin-top: 18px; font-size: .85rem; color: #3D4520; }

.net { align-self: stretch; display: flex; justify-content: center; padding-block: 40px; }
.net span {
  width: 100%; border-radius: 999px;
  background:
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(29,86,201,.35) 10px 12px),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(29,86,201,.35) 10px 12px);
  box-shadow: inset 0 0 0 4px var(--blue);
  position: relative;
}
.net span::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 6px; transform: translateX(-50%); background: var(--white); border-radius: 3px; opacity: .9; }

/* how */
.how { position: relative; }
.how-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(48px, 6vw, 80px); }
.how-rally { position: absolute; inset: -40px 0 auto; height: 320px; pointer-events: none; z-index: 0; }
.how-rally > svg:first-child { width: 100%; height: 100%; }
.how-rally-ball { position: absolute; width: 44px; height: 44px; left: 27%; top: 0; filter: drop-shadow(0 10px 8px rgba(14,27,61,.25)); }
.how-step { z-index: 1; }
.how-step { position: relative; z-index: 1; }
.how-step:nth-child(2) { transform: translateY(48px); }
.how-art {
  width: min(100%, 300px); aspect-ratio: 5 / 4;
  background: var(--white); border-radius: 50% 46% 48% 52% / 54% 50% 52% 46%;
  display: grid; place-items: center; padding: 14%;
  box-shadow: 0 30px 40px -32px rgba(14,27,61,.5);
  transition: transform .5s var(--spring), border-radius .8s var(--ease);
}
.how-step:hover .how-art { transform: rotate(-3deg) scale(1.03); border-radius: 46% 54% 52% 48% / 48% 54% 46% 52%; }
.how-art svg { width: 100%; height: auto; }
.how-step h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; margin: 24px 0 8px; }
.how-step p { color: var(--ink-soft); max-width: 26em; }

/* formats */
.formats { padding-top: clamp(120px, 12vw, 180px); }
.bubbles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 48px; }
.bubble {
  position: relative; padding: clamp(28px, 3.5vw, 48px);
  border-radius: 56px;
}
.bubble::after {
  content: ""; position: absolute; bottom: -22px; width: 54px; height: 54px; border-radius: 0 0 0 40px;
  background: inherit;
}
.bubble-yellow { background: var(--yellow); transform: rotate(-1.5deg); }
.bubble-yellow::after { left: 70px; transform: skewX(20deg); }
.bubble-green { background: var(--green); transform: rotate(1.5deg) translateY(30px); }
.bubble-green::after { right: 70px; transform: scaleX(-1) skewX(20deg); }
.bubble h3 { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.bubble p { margin-top: 12px; font-size: 1.1rem; max-width: 30em; }
.bubble-tag { display: inline-block; margin-top: 20px; padding: .4em 1em; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; font-size: .85rem; }

/* more */
.more {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 56px);
  margin: clamp(60px, 8vw, 100px) var(--gutter) 0;
  padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 64px) !important;
  background:
    radial-gradient(circle, rgba(29, 86, 201, .16) 1.5px, transparent 2px) 0 0 / 22px 22px,
    var(--white);
  border: 6px solid var(--blue);
  border-radius: 120px 48px 160px 48px;
  transform: rotate(-.8deg);
}
.more-art { width: 100%; height: auto; }
.more-copy h2 { text-wrap: balance; font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -.04em; line-height: 1.05; }
.more-copy p { margin-top: 12px; max-width: 32em; }

/* footer */
.footer { margin-top: clamp(80px, 10vw, 140px); color: var(--white); }
.footer-wave { width: 100%; height: 80px; margin-bottom: -1px; }
.footer-inner {
  background: var(--blue);
  padding: 32px var(--gutter) 48px;
  display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; font-weight: 500; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-fine { grid-column: 1 / -1; font-size: .88rem; color: #D3DEFA; max-width: 60em; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 170px; min-height: auto; }
  .demo { transform: rotate(1.5deg); margin-top: 16px; }
  .hero-net, .hero-arc #rally, .hero-arc .hero-ball { display: none; }
  .hero-mini { display: block; position: absolute; right: calc(-1 * var(--gutter) + 4px); top: -36px; width: clamp(150px, 44vw, 240px); height: auto; z-index: -1; }
  .lede { padding-right: 18px; }
  .hero h1 { max-width: 7.5em; }
  .hero-court { top: auto; bottom: 0; height: 55%; }
  .hero-racket { bottom: 10px; right: -40px; width: 130px; }
  .rally { grid-template-columns: 1fr; }
  .net { padding: 0 20px; height: 40px; }
  .net span { height: 100%; }
  .net span::before { inset: 50% 0 auto; width: auto; height: 6px; transform: translateY(-50%); }
  .tool-toernooi { margin-top: 0; }
  .how-steps { padding-left: 44px; }
  .how-rally { inset: 0 auto 0 0; width: 24px; height: auto; }
  .how-rally > svg:first-child { display: none; }
  .how-rally::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 20px; width: 4px; background: repeating-linear-gradient(180deg, var(--blue) 0 3px, transparent 3px 18px); border-radius: 2px; }
  .how-rally-ball { left: -10px; top: 46%; width: 44px; height: 44px; }
  .more { grid-template-columns: 1fr; border-radius: 80px 40px 100px 40px; }
  .how-steps { grid-template-columns: 1fr; gap: 48px; }
  .how-step:nth-child(2) { transform: none; }
  .how-art { width: min(100%, 280px); }
  .bubbles { grid-template-columns: 1fr; gap: 56px; }
  .bubble-green { transform: rotate(1.5deg); }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.2rem); }
  .actions .pill { width: 100%; justify-content: center; }
  .demo { padding: 26px 20px 20px; border-radius: 32px; }
  .flip .d { width: 54px; height: 72px; font-size: 2.5rem; }
  .tool-klassement { border-radius: 36px 36px 36px 80px; }
  .tool-toernooi { border-radius: 36px 80px 36px 36px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

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