/* ---- Preloader ---- */
.t3a-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000d24;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.t3a-preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.t3a-preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.t3a-preloader__logo {
  width: 64px;
  height: auto;
  opacity: 0.9;
}
.t3a-preloader__bar {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.t3a-preloader__bar-fill {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #4bc4f2, #1e4b8f);
  border-radius: 3px;
  animation: t3a-preloader-slide 1.2s ease-in-out infinite;
}
@keyframes t3a-preloader-slide {
  0% { transform: translateX(-100%); width: 40%; }
  50% { transform: translateX(100%); width: 60%; }
  100% { transform: translateX(300%); width: 40%; }
}

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

/* ---- Garet Font Faces ---- */
@font-face {
  font-family: 'Garet';
  src: url('public/fonts/Garet-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Garet';
  src: url('public/fonts/Garet-Heavy.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1e4b8f;
  --celeste: #4bc4f2;
  --dark: #000d24;
  --black: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-600: #555;
  --gray-400: #a0a0a0;
  --gray-200: #e8e8e8;
  --ghost: #d5d5d5;
  --white: #ffffff;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

::selection {
  background: var(--celeste);
  color: var(--white);
}

/* ---- Progress bar ---- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--celeste);
  z-index: 100;
  transition: none;
  will-change: width;
}

/* ---- Reading indicator ---- */
.reading-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  font-family: 'Garet', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.reading-indicator.visible {
  opacity: 1;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px;
  pointer-events: none;
}

.header a {
  pointer-events: all;
  display: inline-block;
}

.header img {
  display: block;
  border-radius: 6px;
  opacity: 1;
  transition: opacity 0.2s;
}

.header img:hover {
  opacity: 0.8;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  will-change: opacity, transform;
}

.hero-inner {
  max-width: 720px;
}

/* KICKER — Garet Heavy 900, 11px, +0.15em, CAPS (Label/Tag do Brand Guide) */
.kicker {
  font-family: 'Garet', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

/* HERO H1 — Garet Heavy 900, 48-56px, kerning -0.04em, lh 1.0 */
h1 {
  font-family: 'Garet', sans-serif;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--dark);
  position: relative;
}

/* Typed cursor */
h1 .cursor {
  position: absolute;
  display: inline-block;
  width: 2px;
  height: 0.75em;
  background: var(--celeste);
  margin-left: 6px;
  vertical-align: baseline;
  animation: blink 0.7s step-end infinite;
  transition: opacity 0.5s ease;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.scroll-hint.visible {
  opacity: 1;
}

.scroll-hint-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gray-400), transparent);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ---- Main ---- */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 0;
}

/* ============================================
   SPOTLIGHT SYSTEM — Fonte por tipo de linha
   ============================================

   .line (body)     → Garet Book 400, 16px, lh 1.75
   .line.accent     → Garet Heavy 900, 17px, lh 1.5
   .line.emphasis   → Garet Heavy 900, 22px, lh 1.2, kerning -0.025em
   blockquote.line  → Garet Heavy 900, 28-36px, lh 1.1, kerning -0.03em
   blockquote.small → Garet Heavy 900, 20-23px
   blockquote.vision→ Garet Book 400, 18-22px, italic, border celeste

   ============================================ */

/* BODY — Garet Book 400, 16px, lh 1.75 */
.line {
  font-family: 'Garet', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--ghost);
  line-height: 1.75;
  margin-bottom: 28px;
  transform-origin: left center;
  will-change: color, transform;
}

/* ACCENT — Garet Heavy 900, 17px, lh 1.5 (Acento/Mantra do Brand Guide) */
.line.accent {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.5;
  will-change: color, transform, text-shadow;
}

/* EMPHASIS — Garet Heavy 900, 22px, lh 1.2 (H2/Subtítulo do Brand Guide) */
.line.emphasis {
  font-weight: 900;
  font-size: clamp(20px, 2.8vw, 22px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.manifesto em {
  font-style: italic;
}

/* ---- Breathing ---- */
.breath {
  height: 40px;
}

.breath-large {
  height: 80px;
}

/* ---- Separators ---- */
.sep {
  width: 32px;
  height: 2px;
  background: var(--celeste);
  margin-bottom: 48px;
  opacity: 0;
  will-change: opacity;
}

/* ---- Blockquotes ---- */

/* BLOCKQUOTE — Garet Heavy 900, 28-36px, lh 1.1, kerning -0.03em (H1/Título do Brand Guide) */
blockquote.line {
  font-family: 'Garet', sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: 0;
  border: none;
  margin-bottom: 0;
  transform-origin: center center;
}

/* BLOCKQUOTE SMALL — Garet Heavy 900, 20-23px (H2 do Brand Guide) */
blockquote.small {
  font-size: clamp(18px, 3vw, 23px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* VISION — Garet Book 400, 18-22px, italic, border celeste */
blockquote.line.vision {
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1.65;
  border-left: 2px solid var(--celeste);
  padding-left: 24px;
  margin-bottom: 28px;
}

/* ---- Closing hero ---- */
.closing-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.closing-inner {
  max-width: 720px;
}

/* CLOSING TEXT — Garet Heavy 900, 28-46px (Hero scale do Brand Guide) */
.closing-text {
  font-family: 'Garet', sans-serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 40px;
}

/* CLOSING LINK — Garet Book 400 */
.closing-link {
  font-family: 'Garet', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ghost);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  display: inline-block;
}

.closing-link:hover {
  border-bottom-color: var(--celeste);
}

/* ---- Footer ---- */
footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

/* FOOTER — Garet Book 400, 12px (Caption do Brand Guide) */
footer p {
  font-family: 'Garet', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.02em;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .header {
    padding: 16px 20px;
  }

  main {
    padding: 0 20px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  h1 br {
    display: none;
  }

  .line {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .line.accent {
    font-size: 16px;
  }

  .line.emphasis {
    font-size: 19px;
  }

  .breath {
    height: 24px;
  }

  .breath-large {
    height: 48px;
  }

  .sep {
    margin-bottom: 36px;
  }

  blockquote.line {
    font-size: clamp(20px, 6vw, 26px);
  }

  blockquote.small {
    font-size: clamp(17px, 5vw, 20px);
  }

  blockquote.line.vision {
    font-size: 16px;
    padding-left: 16px;
  }

  .closing-hero {
    min-height: 60vh;
    padding: 64px 20px;
  }

  .closing-text {
    font-size: clamp(24px, 7vw, 32px);
  }

  .closing-text br {
    display: none;
  }

  .reading-indicator {
    bottom: 16px;
    right: 16px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 26px;
  }

  main {
    padding: 0 16px;
  }

  blockquote.line {
    font-size: 20px;
  }
}
