/* =============================================================
   State of the Sector — Design System
   ============================================================= */

:root {
  --primary:         #1e3a8a;
  --primary-mid:     #2563eb;
  --primary-light:   #3b82f6;
  --secondary:       #0d9488;
  --secondary-light: #14b8a6;
  --accent:          #7c3aed;

  --text:            #0f172a;
  --text-body:       #334155;
  --text-muted:      #64748b;

  --bg:              #ffffff;
  --bg-subtle:       #f8fafc;
  --border:          #e2e8f0;

  --nav-h:           68px;
  --r:               12px;
  --r-lg:            20px;
  --shadow:          0 4px 24px rgba(0,0,0,.07);
  --shadow-lg:       0 20px 60px rgba(0,0,0,.12);

  --grad:            linear-gradient(135deg, var(--primary-mid) 0%, var(--secondary) 100%);
  --grad-text:       linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,.7);
  transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; gap: 2rem;
}

.nav-brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; background: var(--grad); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .85rem;
}
.brand-copy { display: flex; flex-direction: column; }
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem; font-weight: 700;
  color: var(--primary); line-height: 1; letter-spacing: -.01em;
}
.brand-url { font-size: .65rem; color: var(--text-muted); line-height: 1; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: .2rem; flex: 1; }
.nav-a {
  font-size: .875rem; font-weight: 500; color: var(--text-body);
  padding: .4rem .9rem; border-radius: 8px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav-a:hover { color: var(--primary-mid); background: rgba(37,99,235,.06); }
.nav-a.active { color: var(--primary-mid); background: rgba(37,99,235,.1); font-weight: 600; }

.nav-end { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.btn-nav {
  font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 600;
  padding: .5rem 1.2rem; border-radius: 8px;
  background: var(--grad); color: white; border: none; cursor: pointer;
  transition: opacity .2s, transform .15s; white-space: nowrap;
}
.btn-nav:hover { opacity: .88; transform: translateY(-1px); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; color: var(--text); font-size: 1.2rem;
}

/* ── Mobile Nav ──────────────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(15,23,42,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-panel {
  position: absolute; top: 0; right: 0;
  width: min(300px, 88vw); height: 100%; background: white;
  padding: 1.5rem; transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column; gap: .4rem; overflow-y: auto;
}
.mobile-nav.open .mobile-panel { transform: translateX(0); }
.mob-a {
  display: flex; align-items: center; gap: .75rem;
  font-size: .95rem; font-weight: 500; color: var(--text-body);
  padding: .8rem 1rem; border-radius: 10px; transition: background .15s, color .15s;
}
.mob-a i { width: 18px; text-align: center; color: var(--primary-mid); }
.mob-a:hover { background: var(--bg-subtle); color: var(--primary-mid); }
.mob-sep { height: 1px; background: var(--border); margin: .4rem 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Inter', sans-serif; font-weight: 600; border-radius: 10px;
  border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .2s;
}
.btn-primary {
  background: var(--grad); color: white;
  padding: .8rem 1.75rem; font-size: 1rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.28); }
.btn-outline {
  background: transparent; color: var(--primary-mid);
  border: 2px solid var(--primary-mid);
  padding: .75rem 1.65rem; font-size: 1rem;
}
.btn-outline:hover { background: rgba(37,99,235,.06); transform: translateY(-1px); }

/* ── Layout ───────────────────────────────────────────────── */
main { padding-top: var(--nav-h); min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  padding: .35rem .95rem; border-radius: 100px;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(13,148,136,.1));
  color: var(--primary-mid); border: 1px solid rgba(37,99,235,.15);
  margin-bottom: 1.25rem;
}
.badge-amber {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e; border-color: #fcd34d;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 5rem 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; width: 100%;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1; margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 2.5rem; max-width: 520px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Floating shapes */
.shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute; border-radius: 50%; opacity: .08;
  animation: floatUp 7s ease-in-out infinite;
}
.s1 { width: 360px; height: 360px; background: var(--primary-mid); top: -10%; right: -6%; }
.s2 { width: 220px; height: 220px; background: var(--secondary); bottom: 5%; right: 8%; animation-delay: -2.5s; }
.s3 { width: 140px; height: 140px; background: var(--accent); top: 45%; right: 38%; animation-delay: -4.5s; opacity: .05; }
@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-22px) rotate(6deg); }
}

