/* Aquitect landing page.
   Layout: a sky-and-sea page; sticker-style controls (thick ink outline + darker "shelf" bottom edge) from the
   game's UI and logo; content in one centred column, features alternate text and clip. */
@import url("/assets/fonts/fonts.css?v=2");

:root {
  --ink: #1a1e26;
  --ink-2: #4a5568;
  --sky: #e9f6fc;
  --sky-2: #cfeaf7;
  --water: #57b8e6;
  --water-deep: #1f7fb8;
  --sea-night: #0f3b55;
  --sand: #f6dc8a;
  --cream: #fdf4de;
  --action: #f0703a;
  --action-deep: #c9552a;
  --leaf: #58b368;
  --white: #ffffff;
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--water-deep); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---- Sticker buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 1.05rem/1 var(--display); letter-spacing: .01em; text-decoration: none;
  color: var(--ink); background: var(--cream);
  border: 3px solid var(--ink); border-bottom-width: 7px; border-radius: 14px;
  padding: 14px 22px 11px;
  transition: transform .08s ease, border-bottom-width .08s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(1px); }
.btn:active { transform: translateY(4px); border-bottom-width: 3px; }
.btn--action { background: var(--action); color: var(--white); text-shadow: 0 1px 0 rgba(0,0,0,.18); }
.btn--small { font-size: .95rem; padding: 10px 16px 8px; border-width: 3px; border-bottom-width: 5px; border-radius: 12px; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(233, 246, 252, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 3px solid var(--ink);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.site-header .brand img { height: 46px; width: auto; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  font: 700 .98rem var(--body); color: var(--ink); text-decoration: none;
  padding: 8px 12px; border-radius: 10px;
}
.site-nav a:hover { background: var(--sky-2); }
.lang {
  font: 800 .9rem var(--body); color: var(--ink); text-decoration: none; white-space: nowrap;
  border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px;
}
.lang:hover { background: var(--sky-2); }
@media (max-width: 760px) { .site-nav { display: none; } .lang { margin-left: auto; } }
.site-header .btn { white-space: nowrap; }
@media (max-width: 440px) {
  .site-header .wrap { gap: 10px; }
  .site-header .brand img { height: 40px; }
  .site-header .btn--small { font-size: .82rem; padding: 9px 11px 7px; }
  .lang { font-size: .82rem; padding: 5px 8px; }
}

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; color: var(--white); overflow: hidden; background: var(--water-deep); }
.hero video, .hero .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,59,85,.10) 0%, rgba(15,59,85,.25) 45%, rgba(15,59,85,.78) 100%);
}
.hero .wrap {
  min-height: min(88vh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  padding-block: 120px 56px;
}
.hero-logo { width: min(440px, 72vw); height: auto; filter: drop-shadow(0 6px 0 rgba(26,30,38,.35)); }
.hero-tag {
  font: 800 clamp(1.35rem, 3.2vw, 2.1rem)/1.2 var(--display); margin: 18px 0 6px;
  text-wrap: balance; text-shadow: 0 2px 0 rgba(26,30,38,.45);
}
.hero-sub { margin: 0 0 26px; font-weight: 700; opacity: .95; text-shadow: 0 1px 0 rgba(26,30,38,.5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-meta {
  margin-top: 22px; font: 800 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; opacity: .95;
}

/* ---- Sections ---- */
section { padding-block: 84px; scroll-margin-top: 64px; }
.eyebrow { font: 800 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--water-deep); margin: 0 0 8px; }
h2 { font: 800 clamp(1.9rem, 4vw, 2.75rem)/1.08 var(--display); margin: 0 0 16px; text-wrap: balance; }
h3 { font: 800 clamp(1.45rem, 2.6vw, 1.85rem)/1.12 var(--display); margin: 0 0 10px; text-wrap: balance; }
.lead { font-size: 1.2rem; max-width: 62ch; color: var(--ink-2); margin: 0; }

.pitch { background: var(--cream); border-block: 3px solid var(--ink); }
.pitch .wrap { display: grid; gap: 34px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.pitch p.big { font: 800 clamp(1.5rem, 2.8vw, 2rem)/1.25 var(--display); margin: 0; text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.facts div {
  background: var(--white); border: 3px solid var(--ink); border-bottom-width: 6px; border-radius: 14px; padding: 12px 14px;
}
.facts dt { font: 800 .74rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font: 800 1.15rem/1.2 var(--display); }
@media (max-width: 820px) { .pitch .wrap { grid-template-columns: 1fr; } }

.trailer .frame {
  margin-top: 28px; border: 4px solid var(--ink); border-bottom-width: 10px; border-radius: 20px; overflow: hidden;
  background: var(--sea-night); aspect-ratio: 16 / 9;
}
.trailer video { width: 100%; height: 100%; object-fit: cover; }

.features .intro { margin-bottom: 44px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: center;
  padding-block: 34px;
}
.feature + .feature { border-top: 2px dashed var(--sky-2); }
.feature:nth-child(even) .feature-media { order: -1; }
.feature p { margin: 0; color: var(--ink-2); max-width: 54ch; }
.feature-media {
  border: 3px solid var(--ink); border-bottom-width: 8px; border-radius: var(--radius); overflow: hidden;
  background: var(--sea-night); aspect-ratio: 1170 / 658;
}
.feature-media video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

.glance { background: var(--water-deep); color: var(--white); border-block: 3px solid var(--ink); position: relative; overflow: hidden; isolation: isolate; }
.glance .wrap { position: relative; z-index: 1; }

/* Bubbles rising through "What's in the box", like the ones in the logo's TECT. site.js adds them and sets
   --rise to the section's height; each bubble rises (outer) and sways (::before). */
.bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bubble {
  position: absolute; bottom: -48px; left: var(--x); width: var(--s); height: var(--s); opacity: 0;
  animation: bubble-rise var(--d) linear var(--delay) infinite;
}
.bubble::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .7);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .75) 0 16%, rgba(255, 255, 255, .14) 18% 100%);
  animation: bubble-sway var(--sw) ease-in-out infinite alternate;
}
.bubbles.is-paused .bubble, .bubbles.is-paused .bubble::before { animation-play-state: paused; }
@keyframes bubble-rise {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: .9; }
  85% { opacity: .9; }
  100% { transform: translateY(calc(-1 * var(--rise, 900px))); opacity: 0; }
}
@keyframes bubble-sway { from { transform: translateX(-9px); } to { transform: translateX(9px); } }
@media (prefers-reduced-motion: reduce) { .bubbles { display: none; } }
.glance .eyebrow { color: var(--sand); }
.glance ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.glance li {
  background: #2f8fc4; border: 2px solid rgba(255,255,255,.35); border-radius: 14px;
  padding: 14px 16px 14px 46px; position: relative; font-weight: 700;
}
.glance li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sand); border: 2px solid var(--ink);
}

