/* START THE GAME — O Caminho da Lembrança (Static HTML Export) */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --font-sans: "DM Sans", sans-serif;
  --font-display: "Barlow Condensed", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

:root {
  color-scheme: dark;
  --background: oklch(0.135 0.012 245);
  --foreground: oklch(0.965 0.009 230);
  --primary: oklch(0.77 0.15 227);
  --primary-foreground: oklch(0.16 0.027 245);
  --secondary: oklch(0.18 0.014 245);
  --accent: oklch(0.25 0.035 240);
  --muted-foreground: oklch(0.68 0.025 235);
  --border: oklch(0.33 0.028 240 / 0.55);
  --paper: oklch(0.97 0.005 85);
  --ink: oklch(0.23 0.012 245);
  --paper-muted: oklch(0.5 0.015 245);
  --shadow-book: 0 25px 65px oklch(0.05 0.008 245 / 0.7);
  --shadow-button: 0 0 25px oklch(0.7 0.15 227 / 0.14);
  --hero-shade: linear-gradient(90deg, var(--background) 0%, oklch(0.135 0.012 245 / 0.9) 32%, oklch(0.135 0.012 245 / 0.55) 70%, oklch(0.135 0.012 245 / 0.6) 100%);
}

* { border-color: var(--border);
  html { scroll-behavior: smooth; scroll-padding-top: 84px; }
  body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); letter-spacing: 0; }
  ::selection { background: var(--primary); color: var(--primary-foreground); }
  a { color: inherit; text-decoration: none; }
  button, a { -webkit-tap-highlight-color: transparent; }
}

