/* ============================================
   CAVALO.APP — Landing Page
   ============================================ */

:root {
  --brown-900: #2d1b0e;
  --brown-700: #5a3e2b;
  --brown-500: #8b4513;
  --brown-300: #a0764a;
  --gold: #daa520;
  --gold-light: #f5d78e;
  --cream: #faf6f0;
  --cream-bg: #f5f0e8;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #666;
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream-bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HERO ========== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--cream-bg) 0%, #ede4d6 100%);
  padding: 80px 0;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content { flex: 1; }

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-900);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

h1 {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 20px;
}

.cavalo { color: var(--brown-500); }
.dot { color: var(--gold); }

.subtitle {
  font-size: 22px;
  color: var(--brown-700);
  line-height: 1.4;
  margin-bottom: 12px;
}

.desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* ========== FORM ========== */

.form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  flex-wrap: wrap;
}

.form-center {
  margin: 0 auto;
  justify-content: center;
}

.form input {
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: border 0.2s;
  outline: none;
}

.form input:focus {
  border-color: var(--gold);
}

.form button {
  padding: 14px 28px;
  background: var(--brown-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.form button:hover {
  background: var(--brown-700);
  transform: translateY(-1px);
}

.form-note {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 10px;
  width: 100%;
}

.form-note.success {
  color: #2e7d32;
  font-weight: 500;
}

/* ========== PHONE MOCKUP ========== */

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

.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--brown-900);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--cream);
  border-radius: 32px;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0d6c8;
}

.phone-name {
  font-weight: 700;
  color: var(--brown-500);
  font-size: 16px;
}

.phone-icon { font-size: 18px; }

.phone-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.card-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.card-price {
  font-size: 12px;
  color: var(--brown-500);
  font-weight: 500;
}

/* ========== CONCEPT ========== */

.concept {
  padding: 100px 0;
  background: var(--white);
}

.concept h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--brown-900);
  margin-bottom: 48px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature .icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brown-700);
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== TIMELINE ========== */

.timeline {
  padding: 100px 0;
  background: var(--cream-bg);
}

.timeline h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--brown-900);
  margin-bottom: 48px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
}

.step-num {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.step.done .step-num {
  background: var(--gold);
  color: var(--brown-900);
}

.step.current .step-num {
  background: var(--brown-500);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--gold-light);
}

.step .step-num {
  background: #ddd;
  color: #999;
}

.step-text strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.step-text span {
  font-size: 13px;
  color: var(--text-light);
}

.step.current .step-text strong { color: var(--brown-500); }
.step.done .step-text strong { color: var(--brown-700); }

/* ========== CTA ========== */

.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--brown-900) 0%, var(--brown-700) 100%);
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.cta .form button {
  background: var(--gold);
  color: var(--brown-900);
}

.cta .form button:hover {
  background: var(--gold-light);
}

.cta .form input {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

.cta .form input::placeholder { color: rgba(255,255,255,0.5); }
.cta .form input:focus { border-color: var(--gold); }
.cta .form-note { color: rgba(255,255,255,0.5); }

/* ========== FOOTER ========== */

footer {
  padding: 40px 0;
  background: var(--brown-900);
  text-align: center;
}

.footer-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.footer-contact {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ========== TOAST ========== */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--brown-900);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 860px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content { order: 2; }
  .hero-visual { order: 1; }
  h1 { font-size: 52px; }
  .subtitle { font-size: 18px; }
  .form { justify-content: center; }
  .form input { min-width: 140px; }

  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 100%; width: 100%; }
}

@media (max-width: 480px) {
  h1 { font-size: 40px; }
  .hero-visual { flex: 0 0 auto; }
  .phone-frame { width: 240px; height: 480px; }
  .features { grid-template-columns: 1fr; }
  .cta h2 { font-size: 28px; }
}
