:root {
  --deep: #062b2c;
  --reef: #0d4443;
  --reef-2: #135553;
  --aqua: #46e0d2;
  --flame: #f2863a;
  --signal: #e5483a;
  --foam: #e3f7f4;
  --foam-dim: #a9cfca;
  --ink: #08302f;
  --font-display: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--aqua); color: var(--deep); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--foam); max-width: 58ch; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--aqua);
  color: var(--deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  padding: 15px 28px;
  border: 2px solid var(--aqua);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--foam); border-color: var(--foam); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--foam); border-color: var(--foam-dim); }
.btn--ghost:hover { background: var(--foam); color: var(--deep); }
.btn--sm { padding: 10px 20px; font-size: 1rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(6, 43, 44, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(70, 224, 210, .14); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav__logo img { width: 140px; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: .98rem; }
.nav__links a { text-decoration: none; color: var(--foam-dim); }
.nav__links a:hover { color: var(--aqua); }

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 64px); background:
  radial-gradient(60% 70% at 78% 30%, rgba(70, 224, 210, .16), transparent 70%); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(16px, 4vw, 56px); }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; text-wrap: balance; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__art img { width: 100%; max-width: 560px; margin-inline: auto; animation: drift 7s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-14px); } }

.partners__label { margin-top: clamp(32px, 5vw, 56px); color: var(--foam-dim); font-size: .9rem; }
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px clamp(20px, 3vw, 44px); margin-top: 14px; padding-top: 22px; border-top: 1px solid rgba(70, 224, 210, .2); }
.partners img { display: block; height: auto; object-fit: contain; opacity: .7; transition: opacity .15s; }
.partners li:hover img { opacity: 1; }
.partners li:nth-child(-n+3) img { height: 54px; width: auto; }
.partners li:nth-child(4) img { height: 38px; width: auto; }
.partners li:nth-child(5) img { height: 17px; width: auto; }
.partners li:nth-child(6) img { height: 30px; width: auto; }

/* Bands */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--reef { background: var(--reef); }
.band--deep { background: #041f20; }

/* Proof */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(28px, 5vw, 64px); align-items: center; }
.proof__shot img { border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.proof__copy h2 { margin-bottom: 18px; }
.ticks li { position: relative; padding-left: 28px; margin-top: 12px; max-width: 48ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 12px; border-radius: 50%; background: var(--flame); }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; border-top: 1px solid rgba(70, 224, 210, .25); padding-top: 28px; }
.stat { display: flex; flex-direction: column-reverse; position: relative; }
.stat dd { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1; color: var(--aqua); }
.stat dt { color: var(--foam-dim); max-width: 24ch; margin-top: 6px; }
.stat--crown img { position: absolute; left: -2px; top: -26px; width: 52px; height: auto; transform: rotate(-12deg); }
.stat--crown dd { padding-left: 4px; padding-top: 14px; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section__title { max-width: 20ch; text-wrap: balance; }
.section__sub { margin-top: 14px; color: var(--foam-dim); max-width: 56ch; }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 88px); margin-top: 48px; }
.services li { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center; padding-block: 32px; border-top: 1px solid rgba(70, 224, 210, .25); }
.services img { width: 112px; height: auto; }
.services h3 { margin-bottom: 8px; }
.services p { color: var(--foam-dim); }

/* About */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.about h2 { margin-bottom: 18px; max-width: 18ch; text-wrap: balance; }
.values { margin-top: 28px; display: grid; gap: 18px; }
.values dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--aqua); }
.values dd { color: var(--foam); }
.comp { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(70, 224, 210, .25); }
.comp > h3 { font-size: 1.1rem; color: var(--foam-dim); font-weight: 600; margin-bottom: 16px; }
.comp__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.comp h4 { font-size: 1.2rem; margin-bottom: 8px; }
.comp li { color: var(--foam-dim); }
.about__art img { width: 100%; max-width: 440px; margin-inline: auto; }

/* Process track */
.track { display: grid; grid-template-columns: repeat(4, 1fr) 96px; margin-top: 56px; position: relative; }
.stage { position: relative; padding: 36px 24px 0 0; border-top: 3px solid var(--aqua); }
.stage::before { content: ""; position: absolute; top: -10px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--deep); border: 4px solid var(--flame); }
.stage__time { font-family: var(--font-display); font-weight: 700; color: var(--flame); font-size: 1.1rem; margin-bottom: 6px; }
.stage h3 { margin-bottom: 18px; }
.stage__row { margin-top: 14px; color: var(--foam); }
.stage__row span { display: block; font-size: .85rem; color: var(--foam-dim); font-weight: 500; }
.track__end { border-top: 3px solid var(--aqua); position: relative; }
.track__end img { position: absolute; top: -78px; right: 0; width: 96px; }

