/* =========================================
   SiteSprint — Construction Supply Agent
   ========================================= */

:root {
  --bg: #111318;
  --bg-card: #1a1d23;
  --bg-card-hover: #1f232b;
  --fg: #f0ece4;
  --fg-muted: #8c8880;
  --orange: #f97316;
  --orange-dark: #c4540a;
  --dark-accent: #2e3139;
  --border: #2a2d35;
  --terminal-bg: #0d0f12;
  --terminal-green: #4ade80;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 19, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 65px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.hero-eyebrow {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.badge-orange {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.highlight {
  color: var(--orange);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
  background: var(--bg-card);
}
.stat {
  padding: 20px 28px;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== TERMINAL CARD ===== */
.terminal-card {
  background: var(--terminal-bg);
  border: 1px solid #2a2d35;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid #2a2d35;
  background: rgba(255,255,255,0.02);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca42; }
.terminal-title {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-left: 8px;
  font-family: 'SF Mono', 'Consolas', monospace;
}
.terminal-body {
  padding: 20px;
}
.msg {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.msg-icon {
  font-size: 1rem;
  line-height: 1.6;
  flex-shrink: 0;
}
.msg.user span:last-child {
  background: var(--dark-accent);
  padding: 10px 14px;
  border-radius: 10px 10px 10px 2px;
  font-size: 0.875rem;
  color: var(--fg);
}
.msg.agent {
  background: rgba(249,115,22,0.06);
  border: 1px solid rgba(249,115,22,0.15);
  border-radius: 10px;
  padding: 12px 14px;
}
.msg.agent .msg-icon {
  color: var(--orange);
}
.msg-content p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}
.msg-content p:last-child { margin-bottom: 0; }
.msg-content .found { color: #fbbf24; }
.msg-content .done { color: var(--terminal-green); font-weight: 500; }
.msg-content p strong { color: var(--fg); }
.order-status {
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}
.order-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 4px 0;
}
.order-label { color: var(--fg-muted); }
.order-val { color: var(--fg); font-family: 'SF Mono', monospace; font-size: 0.78rem; }
.order-val.live { color: var(--terminal-green); }

/* ===== PROBLEM ===== */
.problem { padding: 100px 32px; }
.problem-inner { max-width: 1200px; margin: 0 auto; }
.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 640px;
  margin-bottom: 60px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.problem-card {
  background: var(--bg-card);
  padding: 36px 32px;
  transition: background 0.2s;
}
.problem-card:hover { background: var(--bg-card-hover); }
.problem-icon {
  color: var(--orange);
  margin-bottom: 20px;
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how { padding: 100px 32px; background: var(--bg-card); }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 72px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 0;
}
.step {
  grid-column: span 1;
  padding: 0 24px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-content p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.step-connector {
  height: 1px;
  background: linear-gradient(to right, var(--orange), transparent);
  opacity: 0.4;
  min-width: 40px;
}

/* ===== FEATURES ===== */
.features { padding: 100px 32px; }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 560px;
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature {
  background: var(--bg-card);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feature:hover { background: var(--bg-card-hover); }
.feature-bar {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.bar-orange { background: var(--orange); }
.bar-dark { background: var(--dark-accent); }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== MANIFESTO ===== */
.manifesto { padding: 100px 32px; background: var(--bg-card); }
.manifesto-inner { max-width: 860px; margin: 0 auto; }
.manifesto-quote {
  margin-bottom: 48px;
}
.quote-mark {
  font-size: 6rem;
  line-height: 1;
  color: var(--orange);
  font-family: var(--font-display);
  margin-bottom: -20px;
}
blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.manifesto-body:last-child { margin-bottom: 0; }

/* ===== CLOSING ===== */
.closing { padding: 120px 32px; }
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.closing-visual {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,0.4);
  animation: pulse-out 2.5s ease-out infinite;
}
.r1 { width: 80px; height: 80px; }
.r2 { width: 120px; height: 120px; animation-delay: 0.4s; }
.r3 { width: 160px; height: 160px; animation-delay: 0.8s; }
@keyframes pulse-out {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}
.pulse-center {
  width: 64px;
  height: 64px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 40px rgba(249,115,22,0.5);
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 460px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.footer-logo {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 8px;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  max-width: 320px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-align: right;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 40px;
    gap: 40px;
  }
  .hero-sub { font-size: 1rem; }
  .problem-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step-connector { display: none; }
  .closing-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
  .footer-tagline { text-align: left; }
  .nav-inner { padding: 14px 24px; }
  .stat { padding: 16px 20px; }
  .stat-number { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .problem, .how, .features, .manifesto, .closing { padding: 72px 20px; }
  .hero-stats { flex-direction: column; }
  .stat-divider { width: 40px; height: 1px; }
}