/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg:           #0F1117;
  --bg-2:         #1A1D24;
  --bg-3:         #22262F;
  --border:       #2E3340;
  --border-light: #3A4055;

  --text:         #F8F9FA;
  --text-2:       #B0B8C8;
  --text-3:       #6B7280;

  --orange:       #FF7A00;
  --orange-hover: #E86E00;
  --orange-dim:   rgba(255, 122, 0, 0.12);
  --orange-glow:  rgba(255, 122, 0, 0.25);

  --green:        #16A34A;
  --green-dim:    rgba(22, 163, 74, 0.12);

  --red:          #DC2626;
  --red-dim:      rgba(220, 38, 38, 0.12);

  --yellow:       #F59E0B;
  --yellow-dim:   rgba(245, 158, 11, 0.12);

  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.6);

  --font:         'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --max-w:        1120px;
  --transition:   0.18s ease;
}

/* ─── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea, select { font-family: var(--font); }
ul, ol { list-style: none; }

/* ─── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { color: var(--text-2); }

/* ─── Layout Helpers ───────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--orange-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-light);
  color: var(--text);
}
.btn--lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

/* ─── Public Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 600px) {
  .nav__links .btn--ghost { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--orange-dim);
  border: 1px solid rgba(255,122,0,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__title {
  max-width: 820px;
  margin-bottom: 24px;
}
.hero__title span { color: var(--orange); }
.hero__sub {
  font-size: 1.2rem;
  max-width: 580px;
  margin-bottom: 40px;
  color: var(--text-2);
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__proof {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-3);
  font-size: 0.875rem;
}
.hero__proof-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ─── Stats Bar ─────────────────────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 40px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stats-bar__item {
  text-align: center;
  padding: 0 24px;
}
.stats-bar__item + .stats-bar__item {
  border-left: 1px solid var(--border);
}
.stats-bar__num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stats-bar__label {
  font-size: 0.9rem;
  color: var(--text-3);
}
@media (max-width: 600px) {
  .stats-bar__grid { grid-template-columns: 1fr; }
  .stats-bar__item + .stats-bar__item {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
  }
}

/* ─── How It Works ──────────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 40px;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-light), transparent);
}
.step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step__content h3 { margin-bottom: 8px; color: var(--text); font-size: 1.15rem; }
.step__content p  { font-size: 0.95rem; margin: 0; }

/* ─── Pricing Cards ─────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
.pricing-card {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.pricing-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.pricing-card--featured {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--bg-2) 0%, rgba(255,122,0,0.04) 100%);
}
.pricing-card--featured:hover { border-color: var(--orange-hover); }
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-card__price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 8px;
}
.pricing-card__amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pricing-card__currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-2);
  padding-bottom: 6px;
}
.pricing-card__period {
  font-size: 0.875rem;
  color: var(--text-3);
  padding-bottom: 8px;
}
.pricing-card__quota {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-bottom: 28px;
}
.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.pricing-card__feature::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Calculator Widget ──────────────────────────────────────────────────────── */
.calc {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 600px) { .calc { padding: 32px 24px; } }
.calc__title { margin-bottom: 8px; }
.calc__sub { margin-bottom: 36px; font-size: 0.95rem; }
.calc__fields { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.calc__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.calc__field input {
  width: 100%;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
}
.calc__field input:focus { border-color: var(--orange); }
.calc__result {
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  display: none;
}
.calc__result.visible { display: block; animation: fadeUp 0.3s ease; }
.calc__result-lost {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.calc__result-label { font-size: 0.9rem; color: var(--text-3); margin-bottom: 20px; }
.calc__result-cta { margin-top: 4px; }

/* ─── Section Headings ───────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; max-width: 540px; }
.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin: 0 auto; }

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card:hover { border-color: var(--border-light); }

/* ─── Feature Grid ───────────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.feature-card__icon {
  width: 48px; height: 48px;
  background: var(--orange-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card__body { font-size: 0.9rem; line-height: 1.65; }

/* ─── Testimonials ───────────────────────────────────────────────────────────── */
.testimonial {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.testimonial__quote {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial__author { font-size: 0.875rem; font-weight: 700; }
.testimonial__role { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }

/* ─── Footer ──────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: var(--text-3);
  font-size: 0.875rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--text-2); }

/* ─── Form Elements (auth pages) ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--orange); }
.form-input::placeholder { color: var(--text-3); }
.form-input.error { border-color: var(--red); }
.form-hint { font-size: 0.8rem; color: var(--text-3); margin-top: 6px; }
.form-error { font-size: 0.85rem; color: var(--red); margin-top: 8px; display: none; }
.form-error.visible { display: block; }

/* ─── Auth Card ──────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
}
@media (max-width: 500px) { .auth-card { padding: 32px 24px; } }
.auth-card__logo { margin-bottom: 32px; }
.auth-card__title { font-size: 1.6rem; margin-bottom: 8px; }
.auth-card__sub { font-size: 0.9rem; color: var(--text-3); margin-bottom: 32px; }
.auth-card__footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--text-3); }
.auth-card__footer a { color: var(--orange); }
.auth-card__footer a:hover { text-decoration: underline; }

/* ─── Alerts ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}
.alert.visible { display: block; }
.alert--error   { background: var(--red-dim);    border: 1px solid var(--red);    color: #fca5a5; }
.alert--success { background: var(--green-dim);  border: 1px solid var(--green);  color: #86efac; }
.alert--info    { background: var(--orange-dim); border: 1px solid var(--orange); color: #fdba74; }

/* ─── Badge / Status Chips ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge--sent      { background: var(--bg-3);        color: var(--text-2); border: 1px solid var(--border); }
.badge--followup  { background: var(--yellow-dim);   color: var(--yellow); border: 1px solid rgba(245,158,11,0.3); }
.badge--won       { background: var(--green-dim);    color: var(--green);  border: 1px solid rgba(22,163,74,0.3); }
.badge--lost      { background: var(--red-dim);      color: var(--red);    border: 1px solid rgba(220,38,38,0.3); }

/* ─── Divider ────────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── Utilities ──────────────────────────────────────────────────────────────── */
.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-3); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.8rem; }
.font-bold   { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }

/* ─── Spinner ────────────────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.spinner.visible { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Animations ──────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up { animation: fadeUp 0.4s ease forwards; }

/* ─── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ─── Selection ──────────────────────────────────────────────────────────────── */
::selection { background: var(--orange-dim); color: var(--text); }
