/* ===== Design System Tokens ===== */
:root{
  /* Primary */
  --deep-blue:#003366;
  --bright-cyan:#00BFFF;
  --primary-gradient:linear-gradient(135deg,#003366,#00BFFF);

  /* Accent (site-wide primary CTA per your site) */
  --orange-gradient:linear-gradient(135deg,#FF6B35,#F7931E);

  /* Secondary */
  --success-green:#22c55e;
  --warning-amber:#FFB347;
  --error-red:#FF4D4F;

  /* Neutrals */
  --pure-white:#FFFFFF;
  --light-gray:#F4F6F8;
  --border-gray:#E5E7EB;
  --text-primary:#1F2937;
  --text-secondary:#6B7280;
  --text-muted:#9CA3AF;

  /* Spacing */
  --space-xs:.25rem; --space-sm:.5rem; --space-md:1rem;
  --space-lg:1.5rem; --space-xl:2rem; --space-2xl:3rem; --space-3xl:4rem;

  /* Radii & Shadows */
  --radius-sm:6px; --radius-md:8px; --radius-lg:12px; --radius-xl:16px; --radius-full:999px;
  --shadow-sm:0 2px 8px rgba(0,51,102,.05);
  --shadow-md:0 4px 20px rgba(0,51,102,.08);
  --shadow-lg:0 8px 32px rgba(0,51,102,.12);
}

/* ===== Base ===== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,system-ui,sans-serif;
  color:var(--text-primary);
  background:var(--pure-white);
  line-height:1.6;
}
a{color:var(--deep-blue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.container{max-width:1200px;margin:0 auto;padding:0 var(--space-lg)}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:10;
  background:var(--pure-white);
  border-bottom:1px solid var(--border-gray);
  backdrop-filter:saturate(180%) blur(6px);
}

/* Fix for anchor links being hidden behind fixed header */
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px; /* Account for fixed header height */
}
.site-header__row{display:flex;align-items:center;justify-content:space-between;padding:var(--space-md) var(--space-lg) var(--space-md) var(--space-lg)}
.logo{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--deep-blue)}
.logo-img{height:42px;width:auto}
.nav{display:flex;gap:var(--space-lg)}
.nav a{color:var(--text-secondary);font-weight:600}
.cta{display:flex;gap:12px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.75rem 1.5rem;border-radius:var(--radius-md);font-weight:500;border:1px solid transparent;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary{background:var(--orange-gradient);color:#fff;box-shadow:0 2px 8px rgba(255,107,53,.3);border:none}
.btn--primary:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(255,107,53,.4)}
.btn--ghost{background:var(--light-gray);color:var(--text-secondary);border:1px solid var(--border-gray)}
.btn--ghost:hover{background:var(--border-gray);color:var(--text-primary);transform:translateY(-1px)}

/* ===== Hero (readability-safe) ===== */
.hero{
  position: relative;
  padding:72px 0 48px;
  overflow: clip;
  background: var(--primary-gradient);
  color:#fff;
}

/* Dark overlay to boost contrast */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.45); /* adjust 0.35–0.5 if needed */
  z-index:0;
}

/* Keep content above overlay */
.hero__grid{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:40px;
  align-items:center;
}

.eyebrow{
  color:#fff;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
  opacity:.95;
}

/* Use solid white for max readability (override previous gradient text) */
.hero h1{
  font-size: clamp(32px,5vw,56px);
  line-height: 1.06;
  margin: 10px 0 14px;
  color: #fff;
  background: none;                 /* override gradient text */
  -webkit-background-clip: initial; /* reset clip */
  -webkit-text-fill-color: #fff;    /* force white */
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.lead{
  font-size:18px;
  color:#fff;
  margin-bottom:22px;
  opacity:.98;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

.hero__badges{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:10px 0 22px;
}

.badge{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color:#fff;
  padding:6px 10px;
  border-radius: var(--radius-full);
  font-size:13px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); /* keeps pills visible on bright zones */
}

.hero__mock{
  position: relative;
  z-index: 1; /* above overlay */
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border:1px solid rgba(255,255,255,0.18);
  border-radius:16px;
  padding:20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;               /* ensure good size */
}

.mock-screen{
  aspect-ratio:16/10;
  background:#0f1117;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.1);
  display:grid;
  place-items:center;
  color:#9CA3AF;
  font-size:14px;
  min-height: 300px;              /* ensure minimum size */
  width: 100%;                    /* take full width of container */
  overflow: hidden;               /* ensure image doesn't overflow */
  position: relative;             /* for absolute positioning of images */
}

.mock-image{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;              /* maintain aspect ratio while filling container */
  border-radius: 8px;             /* slightly smaller radius than container */
  opacity: 0;                     /* start hidden */
  transition: opacity 0.8s ease-in-out; /* smooth fade transition */
}

.mock-image.active{
  opacity: 1;                     /* show active image */
}
/* Keep content lines readable */
.hero__copy { max-width: 720px; }

/* Balanced heading breaks */
@supports (text-wrap: balance) { .hero h1 { text-wrap: balance; } }

/* Subtle brand “glint” behind the headline */
.hero__headline { position: relative; display: inline-block; }
.hero__headline::after {
  content:"";
  position:absolute; inset:-6% -8% -14% -8%;
  background:
    radial-gradient(120% 70% at 0% 40%, rgba(0,51,102,.14), transparent 60%),
    radial-gradient(120% 70% at 100% 70%, rgba(0,191,255,.12), transparent 60%);
  filter: blur(2px); pointer-events:none; z-index:0;
}
.hero__headline h1 { position: relative; z-index:1; }

/* Overlay for consistent legibility */
.hero { position:relative; }
.hero::before { content:""; position:absolute; inset:0; background:rgba(0,0,0,.45); z-index:0; }
.hero__grid { position:relative; z-index:1; }

/* Headline & lead polish */
.hero h1{
  color:#fff; background:none; -webkit-text-fill-color:#fff;
  font-weight:300; letter-spacing:-.015em;
  text-shadow:0 1px 4px rgba(0,0,0,.35);
  margin-bottom:.35em;
}
.lead{ font-size:19px; max-width:60ch; opacity:.98; text-shadow:0 1px 3px rgba(0,0,0,.35); }

/* Emphasis on "local" */
.hl-local{
  text-decoration: underline;
}

/* Right side container for mockup and badges */
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Badges as a single row below the mock (scrolls on small screens) */
.hero__meta--below{
  display:flex; gap:12px; align-items:center; justify-content:flex-start;
  margin-top:16px;
  flex-wrap:wrap;                /* allow wrapping to prevent cutoff */
  overflow-x:auto;               /* allow horizontal scroll on narrow viewports */
  -webkit-overflow-scrolling:touch;
  padding-bottom:6px;            /* avoid scrollbar overlap on some OSes */
  max-width: 100%;               /* allow full width to prevent cutoff */
}
.badge{
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.32);
  color:#fff; font-weight:500;
  padding:6px 10px; border-radius:var(--radius-full);
  box-shadow:0 1px 3px rgba(0,0,0,.25);
  white-space:nowrap;
}

