/* =====================
   BASE & TOKENS
   ===================== */
:root {
  --bg-primary: #0A0C0F;
  --bg-secondary: #0F1218;
  --bg-card: #111520;
  --accent: #FF6B2B;
  --accent-dim: rgba(255, 107, 43, 0.12);
  --text-primary: #F0F2F5;
  --text-secondary: #8A92A0;
  --text-muted: #4A5160;
  --grid-color: rgba(255, 107, 43, 0.04);
  --border: rgba(255, 107, 43, 0.1);
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   NAVIGATION
   ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hero-headline br { display: block; }
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px 0 0;
}
.stat:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin: 0 28px 0 0;
}
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-phone-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-img-main {
  width: 100%;
  border-radius: 16px;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(255, 107, 43, 0.15);
}
.phone-float {
  position: absolute;
  bottom: -24px;
  right: -32px;
  width: 160px;
}
.phone-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* =====================
   SHARED SECTIONS
   ===================== */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 56px;
}

/* =====================
   TRADES SECTION
   ===================== */
.trades {
  padding: 120px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trades > .section-label,
.trades > .section-title,
.trades > .section-sub {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
.trade-cards {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.trade-card {
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.trade-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.trade-card-hvac { background: #0A0C0F; }
.trade-card-hvac::before { background: #FF6B2B; }
.trade-card-roofing { background: #0F1829; }
.trade-card-roofing::before { background: #1E3A5F; }
.trade-card-plumbing { background: #0A1520; }
.trade-card-plumbing::before { background: #0E7490; }
.trade-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
  border: 1px solid var(--border);
  padding: 4px 10px;
}
.trade-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.trade-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}
.trade-palette {
  display: flex;
  align-items: center;
  gap: 8px;
}
.palette-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.15);
}
.palette-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* =====================
   HOW SECTION
   ===================== */
.how {
  padding: 120px 24px;
  background: var(--bg-primary);
}
.how > .section-label,
.how > .section-title,
.how > .section-sub {
  max-width: 1140px;
  margin: 0 auto;
}
.how-steps {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.step {
  padding: 40px 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}
.step-icon {
  margin-bottom: 16px;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.step-connector {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 60px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-connector::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* =====================
   APPS SECTION
   ===================== */
.apps {
  padding: 120px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.apps > .section-label,
.apps > .section-title {
  max-width: 1140px;
  margin: 0 auto 32px;
}
.apps-visual {
  max-width: 1140px;
  margin: 0 auto 56px;
}
.apps-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
}
.app-features {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.app-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  background: var(--bg-primary);
}
.af-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.app-feature strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}
.af-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =====================
   CLOSER
   ===================== */
.closer {
  padding: 140px 24px;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closer-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,43,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,43,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.closer-inner { position: relative; z-index: 2; }
.closer-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.closer-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.closer-cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.closer-brand {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  padding: 56px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.footer-brand {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-headline br { display: none; }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-stats { justify-content: center; }
  .hero-right { display: none; }
  .trade-cards { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .app-features { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { min-height: auto; padding: 100px 24px 60px; }
  .hero-headline { font-size: 36px; }
  .trades, .how, .apps, .closer { padding: 80px 24px; }
  .section-title { font-size: 26px; }
  .trade-card { padding: 32px 24px; }
  .step { padding: 28px 20px; }
}