/* =============================================
   UmzugAI – Landing Page v1.1
   Full Redesign: SUSS Dark Cards + 3D Animations
   ============================================= */

/* === CSS VARIABLES === */
:root {
  --bg: #EFF4EF;
  --bg-2: #E8F0E8;
  --surface: #16231A;
  --surface-2: #1A2C21;
  --border: rgba(45, 92, 64, 0.12);
  --border-dark: rgba(255, 255, 255, 0.08);
  --primary: #2D5C40;
  --lime: #86EF6E;
  --lime-glow: rgba(134, 239, 110, 0.25);
  --text-1: #0F1F15;
  --text-2: #3A5446;
  --text-3: #6E8276;
  --text-on-dark: #FFFFFF;
  --text-on-dark-2: rgba(255, 255, 255, 0.65);
  --gold: #F59E0B;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === UTILITY === */
.gradient-text {
  background: linear-gradient(135deg, var(--lime), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--lime);
  background: var(--surface); border: 1px solid var(--border-dark);
  padding: 5px 14px; border-radius: 99px; margin-bottom: 20px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === KEYFRAME ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--lime-glow), 0 0 40px transparent; }
  50% { box-shadow: 0 0 30px var(--lime-glow), 0 0 60px rgba(134,239,110,0.15); }
}
@keyframes tilt3D {
  0% { transform: rotateY(-8deg) rotateX(3deg); }
  25% { transform: rotateY(5deg) rotateX(-2deg); }
  50% { transform: rotateY(8deg) rotateX(3deg); }
  75% { transform: rotateY(-5deg) rotateX(-2deg); }
  100% { transform: rotateY(-8deg) rotateX(3deg); }
}
@keyframes floatUp {
  0% { transform: translateY(100px); opacity: 0; }
  20% { opacity: 0.25; }
  80% { opacity: 0.1; }
  100% { transform: translateY(-300px); opacity: 0; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.1); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes cardPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

.fade-up { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Intersection Observer reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* === NAV === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}
#navbar.scrolled {
  background: rgba(239, 244, 239, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.nav-logo-icon { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 0.9rem; color: var(--text-2); }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--surface); color: var(--lime) !important;
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nav-cta:hover { box-shadow: 0 0 20px var(--lime-glow); transform: translateY(-1px); }

/* Scroll progress */
#scroll-progress-bar {
  position: fixed; top: 64px; left: 0; right: 0;
  height: 2px; background: rgba(45, 92, 64, 0.1); z-index: 99;
}
#scroll-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--lime));
  width: 0%; transition: width 0.05s linear;
  box-shadow: 0 0 8px var(--lime-glow);
}

/* === HERO === */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
  perspective: 800px;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #EFF4EF 0%, #d4e8d4 25%, #EFF4EF 50%, #c8e0c8 75%, #EFF4EF 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  z-index: 0;
}

.hero-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 800px; margin: 0 auto;
  position: relative; z-index: 2;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.hero-title .lime-highlight {
  color: var(--lime);
  text-shadow: 0 0 30px rgba(134, 239, 110, 0.3);
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-2);
  line-height: 1.7; margin-bottom: 32px; max-width: 500px;
}

/* Tab switcher */
.hero-tabs {
  display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; justify-content: center;
}
.hero-tab {
  background: rgba(22, 35, 26, 0.08); color: var(--text-2);
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; font-family: inherit;
  transition: all 0.3s ease;
}
.hero-tab.active {
  background: var(--surface); color: var(--lime);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.hero-tab:hover:not(.active) { background: rgba(22, 35, 26, 0.15); }

/* Phone mockup with 3D tilt */
.hero-phone {
  width: 260px; position: relative;
  transform-style: preserve-3d;
  animation: tilt3D 5s ease-in-out infinite;
  margin-bottom: 32px;
}
.hero-phone-frame {
  background: var(--surface); border-radius: 36px;
  border: 3px solid rgba(134, 239, 110, 0.15);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 50px rgba(134,239,110,0.08);
}
.hero-phone-frame img {
  width: 100%; height: auto; display: block;
  transition: opacity 0.4s ease;
}

/* App Store CTA */
.hero-cta { margin-top: 8px; }
.app-store-badge {
  display: inline-block; transition: transform 0.2s, box-shadow 0.2s;
  animation: glowPulse 3s ease infinite;
  border-radius: var(--radius-sm);
}
.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--lime-glow);
}
.app-store-badge img { height: 52px; width: auto; }

/* Floating particles */
.particle {
  position: absolute; border-radius: 50%;
  background: var(--primary); pointer-events: none;
  z-index: 1;
}

/* Floating decorative circles */
.float-circle {
  position: absolute; border-radius: 50%; z-index: 1;
  background: rgba(134, 239, 110, 0.06);
  pointer-events: none;
}

/* === FEATURE CARDS === */
.features-section { padding: 40px 24px; }

