/* ============================================
   ATITUDE PREVENTIVA — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --green: #1DB954;
  --green-dark: #15923f;
  --green-light: #d1fae5;
  --dark: #0a0f1e;
  --dark-2: #111827;
  --dark-3: #1f2937;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

/* ============================================ RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { font-family: 'Inter', Arial, sans-serif; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================ UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-dark { background: var(--dark-2); color: var(--white); }
.section-gray { background: var(--gray-light); }
.text-center { text-align: center; }
.text-green { color: var(--green); }

.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-dark .section-label {
  background: rgba(29,185,84,0.15);
  color: var(--green);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.section-dark .section-title { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  line-height: 1.7;
}
.section-dark .section-subtitle { color: #94a3b8; }

/* ============================================ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(29,185,84,0.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(29,185,84,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
.btn-outline-green {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline-green:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--dark-3);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ============================================ NAVBAR */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  padding: 0 24px;
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-logo span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.nav-links a:hover { background: var(--gray-light); color: var(--green); }
.nav-links a.active { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 24px 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  z-index: 999;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul li { border-bottom: 1px solid var(--border); }
.nav-mobile ul li a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.nav-mobile .nav-mobile-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.nav-mobile .nav-mobile-cta .btn { justify-content: center; }

/* ============================================ HERO */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #0d2212 50%, #0a1628 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(29,185,84,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29,185,84,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(29,185,84,0.12);
  border: 1px solid rgba(29,185,84,0.3);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title .highlight {
  color: var(--green);
  position: relative;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; gap: 36px; }
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: #64748b; margin-top: 4px; }

/* hero image grid */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-phone-stack {
  position: relative;
  height: 520px;
  width: 280px;
  margin: 0 auto;
}
.hero-phone {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  border: 3px solid rgba(255,255,255,0.1);
}
.hero-phone-main {
  width: 220px;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 2;
}
.hero-phone-main img { width: 100%; height: auto; }
.hero-phone-side {
  width: 170px;
  right: -20px;
  top: 120px;
  z-index: 1;
  opacity: 0.75;
  transform: rotate(6deg);
}
.hero-phone-side img { width: 100%; height: auto; }

/* ============================================ SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 52px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-card .btn { font-size: 0.85rem; padding: 10px 20px; }

/* ============================================ APP SECTION */
.app-section {
  background: var(--dark-2);
  padding: 100px 0;
  overflow: hidden;
}
.app-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.app-feature-list { list-style: none; margin: 28px 0 36px; }
.app-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
  color: #cbd5e1;
}
.app-feature-list li:last-child { border-bottom: none; }
.app-feature-icon {
  width: 28px;
  height: 28px;
  background: rgba(29,185,84,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.app-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.app-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 20px;
  color: var(--white);
  font-size: 0.82rem;
  transition: all var(--transition);
}
.app-play-badge:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.app-play-badge img { width: 22px; height: 22px; }
.app-play-badge div .top { font-size: 0.7rem; color: #94a3b8; }
.app-play-badge div .bottom { font-size: 0.88rem; font-weight: 600; }

/* phone screenshots carousel */
.app-screenshots {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.app-screenshot-main {
  width: 200px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  border: 3px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.app-screenshot-main img { width: 100%; height: auto; }
.app-screenshot-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-screenshot-thumb {
  width: 140px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.06);
  opacity: 0.8;
  transition: opacity var(--transition);
}
.app-screenshot-thumb:hover { opacity: 1; }
.app-screenshot-thumb img { width: 100%; height: auto; }

/* ============================================ BENEFITS */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 52px;
}
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.benefit-card:hover { transform: translateY(-4px); }
.benefit-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.benefit-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.benefit-card p { font-size: 0.9rem; color: var(--text-light); }

/* ============================================ ABOUT / OWNER */
.owner-section { padding: 88px 0; background: var(--white); }
.owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.owner-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.owner-photo img { width: 100%; height: 100%; object-fit: cover; }
.owner-creds { list-style: none; margin: 20px 0; }
.owner-creds li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text);
}
.owner-creds li:last-child { border-bottom: none; }
.owner-creds li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.crea-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 20px;
}

/* ============================================ FAQ */
.faq-section { padding: 88px 0; background: var(--gray-light); }
.faq-list { max-width: 760px; margin: 48px auto 0; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--green); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all var(--transition);
}
.faq-item.open .faq-chevron { background: var(--green); color: white; transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================ CONTACT / CTA */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a1628, #0d2212);
  text-align: center;
}
.cta-section .section-title { color: var(--white); margin-bottom: 12px; }
.cta-section .section-subtitle { color: #94a3b8; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================ FOOTER */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .logo-footer {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.65; max-width: 280px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--green); transform: translateY(-2px); }
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; color: #64748b; transition: color var(--transition); }
.footer-links a:hover { color: var(--green); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.footer-contact-item a { color: #64748b; }
.footer-contact-item a:hover { color: var(--green); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #475569; }
.footer-bottom a:hover { color: var(--green); }

/* ============================================ LOGO / LEGACY */
.logo { max-width: 120px; height: auto; flex-shrink: 0; border-radius: 50%; }
.logo-footer { max-width: 150px; border-radius: 50%; }

/* ============================================ ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; }
.anim.visible { animation: fadeUp 0.6s ease forwards; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

/* ============================================ RESPONSIVE */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-phone-stack { height: 360px; width: 220px; }
  .hero-phone-main { width: 180px; }
  .hero-phone-side { width: 140px; }
  .app-inner { grid-template-columns: 1fr; gap: 48px; }
  .app-screenshots { order: -1; }
  .owner-grid { grid-template-columns: 1fr; }
  .owner-photo { max-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { min-height: auto; padding: 100px 0 64px; }
  .hero-phone-stack { height: 300px; }
  .hero-phone-main { width: 160px; }
  .hero-phone-side { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .app-screenshots { flex-direction: column; align-items: center; }
  .app-screenshot-side { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .cta-actions { flex-direction: column; align-items: center; }
}
