/* Landing page in the aion44 brand: Mitternacht ground, Signalgelb accent,
   Chakra Petch for display type (self-hosted, see vendor/chakra-petch). */
:root {
  --night: #0B1020;
  --surface: #111832;
  --light: #E9ECF5;
  --dim: #1F2740;
  --dim-on-surface: #2A3354;
  --yellow: #FFF500;
  --text-2: #BAC1D6;
  --text-3: #8C95B0;
  --line: #1F2740;
  --line-strong: #2E3858;
  --font-display: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--light);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}

/* The dot grid of the aion44 mark as a faint backdrop behind the hero. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(980px, 120vh);
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dim) 1.6px, transparent 2.1px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 32%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 32%, #000 10%, transparent 72%);
}

:where(a, button):focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ── Header ── */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 32px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.landing-brand img { display: block; }

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.landing-link::after { content: "→"; color: var(--yellow); }

.landing-link:hover {
  border-color: rgba(233, 236, 245, 0.55);
  background: rgba(233, 236, 245, 0.05);
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: rgba(17, 24, 50, 0.7);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 9px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--light);
  background: var(--dim);
}

.lang-btn.active {
  background: var(--yellow);
  color: var(--night);
}

/* ── Hero ── */
.landing-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  padding: 64px 0 96px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Four dots: the crossbar row of the mark. */
.landing-kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 6px;
  background: radial-gradient(circle at 3px 3px, var(--yellow) 2.5px, transparent 3px) 0 0 / 9.33px 6px repeat-x;
}

.landing-hero h1 {
  margin: 20px 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.4vw + 0.9rem, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.landing-lead {
  margin: 0 0 36px;
  max-width: 34em;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 10px;
  font-family: var(--font-display);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  padding: 14px 26px;
  background: var(--yellow);
  color: var(--night);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 32px rgba(255, 245, 0, 0.16);
}

.btn-primary::after { content: "→"; font-size: 1.1em; }

.btn-secondary {
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 24, 50, 0.6);
  color: var(--light);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(255, 245, 0, 0.24);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(233, 236, 245, 0.55);
  background: rgba(233, 236, 245, 0.05);
}

/* Hero visual: a small deck of flags above a ten-dot session track. */
.landing-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.flag-deck {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 4 / 3.3;
}

.deck-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(233, 236, 245, 0.08), 0 24px 48px rgba(0, 0, 0, 0.45);
}

.deck-back-left { transform: translate(-50%, -50%) translate(-17%, -9%) rotate(-9deg); filter: saturate(0.55) brightness(0.62); }
.deck-back-right { transform: translate(-50%, -50%) translate(17%, -5%) rotate(7deg); filter: saturate(0.55) brightness(0.62); }

.deck-front {
  transform: translate(-50%, -50%) translateY(6%);
  box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--yellow), 0 30px 60px rgba(0, 0, 0, 0.55);
}

.session-track {
  display: flex;
  gap: 10px;
}

.session-track i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dim);
}

.session-track i.is-done { background: var(--light); }
.session-track i.is-now { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 245, 0, 0.18); }

/* ── Features ── */
.landing-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 88px;
}

.landing-features article {
  --d1: var(--dim-on-surface);
  --d2: var(--dim-on-surface);
  --d3: var(--dim-on-surface);
  --d4: var(--dim-on-surface);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 26px;
}

/* Step marker: four dots, the card's own position lit in yellow. */
.landing-features article::before {
  content: "";
  display: block;
  width: 30px;
  height: 6px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 3px 3px, var(--d1) 2.5px, transparent 3px) 0 0 / 6px 6px no-repeat,
    radial-gradient(circle at 3px 3px, var(--d2) 2.5px, transparent 3px) 8px 0 / 6px 6px no-repeat,
    radial-gradient(circle at 3px 3px, var(--d3) 2.5px, transparent 3px) 16px 0 / 6px 6px no-repeat,
    radial-gradient(circle at 3px 3px, var(--d4) 2.5px, transparent 3px) 24px 0 / 6px 6px no-repeat;
}

.landing-features article:nth-child(1) { --d1: var(--yellow); }
.landing-features article:nth-child(2) { --d2: var(--yellow); }
.landing-features article:nth-child(3) { --d3: var(--yellow); }
.landing-features article:nth-child(4) { --d4: var(--yellow); }

.landing-features h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.landing-features p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Footer ── */
.landing-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}

.landing-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 32px 32px;
}

.landing-footer p { margin: 0 0 18px; }

.landing-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.aion-byline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.aion-byline img {
  display: block;
  height: 16px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.aion-byline:hover { color: var(--light); }
.aion-byline:hover img { opacity: 1; }

.landing-legal {
  display: flex;
  gap: 20px;
}

.landing-legal a {
  color: var(--text-3);
  text-underline-offset: 3px;
}

.landing-legal a:hover { color: var(--light); }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 859px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 72px;
  }

  .landing-visual { order: -1; gap: 28px; }
  .flag-deck { width: min(78%, 340px); }
}

@media (max-width: 599px) {
  .landing-header { padding: 14px 16px; gap: 12px; }
  .landing-brand { font-size: 17px; gap: 10px; }
  .landing-brand img { width: 28px; height: 28px; }
  /* "Play now" right below does the same job on phones. */
  .landing-link { display: none; }

  .landing-main { padding: 0 16px; }
  .landing-hero { padding: 12px 0 56px; gap: 28px; }
  .landing-visual { gap: 18px; }
  .flag-deck { width: min(62%, 250px); }
  .session-track { gap: 8px; }
  .session-track i { width: 10px; height: 10px; }

  .landing-hero h1 { margin: 16px 0 16px; }
  .landing-lead { font-size: 17px; margin-bottom: 28px; }

  .btn-primary,
  .btn-secondary { width: 100%; }

  .landing-features { grid-template-columns: 1fr; gap: 12px; padding-bottom: 56px; }
  .landing-footer-inner { padding: 22px 16px 28px; }
  .landing-footer-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
