﻿/* =============================================================
   INDEX.CSS — Landing Page AstionLiteraria (Rede Social)
   Tema: Papel & Tinta — Cross Creative Studio (c) 2026
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg:           #faf8f3;
  --bg-surface:   #f0ebe0;
  --bg-card:      #ffffff;
  --border:       rgba(44,32,0,0.1);
  --accent:       #2c5ba0;
  --accent-glow:  rgba(44,91,160,0.12);
  --gold:         #8a6318;
  --gold-bright:  #c9a962;
  --gold-glow:    rgba(138,99,24,0.14);
  --text:         #3d3220;
  --text-muted:   #7a6c58;
  --text-heading: #120c02;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Inter', sans-serif;
  --radius:       14px;
  --shadow:       0 8px 30px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* -- BOTOES ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .3s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* -- NAVBAR ------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,248,243,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(250,248,243,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
.navbar-logo img { height: 36px; }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.navbar-links a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.navbar-links a:hover { color: var(--text-heading); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar-toggle span {
  width: 22px; height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: .3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  background: rgba(250,248,243,0.99);
  padding: 32px 24px;
  flex-direction: column;
  gap: 24px;
  z-index: 999;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 18px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* -- HERO -------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(44,91,160,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(138,99,24,0.07) 0%, transparent 60%),
    var(--bg);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(44,91,160,0.2);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 28px;
  animation: badgePulse 3.5s ease-in-out infinite;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-logo {
  margin: 56px auto 0;
  max-width: 280px;
  opacity: .85;
  animation: floatY 5s ease-in-out infinite;
}

/* Particulas */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .12;
  animation: drift 18s infinite ease-in-out;
}
@keyframes drift {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-80px) translateX(40px); }
  66% { transform: translateY(-40px) translateX(-30px); }
}

/* -- SECAO GENERICA ---------------------------------------- */
.section { padding: 96px 24px; position: relative; }
.section-alt { background: var(--bg-surface); }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section h2 em { font-style: italic; color: var(--gold); }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 560px; margin-bottom: 56px; }

/* -- GRID DE RECURSOS -------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.feature-card:hover {
  border-color: rgba(44,91,160,0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(44,91,160,0.1);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 17px; font-weight: 600; color: var(--text-heading); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* -- ECOSSISTEMA ------------------------------------------- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 48px;
}
.eco-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all .3s;
  cursor: pointer;
}
.eco-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px var(--gold-glow);
}
.eco-card i { font-size: 26px; color: var(--gold); margin-bottom: 12px; display: block; }
.eco-card h4 { font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 6px; }
.eco-card p { font-size: 12px; color: var(--text-muted); }

/* -- ECO-CARD EM BREVE ------------------------------------- */
.eco-card-soon {
  opacity: .6;
  cursor: default;
}
.eco-card-soon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.5) 50%, transparent 62%);
  background-size: 200% 100%;
  animation: shimmer 3.5s infinite ease-in-out;
}
.eco-card-soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.soon-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 50px;
  z-index: 1;
}

/* -- MOCKUP SOCIAL ----------------------------------------- */
.social-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.social-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mock-bar {
  background: var(--bg-surface);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.mock-bar img { height: 28px; }
.mock-bar span { font-size: 13px; color: var(--text-muted); margin-left: auto; }
.mock-post { padding: 20px; border-bottom: 1px solid var(--border); }
.mock-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mock-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: white; font-weight: 600;
}
.mock-name { font-size: 13px; font-weight: 600; color: var(--text-heading); }
.mock-time { font-size: 11px; color: var(--text-muted); }
.mock-content { font-size: 14px; color: var(--text); margin-bottom: 12px; line-height: 1.6; }
.mock-quote {
  background: rgba(44,91,160,0.06);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}
.mock-actions { display: flex; gap: 16px; }
.mock-actions span {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.mock-actions i { font-size: 14px; }

/* -- CTA FINAL --------------------------------------------- */
.cta-section {
  padding: 96px 24px;
  text-align: center;
  background: linear-gradient(135deg, #1a1005 0%, #2d1f0a 50%, #1a1005 100%);
}
.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #f5ead8;
  margin-bottom: 16px;
}
.cta-section h2 em { font-style: italic; color: var(--gold-bright); }
.cta-section p { color: #c5b89a; font-size: 17px; margin-bottom: 40px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-section .btn-outline {
  border-color: rgba(245,234,216,0.25);
  color: #f5ead8;
}
.cta-section .btn-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}
.cta-login { margin-top: 20px; font-size: 14px; color: #c5b89a; }
.cta-login a { color: var(--gold-bright); }

/* -- FOOTER ------------------------------------------------ */
.footer {
  background: #160f05;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 56px 24px 32px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: #a09070; line-height: 1.7; max-width: 260px; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #a09070; font-size: 16px;
  transition: all .2s;
}
.social-links a:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.footer-col h5 {
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: #f0e8d8; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #a09070; transition: color .2s; }
.footer-col ul li a:hover { color: #f0e8d8; }
.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #a09070;
}

/* -- ANIMACOES ON-SCROLL ----------------------------------- */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-anim].visible { opacity: 1; transform: translateY(0); }
.features-grid .feature-card:nth-child(1)[data-anim] { transition-delay: .05s; }
.features-grid .feature-card:nth-child(2)[data-anim] { transition-delay: .12s; }
.features-grid .feature-card:nth-child(3)[data-anim] { transition-delay: .19s; }
.features-grid .feature-card:nth-child(4)[data-anim] { transition-delay: .26s; }
.features-grid .feature-card:nth-child(5)[data-anim] { transition-delay: .33s; }
.features-grid .feature-card:nth-child(6)[data-anim] { transition-delay: .40s; }

/* -- KEYFRAMES --------------------------------------------- */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(44,91,160,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(44,91,160,0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* -- RESPONSIVO -------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .social-split { grid-template-columns: 1fr; }
  .social-mock { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .navbar-links, .navbar-actions { display: none; }
  .navbar-toggle { display: flex; }
  .section { padding: 64px 20px; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
}
