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

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1420;
  --bg-tertiary: #15192a;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6b6b72;
  --accent-blue: #3b82f6;
  --accent-warm: #f59e0b;
  --border-color: #1f2533;
  --grid-spacing: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

.site-nav {
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--grid-spacing) * 4);
  background: rgba(10, 14, 26, 0.95);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo { display: flex; color: var(--text-primary); text-decoration: none; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: calc(var(--grid-spacing) * 3);
  list-style: none;
}

.site-nav li { list-style: none; }

.site-nav a:not(.logo) {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.site-nav a:not(.logo):hover { color: var(--accent-blue); }

/* Legal pages use a document header instead of the homepage's fixed header. */
.site-nav.legal-nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: calc(100% - 48px);
  margin: 16px 24px 0;
}

section {
  padding: calc(var(--grid-spacing) * 8) calc(var(--grid-spacing) * 6);
  border-bottom: 1px solid var(--border-color);
}

section.light-bg { background: var(--bg-secondary); }

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: linear-gradient(90deg, var(--accent-blue) 1px, transparent 1px), linear-gradient(0deg, var(--accent-blue) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 900px; text-align: center; animation: fade-in-up 1s ease-out; }

.hero-kicker,
.section-kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.hero-kicker { margin-bottom: calc(var(--grid-spacing) * 3); }

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
h1 { margin-bottom: calc(var(--grid-spacing) * 4); color: var(--text-primary); }
h1 svg { display: inline-block; max-width: 100%; height: auto; }

.hero-tagline {
  max-width: 600px;
  margin: 0 auto calc(var(--grid-spacing) * 6);
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--grid-spacing) * 4);
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.meta-separator { width: 1px; height: 16px; background: var(--border-color); }

.section-content,
.section-header { max-width: 900px; margin-right: auto; margin-left: auto; }
.section-header { margin-bottom: calc(var(--grid-spacing) * 6); }
.section-kicker { margin-bottom: calc(var(--grid-spacing) * 2); }

h2 {
  margin-bottom: calc(var(--grid-spacing) * 4);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-description { max-width: 700px; color: var(--text-secondary); font-size: 16px; font-weight: 300; line-height: 1.8; }

.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--grid-spacing) * 6); }

.philosophy-item { padding: calc(var(--grid-spacing) * 3); border-left: 2px solid var(--accent-blue); background: rgba(59, 130, 246, 0.03); }

.philosophy-item h3,
.approach-content h3 { margin-bottom: calc(var(--grid-spacing) * 2); color: var(--text-primary); font-size: 14px; font-weight: 600; letter-spacing: 0.3px; }

.philosophy-item p,
.service-card-desc,
.approach-content p { color: var(--text-secondary); font-size: 14px; font-weight: 300; line-height: 1.7; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: calc(var(--grid-spacing) * 4); }

.service-card {
  position: relative;
  overflow: hidden;
  padding: calc(var(--grid-spacing) * 4);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-tertiary);
  transition: all 0.3s ease;
}

.service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent-blue);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover { border-color: var(--accent-blue); background: rgba(59, 130, 246, 0.05); }
.service-card:hover::before { transform: scaleX(1); }

.service-card-title { margin-bottom: calc(var(--grid-spacing) * 2); color: var(--text-primary); font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: 0.2px; }

.approach-list { max-width: 900px; margin: 0 auto; list-style: none; }
.approach-list li { display: flex; gap: calc(var(--grid-spacing) * 3); padding: calc(var(--grid-spacing) * 3) 0; border-bottom: 1px solid var(--border-color); }
.approach-list li:last-child { border-bottom: none; }
.approach-number { min-width: 40px; color: var(--accent-blue); font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 600; opacity: 0.6; }
.approach-content h3 { margin-bottom: var(--grid-spacing); font-size: 16px; }

#contact { padding-bottom: calc(var(--grid-spacing) * 8); background: linear-gradient(135deg, var(--bg-primary), var(--bg-tertiary)); border-bottom: none; }
.contact-content { max-width: 800px; margin: 0 auto; text-align: center; }
.contact-cta { margin-top: calc(var(--grid-spacing) * 4); color: var(--text-secondary); font-size: 18px; font-weight: 300; line-height: 1.8; }
.contact-offices { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--grid-spacing) * 4); margin-top: calc(var(--grid-spacing) * 5); text-align: left; }

