/* ---------------------------------------------------------------------
   Aegio — Landing page
   Tokens de cor idênticos aos definidos no design (Claude Design):
   landing-page-magic-the-gathering/project/Aegio Landing.dc.html
   --------------------------------------------------------------------- */

:root {
  --color-bg: oklch(94% 0.012 65);
  --color-surface: oklch(94% 0.025 235);
  --color-surface-alt: oklch(90% 0.03 235);
  --color-border: oklch(86% 0.02 235);
  --color-primary: oklch(53% 0.15 255);
  --color-accent: rgb(250, 210, 219);
  --color-accent-strong: oklch(72% 0.11 355);
  --color-on-accent: oklch(28% 0.05 340);
  --color-on-primary: oklch(98% 0.006 90);
  --color-text: oklch(27% 0.02 255);
  --color-text-muted: oklch(46% 0.03 250);
}

[data-theme="magica"] {
  --color-bg: oklch(21% 0.02 260);
  --color-surface: oklch(27% 0.03 210);
  --color-surface-alt: oklch(31% 0.035 210);
  --color-border: oklch(34% 0.03 220);
  --color-primary: oklch(56% 0.07 195);
  --color-accent: rgb(233, 179, 224);
  --color-accent-strong: rgb(233, 179, 224);
  --color-on-accent: oklch(28% 0.05 340);
  --color-on-primary: oklch(97% 0.01 90);
  --color-text: oklch(96% 0.01 90);
  --color-text-muted: oklch(74% 0.02 220);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { text-decoration: none; }

body {
  font-family: Inter, sans-serif;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  transition: background-color 400ms ease, color 400ms ease;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  transition: background-color 400ms ease, border-color 400ms ease;
}
.header-inner {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 22px; height: 22px;
  background: var(--color-primary);
  transform: rotate(45deg);
  border-radius: 4px;
  transition: background-color 400ms ease;
}
.brand-mark--sm { width: 16px; height: 16px; border-radius: 3px; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.brand-name--sm { font-size: 17px; }

.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav a {
  font-size: 15px;
  color: var(--color-text-muted);
  transition: color 200ms ease;
}
.nav a:hover { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  display: flex; align-items: center;
  background: var(--color-surface);
  border-radius: 999px;
  padding: 4px; gap: 2px;
  transition: background-color 400ms ease;
}
.theme-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; color: var(--color-text-muted);
  transition: background-color 300ms ease, color 300ms ease;
}
.theme-btn.is-active { background: var(--color-bg); color: var(--color-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-refrescante { background: oklch(53% 0.15 255); }
.dot-magica { background: oklch(56% 0.07 195); }

.link-entrar {
  font-size: 15px; font-weight: 500; color: var(--color-text); white-space: nowrap;
  transition: color 200ms ease;
}
.link-entrar:hover { color: var(--color-primary); }

.btn-pill {
  font-size: 15px; font-weight: 600;
  color: var(--color-on-primary);
  background: var(--color-primary);
  padding: 10px 20px; border-radius: 999px; white-space: nowrap;
  transition: filter 200ms ease, background-color 400ms ease;
}
.btn-pill:hover { filter: brightness(1.08); }

/* HERO */
.hero {
  padding: 100px 24px 90px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.8fr);
  gap: 60px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent); color: var(--color-on-accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
  transition: background-color 400ms ease, color 400ms ease;
}
h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05; font-weight: 600;
  color: var(--color-text); margin: 0 0 24px; letter-spacing: -0.01em;
}
.lead {
  font-size: 19px; line-height: 1.6; color: var(--color-text-muted);
  margin: 0 0 36px; max-width: 520px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  font-size: 16px; font-weight: 600;
  color: var(--color-on-primary); background: var(--color-primary);
  padding: 15px 28px; border-radius: 10px;
  transition: filter 200ms ease, background-color 400ms ease;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline {
  font-size: 16px; font-weight: 600; color: var(--color-text);
  padding: 15px 20px; border-radius: 10px; border: 1px solid var(--color-border);
  transition: border-color 200ms ease, color 200ms ease;
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.hero-art, .scryfall-art {
  position: relative; border-radius: 20px;
  background: repeating-linear-gradient(135deg, var(--color-surface), var(--color-surface) 12px, var(--color-surface-alt) 12px, var(--color-surface-alt) 24px);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 400ms ease, border-color 400ms ease;
}
.hero-art { aspect-ratio: 4 / 5; }
.scryfall-art {
  aspect-ratio: 1 / 1; max-width: 380px;
  background: repeating-linear-gradient(45deg, var(--color-surface-alt), var(--color-surface-alt) 10px, var(--color-bg) 10px, var(--color-bg) 20px);
}
.placeholder-label {
  font-family: 'Courier New', monospace; font-size: 13px; color: var(--color-text-muted);
  background: var(--color-bg); padding: 8px 14px; border-radius: 6px;
  transition: background-color 400ms ease;
}
.scryfall-art .placeholder-label { background: var(--color-surface); }

/* SECTIONS */
.section-alt { background: var(--color-surface); transition: background-color 400ms ease; }
.section { padding: 110px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.kicker {
  font-size: 14px; font-weight: 600; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-left: 3px solid var(--color-accent-strong); padding-left: 10px;
}
h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 600;
  color: var(--color-text); margin: 14px 0 0; letter-spacing: -0.01em;
}
.h-md { font-size: clamp(26px, 3.2vw, 36px); margin: 14px 0 20px; }
.body-text { font-size: 18px; line-height: 1.7; color: var(--color-text-muted); margin: 0; }

.two-col { padding: 100px 24px; display: grid; gap: 60px; align-items: start; }
.two-col--sobre { grid-template-columns: minmax(240px, 0.7fr) minmax(300px, 1fr); }
.two-col--scryfall { grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr); align-items: center; }

/* CARDS */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 16px; padding: 36px 30px;
  transition: background-color 400ms ease, border-color 400ms ease;
}
.card h3 {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600;
  color: var(--color-text); margin: 0 0 10px;
}
.card p { font-size: 16px; line-height: 1.6; color: var(--color-text-muted); margin: 0; }

.icon { width: 46px; height: 46px; position: relative; margin-bottom: 24px; }
.icon-colecoes i:nth-child(1) { position: absolute; width: 30px; height: 40px; border-radius: 5px; background: var(--color-bg); border: 1.5px solid var(--color-primary); top: 6px; left: 0; }
.icon-colecoes i:nth-child(2) { position: absolute; width: 30px; height: 40px; border-radius: 5px; background: var(--color-bg); border: 1.5px solid var(--color-primary); top: 3px; left: 8px; }
.icon-colecoes i:nth-child(3) { position: absolute; width: 30px; height: 40px; border-radius: 5px; background: var(--color-primary); top: 0; left: 16px; }
.icon-decks i:nth-child(1) { position: absolute; width: 38px; height: 10px; border-radius: 4px; background: var(--color-accent-strong); opacity: 0.7; top: 0; left: 4px; }
.icon-decks i:nth-child(2) { position: absolute; width: 38px; height: 10px; border-radius: 4px; background: var(--color-primary); opacity: 0.65; top: 14px; left: 4px; }
.icon-decks i:nth-child(3) { position: absolute; width: 38px; height: 10px; border-radius: 4px; background: var(--color-primary); top: 28px; left: 4px; }
.icon-comparar i:nth-child(1) { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--color-primary); top: 4px; left: 0; }
.icon-comparar i:nth-child(2) { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--color-accent-strong); opacity: 0.85; top: 4px; left: 16px; }

