/* Astroquant Landing — shared base. Imports tokens.css first. */
@import url("./tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--aq-font-family);
  background: var(--aq-bg);
  color: var(--aq-fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

img { display: block; max-width: 100%; }

/* Numerics */
.tnum { font-variant-numeric: tabular-nums; }

/* Astrological glyph helper */
.aq-glyph {
  font-family: "Apple Symbols", "STIXGeneral", "Segoe UI Symbol", var(--aq-font-family);
}

/* Selection */
::selection { background: rgba(107, 161, 182, 0.4); color: #fff; }

/* Page-wide scroll-driven tint variables (set by JS) */
:root {
  --tint-mix: 0;          /* 0 → blue tint, 1 → orange tint */
  --tint-strength: 0.7;
}

/* Hide native scrollbars on horizontal scroll regions */
.h-scroll { overflow-x: auto; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }

/* Reusable card */
.aq-card {
  background: var(--aq-card);
  border-radius: var(--aq-radius-lg);
  padding: var(--aq-s-4);
}

/* Reusable buttons */
.btn-primary {
  appearance: none; border: 0; cursor: pointer;
  background: var(--aq-fg);
  color: var(--aq-bg);
  font-size: var(--aq-text-md);
  font-weight: var(--aq-w-semibold);
  padding: 14px 22px;
  border-radius: var(--aq-radius-md);
  transition: transform var(--aq-d-fast) var(--aq-ease), background var(--aq-d-fast) var(--aq-ease);
}
.btn-primary:hover { transform: translateY(-1px); background: #f4f4f6; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  appearance: none; cursor: pointer;
  background: transparent;
  color: var(--aq-fg);
  font-size: var(--aq-text-md);
  font-weight: var(--aq-w-medium);
  padding: 14px 18px;
  border-radius: var(--aq-radius-md);
  border: 1px solid var(--aq-glass-stroke);
  transition: border-color var(--aq-d-fast) var(--aq-ease), background var(--aq-d-fast) var(--aq-ease);
}
.btn-ghost:hover { border-color: var(--aq-glass-stroke-focus); background: rgba(255,255,255,0.04); }

/* Top nav (shared) */
.aq-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.aq-nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: var(--aq-w-bold);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.aq-nav__brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: #fff; color: #000;
  display: grid; place-items: center;
  font-size: 12px; font-weight: var(--aq-w-bold); letter-spacing: 0.04em;
}
.aq-nav__links {
  display: flex; gap: 30px;
  font-size: var(--aq-text-sm); color: var(--aq-fg-secondary);
}
.aq-nav__links a {
  transition: color var(--aq-d-fast) var(--aq-ease);
}
.aq-nav__links a:hover { color: var(--aq-fg); }

/* Footer */
.aq-footer {
  border-top: 1px solid var(--aq-divider);
  padding: 64px 28px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  color: var(--aq-fg-secondary);
  font-size: var(--aq-text-sm);
}
.aq-footer h4 {
  font-size: var(--aq-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--aq-fg-tertiary);
  font-weight: var(--aq-w-medium);
  margin: 0 0 14px;
}
.aq-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.aq-footer a { transition: color var(--aq-d-fast) var(--aq-ease); }
.aq-footer a:hover { color: var(--aq-fg); }
.aq-footer__brand { color: var(--aq-fg); font-size: var(--aq-text-md); font-weight: var(--aq-w-semibold); margin-bottom: 8px; }

/* Section padding scale */
.section { padding: 120px 28px; }
.section--lg { padding: 160px 28px; }

@media (max-width: 760px) {
  .section { padding: 80px 22px; }
  .aq-footer { grid-template-columns: 1fr 1fr; }
  .aq-nav__links { display: none; }
}

/* Animate-in helper — content is ALWAYS visible.
   IO-driven `.in` class plays a cosmetic entrance; never hides content. */
@keyframes aq-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal.in {
  animation: aq-rise 800ms var(--aq-ease) both;
}
.reveal.in.delay-1 { animation-delay: 80ms; }
.reveal.in.delay-2 { animation-delay: 160ms; }
.reveal.in.delay-3 { animation-delay: 240ms; }
.reveal.in.delay-4 { animation-delay: 320ms; }
.reveal.in.delay-5 { animation-delay: 400ms; }

/* Dotted divider */
.aq-divider-dots {
  height: 1px;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.25) 1px, transparent 1.5px);
  background-size: 8px 1px;
  background-repeat: repeat-x;
}

/* ── Shared utilities lifted from repeated inline styles ─────────────────── */

/* Emphasis run that reads as strong, not italic (was inline on many <em>) */
.aq-accent { color: var(--aq-fg); font-style: normal; font-weight: var(--aq-w-medium); }

/* Nav CTA button — smaller than the default primary button */
.aq-nav .btn-primary { padding: 10px 18px; font-size: 14px; }

/* Active nav link for the current page (replaces inline color override) */
.aq-nav__links a[aria-current="page"] { color: var(--aq-fg); }

/* Large primary CTA used in closing sections */
.btn-primary--lg { padding: 18px 28px; font-size: 16px; }

/* Footer tagline + fine print (were inline on the brand column) */
.aq-footer__tagline { margin: 0; max-width: 320px; }
.aq-footer__fineprint { margin-top: 24px; font-size: 11px; color: var(--aq-fg-tertiary); letter-spacing: 0.08em; }