.contact-office-card { padding: calc(var(--grid-spacing) * 4); border: 1px solid var(--border-color); border-top: 2px solid var(--accent-blue); border-radius: 6px; background: var(--bg-tertiary); }
.contact-office-label { margin-bottom: calc(var(--grid-spacing) * 2); color: var(--accent-blue); font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.contact-office-name { margin-bottom: calc(var(--grid-spacing) * 2); color: var(--text-primary); font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; }
.contact-office-address { margin-bottom: calc(var(--grid-spacing) * 3); color: var(--text-secondary); font-size: 14px; font-weight: 300; line-height: 1.7; }

.contact-email { display: inline-block; padding: calc(var(--grid-spacing) * 1.5) calc(var(--grid-spacing) * 3); border-radius: 4px; background: var(--accent-blue); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; text-decoration: none; transition: all 0.3s ease; }
.contact-email:hover { background: #2563eb; transform: translateY(-2px); }
.contact-meta { margin-top: calc(var(--grid-spacing) * 6); padding-top: calc(var(--grid-spacing) * 4); border-top: 1px solid var(--border-color); color: var(--text-tertiary); font-size: 12px; letter-spacing: 0.3px; }

footer { padding: calc(var(--grid-spacing) * 4); border-top: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-tertiary); font-size: 11px; letter-spacing: 0.3px; text-align: center; }
.footer-registration, .footer-disclaimer { max-width: 700px; margin-right: auto; margin-left: auto; line-height: 1.6; }
.footer-registration { margin-top: 16px; }
.footer-disclaimer { margin-top: 12px; color: #4a4a55; font-size: 10px; }
.footer-privacy { max-width: 700px; margin: 12px auto 0; line-height: 1.6; }
.footer-privacy a { color: var(--text-secondary); text-underline-offset: 2px; }
.footer-privacy a:hover { color: var(--accent-blue); }

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px 80px;
}

.legal-page h1 { margin-bottom: 12px; font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 600; }
.legal-page .legal-updated { margin-bottom: 40px; color: var(--text-tertiary); font-size: 12px; }
.legal-page section { padding: 32px 0; border-bottom: 1px solid var(--border-color); }
.legal-page section:first-of-type { border-top: 1px solid var(--border-color); }
.legal-page h2 { margin-bottom: 16px; color: var(--text-primary); font-size: 24px; }
.legal-page p, .legal-page li { max-width: 760px; color: var(--text-secondary); font-size: 15px; font-weight: 300; line-height: 1.8; }
.legal-page p + p { margin-top: 16px; }
.legal-page ul { max-width: 760px; padding-left: 22px; }
.legal-page a { color: var(--text-primary); }
.legal-page a:hover { color: var(--accent-blue); }
.legal-back { display: inline-block; margin-top: 40px; color: var(--text-secondary); font-size: 13px; text-decoration: none; }
.legal-back:hover { color: var(--accent-blue); }

.fade-in-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-on-scroll.visible { opacity: 1; transform: translateY(0); }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .site-nav { top: 10px; left: 12px; right: 12px; flex-direction: column; gap: calc(var(--grid-spacing) * 2); padding: calc(var(--grid-spacing) * 2); }
  .site-nav.legal-nav { top: auto; left: auto; right: auto; width: calc(100% - 24px); margin: 10px 12px 0; }
  .site-nav ul { flex-wrap: wrap; justify-content: center; gap: calc(var(--grid-spacing) * 1.5); }
  #hero { padding-top: 180px; }
  .hero-tagline { font-size: 16px; }
  h2 { font-size: 28px; }
  section { padding: calc(var(--grid-spacing) * 4) calc(var(--grid-spacing) * 3); }
  .philosophy-grid, .contact-offices { grid-template-columns: 1fr; gap: calc(var(--grid-spacing) * 4); }
  .services-grid { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; gap: calc(var(--grid-spacing) * 2); }
  .meta-separator { width: 20px; height: 1px; }
  .legal-page { padding-top: 48px; }
}