/* SCRYFALL LIST */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; color: var(--color-text);
}
.check-list li::before {
  content: ""; width: 6px; height: 6px; background: var(--color-accent-strong);
  border-radius: 50%; flex-shrink: 0;
}

/* SCREENSHOTS */
.grid-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.shot {
  aspect-ratio: 16 / 10; border-radius: 14px;
  background: repeating-linear-gradient(135deg, var(--color-surface), var(--color-surface) 12px, var(--color-surface-alt) 12px, var(--color-surface-alt) 24px);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 400ms ease, border-color 400ms ease;
}

/* CTA */
.cta-wrap { margin: 0 auto 110px; padding: 0 24px; }
.cta-box {
  background: var(--color-primary); border-radius: 24px; padding: 72px 48px; text-align: center;
  transition: background-color 400ms ease;
}
.cta-box h2 {
  font-size: clamp(28px, 3.6vw, 42px); color: var(--color-on-primary); margin: 0 0 16px;
}
.cta-box p { font-size: 17px; color: var(--color-on-primary); opacity: 0.85; margin: 0 0 32px; }
.btn-cta {
  display: inline-block; font-size: 16px; font-weight: 700;
  color: var(--color-primary); background: var(--color-on-primary);
  padding: 16px 32px; border-radius: 10px;
  transition: filter 200ms ease;
}
.btn-cta:hover { filter: brightness(0.96); }

/* FOOTER */
.footer { border-top: 1px solid var(--color-border); transition: border-color 400ms ease; }
.footer-inner {
  padding: 48px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-note { font-size: 14px; color: var(--color-text-muted); }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 14px; color: var(--color-text-muted);
  transition: color 200ms ease;
}
.footer-links a:hover { color: var(--color-primary); }
