/* Genilio coming-soon page. Colours: night gallery palette (docs/website/brand-for-web.md). */

/* Fonts are self-hosted (no request to Google). Headings use Nunito ExtraBold, not Fredoka: Fredoka lacks
   the Czech letters č ď ě ň ř ť ů. Files from Fontsource (@fontsource/inter 5.2.8,
   @fontsource/nunito 5.3.0), SIL Open Font License: assets/fonts/OFL-*.txt.
   Browsers fetch the latin-ext files only when the page uses those characters. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/nunito-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/nunito-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  color-scheme: dark;
  --night-950: #070B14;
  --night-900: #0B1220;
  --night-800: #121B2E;
  --night-700: #1B263D;
  --night-600: #2A3754;
  --night-350: #7C88A6;
  --night-300: #8F9AB5;
  --night-200: #C3CADB;
  --night-50: #F3F5F9;
  --emerald-200: #A4F4D2;
  --emerald-300: #44E9AB;
  --emerald-400: #2ED38B;
  --gold-300: #F5C451;

  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Nunito', 'Inter', system-ui, sans-serif;
  --gutter: 40px;
}

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

html { background: var(--night-900); }

/* The hidden SVG that holds the spirit's shapes (a class, not an inline style, so a strict CSP allows it). */
.defs { position: absolute; }

body {
  margin: 0;
  background: var(--night-900);
  color: var(--night-50);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--emerald-300); }
a:hover { color: var(--emerald-200); }
a:focus-visible {
  outline: 3px solid var(--emerald-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}

.site-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.logo { display: block; height: 48px; width: auto; }

/* Hero */

.hero {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap-reverse; /* the spirit goes above the text once they wrap */
  align-items: center;
  gap: 32px 56px;
  padding-block: 8px 32px;
}

.hero-text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--night-800);
  border: 1px solid var(--night-600);
  color: var(--night-200);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 10px rgba(245, 196, 81, 0.6);
}

h1 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.75rem + 1.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--night-50);
}

.lede {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--night-200);
}

.body {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1rem, 0.95rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  color: var(--night-300);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--emerald-300);
  color: var(--night-900);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(68, 233, 171, 0.25);
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  background: var(--emerald-200);
  color: var(--night-900);
  box-shadow: 0 0 32px rgba(68, 233, 171, 0.4);
}

.cta-note {
  flex: 1 1 18em;
  max-width: 28em;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--night-300);
}

/* The spirit's stage: everything inside is placed in percentages so it scales as one. */

.stage {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.stage-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 440 / 540;
}

.stage-box::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 233, 171, 0.13) 0%, rgba(68, 233, 171, 0.04) 40%, rgba(68, 233, 171, 0) 68%);
  pointer-events: none;
}

.bubble {
  position: absolute;
  left: 0;
  top: 8%;
  z-index: 1;
  max-width: 56%;
  margin: 0;
  padding: 16px 20px;
  /* The sharp corner sits next to the spirit's head, so the words come from the spirit. */
  border-radius: 22px 22px 6px 22px;
  background: var(--night-700);
  border: 1px solid var(--night-600);
  box-shadow: 0 12px 32px rgba(7, 11, 20, 0.5);
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.125rem);
  line-height: 1.45;
  color: var(--night-50);
}

.spirit {
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: 64%;
  height: auto;
}

.pool {
  position: absolute;
  right: 6%;
  bottom: 2%;
  width: 60%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(68, 233, 171, 0.42), rgba(68, 233, 171, 0) 70%);
}

.sparkle {
  position: absolute;
  fill: var(--gold-300);
}

.sparkle-a { right: 6%; top: 18%; width: 11%; }
.sparkle-b { left: 18%; top: 46%; width: 6%; }

/* Footer */

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--night-700);
  font-size: 0.9375rem;
  color: var(--night-300);
}

.site-footer-inner a { font-weight: 500; }

.muted { color: var(--night-350); }

/* Lower laptop screens: tighten further so the page still fits without scrolling. */

@media (min-width: 641px) and (max-height: 820px) {
  .site-header { padding-block: 12px; }
  .logo { height: 40px; }
  .hero { padding-block: 0 24px; }
  .hero-text { gap: 14px; }
  h1 { font-size: clamp(2.25rem, 1.5rem + 1.4vw, 2.875rem); }
  .lede { font-size: 1.125rem; }
  .body { font-size: 1rem; line-height: 1.55; }
  .stage-box { max-width: 340px; }
  .site-footer-inner { padding-block: 16px 20px; }
}

/* Phones */

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header { padding-block: 16px; }
  .logo { height: 38px; }
  .hero { padding-block: 8px 48px; gap: 32px; }
  .hero-text { gap: 20px; }
  .stage-box { max-width: 358px; aspect-ratio: 358 / 380; }
  .bubble { padding: 12px 16px; max-width: 54%; }
  .spirit { width: 54%; right: 10%; }
  .pool { width: 52%; right: 11%; }
  .cta { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
  .cta-note { max-width: none; text-align: center; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* The spirit's motion, from assets/brand/motion/spirit-motion.css, plus a wave for the greeting. */

.sp { display: block; overflow: visible; filter: drop-shadow(0 0 16px rgba(68, 233, 171, 0.45)); }
.sp g, .sp circle, .sp ellipse, .sp path { transform-box: view-box; }
.sp .eye { transform-box: fill-box; transform-origin: 50% 50%; animation: g-blink 4.8s infinite; }
.sp .mouth { opacity: 0; }
.sp .sh { fill: var(--emerald-400); }
.sp .fl { transform-origin: 220px 790px; animation: g-float 3s ease-in-out infinite; }
.sp .curl { transform-origin: 225px 120px; animation: g-curl 2.6s ease-in-out infinite; }
.sp .larm { transform-origin: 114px 560px; }
.sp .rarm { transform-origin: 322px 560px; }
.hello .rarm { transform: rotate(-80deg); animation: g-wave 4s ease-in-out infinite; }
.pool { animation: g-pool 3s ease-in-out infinite; }
.sparkle { transform-origin: 50% 50%; animation: g-twinkle 3.6s ease-in-out infinite; }
.sparkle-b { animation-delay: -1.8s; }

@keyframes g-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
@keyframes g-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes g-curl { 0%, 100% { transform: skewX(-8deg); } 50% { transform: skewX(8deg); } }
@keyframes g-wave {
  0%, 50%, 100% { transform: rotate(-80deg); }
  60% { transform: rotate(-105deg); }
  70% { transform: rotate(-78deg); }
  80% { transform: rotate(-105deg); }
  90% { transform: rotate(-80deg); }
}
@keyframes g-pool { 0%, 100% { transform: scaleX(1); opacity: 0.9; } 50% { transform: scaleX(0.78); opacity: 0.55; } }
@keyframes g-twinkle { 0%, 100% { transform: scale(0.6); opacity: 0.35; } 50% { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .sp *, .pool, .sparkle { animation: none !important; }
  .button { transition: none; }
}