.feature-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 48px;
  max-width: 1100px; margin: 0 auto 32px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.feature-card:hover {
  transform: scale(1.005);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
.feature-card.reverse { direction: rtl; }
.feature-card.reverse > * { direction: ltr; }

.feature-label {
  color: var(--lime); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-on-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-on-dark-2);
  font-size: 1rem; line-height: 1.7; margin-bottom: 20px;
}
.feature-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.feature-badge {
  background: rgba(134, 239, 110, 0.1); color: var(--lime);
  padding: 5px 12px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 500;
}

/* Phone mockup inside feature cards */
.feature-phones {
  display: flex; gap: 16px; justify-content: center; align-items: flex-start;
}
.feature-phone {
  background: var(--surface-2); border-radius: 28px;
  border: 2px solid rgba(134, 239, 110, 0.1);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 30px rgba(134,239,110,0.05);
  transition: transform 0.3s ease;
}
.feature-phone:hover { transform: translateY(-4px); }
.feature-phone img { width: 100%; height: auto; display: block; }
.feature-phone.primary { width: 200px; }
.feature-phone.secondary { width: 160px; margin-top: 32px; opacity: 0.85; }

/* === EXTRAS GRID === */
.extras-section {
  padding: 80px 24px; text-align: center;
}
.extras-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; margin-bottom: 8px; color: var(--text-1);
}
.extras-section .extras-sub {
  color: var(--text-2); font-size: 1.05rem; margin-bottom: 48px;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px; max-width: 1100px; margin: 0 auto;
}
.extra-card {
  background: var(--surface); border-radius: var(--radius-md);
  padding: 24px 20px; text-align: left;
  border: 1px solid var(--border-dark);
  transition: border-color 0.3s, transform 0.3s;
}
.extra-card:hover {
  border-color: rgba(134, 239, 110, 0.2);
  transform: translateY(-2px);
}
.extra-screenshot {
  border-radius: 16px; overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(134, 239, 110, 0.08);
}
.extra-screenshot img {
  width: 100%; height: auto; display: block;
}
.extra-card h4 {
  color: var(--text-on-dark); font-size: 0.95rem;
  font-weight: 700; margin-bottom: 6px;
}
.extra-card p {
  color: var(--text-on-dark-2); font-size: 0.82rem; line-height: 1.5;
}

/* === SOCIAL PROOF === */
#social-proof {
  padding: 80px 24px; text-align: center;
}
.proof-card {
  background: var(--surface); border-radius: 24px;
  padding: 40px; max-width: 600px; margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.proof-metrics {
  display: flex; justify-content: center; gap: 32px; margin-bottom: 24px;
}
.proof-metric { text-align: center; }
.proof-metric-value {
  color: var(--lime); font-size: 1.8rem; font-weight: 800;
}
.proof-metric-label {
  color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-top: 2px;
}
.proof-divider {
  width: 1px; background: rgba(255,255,255,0.1); align-self: stretch;
}
.proof-separator {
  width: 60px; height: 1px;
  background: rgba(134, 239, 110, 0.2);
  margin: 0 auto 24px;
}
.proof-stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.proof-text {
  color: var(--text-on-dark-2); font-size: 0.95rem;
  font-style: italic; line-height: 1.6; margin-bottom: 12px;
  max-width: 400px; margin-left: auto; margin-right: auto;
}
.proof-author {
  color: rgba(255,255,255,0.4); font-size: 0.82rem;
}

/* === CTA DOWNLOAD === */
#download-cta {
  padding: 100px 24px; text-align: center;
  background: var(--surface); position: relative; overflow: hidden;
}
#download-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(134,239,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}
#download-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 12px;
  color: var(--text-on-dark); letter-spacing: -0.02em;
  position: relative; z-index: 2;
}
#download-cta .cta-sub {
  color: var(--text-on-dark-2); font-size: 1.05rem;
  margin-bottom: 36px; position: relative; z-index: 2;
}
#download-cta .app-store-badge { position: relative; z-index: 2; }

/* === FOOTER === */
footer {
  padding: 40px 24px; border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-1); }
.footer-logo img { height: 28px; width: auto; object-fit: contain; }
.footer-links-row { display: flex; gap: 24px; }
.footer-links-row a { font-size: 0.85rem; color: var(--text-3); transition: color 0.2s; }
.footer-links-row a:hover { color: var(--text-1); }
.footer-copy { font-size: 0.78rem; color: var(--text-3); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-phone { width: 200px; }
  .hero-tabs { gap: 6px; }
  .hero-tab { padding: 6px 14px; font-size: 0.82rem; }
  .feature-card {
    grid-template-columns: 1fr; padding: 32px 24px; gap: 32px;
  }
  .feature-card.reverse { direction: ltr; }
  .feature-phones { justify-content: center; }
  .feature-phone.primary { width: 160px; }
  .feature-phone.secondary { width: 120px; margin-top: 20px; }
  .nav-links { display: none; }
  .extras-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-metrics { gap: 20px; }
  .proof-metric-value { font-size: 1.4rem; }
  footer { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-phone { width: 180px; }
  .extras-grid { grid-template-columns: 1fr 1fr; }
  .proof-metrics { flex-direction: column; gap: 16px; }
  .proof-divider { width: 40px; height: 1px; align-self: auto; }
}

/* === FOCUS VISIBLE === */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--lime); outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  .fade-up { animation: none; opacity: 1; }
}
