:root{
  --bg:#ffffff; --text:#1a2332; --muted:#6b7280; --accent:#003d99; --accent-2:#009966;
  --surface:#f0f4f8; --card:#ffffff; --radius:12px; --glass: rgba(255,255,255,0.8);
}

[data-theme="dark"]{
  --bg:#0a1420; --text:#e8eef5; --muted:#8a94a6; --accent:#4d7acc; --accent-2:#1db88a;
  --surface:#0d1c2a; --card:#0f2236; --glass: rgba(0,0,0,0.4);
}

*{box-sizing:border-box}
html,body{height:100%}
body{font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; margin:0; background:var(--bg); color:var(--text); -webkit-font-smoothing:antialiased; line-height:1.5}

.container{max-width:1100px;margin:0 auto;padding:1.25rem}

.site-header{position:fixed;top:0;left:0;right:0;background:#ffffff;z-index:100000;border-bottom:1px solid rgba(0,0,0,0.08);box-shadow:0 6px 24px rgba(0,0,0,0.12)}
[data-theme="dark"] .site-header{background:#0a1420;border-bottom:1px solid rgba(255,255,255,0.08);box-shadow:0 6px 24px rgba(0,0,0,0.35)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.site-header + main{padding-top:72px}
.brand{font-weight:700;color:var(--text);text-decoration:none}

.main-nav{display:flex;align-items:center}
.nav-list{display:flex;gap:0.5rem;list-style:none;padding:0;margin:0}
.nav-list a{color:var(--text);text-decoration:none;padding:0.5rem;border-radius:8px}
.nav-list a:hover{background:var(--surface)}

.nav-toggle{display:none}
.theme-toggle{background:transparent;border:0;font-size:1.1rem;cursor:pointer}

/* Hero */
.hero{padding:4rem 0;background:linear-gradient(135deg,var(--surface),var(--bg))}
.hero-grid{display:grid;grid-template-columns:1fr 360px;gap:3rem;align-items:center}
.hero h1{font-size:2.2rem;font-weight:700;line-height:1.2;letter-spacing:-0.5px}
.tagline{font-weight:600;margin-top:0.25rem;color:var(--accent);font-size:1rem}
.hero-ctas{display:flex;gap:0.75rem;margin-top:1rem}
.btn{display:inline-block;padding:0.75rem 1.1rem;border-radius:10px;text-decoration:none;border:1px solid transparent}
.btn-primary{background:var(--accent);color:white}
.btn-ghost{background:transparent;color:var(--text);border:1px solid rgba(0,0,0,0.08)}

.hero-art .art-block{height:260px;border-radius:16px;background:linear-gradient(135deg,var(--accent-2),var(--accent));position:relative;display:flex;align-items:center;justify-content:center}
.art-block .signal{width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,0.12);box-shadow:0 6px 20px rgba(0,0,0,0.12)}
.art-block .device{position:absolute;right:28px;bottom:18px;width:80px;height:120px;background:var(--card);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,0.12)}

/* Sections */
.section{padding:2.5rem 0}
h2{margin-top:0;font-size:1.6rem;font-weight:700;letter-spacing:-0.3px}
.muted{color:var(--muted)}

.about-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0.5rem;margin-top:1rem}

.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}
.card{background:var(--card);padding:1rem;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,0.06)}
.sample{color:var(--muted);font-size:0.95rem}

/* Charts */
.metrics-section{margin-top:1rem}
.charts-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:0.75rem}
.chart{padding:0.75rem}
.chart .chart-svg{width:100%;height:220px;display:block}
.sr-only{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Tooltip */
.chart-tooltip{position:fixed;background:var(--card);color:var(--text);border:1px solid rgba(0,0,0,0.08);padding:6px 8px;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,0.12);font-size:13px;pointer-events:none;z-index:9999}

/* Animations */
@keyframes growBar { from { transform: translateY(20px) scaleY(0); opacity: 0.0 } to { transform: translateY(0) scaleY(1); opacity: 1 } }
.chart rect { transform-origin: center bottom; transition: transform 550ms cubic-bezier(.2,.9,.3,1), opacity 300ms; }
.chart rect.animate { animation: growBar 600ms ease forwards; }
.chart polyline { transition: stroke-dashoffset 800ms ease; }

.metrics-table{width:100%;border-collapse:collapse;margin-top:0.75rem}
.metrics-table th,.metrics-table td{padding:0.5rem;border:1px solid rgba(0,0,0,0.06);text-align:left}
.chart-data{margin-top:1rem}
@media (max-width:900px){
  .charts-grid{grid-template-columns:1fr}
}

/* Ensure steps-grid uses 3-up/2-down centered layout on desktop only */
@media (min-width:900px){
  .steps-grid{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}
  .steps-grid .step{flex:0 0 calc((100% - 2rem) / 3);max-width:360px}
}

/* Layout for steps and cards: centered 3-up / 2-down on desktop with responsive fallback */
.steps-grid, .cards-grid {
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  justify-content:center;
}

.steps-grid .step, .cards-grid .card {
  flex: 0 0 calc(33.333% - 0.66rem); /* three columns on wide screens */
  max-width:360px;
  min-width:220px;
}

@media (max-width:899px){
  .steps-grid .step, .cards-grid .card { flex:1 1 100%; max-width:none; min-width:0 }
}

