/* ============================================================
   THE LEVERAGE ECONOMY — Landing Page
   Design system: Book Cover tokens from OS-15 / Figma
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand palette — book cover system */
  --bg-start:       #376866;
  --bg-end:         #25272B;
  --accent:         #1BF9C7;
  --accent-dark:    #0fd4a8;
  --text-white:     #FFFFFF;
  --text-muted:     rgba(255,255,255,0.55);
  --btn-text:       #25272B;

  /* Typography */
  --font-display:   'Inter', 'Helvetica Neue', sans-serif;
  --font-body:      'Inter', 'Helvetica Neue', sans-serif;

  /* Fluid type */
  --text-xs:    clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:    clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base:  clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:    clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:    clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:   clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero:  clamp(2.5rem,   1rem    + 5vw,    5.5rem);

  /* Spacing */
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-white);
  background-color: var(--bg-end);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

/* ── Page layout ────────────────────────────────────────────── */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
  background-attachment: fixed;
}

/* ── Radial teal glow ───────────────────────────────────────── */
.glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: min(900px, 100vw);
  overflow: hidden;
  background: radial-gradient(
    ellipse at center,
    rgba(27, 249, 199, 0.18) 0%,
    rgba(55, 104, 102, 0.10) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: clamp(var(--space-12), 8vw, var(--space-20));
  padding-bottom: clamp(var(--space-8), 5vw, var(--space-12));
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.cover {
  width: clamp(260px, 42vw, 420px);
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(27, 249, 199, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 32px 80px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(27, 249, 199, 0.08);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.cover:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(27, 249, 199, 0.20),
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 40px 100px rgba(0, 0, 0, 0.40),
    0 0 120px rgba(27, 249, 199, 0.12);
}

/* ── Copy block ─────────────────────────────────────────────── */
.copy-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: 0 clamp(var(--space-6), 6vw, var(--space-16));
  max-width: 680px;
  width: 100%;
  padding-bottom: clamp(var(--space-12), 8vw, var(--space-20));
}

.title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-white);
  text-wrap: balance;
}

.subtitle {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.4;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-top: var(--space-2);
}

.descriptor {
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  max-width: 52ch;
  text-wrap: pretty;
  margin-top: var(--space-2);
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-10);
  background: var(--accent);
  color: var(--btn-text);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-xl);
  border: 3px solid transparent;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  cursor: pointer;
  transition:
    background 220ms var(--ease-out),
    color 220ms var(--ease-out),
    outline-color 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
  box-shadow: 0 4px 24px rgba(27, 249, 199, 0.30);
  white-space: nowrap;
  width: 100%;
  max-width: 340px;
}
.cta:hover {
  background: #25272B;
  color: var(--accent);
  outline-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(27, 249, 199, 0.40);
}
.cta:active {
  transform: translateY(0px);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--space-2);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: var(--space-8) var(--space-6);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  width: 100%;
}
.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.footer a:hover {
  color: var(--accent);
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cover {
    width: clamp(220px, 78vw, 320px);
  }
  .cta {
    max-width: 100%;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
  }
  .title {
    letter-spacing: -0.025em;
  }
}
