/* ========================================
   Diário de Emoções — Landing Page Styles
   ======================================== */

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

:root {
  --teal-50: #E6F4F7;
  --teal-100: #CCE9EF;
  --teal-200: #99D3DF;
  --teal-300: #66BDCF;
  --teal-400: #4A9BAD;
  --teal-500: #365D6D;
  --teal-600: #2D4E5C;
  --teal-700: #243F4A;
  --teal-800: #1B3039;
  --teal-900: #122027;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --violet-50: #F5F3FF;
  --violet-100: #EDE9FE;
  --violet-200: #DDD6FE;
  --violet-300: #C4B5FD;
  --violet-400: #A78BFA;
  --violet-500: #9B8DC2;
  --violet-600: #7C3AED;
  --amber-50: #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-200: #FDE68A;
  --amber-300: #FCD34D;
  --amber-400: #FBBF24;
  --amber-500: #F8B44E;
  --amber-600: #D97706;
  --emerald-50: #ECFDF5;
  --emerald-400: #34D399;
  --emerald-500: #10B981;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  overflow-x: hidden;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--teal-500);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  top: 0;
}

/* ---- NAV ---- */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 16px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(15,23,42,0.06); }
.logo { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--slate-800); display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--teal-300), var(--violet-400)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--slate-500); font-weight: 600; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--teal-400); }
.btn-nav { background: linear-gradient(135deg, var(--teal-400), var(--teal-300)); color: white !important; padding: 10px 24px; border-radius: 50px; font-weight: 700 !important; transition: transform 0.3s, box-shadow 0.3s !important; }
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,155,173,0.35); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 40px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167,139,250,0.2) 0%, transparent 70%);
  border-radius: 50%; animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -10%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(102,189,207,0.2) 0%, transparent 70%);
  border-radius: 50%; animation: float 10s ease-in-out infinite reverse;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }

.hero-content { max-width: 1100px; display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero-text { flex: 1; }
.hero-badge { display: inline-block; background: linear-gradient(135deg, var(--teal-50), var(--violet-100)); padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; color: var(--violet-600); margin-bottom: 20px; }
.hero h1 { font-family: 'Quicksand', sans-serif; font-size: 3.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: var(--slate-900); }
.hero h1 span { background: linear-gradient(135deg, var(--teal-400), var(--violet-500)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--slate-500); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { display: inline-block; text-decoration: none; background: linear-gradient(135deg, var(--teal-400), var(--teal-300)); color: white; border: none; padding: 16px 36px; border-radius: 50px; font-family: 'Nunito'; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(74,155,173,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(74,155,173,0.4); }
.btn-secondary { display: inline-block; text-decoration: none; background: white; color: var(--slate-700); border: 2px solid var(--slate-200); padding: 16px 36px; border-radius: 50px; font-family: 'Nunito'; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; }
.btn-secondary:hover { border-color: var(--teal-300); transform: translateY(-3px); }

/* ---- HERO IMAGE ---- */
.hero-visual { flex: 0 0 300px; position: relative; }
.hero-img-wrapper {
  animation: phoneFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 25px 50px rgba(15,23,42,0.15));
}
.hero-img-wrapper img {
  width: 280px; height: auto;
  border-radius: 32px;
  aspect-ratio: 1179 / 2556;
}
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--slate-50), var(--violet-50));
  border: 3px dashed var(--slate-200);
  border-radius: 32px;
  color: var(--slate-400);
  font-size: 0.85rem; font-weight: 600;
  text-align: center; padding: 20px;
}
.img-placeholder .placeholder-icon { font-size: 40px; margin-bottom: 10px; opacity: 0.5; }
.hero-placeholder { width: 260px; height: 520px; }
@keyframes phoneFloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(-2deg); } }

/* ---- FEATURES ---- */
.features {
  padding: 100px 40px;
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.section-badge { display: inline-block; background: var(--teal-50); color: var(--teal-500); padding: 6px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; }
.section-title { font-family: 'Quicksand'; font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; color: var(--slate-900); }
.section-title-left { text-align: left; }
.section-subtitle { font-size: 1.05rem; color: var(--slate-500); max-width: 550px; margin: 0 auto 50px; line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: white; border-radius: 24px; padding: 36px 28px;
  text-align: left; transition: all 0.4s;
  border: 1px solid rgba(0,0,0,0.04);
  cursor: default; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal-300), var(--violet-400));
  opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(15,23,42,0.08); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.feature-card h3 { font-family: 'Quicksand'; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--slate-800); }
.feature-card p { font-size: 0.9rem; color: var(--slate-500); line-height: 1.6; }

.icon-humor { background: linear-gradient(135deg, var(--amber-50), var(--amber-200)); }
.icon-diario { background: linear-gradient(135deg, var(--emerald-50), var(--emerald-400)); }
.icon-gratidao { background: linear-gradient(135deg, var(--amber-50), var(--amber-100)); }
.icon-auto { background: linear-gradient(135deg, var(--violet-50), var(--violet-200)); }
.icon-comer { background: linear-gradient(135deg, var(--teal-50), var(--teal-200)); }
.icon-respirar { background: linear-gradient(135deg, var(--violet-100), var(--violet-300)); }

