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

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface2: #334155;
  --fg: #f8fafc;
  --fg-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --border: rgba(148, 163, 184, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

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

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-wordmark { font-family: 'Instrument Serif', serif; font-size: 20px; color: var(--fg); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-diagonal { position: absolute; top: 0; right: 0; width: 55%; height: 100%; background: linear-gradient(135deg, transparent 0%, rgba(245,158,11,0.04) 40%, rgba(245,158,11,0.08) 100%); clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%); }
.hero-dot-grid { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(148,163,184,0.12) 1px, transparent 1px); background-size: 28px 28px; }
.hero-glow { position: absolute; top: 20%; right: 15%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%); }
.hero-content { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-dim); border: 1px solid rgba(245,158,11,0.3); border-radius: 100px; padding: 6px 14px; font-size: 13px; color: var(--accent); margin-bottom: 28px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-headline { font-family: 'Instrument Serif', serif; font-size: clamp(36px, 4vw, 56px); line-height: 1.12; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--fg-muted); line-height: 1.7; max-width: 480px; margin-bottom: 36px; }
.hero-cta-row { }
.hero-cta-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-muted); }

/* INVOICE CARD */
.hero-visual { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.invoice-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 360px; box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,158,11,0.1); }
.invoice-card-header { display: flex; gap: 6px; margin-bottom: 20px; }
.invoice-card-dot { width: 10px; height: 10px; border-radius: 50%; }
.invoice-card-dot.red { background: #ef4444; }
.invoice-card-dot.yellow { background: #f59e0b; }
.invoice-card-dot.green { background: #22c55e; }
.invoice-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.invoice-logo { }
.invoice-brand-name { font-family: 'Instrument Serif', serif; font-size: 16px; }
.invoice-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.invoice-meta-row { display: flex; justify-content: space-between; align-items: center; }
.invoice-meta-label { font-size: 12px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.invoice-meta-value { font-size: 15px; font-weight: 600; }
.invoice-status.paid { background: rgba(34,197,94,0.15); color: #22c55e; border-radius: 100px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.invoice-meta-value.amber { color: var(--accent); }
.invoice-line-items { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.invoice-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-muted); }
.invoice-total-row { display: flex; justify-content: space-between; align-items: center; }
.invoice-total-row span:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); }
.invoice-total-val { font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--fg); }
.hero-visual-label { font-size: 13px; color: var(--fg-muted); font-style: italic; }

/* STATS BAR */
.stats-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.stats-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-family: 'Instrument Serif', serif; font-size: 28px; color: var(--accent); line-height: 1; }
.stat-label { font-size: 13px; color: var(--fg-muted); }
.stat-divider { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }

/* SECTIONS */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 96px 32px; }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.section-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--accent); }
.section-label.amber { color: var(--fg-muted); }
.section-label.amber::before { background: var(--fg-muted); }
.section-headline { font-family: 'Instrument Serif', serif; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.15; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 20px; }
.section-body { font-size: 18px; color: var(--fg-muted); max-width: 600px; line-height: 1.7; }

/* PROBLEM */
.problem-section { background: var(--bg); }
.problem-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.problem-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: border-color 0.2s; }
.problem-card:hover { border-color: rgba(245,158,11,0.3); }
.problem-icon { margin-bottom: 20px; }
.problem-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--fg); }
.problem-card p { font-size: 15px; color: var(--fg-muted); line-height: 1.65; }

/* RELIEF */
.relief-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.relief-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.relief-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.relief-num { font-family: 'Instrument Serif', serif; font-size: 48px; color: var(--accent); opacity: 0.3; line-height: 1; margin-bottom: 16px; }
.relief-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--fg); }
.relief-card p { font-size: 15px; color: var(--fg-muted); line-height: 1.65; }

/* HOW IT WORKS */
.hiw-section { background: var(--bg); }
.hiw-steps { display: flex; align-items: flex-start; margin-top: 56px; }
.hiw-step { display: flex; gap: 20px; flex: 1; }
.hiw-step-num { font-family: 'Instrument Serif', serif; font-size: 40px; color: var(--accent); line-height: 1; flex-shrink: 0; width: 48px; text-align: center; }
.hiw-step-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--fg); }
.hiw-step-content p { font-size: 15px; color: var(--fg-muted); line-height: 1.65; }
.hiw-connector { flex-shrink: 0; width: 64px; height: 2px; background: linear-gradient(to right, var(--accent), transparent); margin-top: 24px; margin-left: -8px; margin-right: -8px; }

