:root {
  --accent: #5B7CFF;
  --accent2: #7CF2C2;
  --bg-primary: #0A0B10;
  --bg-secondary: #111218;
  --bg-card: #15161D;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 11, 16, 0.95);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 5.5rem;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  line-height: 0;
}

.logo img {
  display: block;
  height: clamp(2.75rem, 5.5vw, 3.5rem);
  width: auto;
}

.site-footer .logo img {
  height: clamp(2rem, 4vw, 2.75rem);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 5.5rem;
  left: 0;
  right: 0;
  background: rgba(10, 11, 16, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  z-index: 99;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

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

/* ── Accent Line ── */
.accent-line {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
  opacity: 0.6;
}

/* ── Container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 10rem 0 6rem;
}

.hero-gradient {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(91, 124, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero .subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #4A6BEE;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(91, 124, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── Section ── */
.section {
  border-top: 1px solid var(--border-color);
}

.section-padded {
  padding: 6rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-accent {
  color: var(--accent);
  font-weight: 500;
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.section-desc {
  margin-top: 1rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
}

/* ── Grid ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

/* ── Pillar Cards ── */
.pillar h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.pillar p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Service Cards ── */
.card {
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--bg-card);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(91, 124, 255, 0.3);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.card p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Approach Steps ── */
.step-number {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

.step h4 {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.step p {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── CTA ── */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  text-align: center;
  background: var(--bg-secondary);
}

.cta-gradient {
  position: absolute;
  top: 0;
  left: -10%;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(91, 124, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}

.cta-section .cta-desc {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  position: relative;
}

.cta-section .btn {
  margin-top: 2.5rem;
  position: relative;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left p {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-center {
  text-align: center;
}

.footer-center h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-center .offices {
  display: flex;
  gap: 2.5rem;
  margin-top: 0.75rem;
}

.footer-center .office p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.footer-center .office strong {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.8125rem;
}

.footer-center .office a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-center .office a:hover {
  color: var(--text-primary);
}

.footer-right {
  text-align: right;
}

.footer-right p {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-right a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

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

/* ── Legal document page ── */
.legal-page {
  padding: 6.5rem 0 4rem;
}

.legal-doc {
  max-width: 42rem;
}

.legal-doc h1 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.legal-doc .legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-doc h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.legal-doc p,
.legal-doc li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal-doc p {
  margin-bottom: 0.75rem;
}

.legal-doc ul {
  margin: 0.25rem 0 1rem 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: none;
}

.legal-doc a:hover {
  text-decoration: underline;
}

/* ── Fade-in Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.08s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.16s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.24s; }
.stagger > .fade-up:nth-child(5) { transition-delay: 0.32s; }
.stagger > .fade-up:nth-child(6) { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-padded {
    padding: 4rem 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-center .offices {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-section {
    padding: 5rem 0;
  }
}
