/*
 * Aiza pre-release minimal static site.
 *
 * Self-contained, dependency-free styles for the four static pages served from
 * S3 + CloudFront while AIZA_INFRA_MODE=pre_release_minimal. No fonts, scripts,
 * trackers, or network calls — everything here is inline-cacheable and works
 * with a strict CSP. Mirrors the brand palette in
 * frontend/lib/brand/assets.ts (accent #4d7cff, dark #0a1326).
 */

:root {
  color-scheme: light dark;
  --bg-top: #f5f8ff;
  --bg-bottom: #e7eeff;
  --card: rgba(255, 255, 255, 0.82);
  --border: rgba(77, 124, 255, 0.18);
  --text: #0a1326;
  --muted: #54607a;
  --accent: #4d7cff;
  --accent-contrast: #ffffff;
  --shadow: 0 24px 60px -28px rgba(13, 30, 70, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #0a1326;
    --bg-bottom: #0d1c3c;
    --card: rgba(18, 31, 60, 0.72);
    --border: rgba(111, 151, 255, 0.22);
    --text: #eaf0ff;
    --muted: #9fb0d0;
    --accent: #6f97ff;
    --accent-contrast: #0a1326;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(77, 124, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main.card {
  width: 100%;
  max-width: 40rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  color: var(--text);
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), #8a5cff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(77, 124, 255, 0.8);
}

h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p.lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32rem;
}

a.subtle,
.footer a {
  color: var(--accent);
  text-decoration: none;
}

a.subtle:hover,
.footer a:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact {
  font-size: 1rem;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