/* ── Hero Visual Card ─────────────────────────────────────── */
.hero-card {
  background: white; border-radius: var(--r-lg); padding: 2rem;
  box-shadow: 0 32px 80px rgba(37,99,235,.13);
  border: 1px solid rgba(37,99,235,.1);
  position: relative; z-index: 2; width: 100%; max-width: 420px;
}
.hc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.hc-title { font-family: 'Space Grotesk', sans-serif; font-size: .95rem; font-weight: 700; }
.loc-pill {
  background: var(--grad); color: white;
  font-size: .7rem; font-weight: 700; padding: .25rem .7rem;
  border-radius: 100px; text-transform: uppercase; letter-spacing: .05em;
}
.chart-bars { display: flex; align-items: flex-end; gap: .45rem; height: 80px; margin: 1.25rem 0; }
.bar {
  flex: 1; border-radius: 4px 4px 0 0; background: var(--grad);
  transform-origin: bottom; animation: barRise .8s ease forwards; opacity: 0;
}
.bar:nth-child(1) { animation-delay: .1s; }
.bar:nth-child(2) { animation-delay: .22s; }
.bar:nth-child(3) { animation-delay: .34s; }
.bar:nth-child(4) { animation-delay: .46s; }
.bar:nth-child(5) { animation-delay: .58s; }
.bar:nth-child(6) { animation-delay: .7s; }
@keyframes barRise {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
.hc-meta { display: flex; gap: 1.5rem; }
.hc-metric { display: flex; flex-direction: column; gap: .15rem; }
.hc-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--primary-mid); }
.hc-lbl { font-size: .72rem; color: var(--text-muted); }

/* ── Stat Cards ───────────────────────────────────────────── */
.cards-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem; margin: 4rem 0;
}
.stat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.75rem; transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(13,148,136,.08));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--primary-mid); font-size: 1.1rem; margin-bottom: 1rem;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: .25rem;
}
.stat-lbl { font-size: .875rem; color: var(--text-muted); font-weight: 500; }

/* ── Feature Cards ────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 2rem; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.2); }
.feat-icon {
  width: 52px; height: 52px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: white; margin-bottom: 1.5rem;
}
.feat-card h3 { font-size: 1.1rem; margin-bottom: .65rem; }
.feat-card p  { color: var(--text-muted); font-size: .9rem; line-height: 1.65; flex: 1; }
.feat-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 600; color: var(--primary-mid);
  margin-top: 1.25rem; transition: gap .15s;
}
.feat-link:hover { gap: .7rem; }

/* ── Section Header ───────────────────────────────────────── */
.sec-header { text-align: center; margin-bottom: 3.5rem; }
.sec-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.sec-header p  { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #0f172a; color: #64748b; padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 2rem;
}
.footer-brand .brand-name { color: white; font-size: 1rem; }
.footer-brand .brand-url  { color: #475569; }
.footer-brand p { font-size: .875rem; line-height: 1.75; margin-top: 1rem; max-width: 270px; }
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem; font-weight: 700;
  color: #f1f5f9; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-col a  { font-size: .875rem; color: #64748b; transition: color .15s; }
.footer-col a:hover { color: #f1f5f9; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; }
.socials { display: flex; gap: .6rem; }
.soc-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: #64748b; font-size: .85rem; transition: background .15s, color .15s;
}
.soc-btn:hover { background: var(--primary-mid); color: white; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-end .btn-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead  { margin: 0 auto 2.5rem; }
  .hero-cta   { justify-content: center; }
  .hero-visual { display: none; }
  .cards-row  { grid-template-columns: 1fr 1fr; }
  .feat-grid  { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .cards-row  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 3rem 0; }
}
