/* Shared styles for AdVantage AI subpages — mirrors the landing page design system. */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --bg-raise: #121214;
  --fg: #fafafa;
  --muted: #8a8a93;
  --accent-a: #eafe74;
  --accent-b: #d9f24f;
  --accent-c: #a8c92e;
  --volt-ink: #1f2407;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --grad: linear-gradient(120deg, var(--accent-a), var(--accent-b) 50%, var(--accent-c));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-b);
  color: var(--volt-ink);
}

a {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1rem;
  text-decoration: none;
}

.nav__brand svg {
  width: 1.55rem;
  height: 1.55rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__links a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__links a:not(.btn):hover,
.nav__links a:not(.btn).is-current {
  color: var(--fg);
}

@media (max-width: 760px) {
  .nav__links a:not(.btn) {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn:not(.btn--solid):hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.btn--solid {
  border: none;
  background: var(--grad);
  color: var(--volt-ink);
  box-shadow: 0 8px 32px rgba(217, 242, 79, 0.22);
}

.btn--solid:hover {
  filter: brightness(1.08);
}

.nav .btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.7rem;
}

/* ---------- layout ---------- */
main {
  position: relative;
  z-index: 2;
}

.wrap {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4.5vw, 3rem);
}

.page-hero {
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.page-hero h1 {
  margin: 1.1rem 0 1rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 46rem;
}

.page-hero .lede {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(244, 242, 236, 0.78);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section.block {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

section.block h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

section.block > .wrap > p,
.prose p {
  max-width: 44rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(244, 242, 236, 0.75);
}

.prose strong {
  color: var(--fg);
}

.prose a {
  color: var(--accent-b);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.8rem;
}

.card {
  padding: 1.6rem;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card .num {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- footer ---------- */
footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 1.6rem clamp(1.5rem, 5vw, 3rem) 2.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--fg);
}

footer .sep {
  opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
