/* AdPulse — Meta Ads Agency for Home Service Contractors */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Satoshi:wght@300;400;500;700&display=swap');

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --bg:         #0b0e1a;
  --bg-2:       #111526;
  --bg-3:       #181d30;
  --surface:    #1e2440;
  --border:     rgba(255,255,255,0.08);
  --text:       #f0f2ff;
  --text-muted: #8892b0;
  --accent:     #ff6a1a;       /* bold orange */
  --accent-dim: rgba(255,106,26,0.15);
  --accent-glow:rgba(255,106,26,0.25);
  --green:      #22c55e;
  --radius:     6px;
  --max-w:      1120px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

/* ─── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(11,14,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav__logo span { color: var(--accent); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.nav__cta:hover {
  background: #ff7d3a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
  text-decoration: none;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 160px 0 120px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,106,26,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0b0e1a 0%, #0d1022 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle grid texture */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,106,26,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero__headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 24px;
}
.hero__headline em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: #ff7d3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  text-decoration: none;
}

.hero__trust {
  margin-top: 60px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
}
.hero__trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero__trust-icon {
  font-size: 1.1rem;
}

/* ─── Section headers ───────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 600px;
}

/* ─── Problem / Solution ─────────────────────────────────── */
.problem {
  background: var(--bg-2);
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem__pains {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.problem__pain {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.problem__pain-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.problem__solution {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}
.problem__solution::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffb347);
}

.problem__solution-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.problem__solution-points {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
.problem__solution-point {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.problem__solution-point::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── How it works ──────────────────────────────────────── */
.how {
  background: var(--bg);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  position: relative;
}

.how__steps::before {
  /* connector line */
  content: '';
  position: absolute;
  top: 48px; left: calc(16.67% + 24px); right: calc(16.67% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 50%, var(--accent));
  opacity: 0.3;
}

.step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 28px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover {
  border-color: rgba(255,106,26,0.3);
  transform: translateY(-4px);
}

.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,106,26,0.3);
  border-radius: var(--radius);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.step__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.step__body {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ─── Social Proof ──────────────────────────────────────── */
.proof {
  background: var(--bg-2);
}

.proof__header {
  text-align: center;
  margin-bottom: 64px;
}
.proof__header .section-body {
  margin: 0 auto;
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.proof__photo-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.proof__photo-card:hover { border-color: rgba(255,106,26,0.25); }

.proof__photo-placeholder {
  width: 100%; height: 260px;
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 20px;
}
.proof__photo-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.proof__photo-caption {
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

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

.proof__stat {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}
.proof__stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.proof__stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.testimonial {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}
.testimonial__quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial__author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial__avatar {
  width: 40px; height: 40px;
  background: var(--surface);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}
.testimonial__name {
  font-weight: 600;
  font-size: 0.875rem;
}
.testimonial__trade {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.proof__notice {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Intake Form ────────────────────────────────────────── */
.intake {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.intake::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255,106,26,0.1) 0%, transparent 60%);
}

.intake__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}

.intake__pitch { padding-top: 12px; }

.intake__pitch-points {
  list-style: none;
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.intake__pitch-point {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem;
}
.intake__pitch-point-check {
  width: 22px; height: 22px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.form-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffb347);
}

.form-card__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.form-card__sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-family: 'Satoshi', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(136,146,176,0.5); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,106,26,0.5);
  box-shadow: 0 0 0 3px rgba(255,106,26,0.08);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  padding: 16px;
  margin-top: 24px;
  background: var(--accent);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.form-submit:hover {
  background: #ff7d3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.form-submit:active { transform: translateY(0); }
.form-submit:disabled { opacity: 0.7; cursor: default; transform: none; }

.form__privacy {
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}
.form-success__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.form-success__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.form-success__body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer__logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.footer__logo span { color: var(--accent); }
.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── Utilities ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }

/* ─── Alert / Toast ──────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}
.alert--error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert--success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .problem__grid,
  .intake__inner { grid-template-columns: 1fr; gap: 48px; }
  .how__steps { grid-template-columns: 1fr; }
  .how__steps::before { display: none; }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__stats { grid-template-columns: 1fr 1fr; }
  .proof__testimonials { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 80px; }
  .hero__headline { font-size: 2.1rem; }
  .proof__stats { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .nav__cta { padding: 8px 16px; font-size: 0.8rem; }
}
