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

:root {
  --bg: #0C1A10;
  --bg-card: #122018;
  --bg-card-hover: #173022;
  --surface: #1A3D28;
  --accent: #E8A838;
  --accent-dim: #C4891A;
  --green: #3DBA6C;
  --green-dim: #2A8A4D;
  --text: #F0EDE6;
  --text-muted: #8A9E8C;
  --text-dim: #5A6E5E;
  --border: rgba(61, 186, 108, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* === LAYOUT === */
section { padding: 80px 32px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0 64px;
  align-items: center;
  padding: 80px 64px 80px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: -16px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--text);
  margin-bottom: 24px;
}

.lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta { grid-column: 1 / -1; }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.cta-link:hover { gap: 12px; }

/* Phone mockup */
.phone-frame {
  width: 280px;
  background: #1A2832;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  justify-self: end;
}

.phone-notch {
  width: 80px;
  height: 24px;
  background: #0C151C;
  border-radius: 20px;
  margin: 0 auto 8px;
}

.chat-window {
  background: #0D1A12;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 420px;
}

.chat-header {
  background: #142218;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bg);
}

.chat-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-status {
  font-size: 0.75rem;
  color: var(--green);
}

.chat-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.msg { display: flex; flex-direction: column; }
.msg.received { align-items: flex-start; }
.msg.sent { align-items: flex-end; }

.bubble {
  max-width: 75%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.received .bubble {
  background: var(--surface);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.sent .bubble {
  background: var(--accent);
  border-bottom-right-radius: 4px;
  color: var(--bg);
  font-weight: 500;
}

.invoice-card {
  margin-top: 6px;
  background: var(--bg-card);
  border: 1px solid var(--green-dim);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 85%;
}

.invoice-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.invoice-amount {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.invoice-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.invoice-status.paid { color: var(--green); }

.chat-input {
  padding: 10px 12px;
  background: #142218;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.input-field {
  flex: 1;
  background: var(--bg);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.send-btn {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === FEATURES === */
.features {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 56px;
  max-width: 600px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1100px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(61, 186, 108, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === HOW IT WORKS === */
.howitworks { text-align: center; }

.howitworks h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 56px;
}

.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 0 20px;
}

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-divider {
  color: var(--text-dim);
  flex-shrink: 0;
}

code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--accent);
}

/* === PRICING === */
.pricing { text-align: center; }

.pricing h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 48px;
}

.pricing-card {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  text-align: left;
  max-width: 420px;
  position: relative;
}

.pricing-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}

.currency {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features svg { color: var(--green); flex-shrink: 0; }

.pricing-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* === CLOSING === */
.closing {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 24px;
  line-height: 1.2;
}

.closing > p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 64px;
  line-height: 1.7;
}

.closing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat { text-align: center; padding: 0 40px; }

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 160px;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* === FOOTER === */
footer {
  padding: 56px 64px 40px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col { display: flex; flex-direction: column; gap: 8px; }

.footer-col-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 28px;
    text-align: center;
  }

  .hero h1 { font-size: 2.2rem; }
  .lede { max-width: 100%; }

  .phone-frame {
    width: 240px;
    justify-self: center;
  }

  .chat-window { height: 340px; }

  .steps-row { flex-direction: column; gap: 32px; }
  .step-divider { display: none; }

  .closing-stats { flex-direction: column; gap: 32px; }
  .stat-divider { display: none; }

  footer { grid-template-columns: 1fr; padding: 40px 28px 32px; }
  .footer-links { flex-wrap: wrap; gap: 24px; }

  .pricing-card { padding: 36px 28px; }
}

@media (max-width: 480px) {
  section { padding: 60px 20px; }
  .hero h1 { font-size: 1.9rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 28px 20px; }
  .price { font-size: 2.8rem; }
}