.site-header { height: 82px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding: 0 6%; background: var(--background); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--primary); color: var(--primary); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 23px; }
.site-nav { display: flex; gap: 32px; align-items: center; font-size: 12px; }
.site-nav > a { color: var(--muted-foreground); transition: color .2s; }
.site-nav > a:hover { color: var(--foreground); }
.eyebrow { font-family: var(--font-mono); font-size: 10px; line-height: 1.8; letter-spacing: 0; color: var(--primary); text-transform: uppercase; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 660px; }
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; z-index: -3; opacity: .55; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-shade); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--background), transparent 28%); }
.hero-inner { max-width: 1160px; margin: auto; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 60px; padding: 65px 32px 75px; }
.hero h1 { font-family: var(--font-display); font-size: 106px; line-height: .88; font-weight: 700; margin: 27px 0 20px; }
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1px var(--primary); }
.hero-subtitle { font-family: var(--font-display); font-size: 24px; margin: 0; font-weight: 500; }
.hero-description { max-width: 430px; color: var(--muted-foreground); font-size: 15px; line-height: 1.9; margin: 27px 0; }
.hero-description strong { color: var(--foreground); font-weight: 500; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.journey-button { height: 50px; padding: 0 24px; background: var(--primary); color: var(--primary-foreground); border-radius: 3px; font-size: 11px; font-weight: 700; box-shadow: var(--shadow-button); transition: background .2s, transform .2s; }
.journey-button:hover { background: color-mix(in oklch, var(--primary), var(--foreground) 15%); transform: translateY(-2px); }
.reading-button { border: 1px solid var(--border); background: transparent; color: var(--foreground); padding: 0 20px; height: 36px; font-size: 11px; border-radius: 3px; }
.reading-button:hover { border-color: var(--primary); background: var(--accent); }
.read-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted-foreground); font-size: 12px; padding: 3px 0; }
.read-link:hover { color: var(--primary); }
.book-display { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 20px; }
.book-frame { width: 280px; transform: perspective(1100px) rotateY(-13deg) rotateZ(4deg); box-shadow: var(--shadow-book); position: relative; border-left: 6px solid var(--secondary); }
.book-frame::after { content: ""; position: absolute; right: -7px; top: 3px; bottom: 3px; width: 7px; background: var(--paper); border-right: 2px solid var(--paper-muted); }
.book-cover { display: block; width: 100%; height: auto; }
.book-caption { display: flex; gap: 9px; align-items: center; margin-top: 36px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0; color: var(--muted-foreground); }
.hero-bottom { max-width: 1096px; margin: 0 auto; padding: 0 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.hero-bottom span { font-family: var(--font-mono); font-size: 9px; color: var(--muted-foreground); letter-spacing: 0; }
.hero-bottom a { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0; }
.connection { padding: 80px 24px 85px; text-align: center; max-width: 680px; margin: auto; }
.connection h2 { font-family: var(--font-display); font-size: 38px; line-height: 1.2; margin: 22px 0 25px; font-weight: 600; }
.connection p { color: var(--muted-foreground); font-size: 15px; line-height: 1.9; margin: 0 auto 18px; max-width: 560px; }
.connection .remember { color: var(--foreground); font-size: 20px; margin-top: 5px; }
.remember em { font-style: normal; color: var(--primary); }
.preview { border-top: 1px solid var(--border); padding: 67px 24px 75px; background: var(--secondary); }
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { font-family: var(--font-display); font-size: 42px; line-height: 1.1; font-weight: 600; margin: 15px 0; }
.section-heading p { font-size: 14px; color: var(--muted-foreground); }
.reading-spread { max-width: 940px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.book-page { background: var(--paper); color: var(--ink); padding: 45px 42px 28px; box-shadow: var(--shadow-book); min-width: 0; display: flex; flex-direction: column; }
.page-running { color: var(--paper-muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0; display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid color-mix(in oklch, var(--ink), transparent 85%); }
.book-page h3 { font-family: Georgia, serif; font-size: 26px; line-height: 1.3; margin: 33px 0 24px; }
.book-page p { font-family: Georgia, serif; font-size: 16px; line-height: 1.85; margin: 0 0 20px; }
.book-page .key-label { font-family: var(--font-mono); color: var(--paper-muted); font-size: 9px; letter-spacing: 0; margin: 20px 0 12px; }
.book-page .key-title { margin: 0 0 18px; }
.page-number { margin-top: auto; padding-top: 28px; text-align: center; font-family: Georgia, serif; font-size: 12px; color: var(--paper-muted); }
.continuation { max-width: 700px; position: relative; margin: 35px auto 0; text-align: center; padding: 43px 24px 20px; overflow: hidden; }
.blurred-pages { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; opacity: .1; pointer-events: none; user-select: none; filter: blur(4px); }
.blurred-pages img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.continuation::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, var(--secondary)); pointer-events: none; }
.continuation-content { position: relative; z-index: 1; }
.continuation-content > svg { display: block; margin: 0 auto 17px; color: var(--primary); }
.continuation h3 { font-family: var(--font-display); font-weight: 500; font-size: 29px; margin: 0 0 12px; }
.continuation p { font-size: 14px; color: var(--muted-foreground); line-height: 1.8; margin-bottom: 24px; }
.final-cta { text-align: center; padding: 77px 24px 80px; max-width: 710px; margin: auto; }
.final-cta h2 { font-family: var(--font-display); font-size: 52px; line-height: 1.05; font-weight: 600; margin: 20px 0 23px; }
.final-cta h2 span { color: var(--primary); }
.final-cta p { font-size: 14px; color: var(--muted-foreground); line-height: 1.9; max-width: 450px; margin: 0 auto 27px; }
.purchase-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; color: var(--muted-foreground); margin-top: 16px; }
.footer { border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 6%; }
.footer p { font-size: 10px; color: var(--muted-foreground); }
.footer .brand-name { font-size: 19px; }
.reveal { animation: enter .8s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .hero-inner { padding-top: 80px; padding-bottom: 85px; } }
@media (max-width: 760px) {
  .site-header { height: 68px; padding: 0 6%; }
  .brand-name { font-size: 20px; }
  .site-nav { gap: 10px; }
  .site-nav > a:not(.reading-button) { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 35px; padding: 43px 25px 35px; }
  .hero h1 { font-size: 83px; margin-top: 20px; }
  .hero-subtitle { font-size: 22px; }
  .hero-description { font-size: 14px; max-width: 380px; margin: 22px 0; }
  .hero-backdrop { object-position: 58% top; }
  .hero-actions { align-items: stretch; }
  .journey-button { padding: 0 15px; font-size: 10px; }
  .read-link { justify-content: center; }
  .book-display { padding: 5px 0 10px; }
  .book-frame { width: 220px; }
  .book-caption { margin-top: 25px; }
  .hero-bottom { margin: 0 25px; padding-bottom: 22px; }
  .hero-bottom > span { font-size: 8px; letter-spacing: 0; }
  .connection { padding: 55px 25px; }
  .connection h2 { font-size: 33px; }
  .connection p { font-size: 14px; }
  .connection .remember { font-size: 18px; }
  .preview { padding: 48px 18px; }
  .section-heading h2 { font-size: 33px; }
  .reading-spread { grid-template-columns: 1fr; gap: 18px; max-width: 460px; }
  .book-page { padding: 30px 27px 24px; }
  .book-page p { font-size: 16px; }
  .final-cta { padding: 55px 24px; }
  .final-cta h2 { font-size: 42px; }
  .footer { flex-direction: column; text-align: center; padding: 25px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Utility & button base styles for standalone HTML */
.text-primary { color: var(--primary); }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.whitespace-nowrap { white-space: nowrap; }
.cursor-pointer { cursor: pointer; }
.journey-button svg, .reading-button svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}
