:root {
  --dark: #0F172A;
  --blue: #1E40AF;
  --accent: #2563EB;
  --light: #F8FAFC;
  --gray: #CBD5E1;
}

* {
  box-sizing: border-box;
}


:root {
  --primary: #f97316;
  --dark: #0f172a;
  --light: #f8fafc;
  --text: #1e293b;
  --border: #e2e8f0;
  --muted: #64748b;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --demo-bar-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
  padding-top: calc(var(--demo-bar-height) + 12px);
}

body.demo-locked {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* DEMO BAR */

.demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.demo-bar.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow);
}

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

.demo-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.demo-logo {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.demo-brand-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.2;
}

.demo-tag {
  font-size: 11px;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  margin-left: 8px;
}

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

.demo-back {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s;
}

.demo-back:hover {
  color: var(--primary);
}

.demo-cta {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
}

@media (max-width: 640px) {
  .demo-bar-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .demo-nav {
    order: 3;
    width: 100%;
    text-align: left;
  }
}

/* HEADER */

.site-header {
  padding: 20px 0;
  position: sticky;
  top: var(--demo-bar-height);
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--dark);
}

.logo-mark {
  color: var(--primary);
  font-size: 24px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.2;
}

.logo-text strong {
  font-weight: 700;
  color: var(--dark);
}

.logo-text span {
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .site-header {
    top: 0;
    margin-top: 0;
  }
  .nav-links {
    display: none;
  }
}

/* HERO BOLD */

.hero-bold {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--dark);
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 500px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .hero-bold {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-image {
    height: 400px;
  }
  
  .hero-content h1 {
    font-size: 44px;
  }
}

@media (max-width: 640px) {
  .hero-bold {
    padding: 40px 20px;
    margin-top: 0;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-image {
    height: 300px;
  }
  
  .hero-badges {
    gap: 12px;
    font-size: 13px;
  }
}

/* STATS BLOCK */

.stats-block {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
  color: white;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  max-width: 1400px;
  margin: 40px auto;
  border-radius: 12px;
}

.stat strong {
  display: block;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.stat span {
  display: block;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .stats-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 20px;
  }
  
  .stat strong {
    font-size: 36px;
  }
}

/* SERVICES SECTION */

.services {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 44px;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
}

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

.service-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.service-item h3 {
  font-size: 20px;
  margin: 24px 24px 12px;
  color: var(--dark);
}

.service-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 24px 20px;
}

.service-link {
  display: inline-flex;
  margin: 0 24px 24px;
  font-weight: 600;
  color: var(--primary);
}

.service-link:hover {
  gap: 4px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
}

/* WHY US SECTION */

.why-us {
  background: var(--light);
  max-width: 100%;
  padding: 80px 20px;
  margin: 80px 0;
}

.why-us h2 {
  font-size: 44px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--dark);
}

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

.why-card {
  position: relative;
  padding: 32px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
}

.why-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .why-us {
    padding: 60px 20px;
  }
  
  .why-us h2 {
    font-size: 32px;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .why-card {
    padding: 24px;
  }
}

/* PROJECTS PREVIEW */

.projects-preview {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
}

.projects-preview h2 {
  font-size: 44px;
  margin-bottom: 60px;
  color: var(--dark);
  text-align: center;
}

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

.project {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.project:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  padding: 32px 20px 20px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project {
    height: 250px;
  }
}

/* CTA FINAL SECTION */

.cta-final {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  max-width: 100%;
  margin: 80px 0 0;
}

.cta-final h2 {
  font-size: 48px;
  margin-bottom: 16px;
  color: white;
}

.cta-final p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.cta-final .btn-primary {
  background: var(--primary);
}

.cta-final .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.cta-final .btn-secondary:hover {
  border-color: white;
}

@media (max-width: 768px) {
  .cta-final h2 {
    font-size: 32px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-final .btn {
    width: 100%;
  }
}

/* FOOTER */

.footer {
  background: var(--dark);
  color: white;
  padding: 60px 20px 20px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-inner h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: white;
}

.footer-inner p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* DEMO EXIT CTA (MODAL) */

.demo-exit {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 22, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.demo-exit-inner {
  background: linear-gradient(145deg, #0f172a, #0b1220);
  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;
  border: 1px solid rgba(255,255,255,0.08);
}

.demo-exit-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
}

.demo-exit-eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 8px 0 10px;
}

.demo-exit-inner h3 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 12px;
}

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

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

.demo-exit-primary {
  background: var(--primary);
  color: #0b1220;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(249,115,22,0.35);
}

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

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

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* UTILITIES */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.6rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 6px;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 700;
}

/* Trust strip */
.trust-strip {
  background: var(--gray);
  padding: 18px;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-weight: 600;
  flex-wrap: wrap;
}

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

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

.service-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 24px;
}

/* Proof */
.proof {
  background: #F1F5F9;
  padding: 64px 24px;
}

.proof ul {
  list-style: none;
  padding: 0;
}

.proof li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray);
}

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

/* Footer */
footer {
  background: #020617;
  color: #94A3B8;
  text-align: center;
  padding: 28px 16px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
}
/* =========================
   DEMO BAR
========================= */


/* Override legacy demo bar definitions to match fixed top bar */
.demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #0b1220, #0e172a);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
  height: var(--demo-bar-height);
  display: flex;
  align-items: center;
}

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

/* =========================
   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, #475569);
  opacity: 0.85;
}
/* ===== Demo Bar Scroll State ===== */
.demo-bar {
  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);
}
}