/* Mock panel polish */
.hero__mock{
  position:relative; z-index:1;
  box-shadow:0 10px 40px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.25);
}

/* Responsive tweaks */
@media (max-width:1024px){
  .hero__copy{ max-width:680px; }
  .lead{ font-size:18px; }
}
@media (max-width:640px){
  .hero h1{ font-size: clamp(28px, 7vw, 40px); }
  .hero__copy{ max-width:100%; }
}
/* ===== Sections (light) ===== */
.section{padding:64px 0}
.section__title{
  font-size:clamp(22px,4vw,34px);margin:0 0 6px;
  background:var(--primary-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text
}
.section__lead{color:var(--text-secondary);margin:0 0 28px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{
  background:var(--pure-white);border:1px solid var(--border-gray);border-radius:12px;padding:18px;
  box-shadow:var(--shadow-sm);transition:transform .2s ease, box-shadow .2s ease
}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.card h3{margin:6px 0 8px;font-size:18px;color:var(--deep-blue)}
.card p{color:var(--text-secondary);font-size:15px}

/* ===== How It Works ===== */
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.step{text-align:center;background:var(--pure-white);border:1px solid var(--border-gray);border-radius:12px;padding:20px;box-shadow:var(--shadow-sm)}
.step .num{
  width:36px;height:36px;border-radius:var(--radius-full);display:inline-grid;place-items:center;
  background:rgba(0,191,255,.12);border:1px solid rgba(0,191,255,.45);color:var(--deep-blue);font-weight:800;margin-bottom:10px
}

/* ===== Use Cases ===== */
.tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.tab{border:1px solid var(--border-gray);background:var(--pure-white);color:var(--text-primary);padding:8px 12px;border-radius:var(--radius-full);cursor:pointer;transition:transform .2s ease, box-shadow .2s ease}
.tab:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.tab.is-active{background:var(--primary-gradient);color:#fff;border:none}

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

/* ===== Testimonials ===== */
.quotes{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.quote{background:var(--pure-white);border:1px solid var(--border-gray);border-radius:12px;padding:18px;font-size:15px;color:var(--text-secondary);box-shadow:var(--shadow-sm)}
.quote strong{color:var(--deep-blue);display:block;margin-top:10px}

/* ===== Pricing ===== */
.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:stretch}
.price-card{
  background:linear-gradient(180deg, rgba(0,51,102,.04), rgba(0,191,255,.03));
  border:1px solid var(--border-gray);border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow-sm)
}
.price{font-size:36px;font-weight:300;letter-spacing:-.02em;color:var(--deep-blue)}
.features{list-style:none;padding:0;margin:0;color:var(--text-secondary);display:grid;gap:8px}
.features li{position:relative;padding-left:1.25rem}
.features li::before{content:"✓";position:absolute;left:0;color:var(--success-green);font-weight:700}

/* ===== Final CTA ===== */
.cta-panel{
  background:var(--primary-gradient);
  border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:30px;display:grid;gap:10px;text-align:center;color:#fff;
  box-shadow:var(--shadow-lg)
}
.cta-panel .section__title{-webkit-text-fill-color:#fff;background:none}

/* ===== Footer ===== */
.site-footer{padding:40px 0;color:var(--text-secondary);border-top:1px solid var(--border-gray);background:var(--pure-white)}

/* ===== Responsive ===== */
@media (max-width:1200px){
  .steps{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:1024px){
  .hero__grid{grid-template-columns:1fr}
  .steps{grid-template-columns:repeat(3,1fr)}
  .grid-3,.pricing,.usecases,.quotes{grid-template-columns:1fr 1fr}
  .two-column-section{grid-template-columns:1fr; gap:2rem}
}
@media (max-width:640px){
  .nav{display:none}
  .steps,.grid-3,.pricing,.usecases,.quotes{grid-template-columns:1fr}
  .site-header__row{gap:14px}
  .two-column-section{grid-template-columns:1fr; gap:1.5rem}
}

/* A11y */
.btn:focus, .nav a:focus {outline:2px solid #fff; box-shadow:0 0 0 3px rgba(0,0,0,.35)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
