:root {
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-light: #e0e7ff;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --body: #475569;
  --muted: #64748b;
  --card: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --max-w: 1180px;
  --radius: 16px;
}

/* * { box-sizing: border-box; } */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Archivo Black', sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
/* .btn:hover { transform: translateY(-2px); } */
.btn-primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover { background: var(--indigo-dark); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  font-size: 2rem;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--indigo-light); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
  background-color: rgb(224 231 255 / var(--tw-bg-opacity, 1));
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--indigo);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Section helpers */
section { padding: 72px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin-bottom: 16px;
}
.intro { background: var(--white); }
.intro .section-head p { font-size: 17px; }

/* Capabilities */
.capabilities { background: var(--white); }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cap-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.25);
}
.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--indigo-light);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.cap-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.cap-card p { font-size: 15px; margin: 0; }

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 35px 0;
}
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.3);
}
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature-copy h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 16px;
}
.feature-copy p { font-size: 16px; }
.features-alt { background: var(--card); }

/* Governance */
.governance .feature-row { padding: 0; }

/* CTA */
.cta {
  background: var(--indigo-light);
  text-align: center;
  border-radius: var(--radius);
  padding: 56px 32px;
  margin: 0 24px;
  max-width: calc(var(--max-w) - 48px);
  margin-left: auto;
  margin-right: auto;
}
.cta h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 16px;
}
.cta p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

/* Footer */
footer {
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--indigo);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(79, 70, 229, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease, visibility 0.25s ease;
  z-index: 200;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--indigo-dark); }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image-wrap { order: -1; }
  .cap-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; padding: 32px 0; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; width: 100%; }
  .nav-toggle { display: flex; }
}
