/* ── Custom Properties ── */
:root {
  /* Brand */
  --primary: #0B5FAE;
  --primary-light: #3B8FD9;
  --primary-dark: #073D70;
  --accent: #E87210;
  --accent-light: #F5A04A;
  --accent-muted: #FEF0E1;

  /* Surfaces */
  --surface-0: #1C1E22;
  --surface-1: #FAFAF8;
  --surface-2: #F4F3F0;
  --surface-3: #ECEAE6;
  --border: #DDD9D3;

  /* Text */
  --text-primary: #1A1C20;
  --text-secondary: #5C5A56;
  --text-muted: #9A9690;
  --text-on-dark: #D4CFC7;
  --text-on-dark-bright: #FFFFFF;

  /* Semantic */
  --success: #0D7C5F;
  --warning: #C47D0A;
  --danger: #C93B3B;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-padding: 96px;
  --container-max: 1200px;
  --container-padding: 24px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --container-padding: 16px;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

img { max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

section {
  padding: var(--section-padding) 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}
.btn:active { transform: scale(0.98); }

.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-light); }

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-light); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-3); }

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--text-on-dark-bright);
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

.btn-ghost-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); }

.btn-lg {
  height: 52px;
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 200ms ease, box-shadow 200ms ease;
}

#navbar.scrolled {
  background: var(--surface-0);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  display: block;
  padding: 4px 0;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: white;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-mobile-actions {
  display: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,30,34,0.88) 0%, rgba(28,30,34,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-procore {
  margin-top: 40px;
}

.hero-procore img {
  opacity: 0.7;
  transition: opacity 200ms ease;
}

.hero-procore img:hover {
  opacity: 1;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Features ── */
#features {
  background: var(--surface-1);
}

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

.feature-card {
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.feature-card--accent {
  border-left-color: var(--accent);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(11, 95, 174, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--icon-color);
}

.feature-card--accent .feature-icon {
  background: rgba(232, 114, 16, 0.1);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Industries ── */
#industries {
  padding: 0;
}

.industry-strip {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.industry-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.industry-overlay {
  position: absolute;
  inset: 0;
}

.industry-overlay--left {
  background: linear-gradient(to right, rgba(28,30,34,0.9) 0%, rgba(28,30,34,0.6) 50%, transparent 100%);
}

.industry-overlay--right {
  background: linear-gradient(to left, rgba(28,30,34,0.9) 0%, rgba(28,30,34,0.6) 50%, transparent 100%);
}

.industry-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.industry-content--left {
  max-width: 480px;
}

.industry-content--right {
  max-width: 480px;
  margin-left: auto;
  text-align: right;
}

.industry-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}

.industry-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* ── Product Preview ── */
#product {
  background: var(--surface-2);
}

.product-screenshots {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-frame {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 340px;
}

.screenshot-chrome {
  height: 40px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}

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

.screenshot-placeholder {
  height: 220px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 600;
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Social Proof ── */
#social-proof {
  background: white;
  border-top: 1px solid var(--surface-3);
  border-bottom: 1px solid var(--surface-3);
}

.proof-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}

.proof-stat {
  text-align: center;
}

.proof-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
}

.proof-suffix {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
}

.proof-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.proof-partners {
  text-align: center;
  margin-bottom: 48px;
}

.proof-quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  border: none;
  padding: 0;
}

.proof-quote p {
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.proof-quote footer {
  font-size: 14px;
  color: var(--text-secondary);
}

.proof-quote-note {
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Pricing ── */
#pricing {
  background: var(--surface-1);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}

.pricing-card--featured {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-top: 3px solid var(--accent);
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pricing-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── CTA Banner ── */
#cta {
  background: var(--primary);
  padding: 96px 24px;
}

#cta h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: white;
  margin-bottom: 32px;
  line-height: 1.2;
}

.cta-contact {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.cta-contact a {
  color: white;
  text-decoration: underline;
}

/* ── Footer ── */
footer {
  background: var(--surface-0);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-on-dark);
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #6B6762;
}

.footer-bottom a {
  font-size: 12px;
  color: #6B6762;
  text-decoration: none;
  margin-left: 16px;
  transition: color 150ms ease;
}

.footer-bottom a:hover {
  color: white;
}

/* ── Mobile Sticky CTA ── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--surface-0);
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.mobile-cta-bar .btn {
  flex: 1;
}

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4) { transition-delay: 0.24s; }
.feature-card:nth-child(5) { transition-delay: 0.32s; }
.feature-card:nth-child(6) { transition-delay: 0.40s; }

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface-0);
    padding: 80px 32px 32px;
    gap: 0;
    transition: right 300ms ease;
    z-index: 1001;
  }

  .nav-links.is-open {
    right: 0;
  }

  .nav-links li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links a {
    font-size: 18px;
    color: white;
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-bottom: none;
  }

  .nav-actions { display: none; }

  .nav-hamburger {
    display: flex;
    z-index: 1002;
  }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Industries */
  .industry-strip {
    height: auto;
  }

  .industry-photo {
    position: relative;
    height: 240px;
  }

  .industry-overlay { display: none; }

  .industry-content {
    background: var(--surface-0);
    padding: 40px 24px;
    max-width: 100% !important;
    text-align: left !important;
    margin-left: 0 !important;
    height: auto;
  }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }

  /* Social Proof */
  .proof-stats { flex-direction: column; gap: 24px; }
  .proof-divider { width: 48px; height: 1px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom a { margin-left: 0; margin-right: 16px; }

  /* Mobile CTA Bar */
  .mobile-cta-bar { display: flex; }

  /* Hero CTAs stack */
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }

  /* Add bottom padding for sticky CTA */
  footer { padding-bottom: 80px; }
}