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

:root {
  --bg: #0f0f1a;
  --bg-card: #16162a;
  --bg-card-alt: #1e1e38;
  --fg: #f0ece0;
  --fg-muted: #a09880;
  --accent: #f59e0b;
  --accent-dim: rgba(245,158,11,0.12);
  --border: rgba(240,236,224,0.08);
  --radius: 14px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  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: 18px 40px;
  display: flex;
  align-items: center;
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 60px 80px;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* === UI PANEL (Hero visual) === */
.hero-ui {
  position: relative;
  z-index: 1;
}

.ui-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.08);
  max-width: 460px;
}

.ui-panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card-alt);
}

.ui-dots {
  display: flex;
  gap: 6px;
}

.ui-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.ui-dots span:nth-child(1) { background: #ff5f57; }
.ui-dots span:nth-child(2) { background: #febc2e; }
.ui-dots span:nth-child(3) { background: #28c840; }

.ui-panel-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.ui-map {
  padding: 16px 18px 0;
  position: relative;
  height: 180px;
  background: #0d0d1f;
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

.ui-property {
  position: absolute;
  top: 20px;
  left: 40px;
  width: 120px;
  height: 140px;
}

.ui-roof {
  position: absolute;
  top: 0;
  left: 10px;
  width: 100px;
  height: 60px;
  background: rgba(245,158,11,0.15);
  border: 1.5px solid rgba(245,158,11,0.5);
  border-radius: 2px;
}

.ui-driveway {
  position: absolute;
  bottom: 20px;
  left: 30px;
  width: 50px;
  height: 24px;
  background: rgba(245,158,11,0.1);
  border: 1.5px dashed rgba(245,158,11,0.4);
  border-radius: 2px;
}

.ui-lawn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240,236,224,0.03);
  border: 1px solid rgba(240,236,224,0.1);
  border-radius: 2px;
}

.ai-trace-label {
  position: absolute;
  bottom: 8px;
  left: -10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.ai-badge {
  background: var(--accent);
  color: var(--bg);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.ui-estimate-card {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}

.ui-estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
  color: var(--fg-muted);
}

.ui-estimate-row span:last-child {
  font-weight: 500;
  color: var(--fg);
}

.ui-estimate-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.ui-estimate-row.ui-total span {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.ui-estimate-sent {
  font-size: 11px;
  color: rgba(39,201,63,0.7);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ui-estimate-sent::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27c93f;
  display: inline-block;
}

/* === MANIFESTO === */
.manifesto {
  padding: 80px 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.5;
  color: var(--fg-muted);
  text-align: center;
}

/* === FEATURES === */
.features {
  padding: 100px 60px;
}

.features-header {
  margin-bottom: 60px;
  max-width: 560px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(245,158,11,0.2);
}

.feature-card--alt {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245,158,11,0.04) 100%);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
  flex-grow: 1;
}

/* Feature visuals */
.feature-visual {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d1f;
}

/* Quote feature */
.fv-quote { padding: 16px; }
.fv-address { font-size: 11px; color: var(--fg-muted); margin-bottom: 12px; font-weight: 500; }
.fv-map-area {
  background: #0a0a18;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv-polygon {
  width: 80px;
  height: 60px;
  border: 2px solid var(--accent);
  background: rgba(245,158,11,0.1);
  clip-path: polygon(0 0, 100% 20%, 90% 100%, 10% 80%);
}

.fv-label {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}

.fv-items { display: flex; flex-direction: column; gap: 6px; }
.fv-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
  padding: 6px 10px;
  background: var(--bg-card-alt);
  border-radius: 6px;
}
.fv-item span:last-child { font-weight: 600; color: var(--fg); }

/* Schedule feature */
.fv-schedule { padding: 16px; }
.fv-days {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.fv-days span {
  font-size: 10px;
  color: var(--fg-muted);
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.fv-crew-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  position: relative;
}

.fv-crew-label {
  font-size: 10px;
  color: var(--fg-muted);
  width: 70px;
  flex-shrink: 0;
  font-weight: 500;
}

.fv-crew-blocks {
  flex: 1;
  height: 40px;
  position: relative;
}

.fv-block {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fv-block small { opacity: 0.6; font-size: 9px; }

/* Invoice feature */
.fv-invoice { padding: 16px; }
.fv-inv-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.fv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.fv-customer-info { flex: 1; }
.fv-customer-name { font-size: 13px; font-weight: 600; color: var(--fg); }
.fv-customer-loc { font-size: 11px; color: var(--fg-muted); }
.fv-customer-status {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fv-paid { background: rgba(39,201,63,0.15); color: #27c93f; }

.fv-inv-table { margin-bottom: 10px; }
.fv-inv-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
}
.fv-inv-row span:first-child { color: var(--fg-muted); }
.fv-amount { font-weight: 700; color: var(--fg); }
.fv-inv-date { border-top: 1px solid var(--border); padding-top: 6px !important; }
.fv-method { color: var(--fg-muted); }
.fv-inv-history {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg-card-alt);
  border-radius: 6px;
  font-size: 11px;
}
.fv-history-label { color: var(--fg-muted); }
.fv-history-value { font-weight: 700; color: var(--accent); }

/* === PROOF === */
.proof {
  padding: 100px 60px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.proof-header { margin-bottom: 64px; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.proof-stat {
  background: var(--bg-card);
  padding: 40px 32px;
}

.proof-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 3vw, 52px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}

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

/* === CLOSING === */
.closing {
  padding: 120px 60px;
}

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

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 56px;
}

.closing-quote {
  position: relative;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.closing-quote-mark {
  position: absolute;
  top: -16px;
  left: 40px;
  width: 40px;
  height: 32px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
  opacity: 0.3;
}

.closing-quote p {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === FOOTER === */
.footer {
  padding: 60px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--accent);
  font-style: italic;
}

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

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 32px 60px;
  }
  .hero-visual { display: none; }
  .features { padding: 64px 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .proof { padding: 64px 32px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .manifesto { padding: 60px 32px; }
  .closing { padding: 80px 32px; }
}

@media (max-width: 600px) {
  .proof-grid { grid-template-columns: 1fr; }
  .nav { padding: 14px 24px; }
}