/* ─────────────────────────────────────────────────────────────
   Veyra — landing page styles
   Self-contained. Palette pulled from app's main.css tokens
   so the landing matches the app exactly. Purple accent matches
   the Veyra logo (#5e17eb, same as --purple in main.css).
   ───────────────────────────────────────────────────────────── */

:root {
  /* Surfaces — matches app light theme */
  --bg: #f5f4f0;
  --panel: #ffffff;
  --panel-2: #f8f7f4;
  --line: rgba(0, 0, 0, 0.08);

  /* Text */
  --text: #0f172a;
  --muted: #64748b;
  --hint: #94a3b8;

  /* Brand purple — pulled from veyra-logo.svg / main.css --purple */
  --brand: #5e17eb;
  --brand-hover: #4a11bd;
  --brand-soft: rgba(94, 23, 235, 0.08);

  /* Type */
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Effects */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px -12px rgba(94, 23, 235, 0.35);
}

/* Dark theme — mirrors app's html[data-theme="dark"] palette,
   with the brand purple tuned lighter for dark backgrounds. */
html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b0f1a;
  --panel: #141a2a;
  --panel-2: #1a2236;
  --line: rgba(255, 255, 255, 0.10);

  --text: #e6edf7;
  --muted: #94a3b8;
  --hint: #64748b;

  --brand: #8b5cf6;
  --brand-hover: #a78bfa;
  --brand-soft: rgba(139, 92, 246, 0.14);

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px -12px rgba(139, 92, 246, 0.45);
}

/* ─── Reset ────────────────────────────────────────────────── */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Layout shell ─────────────────────────────────────────── */

.landing {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Hero ─────────────────────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
  text-align: center;
}

.hero-logo {
  display: block;
  width: clamp(240px, 55vw, 360px);
  height: auto;
  margin: 0 0 32px;
}

/* In dark mode, the purple logo can feel a touch heavy on the
   dark cream — a soft brightness lift helps it sit naturally.
   Remove this rule if you prefer the original colour. */
html[data-theme="dark"] .hero-logo {
  filter: brightness(1.15);
}

.lede {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 460px;
  margin: 0 0 40px;
}

/* ─── CTA ──────────────────────────────────────────────────── */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    transform 120ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.cta:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cta:active {
  transform: translateY(0);
}

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

.cta-arrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  transition: transform 160ms ease;
}

.cta:hover .cta-arrow {
  transform: translateX(3px);
}

.sub-cta {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  color: var(--hint);
  margin: 18px 0 0;
  letter-spacing: 0.02em;
}

/* ─── Footer ───────────────────────────────────────────────── */

.landing-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  color: var(--hint);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.dot {
  opacity: 0.5;
}

/* ─── Responsive ───────────────────────────────────────────── */

@media (max-width: 480px) {
  .landing {
    padding: 24px 20px 32px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-logo {
    margin-bottom: 24px;
  }

  .lede {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .cta {
    padding: 13px 22px;
    font-size: 14px;
  }
}

/* ─── Motion preferences ───────────────────────────────────── */

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

  .cta:hover {
    transform: none;
  }

  .cta:hover .cta-arrow {
    transform: none;
  }
}
