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

:root {
  --bg: #FFFFFF;
  --green: #1D9E75;
  --green-bg: #E1F5EE;
  --green-text: #0F6E56;
  --fg: #1A1A1A;
  --fg-muted: #666666;
  --light-gray: #F5F5F5;
  --border: 0.5px solid #E0E0E0;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1120px;
  --pad-x: clamp(20px, 5vw, 80px);
  --pad-section: clamp(64px, 10vw, 120px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: 64px;
  background: var(--bg);
  border-bottom: var(--border);
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-logo-book { color: var(--fg); }
.nav-logo-ai { color: var(--green); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--fg); }

.nav-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  text-decoration: none;
  padding: 8px 20px;
  transition: background 0.15s;
}

.nav-cta:hover { background: #178a66; }

/* ─── HERO ─── */
.hero {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  text-align: center;
  background: linear-gradient(160deg, #1D9E75 0%, #145c47 100%);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1D9E75;
  background: rgba(255,255,255,0.15);
  border: 0.5px solid rgba(255,255,255,0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-h1 {
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #fff;
}

.hero-h1-deals { color: rgba(255,255,255,0.7); }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #1D9E75;
  background: #fff;
  text-decoration: none;
  padding: 14px 32px;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 12px;
}

.hero-cta:hover { background: rgba(255,255,255,0.9); }

.hero-note {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ─── TRUST BAR ─── */
.trust-bar {
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 20px var(--pad-x);
}

.trust-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
}

.trust-item svg { flex-shrink: 0; color: var(--green); }

/* ─── STATS ROW ─── */
.stats-row {
  background: var(--light-gray);
  padding: var(--pad-section) var(--pad-x);
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-card {
  padding: 36px 24px;
  border: var(--border);
  border-left: none;
  text-align: center;
  background: var(--bg);
}

.stat-card:first-child { border-left: var(--border); }

.stat-num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ─── WHAT WE DO ─── */
.what-we-do {
  padding: var(--pad-section) var(--pad-x);
}

.wwd-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.wwd-h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 56px;
}

.wwd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.wwd-card {
  padding: 36px 32px;
  background: var(--light-gray);
  border: var(--border);
  border-top: none;
}

.wwd-card:nth-child(-n+2) { border-top: var(--border); }
.wwd-card:nth-child(odd) { border-right: none; }

.wwd-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
  margin-bottom: 16px;
}

.wwd-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.wwd-card-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── GUARANTEE ─── */
.guarantee {
  background: var(--green-bg);
  padding: var(--pad-section) var(--pad-x);
}

.guarantee-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.guarantee-icon {
  width: 48px;
  height: 48px;
  color: var(--green);
  margin: 0 auto 20px;
}

.guarantee-h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.guarantee-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ─── WHO WE WORK WITH ─── */
.who-we-work-with {
  padding: var(--pad-section) var(--pad-x);
}

.wwww-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.wwww-h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 48px;
}

.wwww-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wwww-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  background: var(--light-gray);
  border: var(--border);
  padding: 10px 18px;
}

.wwww-pill svg { flex-shrink: 0; color: var(--green); }

/* ─── FORM SECTION ─── */
.form-section {
  padding: var(--pad-section) var(--pad-x);
  background: var(--light-gray);
}

.form-inner {
  max-width: 560px;
  margin: 0 auto;
}

.form-h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.form-sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ─── LEAD FORM ─── */
.lead-form { display: flex; flex-direction: column; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.form-input,
.form-select {
  width: 100%;
  background: var(--bg);
  border: var(--border);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--fg);
  outline: none;
  appearance: none;
  transition: border-color 0.15s;
}

.form-input::placeholder { color: var(--fg-muted); }
.form-input:focus, .form-select:focus { border-color: var(--green); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option { background: var(--bg); }

.form-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--green);
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
  margin-top: 8px;
}

.form-submit:hover:not(:disabled) { background: #178a66; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-submit.loading .submit-text { display: none; }
.form-submit.loading .submit-spinner { display: inline-block; }
.form-submit.loading { pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
}

/* ─── SUCCESS STATE ─── */
.form-success {
  text-align: center;
  padding: 24px 16px;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: var(--green-bg);
  border: 0.5px solid #b2d9cb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--green);
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-body {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── ERROR STATE ─── */
.form-error {
  background: #fff5f5;
  border: 0.5px solid #e0b0b0;
  padding: 12px 16px;
  font-size: 13px;
  color: #c44;
}

/* ─── FOOTER ─── */
.footer {
  padding: 32px var(--pad-x);
  border-top: var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-left: var(--border); }
  .stat-card:nth-child(3) { border-top: var(--border); border-left: none; }
  .stat-card:nth-child(4) { border-top: var(--border); border-left: var(--border); }

  .wwd-grid { grid-template-columns: 1fr; }
  .wwd-card { border-left: var(--border); border-right: var(--border); }
  .wwd-card:nth-child(-n+2) { border-top: var(--border); }
  .wwd-card:nth-child(odd) { border-right: var(--border); }

  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-left: var(--border); border-right: var(--border); }
  .stat-card + .stat-card { border-top: var(--border); }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .wwww-pills { gap: 10px; }
}