/* GUARANTEE */
.guarantee-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.guarantee-inner { max-width: 1100px; margin: 0 auto; padding: 96px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.guarantee-badge { margin-bottom: 28px; }
.guarantee-headline { font-family: 'Instrument Serif', serif; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.02em; color: var(--fg); max-width: 640px; margin-bottom: 20px; }
.guarantee-body { font-size: 17px; color: var(--fg-muted); max-width: 560px; line-height: 1.7; margin-bottom: 48px; }
.guarantee-pillars { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.guarantee-pillar { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; padding: 10px 20px; font-size: 14px; color: var(--fg); }

/* CLOSING */
.closing-section { background: var(--bg); }
.closing-inner { max-width: 1100px; margin: 0 auto; padding: 120px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing-headline { font-family: 'Instrument Serif', serif; font-size: clamp(36px, 5vw, 64px); line-height: 1.1; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 24px; }
.closing-sub { font-size: 18px; color: var(--fg-muted); max-width: 540px; line-height: 1.7; margin-bottom: 56px; }
.closing-stamp { display: flex; align-items: center; gap: 20px; }
.stamp-ring { width: 80px; height: 80px; border: 2px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0.4; }
.stamp-center { }
.stamp-text { display: flex; flex-direction: column; gap: 4px; }
.stamp-brand { font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--fg); }
.stamp-tagline { font-size: 14px; color: var(--fg-muted); }

/* NAV CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: #fbbf24; }

/* PRIMARY BUTTON */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.footer-desc { font-size: 14px; color: var(--fg-muted); max-width: 360px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-muted); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .problem-cards { grid-template-columns: 1fr; }
  .relief-cards { grid-template-columns: 1fr; }
  .hiw-steps { flex-direction: column; gap: 32px; }
  .hiw-connector { display: none; }
  .stats-inner { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .fc-services { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section-inner { padding: 64px 20px; }
  .hero-content { padding: 0 20px; }
  .closing-inner { padding: 80px 20px; }
  .guarantee-inner { padding: 64px 20px; }
  .stats-inner { padding: 0 20px; gap: 20px; }
  .stat-value { font-size: 22px; }
  .guarantee-pillars { gap: 10px; }
  .guarantee-pillar { font-size: 12px; padding: 8px 14px; }
  .faq-section .section-headline { padding: 0 4px; }
}

/* FAQ */
.faq-section { background: var(--bg); padding-top: 120px; }
.faq-list { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; transition: border-color 0.2s; }
.faq-item:hover { border-color: rgba(245, 158, 11, 0.3); }
.faq-item summary { cursor: pointer; font-family: 'DM Sans', system-ui, sans-serif; font-size: 18px; font-weight: 700; color: var(--fg); padding: 24px 56px 24px 28px; list-style: none; position: relative; border-bottom: 1px solid var(--border); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-family: 'Instrument Serif', serif; font-size: 24px; color: var(--accent); line-height: 1; }
.faq-item[open] summary::before { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p { font-size: 16px; color: var(--fg-muted); line-height: 1.7; padding: 20px 28px 24px; max-width: 760px; }
.faq-cta { margin-top: 64px; display: flex; justify-content: center; }

/* FOR CONTRACTORS — service sections + intake form */
.nav-link {
  margin-left: auto;
  margin-right: 16px;
  align-self: center;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }

.fc-section { background: var(--bg); padding-top: 120px; }
.fc-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.fc-service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: border-color 0.2s; display: flex; flex-direction: column; }
.fc-service:hover { border-color: rgba(245, 158, 11, 0.3); }
.fc-service h3 { font-size: 17px; font-weight: 700; color: var(--fg); margin: 12px 0 10px; }
.fc-service p { font-size: 15px; color: var(--fg-muted); line-height: 1.65; flex: 1; }
.fc-service .btn-primary { margin-top: 24px; align-self: flex-start; }

#intake { background: var(--bg); padding: 0 0 120px; }
.intake-wrapper { max-width: 600px; margin: 80px auto; padding: 0 24px; }
#intake .form-header { text-align: center; margin-bottom: 40px; }
#intake .form-header h2 { font-family: 'Instrument Serif', serif; font-size: 2.5rem; margin-bottom: 12px; color: var(--fg); }
#intake .form-header p { color: var(--fg-muted); font-size: 1rem; line-height: 1.6; }
#intake .form-group { margin-bottom: 24px; }
#intake label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--fg); font-size: 0.9rem; }
#intake input, #intake select { width: 100%; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--fg); font-family: 'DM Sans', sans-serif; font-size: 1rem; box-sizing: border-box; transition: border-color 0.2s; }
#intake input:focus, #intake select:focus { outline: none; border-color: var(--accent); }
#intake select { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%), linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
#intake .btn-submit { width: 100%; padding: 16px; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 1rem; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
#intake .btn-submit:hover { background: #fbbf24; }
#intake .btn-submit:disabled { background: #6b6b6b; cursor: not-allowed; }
#intake .success-msg { text-align: center; padding: 48px 24px; }
#intake .success-msg h2 { font-family: 'Instrument Serif', serif; font-size: 2rem; margin-bottom: 12px; color: var(--fg); }
#intake .success-msg p { color: var(--fg-muted); }
#intake .hidden { display: none; }

