/* ==========================================================================
   Axil — coming-soon landing page
   "Midnight Field": the app's single dark theme. Near-black ground, warm gold
   accent. Tokens mirror src/global.css + src/constants/colors.ts in the app
   repo — keep them in sync.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  color-scheme: dark;

  --background: #0B0F16;   /* near-black ground */
  --foreground: #EEF2F6;
  --primary: #E6B968;      /* warm gold accent */
  --muted-foreground: #8B97A7;
  --border: rgba(255, 255, 255, 0.12);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0; }

/* ---- Gold halo ----------------------------------------------------------- */
.halo {
  position: fixed;
  inset: 0 0 auto;
  height: min(360px, 55dvh);
  background: linear-gradient(
    to bottom,
    rgba(230, 185, 104, 0.16),
    rgba(230, 185, 104, 0)
  );
  pointer-events: none;
}

/* ---- Page ---------------------------------------------------------------- */
.page {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: clamp(24px, 6vw, 48px);
}

/* ---- Wordmark ------------------------------------------------------------ */
/* Text base is 681×480 — the box keeps that ratio so the lockup never distorts,
   and the mark is placed as a fraction of the box (matching the app's lockup). */
.wordmark {
  position: relative;
  width: min(320px, 64vw);
  aspect-ratio: 681 / 480;
}

.wordmark-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wordmark-mark {
  position: absolute;
  left: 52.72%;
  top: 0;
  width: 44.35%;
  height: 52.71%;
  object-fit: contain;
  transform-origin: center;
  animation: breathe 3.2s ease-in-out infinite;
}

/* Gentle breathing on the mark only — a subtle scale + gold glow, as in the app. */
@keyframes breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(230, 185, 104, 0)); }
  50%      { transform: scale(1.045); filter: drop-shadow(0 0 12px rgba(230, 185, 104, 0.45)); }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-mark { animation: none; }
}

/* ---- Copy ---------------------------------------------------------------- */
.tagline {
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.coming-soon {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(230, 185, 104, 0.08);
  border: 1px solid rgba(230, 185, 104, 0.4);
  border-radius: 999px;
  padding: 8px 18px;
  margin-top: 4px;
}

/* One plain-language line under the mark, so the page says who is behind it. */
.blurb {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 0.98rem;
  color: var(--muted-foreground);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 1rem;
  color: var(--muted-foreground);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-nav a,
.doc-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover,
.doc-nav a:hover,
.doc-nav a[aria-current="page"] {
  color: var(--foreground);
}

.footer-legal { font-size: 0.9rem; }

/* Public Sans sets ™ on the baseline — lift it so it reads as a mark, not a word. */
.tm {
  font-size: 0.62em;
  vertical-align: 0.42em;
  margin-left: 0.06em;
}

/* ==========================================================================
   Content pages (about / contact / support)
   ========================================================================== */
.doc-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 760px;
  margin-inline: auto;
  width: 100%;
  padding: clamp(20px, 4vw, 32px) clamp(20px, 5vw, 28px) 0;
}

.doc-brand { display: inline-flex; }

/* The lockup again, small and still — no breathing outside the landing page. */
.wordmark-sm {
  display: block;
  width: 104px;
}

.wordmark-sm .wordmark-mark { animation: none; }

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.95rem;
  font-weight: 500;
}

.doc {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 6vw, 52px) clamp(20px, 5vw, 28px) 8px;
}

.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.doc h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 0;
}

.doc h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 26px 0 0;
}

.doc p { margin-top: 14px; }

.doc .lede {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  color: var(--muted-foreground);
  max-width: 62ch;
}

.doc h3 + p { margin-top: 8px; color: var(--muted-foreground); }

.doc h2 + p,
.doc p { max-width: 68ch; color: var(--muted-foreground); }

.doc strong { color: var(--foreground); font-weight: 600; }

.doc a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(230, 185, 104, 0.45);
}

.doc a:hover { text-decoration-color: var(--primary); }

.doc ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 68ch;
}

.doc li {
  position: relative;
  padding-left: 20px;
  color: var(--muted-foreground);
}

.doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---- Contact detail cards ------------------------------------------------ */
.contact-card {
  margin-top: 20px;
  padding: 20px 22px;
  background: #141B26;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 68ch;
}

.contact-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.doc .contact-value {
  margin-top: 6px;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--foreground);
}

.contact-note {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.doc .contact-value a { text-decoration-color: rgba(230, 185, 104, 0.5); }
