:root {
  --bg: #f0f5fc;
  --bg-elevated: #ffffff;
  --bg-soft: #e8f0fb;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #c5d4ea;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #dbeafe;
  --accent: #2563eb;
  --shadow: 0 10px 40px rgba(29, 78, 216, 0.08);
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --glow: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(37, 99, 235, 0.22), transparent 55%),
          radial-gradient(ellipse 60% 40% at 90% 10%, rgba(14, 165, 233, 0.16), transparent 50%);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

body { position: relative; }

.bg-glow {
  position: fixed;
  inset: 0;
  background: var(--glow);
  pointer-events: none;
  z-index: 0;
}

.site-wrap { position: relative; z-index: 1; }

a { color: var(--accent); }
a:hover { color: var(--primary-hover); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px 14px;
  border: 2px solid #fff;
  border-radius: 4px;
  border-bottom: 0;
  opacity: 0.92;
}

.brand-text { min-width: 0; }
.brand-text strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand-text span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover { background: var(--bg-soft); }

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); color: #fff; }
.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn.ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn.lg { padding: 14px 22px; font-size: 1rem; border-radius: 12px; }

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 42%, #0ea5e9 100%),
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(14, 165, 233, 0.35), transparent 50%);
}

.hero-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 56px 0 64px;
  animation: fadeUp .45s ease;
}

.hero-brand {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 34ch;
}

.hero-support {
  margin: 0 0 26px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
  line-height: 1.45;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 56px 0 8px;
}

.section-head { margin-bottom: 22px; max-width: 52ch; }
.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.prose {
  display: grid;
  gap: 14px;
  color: var(--text);
  line-height: 1.65;
  font-size: 1.02rem;
}
.prose p { margin: 0; }

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.contact-list li {
  display: grid;
  gap: 2px;
}
.contact-list .label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-list a { font-weight: 700; text-decoration: none; }
.contact-list span { color: var(--text); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s, background .15s;
}
.brand-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  background: #fff;
  color: inherit;
}
.brand-card.is-current {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: var(--primary-soft);
}
.brand-card-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand-card-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.page-hero {
  width: min(100% - 40px, var(--max));
  margin: 28px auto 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 26px;
  animation: fadeUp .35s ease;
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}
.page-hero p {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.5;
}

.site-footer {
  width: min(100% - 40px, var(--max));
  margin: 48px auto 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}
.site-footer a { color: inherit; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--accent); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn { width: 100%; justify-content: center; }
  .brand-text strong { font-size: 0.95rem; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 78vh; }
  .hero-inner { padding: 40px 0 48px; }
}

@media (max-width: 420px) {
  .brand-grid { grid-template-columns: 1fr 1fr; }
}
