/* ═══════════════════════════════════════════════════════════════════
   Aura / Afrilingua AI — shared landing chassis
   Used by every page except index.html (which keeps its own design
   system for now). Loaded via <link rel="stylesheet">.
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0A0A0A;
  --surface: #161616;
  --surface-elevated: #1F1F1F;
  --accent: #E63946;
  --accent-light: #FF5C6A;
  --secondary: #FFB703;
  --text: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #707070;
  --border: #2A2A2A;
  --border-strong: #3A3A3A;
  --success: #2ECC71;
  --warning: #FFB703;
  --info: #3498DB;

  --glass-bg: rgba(22, 22, 22, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 18px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --max-width: 1200px;
  --gutter: 24px;
  --radius: 12px;
  --radius-lg: 18px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-light); }

img, svg { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection { background: var(--accent); color: white; }

/* ─────────────────────────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

p  { color: var(--text-secondary); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.muted { color: var(--text-muted); }

code, .mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

/* ─────────────────────────────────────────────────────────────────
   Layout primitives
   ───────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 96px 0;
}
.section--tight { padding: 56px 0; }
.section--hero  { padding: 120px 0 80px; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section--hero { padding: 96px 0 56px; }
}

.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────
   Cards
   ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card h3 { margin-bottom: 8px; }
.card p  { font-size: 0.97rem; }

.card__icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(230, 57, 70, 0.12);
  color: var(--accent-light);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 22px;
}

/* ─────────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: white; }

.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:hover { background: var(--accent-light); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-elevated); }

.btn--small { padding: 10px 16px; font-size: 0.88rem; }

/* ─────────────────────────────────────────────────────────────────
   Navigation (rendered by <aura-nav>)
   ───────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.nav__logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: url('/assets/aura-icon.png') center/cover no-repeat;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; font-weight: 900;
  font-size: 0;
}
.nav__links {
  display: flex; align-items: center; gap: 4px;
}
.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.nav__links a:hover { background: var(--surface-elevated); color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--text); background: var(--surface-elevated); }
.nav__cta { margin-left: 12px; }
.nav__menu-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav__menu-btn:hover { background: var(--surface-elevated); }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-flex; }
  .nav__links--open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px;
  }
  .nav__links--open a { padding: 12px; }
  .nav__cta { margin: 8px 0 0; }
}

/* ─────────────────────────────────────────────────────────────────
   Footer (rendered by <aura-footer>)
   ───────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 96px;
  background: var(--surface);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer__col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--text-secondary); font-size: 0.92rem; }
.footer__brand p { font-size: 0.92rem; max-width: 320px; margin-top: 12px; }
.footer__bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ─────────────────────────────────────────────────────────────────
   Banners — waitlist, capacity hold, maintenance
   ───────────────────────────────────────────────────────────────── */

.banner {
  padding: 12px var(--gutter);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: white;
}
.banner--waitlist     { background: linear-gradient(90deg, #E63946, #FFB703); }
.banner--capacity     { background: linear-gradient(90deg, #FFB703, #E63946); color: #000; }
.banner--maintenance  { background: var(--surface-elevated); border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.banner a { text-decoration: underline; font-weight: 700; }

/* ─────────────────────────────────────────────────────────────────
   Forms — waitlist, simple inputs
   ───────────────────────────────────────────────────────────────── */

.form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 480px;
}
.form-row input[type="email"],
.form-row input[type="text"] {
  flex: 1 1 240px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font: inherit;
}
.form-row input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-status--ok    { color: var(--success); }
.form-status--err   { color: var(--accent-light); }

/* ─────────────────────────────────────────────────────────────────
   Hero blocks
   ───────────────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin-top: 18px;
}
.hero__actions {
  margin-top: 32px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────────
   Media slot — placeholders for screenshots / videos to come
   ───────────────────────────────────────────────────────────────── */

.media-slot {
  position: relative;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg,
      transparent 0 12px,
      rgba(255,255,255,0.015) 12px 24px),
    var(--surface);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}
.media-slot__label {
  display: inline-block;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────────────────────────────
   Axiom list
   ───────────────────────────────────────────────────────────────── */

.axiom {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.axiom:last-child { border-bottom: 0; }
.axiom__num {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 48px;
}
.axiom__body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.axiom__body p  { font-size: 0.97rem; }

/* ─────────────────────────────────────────────────────────────────
   Changelog
   ───────────────────────────────────────────────────────────────── */

.entry {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.entry__date {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.entry__tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 5px;
  margin-right: 8px;
  font-weight: 700;
}
.entry__tag--new      { background: rgba(46,204,113,0.15); color: var(--success); }
.entry__tag--improved { background: rgba(52,152,219,0.15); color: var(--info); }
.entry__tag--fixed    { background: rgba(255,183,3,0.15);  color: var(--warning); }

/* ─────────────────────────────────────────────────────────────────
   Misc
   ───────────────────────────────────────────────────────────────── */

.divider { height: 1px; background: var(--border); border: 0; margin: 48px 0; }
.center  { text-align: center; }
.mt-sm   { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.mb-sm   { margin-bottom: 12px; } .mb-md { margin-bottom: 24px; } .mb-lg { margin-bottom: 40px; }

/* ─────────────────────────────────────────────────────────────────
   <aura-dream> — pre-generated rotating animations
   ───────────────────────────────────────────────────────────────── */
aura-dream {
  display: block;
  position: relative;
  width: 100%;
}
.aura-dream__stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #0a0a0a;
}
.aura-dream__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
  background: #0a0a0a;
}
.aura-dream__frame.is-visible { opacity: 1; pointer-events: auto; }

/* Ambient mode — sits behind hero content as a backdrop. */
.aura-dream--ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.aura-dream--ambient .aura-dream__stage {
  border-radius: 0;
  height: 100%;
}
.aura-dream--ambient .aura-dream__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(10,10,10,0.0) 0%, rgba(10,10,10,0.55) 60%, rgba(10,10,10,0.85) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.0) 30%, rgba(10,10,10,0.7) 100%);
  pointer-events: none;
}
.aura-dream--ambient .aura-dream__frame { opacity: 0; }
.aura-dream--ambient .aura-dream__frame.is-visible { opacity: 0.85; }

/* Stage mode — full card, foregrounded (canvas page, /aura hero card). */
.aura-dream--stage {
  aspect-ratio: 16 / 10;
  min-height: 360px;
}
.aura-dream--stage .aura-dream__overlay { display: none; }

.aura-dream__controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.aura-dream__btn {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.aura-dream__btn:hover {
  background: rgba(10, 10, 10, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}
.aura-dream__label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono, ui-monospace, monospace);
}
.aura-dream--missing .aura-dream__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15), transparent 70%);
}

/* Showcase caption — kind + label overlay */
.aura-showcase__caption {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.aura-showcase__kind {
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.85), rgba(124, 58, 237, 0.85));
}
.aura-showcase__label {
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
}
.aura-showcase .aura-dream__frame {
  background: #0a0a0a;
}

@media (prefers-reduced-motion: reduce) {
  .aura-dream__frame { transition: none; }
}