/* ---- APP SCREENSHOTS GALLERY ---- */
.screenshots {
  padding: 100px 40px;
  background: linear-gradient(180deg, var(--slate-50) 0%, white 50%, var(--slate-50) 100%);
  text-align: center;
  overflow: hidden;
}
.screenshots-inner { max-width: 1100px; margin: 0 auto; }
.screenshots-grid {
  display: flex; gap: 32px; justify-content: center; align-items: flex-start;
  flex-wrap: wrap; margin-top: 50px;
}
.screenshot-item {
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.4s; cursor: default;
}
.screenshot-item:hover { transform: translateY(-10px); }
.screenshot-item:nth-child(even) { margin-top: 40px; }
.screenshot-frame {
  width: 220px; height: 455px;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(15,23,42,0.12), 0 6px 16px rgba(15,23,42,0.06);
  border: 3px solid var(--slate-200);
  background: white;
  position: relative;
}
.screenshot-frame img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  aspect-ratio: 1179 / 2556;
}
.screenshot-frame .img-placeholder {
  width: 100%; height: 100%;
  border-radius: 0; border: none;
}
.screenshot-label {
  margin-top: 16px;
  font-family: 'Quicksand'; font-weight: 700; font-size: 0.95rem;
  color: var(--slate-700);
  background: white; padding: 8px 20px; border-radius: 50px;
  box-shadow: 0 2px 10px rgba(15,23,42,0.06);
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 100px 40px;
  background: linear-gradient(180deg, white 0%, var(--teal-50) 100%);
}
.how-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.steps { display: flex; gap: 40px; margin-top: 50px; justify-content: center; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; max-width: 260px; text-align: center; position: relative; }
.step-number { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-400), var(--teal-300)); color: white; font-family: 'Quicksand'; font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: 0 6px 20px rgba(74,155,173,0.25); }
.step h3 { font-family: 'Quicksand'; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--slate-800); }
.step p { font-size: 0.9rem; color: var(--slate-500); line-height: 1.6; }
.step-connector { position: absolute; top: 30px; right: -24px; width: 24px; height: 2px; background: var(--teal-200); }

/* ---- BENEFITS ---- */
.benefits {
  padding: 100px 40px;
  max-width: 1100px; margin: 0 auto;
}
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.benefits-list { margin-top: 30px; }
.benefit-item { display: flex; gap: 16px; margin-bottom: 28px; }
.benefit-check { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald-500), var(--emerald-400)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; font-weight: 700; font-size: 1rem; }
.benefit-item h4 { font-family: 'Quicksand'; font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--slate-800); }
.benefit-item p { font-size: 0.88rem; color: var(--slate-500); line-height: 1.5; }
.benefits-visual {
  background: linear-gradient(160deg, var(--teal-50), var(--violet-100));
  border-radius: 32px; padding: 50px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 400px;
}
.big-emoji { font-size: 80px; margin-bottom: 20px; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.benefits-visual p { font-family: 'Quicksand'; font-weight: 700; font-size: 1.3rem; color: var(--slate-800); text-align: center; }

/* ---- TESTIMONIALS ---- */
.testimonials {
  padding: 100px 40px;
  background: white; text-align: center;
}
.testimonials-inner { max-width: 1000px; margin: 0 auto; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.testimonial-card {
  background: var(--slate-50); border-radius: 24px; padding: 32px;
  text-align: left; transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.stars { color: var(--amber-400); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: 0.92rem; color: var(--slate-500); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.author-name { font-weight: 700; font-size: 0.85rem; color: var(--slate-800); }
.author-role { font-size: 0.75rem; color: var(--slate-500); }

/* ---- CTA ---- */
.cta { padding: 100px 40px; text-align: center; }
.cta-box {
  max-width: 700px; margin: 0 auto;
  background: linear-gradient(160deg, var(--teal-500), var(--violet-600));
  border-radius: 32px; padding: 60px 50px;
  color: white; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.08); border-radius: 50%;
}
.cta-box h2 { font-family: 'Quicksand'; font-size: 2rem; font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-box p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 12px; position: relative; }
.cta-coming { display: inline-block; background: rgba(255,255,255,0.15); padding: 8px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; margin-bottom: 30px; position: relative; letter-spacing: 0.5px; }
.cta-contacts { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta { background: white; color: var(--teal-500); border: none; padding: 16px 32px; border-radius: 50px; font-family: 'Nunito'; font-size: 1rem; font-weight: 800; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-cta-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); padding: 16px 32px; border-radius: 50px; font-family: 'Nunito'; font-size: 1rem; font-weight: 800; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-cta-outline:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-3px); }

/* ---- FOOTER ---- */
footer {
  padding: 50px 40px 30px; text-align: center;
  border-top: 1px solid var(--slate-200);
}
.footer-logo { font-family: 'Quicksand'; font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; color: var(--slate-800); }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--slate-500); font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--teal-400); }
.footer-copy { font-size: 0.8rem; color: var(--slate-400); }

/* ---- ANIMATIONS ---- */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-content { flex-direction: column; text-align: center; gap: 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { margin: 0 auto 28px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { flex: 0 0 auto; }
  .hero-img-wrapper img { width: 220px; }
  .hero-placeholder { width: 220px; height: 440px; }
  .features-grid { grid-template-columns: 1fr; }
  .screenshots-grid { gap: 20px; }
  .screenshot-frame { width: 160px; height: 320px; }
  .screenshot-item:nth-child(even) { margin-top: 20px; }
  .steps { flex-direction: column; align-items: center; }
  .step-connector { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
}