/* Demo */
.demo { display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: clamp(28px, 6vw, 88px); align-items: center; }
.demo h2 { margin-bottom: 18px; }
.demo__keys { margin-top: 16px; color: var(--foam-dim); }
kbd { font-family: var(--font-display); font-weight: 700; background: var(--reef-2); border: 1px solid var(--aqua); color: var(--aqua); border-radius: 8px; padding: 1px 9px; margin-inline: 2px; }
.demo__score { display: flex; gap: 32px; margin-block: 24px 28px; color: var(--foam-dim); }
.demo__score strong { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--foam); }
.demo__score p { display: grid; }

.field { position: relative; height: min(70vh, 480px); border-radius: 26px; overflow: hidden; background: linear-gradient(#cdf4ef, #e6faf7); display: grid; grid-template-columns: repeat(4, 1fr); border: 3px solid var(--aqua); box-shadow: 0 0 60px rgba(70, 224, 210, .2); touch-action: manipulation; }
.lane { appearance: none; border: 0; border-left: 1px solid rgba(8, 48, 47, .15); background: transparent; cursor: pointer; padding: 0; position: relative; z-index: 2; }
.lane:first-of-type { border-left: 0; }
.lane:active, .lane.is-down { background: rgba(70, 224, 210, .28); }
.lane:focus-visible { outline-offset: -4px; }
.field__zone { position: absolute; inset: auto 0 12% 0; height: 20%; background: linear-gradient(transparent, rgba(70, 224, 210, .55)); border-bottom: 3px solid var(--flame); z-index: 1; pointer-events: none; }
.tile { position: absolute; z-index: 3; top: 0; height: 22%; width: calc(25% - 8px); margin-left: 4px; background: var(--deep); border-radius: 10px; pointer-events: none; will-change: transform; }
.tile.is-hit { background: var(--aqua); transition: opacity .25s, transform .25s; opacity: 0; }
.tile.is-miss { background: var(--signal); opacity: 0; transition: opacity .3s; }
.field__idle { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); background: rgba(227, 247, 244, .8); pointer-events: none; transition: opacity .25s; }
.field.is-running .field__idle { opacity: 0; }

/* Work */
.section--light { background: var(--foam); color: var(--ink); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 40px 24px; margin-top: 48px; }
.games li { text-align: center; }
.games img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 14px; box-shadow: 0 8px 22px rgba(8, 48, 47, .22); object-fit: cover; }
.games h3 { font-size: 1.15rem; }
.games p { font-size: .92rem; color: #3d6664; line-height: 1.4; margin-top: 2px; }

/* Contact */
.contact { padding-block: clamp(64px, 9vw, 120px); background: radial-gradient(70% 90% at 100% 100%, rgba(70, 224, 210, .18), transparent 70%), var(--deep); }
.contact__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.contact h2 { margin-bottom: 18px; text-wrap: balance; }
.card { background: var(--reef); border: 2px solid rgba(70, 224, 210, .35); border-radius: 24px; padding: 32px; display: grid; gap: 6px; }
.card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; }
.card__role { color: var(--foam-dim); margin-bottom: 14px; }
.card__link { text-decoration: none; font-weight: 500; font-size: 1.1rem; padding-block: 4px; width: fit-content; border-bottom: 1px solid transparent; }
.card__link:hover { color: var(--aqua); border-bottom-color: var(--aqua); }
.card .btn { margin-top: 20px; width: fit-content; }

/* Footer */
.foot { background: #041f20; padding-block: 36px; color: var(--foam-dim); font-size: .92rem; }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot img { width: 160px; height: auto; }

/* Responsive */
@media (max-width: 900px) {
  .hero__in, .proof, .about, .demo, .contact__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { max-width: 380px; }
  .about__art { display: none; }
  .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat--crown dd { padding-left: 52px; padding-top: 0; }
  .stat--crown img { top: 0; left: 0; width: 44px; transform: rotate(-12deg); }
  .track { grid-template-columns: 1fr; margin-top: 40px; padding-left: 28px; border-left: 3px solid var(--aqua); }
  .stage { border-top: 0; padding: 0 0 36px 0; }
  .stage::before { top: 4px; left: -39px; }
  .track__end { display: none; }
  .partners { justify-content: flex-start; gap: 20px 32px; }
  .nav__links { display: none; }
  .nav__in { justify-content: space-between; }
}
@media (max-width: 520px) {
  .comp__cols { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 84px 1fr; gap: 16px; }
  .services img { width: 84px; }
  .field { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__art img { animation: none; }
}