.partners-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-top:1rem}
.partner-tile{background:linear-gradient(180deg,var(--surface),transparent);padding:1rem;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:600}

.territories .card p{margin-bottom:0}

.step-num{width:36px;height:36px;border-radius:50%;background:var(--accent);color:white;display:flex;align-items:center;justify-content:center;font-weight:700}

.experience .cards-grid{display:flex;flex-wrap:nowrap;gap:1rem;justify-content:center}
.experience .cards-grid .card{flex:1 1 auto;min-width:280px}

.section.territories .cards-grid,
.section.why .cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
  justify-items:stretch;
}

/* Layout for steps and cards: centered 3-up / 2-down on desktop */
.steps-grid, .why .cards-grid {
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  justify-content:center;
}

.steps-grid .step, .why .cards-grid .card {
  flex: 0 0 calc(33.333% - 0.66rem);
  max-width:360px;
  min-width:220px;
}

@media (max-width:899px){
  .steps-grid .step, .why .cards-grid .card { flex:1 1 100%; max-width:none; min-width:0 }
}

.stats-strip{display:flex;gap:1rem;margin-top:1rem;padding:0.75rem;background:var(--accent);color:white;border-radius:10px;overflow:auto}
.stats-strip .stat{min-width:220px}

@media (max-width:1200px){
  .experience .cards-grid{flex-wrap:wrap}
  .experience .cards-grid .card{flex:1 1 calc(50% - 0.5rem);min-width:280px}
}

@media (max-width:768px){
  .experience .cards-grid{flex-direction:column}
  .experience .cards-grid .card{flex:1 1 100%;min-width:0}
}

.testimonials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}
.testimonial{background:var(--card);padding:1rem;border-radius:10px}
.testimonial footer{font-size:0.9rem;color:var(--muted);margin-top:0.5rem}

/* Testimonials section with dark navy/teal background (full-width) */
.testimonials{background:linear-gradient(135deg,#0f3a5e,#0a2740);margin:0;padding:0;overflow:hidden}

/* Testimonials ticker (continuous horizontal scroll, full-width) */
.testimonial-ticker{overflow:hidden;position:relative;padding:3.5rem 0;background:linear-gradient(135deg,#0f3a5e,#0a2740);width:100vw;margin-left:calc(-50vw + 50%);position:relative}
.ticker-track{display:flex;gap:1.25rem;align-items:center;white-space:nowrap;padding:0 1.25rem}
.ticker-item{display:inline-flex;flex:0 0 auto;align-items:center;gap:0.75rem;padding:1.5rem 1.5rem;border-radius:0;background:transparent;box-shadow:none;font-weight:400;font-size:1.05rem;line-height:1.7;color:#c5d5e5;text-align:center;max-width:900px;font-style:italic}
@keyframes ticker-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.ticker-track.animated{animation: ticker-scroll 24s linear infinite}
@media (prefers-reduced-motion: reduce){
  .ticker-track.animated{animation: none}
}

.leadership-inner{display:flex;gap:1rem;align-items:center}
.avatar{width:72px;height:72px;border-radius:50%;background:var(--surface);display:flex;align-items:center;justify-content:center;font-weight:700}

.accordion-item{margin-bottom:0.5rem}
.accordion-toggle{width:100%;text-align:left;padding:0.75rem;border-radius:8px;border:1px solid rgba(0,0,0,0.06);background:var(--card);cursor:pointer}
.accordion-toggle[aria-expanded="true"]{outline:2px solid var(--accent);}
.accordion-panel{padding:0.75rem;border-left:3px solid transparent;margin-top:0.25rem}

.contact-form{display:grid;gap:0.75rem;max-width:640px}
.form-row label{display:block;font-size:0.95rem;margin-bottom:0.25rem}
.form-row input,.form-row textarea{width:100%;padding:0.6rem;border-radius:8px;border:1px solid rgba(0,0,0,0.08);background:transparent;color:var(--text)}
.contact-card{margin-top:1rem;padding:1rem;border-radius:10px;background:var(--card)}
.form-success{margin-top:0.5rem;color:var(--accent-2)}

.site-footer{border-top:1px solid rgba(0,0,0,0.1);padding:2.5rem 0;background:var(--surface)}
.footer-inner{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2rem;align-items:start}
.footer-inner > div{display:flex;flex-direction:column;gap:1rem}
.footer-inner a{color:var(--text);text-decoration:none;font-size:0.95rem;font-weight:500}
.footer-inner a:hover{color:var(--accent)}
.footer-inner p{margin:0;font-size:0.95rem;line-height:1.6}

/* Responsive */
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .hero-art{order:-1}
  .nav-list{display:none;position:absolute;right:1.25rem;top:64px;background:var(--card);padding:0.5rem;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,0.08)}
  .nav-toggle{display:inline-block}
}

@media (max-width:520px){
  .stats-strip{flex-direction:column}
  .footer-inner{grid-template-columns:1fr}
  .hero h1{font-size:1.6rem}
  h2{font-size:1.3rem}
}

/* Accessibility focus */
:focus{outline:3px solid rgba(0,123,255,0.18);outline-offset:2px}

/* Small utilities */
.muted{color:var(--muted)}
