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

:root {
  --green: #25d366;
  --green-dark: #128c7e;
  --green-light: #dcfce7;
  --accent: #25d366;
  --accent2: #00e5b0;
  --bg: #080c10;
  --bg2: #0e1621;
  --bg3: #141e2d;
  --card: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --text: #f0f6fc;
  --text-muted: #8b99a9;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --glow: 0 0 40px rgba(37,211,102,0.15);
  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ─── UTILITIES ─────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent { color: var(--green); }
.section-badge {
  display: inline-block;
  background: rgba(37,211,102,0.12);
  color: var(--green);
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 18px; }

/* ─── BUTTONS ─────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 28px; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text); font-weight: 600; font-size: 15px;
  padding: 12px 28px; border-radius: 999px;
  text-decoration: none; border: 1px solid var(--card-border); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: var(--card); border-color: rgba(255,255,255,0.2); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--green); font-weight: 700; font-size: 15px;
  padding: 14px 32px; border-radius: 999px;
  text-decoration: none; border: 2px solid var(--green); cursor: pointer;
  transition: background 0.2s; width: 100%;
}
.btn-outline:hover { background: rgba(37,211,102,0.1); }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(8,12,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--card-border);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 16px 24px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--text); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; gap: 16px; padding: 16px 24px 20px; border-top: 1px solid var(--card-border); }
.mobile-nav.active { display: flex; }
.mobile-nav a { color: var(--text-muted); text-decoration: none; font-size: 16px; }
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: block; }
}

/* ─── HERO ─────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3;
}
.blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--green) 0%, transparent 70%); top: -100px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent2) 0%, transparent 70%); bottom: -50px; left: -100px; }
.blob-3 { width: 300px; height: 300px; background: radial-gradient(circle, #6366f1 0%, transparent 70%); top: 40%; left: 40%; }
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 8px 20px; font-size: 14px; font-weight: 500;
  margin-bottom: 28px; color: var(--text-muted); backdrop-filter: blur(10px);
}
.badge-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
.hero-title { font-size: clamp(36px, 6vw, 68px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-subtitle { font-size: clamp(16px, 2.5vw, 20px); color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { color: var(--text-muted); font-size: 14px; }

/* Phone demo */
.chat-demo { margin-top: 64px; display: flex; justify-content: center; }
.phone-frame {
  width: 300px; background: #1a1a2e;
  border-radius: 40px; padding: 12px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow), var(--glow);
  position: relative;
}
.phone-notch { width: 80px; height: 20px; background: #111; border-radius: 10px; margin: 0 auto 8px; }
.phone-screen { background: #0d1117; border-radius: 28px; overflow: hidden; }
.wa-header {
  background: linear-gradient(135deg, #128c7e, #075e54);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
}
.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: 18px; }
.wa-name { font-size: 13px; font-weight: 700; color: #fff; }
.wa-status { font-size: 11px; color: rgba(255,255,255,0.7); }
.wa-messages { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; }
.msg {
  max-width: 85%; padding: 8px 12px; border-radius: 12px;
  font-size: 12px; line-height: 1.5;
  opacity: 0; animation: fadeInUp 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
}
.msg-in { background: rgba(255,255,255,0.08); color: var(--text); align-self: flex-start; border-radius: 4px 12px 12px 12px; }
.msg-out { background: linear-gradient(135deg, #128c7e, #075e54); color: #fff; align-self: flex-end; border-radius: 12px 4px 12px 12px; }
.msg-buttons { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.msg-btn { background: rgba(255,255,255,0.15); border: none; border-radius: 6px; padding: 4px 8px; color: #fff; font-size: 10px; cursor: pointer; text-align: left; }
.msg-btn.active { background: var(--green); }
.msg-list { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.msg-list-item { background: rgba(255,255,255,0.1); border-radius: 6px; padding: 4px 8px; font-size: 10px; }
.msg-list-item.highlight { background: rgba(37,211,102,0.25); border: 1px solid rgba(37,211,102,0.4); }

/* ─── STATS BAR ─────────────────────────────── */
.stats-bar { background: var(--bg2); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: 36px; font-weight: 900; color: var(--green); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── FEATURES ─────────────────────────────── */
.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 32px; transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(37,211,102,0.3); }
.feature-card.featured { background: linear-gradient(135deg, rgba(37,211,102,0.08), rgba(0,229,176,0.05)); border-color: rgba(37,211,102,0.3); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ─── HOW IT WORKS ─────────────────────────────── */
.how-it-works { padding: 100px 0; background: var(--bg2); }
.steps { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; justify-content: center; }
.step { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; flex: 1; min-width: 180px; max-width: 220px; text-align: center; }
.step-num {
  width: 48px; height: 48px; background: linear-gradient(135deg, var(--green), var(--accent2));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; color: #fff; margin: 0 auto 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 13px; }
.step-arrow { font-size: 28px; color: var(--green); margin-top: 40px; opacity: 0.5; }
@media (max-width: 700px) { .step-arrow { display: none; } }

/* ─── PRICING ─────────────────────────────── */
.pricing { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 760px; margin: 0 auto; }
.pricing-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 24px; padding: 40px;
}
.pricing-card.pro {
  background: linear-gradient(135deg, rgba(37,211,102,0.1), rgba(0,229,176,0.05));
  border-color: rgba(37,211,102,0.4);
  box-shadow: var(--glow);
  position: relative;
}
.pricing-badge {
  font-size: 13px; font-weight: 700; color: var(--green);
  background: rgba(37,211,102,0.12); border-radius: 999px;
  padding: 4px 14px; display: inline-block; margin-bottom: 20px;
}
.pricing-price { margin-bottom: 12px; }
.currency { font-size: 24px; font-weight: 700; vertical-align: top; margin-top: 8px; display: inline-block; }
.amount { font-size: 56px; font-weight: 900; line-height: 1; }
.period { font-size: 16px; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 14px; }
.pricing-features li.disabled { color: var(--text-muted); }
.pricing-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ─── CTA BANNER ─────────────────────────────── */
.cta-banner {
  padding: 100px 0; background: linear-gradient(135deg, rgba(37,211,102,0.1) 0%, rgba(0,229,176,0.05) 100%);
  border-top: 1px solid rgba(37,211,102,0.2);
}
.cta-content { text-align: center; }
.cta-content h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.cta-content p { color: var(--text-muted); font-size: 18px; margin-bottom: 32px; }

/* ─── FOOTER ─────────────────────────────── */
.footer { padding: 48px 0 24px; background: var(--bg2); border-top: 1px solid var(--card-border); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; gap: 24px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--card-border); padding-top: 24px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 14px; }

/* ─── APP FEEDBACK ─────────────────────────────── */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(10, 16, 24, 0.96);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  animation: toastIn 0.2s ease-out;
}

.toast-success { border-color: rgba(37, 211, 102, 0.45); }
.toast-error { border-color: rgba(252, 129, 129, 0.5); }
.toast-warning { border-color: rgba(245, 158, 11, 0.5); }
.toast-info { border-color: rgba(59, 130, 246, 0.45); }

.toast.hide {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skeleton-line {
  height: 12px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

.skeleton-line.short { width: 62%; }

.chat-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  padding: 20px;
}

.confirm-overlay.show {
  display: flex;
}

.confirm-modal {
  width: min(460px, 100%);
  background: #0f1824;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 18px;
}

.confirm-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.confirm-message {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.confirm-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.order-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1350;
  padding: 20px;
}

.order-modal-overlay.show { display: flex; }

.order-modal {
  width: min(760px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: #0f1824;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 16px;
}

.order-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.order-detail-grid .label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.order-detail-grid .value {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.order-detail-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}

.order-detail-block .block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.invoice-sheet {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.invoice-kicker {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-id {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.invoice-status {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #b8f7c9;
  font-size: 12px;
  font-weight: 700;
}

.invoice-meta-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.invoice-meta-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  table-layout: fixed;
}

.invoice-meta-table th,
.invoice-meta-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

.invoice-meta-table th {
  width: 16%;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.invoice-meta-table td {
  width: 34%;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.invoice-meta-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
}

.invoice-meta-item span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 3px;
}

.invoice-meta-item strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.order-meta-list {
  display: grid;
  gap: 8px;
}

.order-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.order-meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.order-meta-label {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.order-meta-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.order-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.order-detail-table th,
.order-detail-table td {
  text-align: left;
  font-size: 13px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--card-border);
}

.order-detail-table th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.order-detail-table td {
  color: var(--text);
  font-size: 15px;
}

.order-detail-table th:nth-child(n+2),
.order-detail-table td:nth-child(n+2) {
  text-align: right;
}

.order-detail-kv td:first-child {
  width: 42%;
  color: var(--text-muted);
  font-weight: 600;
}

.order-detail-kv td:last-child {
  width: 58%;
  color: var(--text);
  text-align: right;
  font-weight: 700;
}

.invoice-summary {
  width: min(420px, 100%);
  margin-left: auto;
}

.invoice-grand-row td {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 18px;
}

.order-address {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 640px) {
  .order-detail-grid { grid-template-columns: 1fr; }
  .invoice-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .invoice-meta-table,
  .invoice-meta-table tbody,
  .invoice-meta-table tr,
  .invoice-meta-table th,
  .invoice-meta-table td {
    display: block;
    width: 100%;
  }
  .invoice-meta-table th {
    padding-bottom: 2px;
    border-bottom: 0;
  }
  .invoice-meta-table td {
    padding-top: 0;
    margin-bottom: 4px;
  }
  .invoice-meta-table tr {
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  }
  .invoice-meta-grid { grid-template-columns: 1fr; }
  .order-detail-table th:nth-child(n+2),
  .order-detail-table td:nth-child(n+2),
  .order-detail-kv td:last-child { text-align: left; }
  .order-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .order-meta-value { text-align: left; }
}

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.animate-in { opacity: 0; animation: fadeInUp 0.6s ease forwards; animation-delay: var(--delay, 0s); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
