:root {
  --steel: #1F2937;
  --iron: #374151;
  --accent: #F59E0B;
  --concrete: #F3F4F6;
  --dark: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--concrete);
  color: var(--dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* Header */
.site-header {
  background: var(--dark);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  color: white;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.nav a {
  color: #E5E7EB;
  margin-left: 20px;
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(
    rgba(17,24,39,0.95),
    rgba(17,24,39,0.95)
  );
  color: white;
  padding: 100px 24px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.hero p {
  max-width: 600px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  margin-top: 26px;
  background: var(--accent);
  color: #111827;
  padding: 14px 28px;
  font-weight: 800;
  border-radius: 6px;
}

/* Stats */
.stats {
  max-width: 1100px;
  margin: -40px auto 60px;
  background: white;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.stat {
  padding: 26px;
  text-align: center;
  border-right: 1px solid #E5E7EB;
}

.stat:last-child {
  border-right: none;
}

.stat strong {
  font-size: 2rem;
  display: block;
  color: var(--steel);
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: 8px;
  padding: 28px;
  border-left: 6px solid var(--accent);
}

/* Projects */
.project-preview {
  background: #E5E7EB;
  padding: 72px 24px;
}

.project-grid {
  max-width: 1100px;
  margin: 36px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.project {
  background: #D1D5DB;
  height: 140px;
  border-radius: 6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA */
.cta {
  background: var(--steel);
  color: white;
  padding: 80px 24px;
  text-align: center;
}

/* Footer */
footer {
  background: #020617;
  color: #9CA3AF;
  text-align: center;
  padding: 28px 16px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }

  .stat:last-child {
    border-bottom: none;
  }
}
/* =========================
   DEMO BAR
========================= */

.demo-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #0b1220, #0e172a);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.demo-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* =========================
   DEMO BAR
========================= */

.demo-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #0b1220, #0e172a);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.demo-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px; /* tighter */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* =========================
   BRAND
========================= */

.demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.demo-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f97316;
  color: #0b1220;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.demo-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.demo-brand-line1 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f9fafb;
}

.demo-brand-line2 {
  font-size: 0.75rem;
  color: #94a3b8;
}

.demo-tag {
  font-size: 0.7rem;
  color: #64748b;
  margin-left: 6px;
}

/* ===== Demo Bar Accent Line ===== */
.demo-bar::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--demo-accent, #f59e0b);
  opacity: 0.85;
}
/* ===== Demo Bar Scroll State ===== */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.demo-bar.scrolled {
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
/* =========================
   NAV
========================= */

.demo-nav {
  flex: 1;
  text-align: center;
}

.demo-back {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
}

.demo-back:hover {
  color: #e5e7eb;
}

/* =========================
   CTA
========================= */

.demo-cta {
  background: #f97316;
  color: #0b1220;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(249,115,22,0.35);
  white-space: nowrap;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .demo-bar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .demo-nav {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .demo-cta {
    order: 2;
  }
}
/* =========================
   DEMO EXIT CTA
   ========================= */

.demo-exit {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.demo-exit.active {
  opacity: 1;
  pointer-events: auto;
}

.demo-exit-inner {
  background: #0f1629;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.demo-exit-eyebrow {
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.demo-exit h3 {
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.demo-exit-copy {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 22px;
}

.demo-exit-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-exit-primary {
  background: #f59e0b;
  color: #111827;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.demo-exit-secondary {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
}

.demo-exit-secondary:hover {
  color: #e5e7eb;
}

/* =========================
   MOBILE SLIDE-UP BEHAVIOR
   ========================= */

@media (max-width: 768px) {
  .demo-exit {
    align-items: flex-end;
  }

  .demo-exit-inner {
    border-radius: 20px 20px 0 0;
    max-width: none;
    width: 100%;
    padding-bottom: 32px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .demo-exit.active .demo-exit-inner {
    transform: translateY(0);
  }
.demo-exit-close {
  position: absolute;
  top: 14px;
  right: 16px;

  background: none;
  border: none;
  color: #94a3b8;

  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;

  transition: color 0.2s ease, transform 0.2s ease;
}

.demo-exit-close:hover {
  color: #ffffff;
  transform: scale(1.1);
}
}