.shots .grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.shots button {
  padding: 0; border: 3px solid var(--ink); border-bottom-width: 7px; border-radius: 14px; overflow: hidden;
  background: var(--sea-night); cursor: zoom-in; aspect-ratio: 16 / 9;
}
.shots button img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.shots button:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .shots button img { transition: none; } }

dialog.lightbox {
  padding: 0; border: 4px solid var(--ink); border-radius: 18px; background: var(--sea-night);
  width: min(1400px, 94vw); max-height: 92vh;
}
dialog.lightbox::backdrop { background: rgba(15,59,85,.86); }
dialog.lightbox img { width: 100%; height: auto; max-height: calc(92vh - 8px); object-fit: contain; }
dialog.lightbox .close {
  position: absolute; top: 10px; right: 10px;
}

.faq .list { margin-top: 26px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--white); border: 3px solid var(--ink); border-bottom-width: 6px; border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font: 800 1.12rem/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 800 1.5rem/1 var(--display); color: var(--water-deep);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); }

.cta-band { background: var(--sand); border-top: 3px solid var(--ink); text-align: center; }
.cta-band img { width: min(300px, 64vw); height: auto; margin: 0 auto 18px; }
.cta-band p { margin: 0 auto 24px; max-width: 52ch; font-weight: 700; }

.site-footer { background: var(--ink); color: #c9d4dc; padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--white); }
.site-footer .contact { user-select: all; }
