/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #25D366;
  --green-dark: #128C7E;
  --green-light: #DCF8C6;
  --teal: #075E54;
  --bg: #0a0a0f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --text: #f0f0f5;
  --text-muted: #8b8b9e;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.25rem;
}
.nav-logo { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font);
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3), 0 0 0 0 rgba(37,211,102,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4), 0 0 0 4px rgba(37,211,102,0.1);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

/* Animated background */
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0; overflow: hidden;
}
.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--green);
  top: -200px; right: -100px;
  animation: orb-float 20s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--green-dark);
  bottom: -100px; left: -100px;
  animation: orb-float 25s ease-in-out infinite reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  background: #4ade80;
  top: 40%; left: 50%;
  animation: orb-float 18s ease-in-out infinite 5s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.02); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

/* Hero Text */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 12px;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--green), #4ade80, var(--green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.typed-container { display: inline-block; min-width: 200px; }
.cursor {
  display: inline-block;
  -webkit-text-fill-color: var(--green);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-note { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Phone Mockup ===== */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone-mockup {
  width: 320px;
  background: #111118;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 25px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.wa-header {
  background: var(--teal);
  padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.wa-header-left { display: flex; align-items: center; gap: 12px; }
.wa-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
}
.wa-name { font-size: 0.875rem; font-weight: 600; color: #fff; }
.wa-status { font-size: 0.7rem; color: rgba(255,255,255,0.7); }

.wa-chat {
  height: 320px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
  background: #0b0b12;
  background-image:
    radial-gradient(rgba(37,211,102,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.wa-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  animation: msg-in 0.4s ease-out forwards;
}
.wa-msg.incoming {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.wa-msg.outgoing {
  background: linear-gradient(135deg, rgba(37,211,102,0.2), rgba(18,140,126,0.2));
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.wa-msg .msg-time {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}
.wa-msg .ai-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.6rem;
  color: var(--green);
  margin-top: 4px;
}
.ai-tag svg { width: 10px; height: 10px; }

@keyframes msg-in {
  to { opacity: 1; transform: translateY(0); }
}

.wa-input {
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CRM Card ===== */
.crm-card {
  position: absolute;
  right: -30px; top: 50%;
  transform: translateY(-50%) translateX(20px);
  width: 240px;
  background: rgba(17,17,24,0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}
.crm-card.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.crm-card-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(37,211,102,0.05);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 600;
  color: var(--green);
}
.crm-card-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.crm-field {
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateX(10px);
  transition: all 0.4s ease-out;
}
.crm-field.visible { opacity: 1; transform: translateX(0); }
.crm-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.crm-value { font-size: 0.8rem; font-weight: 500; color: var(--text); }
.score-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  background: rgba(37,211,102,0.15);
  border-radius: 6px;
  color: var(--green) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  width: fit-content;
}

.crm-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.crm-ai-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.65rem; color: var(--text-muted);
}
.pulse-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ===== Hero Metrics ===== */
.hero-metrics {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 40px;
  margin-top: 60px;
  padding: 24px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.metric { text-align: center; }
.metric-value {
  font-size: 2rem; font-weight: 800;
  color: var(--green);
}
.metric-suffix { font-size: 1.5rem; font-weight: 800; color: var(--green); }
.metric-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.metric-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== Animations ===== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Features Section ===== */
.features { padding: 120px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.15);
  border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

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

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(37,211,102,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-icon {
  width: 48px; height: 48px;
  background: rgba(37,211,102,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--green);
}
.feature-icon svg { width: 24px; height: 24px; }
.icon-teal { background: rgba(20,184,166,0.1); color: #14b8a6; }
.icon-amber { background: rgba(245,158,11,0.1); color: #f59e0b; }
.icon-violet { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.icon-rose { background: rgba(244,63,94,0.1); color: #f43f5e; }
.icon-emerald { background: rgba(16,185,129,0.1); color: #10b981; }

.feature-card h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.6;
}

/* ===== How it Works ===== */
.how-it-works {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(37,211,102,0.02), transparent);
}

.steps-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 32px;
}
.step {
  flex: 1; max-width: 280px;
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-number {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; color: #fff;
  margin: 0 auto 20px;
}
.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.step-arrow { color: var(--green); flex-shrink: 0; }

/* ===== CTA Section ===== */
.cta-section { padding: 80px 0 120px; }

.cta-card {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.1;
}
.cta-orb-1 { width: 400px; height: 400px; background: var(--green); top: -100px; right: -100px; }
.cta-orb-2 { width: 300px; height: 300px; background: var(--green-dark); bottom: -100px; left: -100px; }

.cta-card h2 {
  position: relative;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-card > p {
  position: relative;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta-form {
  position: relative;
  display: flex; gap: 12px;
  max-width: 480px; margin: 0 auto;
  justify-content: center;
}
.cta-form input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.cta-form input:focus { border-color: var(--green); }
.cta-form input::placeholder { color: var(--text-muted); }

.cta-note {
  position: relative;
  font-size: 0.8rem; color: var(--text-muted);
  margin-top: 16px;
}

/* Success state */
.cta-success {
  position: relative;
  display: none;
  padding: 20px;
  color: var(--green);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 8px;
}
.footer-logo { width: 28px; height: 28px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-cta { align-items: center; }
  .hero-visual { justify-content: center; }
  .crm-card { right: -20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 100px 16px 40px; min-height: auto; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-metrics {
    flex-direction: column; gap: 20px;
    padding: 24px;
  }
  .metric-divider { width: 40px; height: 1px; }
  .phone-mockup { width: 280px; }
  .wa-chat { height: 260px; }
  .crm-card {
    position: relative; right: auto; top: auto;
    transform: none; width: 100%; max-width: 320px;
    margin-top: 20px;
    opacity: 0;
  }
  .crm-card.visible { transform: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .cta-form { flex-direction: column; }
  .cta-card { padding: 48px 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .phone-mockup { width: 260px; }
}
