/* Asion — coming-soon page. Palette A1 "Okyanus". No external resources. */

:root {
  --tile: #D6F1EE;
  --head: #14A090;
  --pupil: #0D3B36;
  --beak: #FFC247;

  --bg: #F5FBFA;
  --bg-soft-1: rgba(20, 160, 144, 0.16);
  --bg-soft-2: rgba(255, 194, 71, 0.16);
  --bg-soft-3: rgba(214, 241, 238, 0.9);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-border: rgba(13, 59, 54, 0.09);
  --text: #0D3B36;
  --muted: #4B6965;
  --accent: #0E7C70;      /* darker head tone, AA on light bg */
  --accent-soft: #D6F1EE;
  --neutral-soft: rgba(13, 59, 54, 0.07);
  --badge-bg: #FFE3A6;
  --badge-text: #4A3300;
  --shadow: 0 1px 2px rgba(13, 59, 54, 0.04), 0 8px 24px -12px rgba(13, 59, 54, 0.18);
  --focus: #0E7C70;

  --radius: 20px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1F1C;
    --bg-soft-1: rgba(20, 160, 144, 0.22);
    --bg-soft-2: rgba(255, 194, 71, 0.08);
    --bg-soft-3: rgba(13, 59, 54, 0.85);
    --surface: rgba(18, 46, 42, 0.66);
    --surface-border: rgba(214, 241, 238, 0.08);
    --text: #E4F4F1;
    --muted: #9DBDB8;
    --accent: #4FD1BF;
    --accent-soft: rgba(20, 160, 144, 0.18);
    --neutral-soft: rgba(214, 241, 238, 0.08);
    --badge-bg: rgba(255, 194, 71, 0.16);
    --badge-text: #FFD27A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    --focus: #4FD1BF;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

/* Soft palette shapes. Fixed and inset:0, so they never create overflow. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48rem 32rem at 12% -6%, var(--bg-soft-1), transparent 62%),
    radial-gradient(40rem 28rem at 100% 8%, var(--bg-soft-2), transparent 60%),
    radial-gradient(56rem 36rem at 50% 110%, var(--bg-soft-3), transparent 65%);
}

/* While the stored/detected language differs from the HTML default,
   hide the page for the few ms until script.js swaps the strings. */
html.i18n-pending body { visibility: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand img { width: 32px; height: 32px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lang button {
  appearance: none;
  border: 0;
  margin: 0;
  min-width: 44px;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] {
  background: var(--head);
  color: #FFFFFF;
}

/* ---------- Hero ---------- */
main { flex: 1 0 auto; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(32px, 8vw, 88px);
  padding-bottom: clamp(48px, 9vw, 104px);
}

.hero-logo {
  width: clamp(112px, 26vw, 148px);
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 18px 30px rgba(20, 160, 144, 0.28));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--beak);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 11vw, 5.5rem);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text) 30%, var(--head) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em; /* keep descenders/gradient from clipping */
}

.lead {
  margin: 22px 0 0;
  max-width: 40ch;
  font-size: clamp(1.25rem, 3.6vw, 1.625rem);
  line-height: 1.35;
  font-weight: 550;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.sub {
  margin: 14px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  text-wrap: pretty;
}

/* ---------- Sections ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}
h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Numbers strip ---------- */
.stats { padding-bottom: clamp(56px, 9vw, 96px); }
.stat-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.stat-row li {
  padding: 24px 20px 22px;
  text-align: center;
  border-left: 1px solid var(--surface-border);
}
.stat-row li:first-child { border-left: 0; }
.stat-row p { margin: 0; }
.num {
  font-size: clamp(1.75rem, 4.6vw, 2.5rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lbl {
  margin-top: 6px !important;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.note {
  margin-top: 4px !important;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.fineprint {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}
@media (max-width: 600px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-row li { border-left: 0; padding: 18px 16px; }
  .stat-row li + li { border-top: 1px solid var(--surface-border); }
}

/* ---------- Platforms ---------- */
.platforms { padding-bottom: clamp(56px, 9vw, 96px); }
.plat-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.plat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  text-align: center;
}
.plat-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}
.plat-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plat-name {
  font-weight: 650;
  line-height: 1.3;
}
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.status.soon { background: var(--accent-soft); color: var(--accent); }
.status.dev  { background: var(--neutral-soft); color: var(--muted); }
.plat:has(.status.dev) .plat-icon { background: var(--neutral-soft); color: var(--muted); }
@media (max-width: 760px) {
  .plat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.features { padding-bottom: clamp(56px, 9vw, 96px); }

.grid, .aud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); }
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h3 {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.card p, .aud p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Audience ---------- */
.audience { padding-bottom: clamp(56px, 9vw, 96px); }
.aud { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.aud li {
  position: relative;
  padding: 20px 22px 20px 26px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
}
.aud li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--head);
}
.aud li:nth-child(2)::before { background: var(--beak); }
.aud li:nth-child(3)::before { background: var(--pupil); }
@media (prefers-color-scheme: dark) {
  .aud li:nth-child(3)::before { background: var(--tile); }
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px 36px;
  border-top: 1px solid var(--surface-border);
  color: var(--muted);
  font-size: 0.875rem;
}
.footer p { margin: 0; }
.footer .sep { margin-inline: 8px; }
.footer a { color: inherit; }

/* ---------- 404 ---------- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(40px, 10vw, 120px);
}
.notfound .code {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.notfound h1 { font-size: clamp(2rem, 7vw, 3rem); }
.notfound p { color: var(--muted); max-width: 44ch; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--head);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #0E7C70; }

/* ---------- Motion ----------
   Everything is visible from first paint: no scroll reveals, no entrance fades.
   Only the hero owl floats and blinks, and only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: float 7s ease-in-out infinite; }
  .hero-logo .eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: blink 6.5s ease-in-out 2s infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card, .lang button { transition: none; }
  .card:hover { transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96.5%         { transform: scaleY(.08); }
}
