/* ═══════════════════════════════════════════════════════════
   HOMIE LANDING PAGE — "Warm Confidence" Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  --teal-50: #EDFCF9;
  --teal-100: #D2F7F0;
  --teal-400: #3ECAB8;
  --teal-500: #1BA896;
  --teal-600: #12877A;
  --teal-700: #0F6C63;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --rose-500: #F43F5E;
  --indigo-500: #6366F1;
  --stone-50: #FAFAF9;
  --stone-100: #F5F5F4;
  --stone-200: #E7E5E4;
  --stone-300: #D6D3D1;
  --stone-400: #A8A29E;
  --stone-500: #78716C;
  --stone-600: #57534E;
  --stone-700: #44403C;
  --stone-800: #292524;
  --stone-900: #1C1917;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-w: 1120px;
  --space-section: clamp(80px, 10vw, 140px);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--stone-900);
  background: var(--stone-50);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Reveal Animations ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 12px;
  transition: all 0.2s ease; cursor: pointer;
  border: none; text-decoration: none;
}
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--teal-500); color: #fff;
  box-shadow: 0 2px 12px rgba(27, 168, 150, 0.3);
}
.btn-primary:hover {
  background: var(--teal-600);
  box-shadow: 0 4px 20px rgba(27, 168, 150, 0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--stone-600);
  border: 1.5px solid var(--stone-200);
}
.btn-ghost:hover { background: var(--stone-100); border-color: var(--stone-300); }
.btn-outline {
  background: transparent; color: var(--stone-700);
  border: 1.5px solid var(--stone-200);
}
.btn-outline:hover { background: var(--stone-100); }

/* ── Navigation ─────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px;
  transition: all 0.3s ease;
}
.nav--scrolled {
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--stone-200);
  padding: 12px 24px;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-icon {
  font-size: 24px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-500); color: #fff; border-radius: 10px;
}
.nav-logo-text { font-family: var(--font-display); font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a { color: var(--stone-500); transition: color 0.2s; }
.nav-links a:hover { color: var(--stone-900); }
.nav-link-login { font-weight: 500; }
.nav-btn {
  background: var(--teal-500); color: #fff !important;
  padding: 10px 20px; border-radius: 10px; font-weight: 600;
  transition: all 0.2s;
}
.nav-btn:hover { background: var(--teal-600); transform: translateY(-1px); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 140px 24px var(--space-section);
  overflow: hidden;
}
.hero-bg-grain {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, var(--teal-50) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(251, 191, 36, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-50); color: var(--teal-700);
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-500);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--stone-900);
}
.hero-title em {
  font-style: italic;
  color: var(--teal-500);
}
.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--stone-500);
  max-width: 480px;
  margin-top: 20px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--stone-400); margin-top: 16px; }

/* ── Phone Mockup ───────────────────────────────────────── */

.hero-visual { display: flex; justify-content: center; }

.phone-mockup {
  width: 280px; height: 560px;
  background: var(--stone-900);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 32px 64px rgba(28, 25, 23, 0.2),
              0 8px 24px rgba(28, 25, 23, 0.1),
              inset 0 0 0 1px rgba(255,255,255,0.08);
  animation: phoneFloat 6s ease-in-out infinite;
  position: relative;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}
.phone-notch {
  width: 100px; height: 28px;
  background: var(--stone-900);
  border-radius: 0 0 16px 16px;
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--stone-50);
  border-radius: 26px;
  padding: 48px 16px 16px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-header {
  background: var(--teal-500);
  margin: -48px -16px 8px;
  padding: 52px 20px 20px;
  border-radius: 26px 26px 20px 20px;
  color: #fff;
}
.phone-header-label { display: block; font-size: 12px; opacity: 0.7; }
.phone-header-value { display: block; font-size: 28px; font-weight: 700; margin-top: 4px; }
.phone-header-sub { display: block; font-size: 11px; opacity: 0.7; margin-top: 2px; }

.phone-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 12px; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  animation: cardSlideIn 0.6s ease both;
}
.phone-card:nth-child(2) { animation-delay: 0.8s; }
.phone-card:nth-child(3) { animation-delay: 1.2s; }
.phone-card:nth-child(4) { animation-delay: 1.6s; }
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.phone-card-icon { font-size: 20px; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.phone-card-icon--teal { background: var(--teal-50); }
.phone-card-icon--amber { background: #FEF3C7; }
.phone-card-icon--violet { background: #EDE9FE; }
.phone-card-text { flex: 1; }
.phone-card-text strong { display: block; font-size: 13px; }
.phone-card-text span { display: block; font-size: 11px; color: var(--stone-400); }

.phone-capture-btn {
  margin-top: auto; text-align: center;
  background: var(--teal-500); color: #fff;
  padding: 10px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
}

/* ── How It Works ───────────────────────────────────────── */

.how {
  padding: var(--space-section) 24px;
  background: #fff;
}
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 12px;
}
.how-steps {
  display: flex; align-items: flex-start; justify-content: center; gap: 24px;
}
.how-step {
  flex: 1; max-width: 300px; text-align: center;
  padding: 32px 24px;
  background: var(--stone-50);
  border-radius: 20px;
  position: relative;
}
.how-step-num {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--teal-500); color: #fff;
  border-radius: 50%; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.how-step-icon { font-size: 36px; margin-bottom: 16px; }
.how-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--stone-500); line-height: 1.6; }
.how-step-arrow { font-size: 28px; color: var(--stone-300); padding-top: 60px; }

/* ── Features ───────────────────────────────────────────── */

.features {
  padding: var(--space-section) 24px;
}
.features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.feature-card {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--stone-100);
  transition: all 0.3s ease;
  position: relative;
}
.feature-card:hover {
  border-color: var(--stone-200);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon--teal { background: var(--teal-50); color: var(--teal-500); }
.feature-icon--amber { background: #FEF3C7; color: var(--amber-600); }
.feature-icon--rose { background: #FFE4E6; color: var(--rose-500); }
.feature-icon--indigo { background: #E0E7FF; color: var(--indigo-500); }
.feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--stone-500); line-height: 1.6; }
.feature-tag {
  display: inline-block; margin-top: 16px;
  font-size: 12px; font-weight: 600; color: var(--teal-600);
  background: var(--teal-50); padding: 4px 10px; border-radius: 6px;
}

/* ── Pricing ────────────────────────────────────────────── */

.pricing {
  padding: var(--space-section) 24px;
  background: #fff;
}
.pricing-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 740px; margin: 0 auto;
}
.pricing-card {
  padding: 36px;
  border-radius: 24px;
  border: 1px solid var(--stone-200);
  position: relative;
}
.pricing-card--premium {
  border: 2px solid var(--teal-500);
  box-shadow: 0 8px 32px rgba(27, 168, 150, 0.12);
}
.pricing-card-badge {
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal-500); color: #fff;
  padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
}
.pricing-card-header { margin-bottom: 24px; }
.pricing-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; }
.pricing-amount { font-family: var(--font-display); font-size: 48px; }
.pricing-period { font-size: 15px; color: var(--stone-400); }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px;
  border-bottom: 1px solid var(--stone-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li.muted { color: var(--stone-400); }
.check { color: var(--teal-500); font-weight: 700; width: 18px; }
.x { color: var(--stone-300); width: 18px; text-align: center; }
.pricing-card--premium .btn-primary { font-size: 16px; padding: 14px; }

/* ── Privacy ────────────────────────────────────────────── */

.privacy {
  padding: var(--space-section) 24px;
}
.privacy-card {
  background: var(--stone-900);
  color: #fff;
  padding: 56px;
  border-radius: 24px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.privacy-icon { font-size: 40px; margin-bottom: 20px; }
.privacy-card h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 12px;
}
.privacy-card p { font-size: 16px; color: var(--stone-400); line-height: 1.7; max-width: 500px; margin: 0 auto; }

/* ── CTA ────────────────────────────────────────────────── */

.cta {
  padding: var(--space-section) 24px;
  background: #fff;
}
.cta-content { text-align: center; }
.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}
.cta-content p { font-size: 17px; color: var(--stone-500); max-width: 440px; margin: 0 auto 28px; }
.cta-actions { display: flex; justify-content: center; }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  padding: 64px 24px 24px;
  background: var(--stone-50);
  border-top: 1px solid var(--stone-200);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px; margin-bottom: 48px;
}
.footer-tagline { font-size: 14px; color: var(--stone-400); margin-top: 8px; }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--stone-400); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--stone-500); transition: color 0.2s; }
.footer-col a:hover { color: var(--stone-900); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--stone-200);
}
.footer-bottom p { font-size: 13px; color: var(--stone-400); }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 20px auto 0; }
  .hero-actions { justify-content: center; }
  .hero-note { text-align: center; }
  .hero-visual { margin-top: 40px; }
  .phone-mockup { width: 240px; height: 480px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; }
  .how-steps { flex-direction: column; align-items: center; }
  .how-step-arrow { display: none; }
  .nav-links a:not(.nav-btn):not(.nav-link-login) { display: none; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { gap: 40px; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 16px 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { text-align: center; justify-content: center; }
  .privacy-card { padding: 32px 24px; }
}
