:root {
  --dark: #040922;
  --deep: #0f2385;
  --accent: #3269ff;
  --accent-hover: #1f52e0;
  --gold: #ffe9b3;
  --mid: #425a9e;
  --soft: #b8a9d8;
  --white: #ffffff;
  --text: #c8d0e8;
  --text-muted: #8b95b5;
  --surface: #0a1235;
  --surface-alt: #0c1848;
  --border: rgba(184, 169, 216, 0.18);
  --shadow: 0 16px 48px rgba(4, 9, 34, 0.45);
  --radius: 8px;
  --container: 1140px;
  --header-h: 84px;
  --font-display: "Sora", system-ui, sans-serif;
  --font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--dark);
  line-height: 1.65;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--gold); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--accent); color: var(--white); padding: 0.75rem 1rem;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header--overlay {
  background: linear-gradient(180deg, rgba(4,9,34,0.88) 0%, rgba(4,9,34,0) 100%);
}
.site-header--solid, .site-header.is-scrolled {
  background: rgba(4, 9, 34, 0.96);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.brand img { height: 40px; width: auto; }

.nav-menu ul {
  display: flex; align-items: center; gap: 1.35rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu > ul > li { position: relative; }
.nav-menu a {
  color: rgba(255,255,255,0.92); font-size: 0.9rem; font-weight: 500;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }

.has-dropdown .dropdown {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.5rem 0; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  list-style: none; margin: 0;
}
.has-dropdown:hover .dropdown, .has-dropdown.is-open .dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.dropdown a {
  color: var(--text); display: block; padding: 0.5rem 1rem; font-size: 0.88rem;
}
.dropdown a:hover { background: rgba(50,105,255,0.15); color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn, .header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.4rem; border-radius: 4px; font-family: var(--font);
  font-size: 0.88rem; font-weight: 600; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary, .header-cta {
  background: var(--accent); color: var(--white) !important;
}
.btn-primary:hover, .header-cta:hover {
  background: var(--accent-hover); transform: translateY(-1px); color: var(--white) !important;
}
.btn-outline {
  background: transparent; color: var(--white); border: 2px solid rgba(255,233,179,0.55);
}
.btn-outline:hover {
  background: var(--gold); color: var(--dark); border-color: var(--gold);
}
.btn-secondary {
  background: rgba(50,105,255,0.18); color: var(--white); border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(50,105,255,0.32); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 0.5rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white);
  background: center / cover no-repeat; padding-top: var(--header-h);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 40%, rgba(15,35,133,0.35) 0%, transparent 60%),
    linear-gradient(180deg, rgba(4,9,34,0.72) 0%, rgba(4,9,34,0.55) 45%, rgba(4,9,34,0.88) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 820px; }
.hero-brand {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600; letter-spacing: 0.04em; color: var(--gold);
  margin: 0 0 1.25rem; opacity: 0; animation: riseIn 0.8s ease 0.1s forwards;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4.8vw, 3.1rem);
  font-weight: 700; line-height: 1.15; margin: 0 0 1.15rem; color: var(--white);
  opacity: 0; animation: riseIn 0.85s ease 0.25s forwards;
}
.hero-highlight { color: var(--gold); }
.hero p {
  font-size: 1.08rem; max-width: 620px; margin: 0 0 1.85rem;
  color: rgba(255,255,255,0.9);
  opacity: 0; animation: riseIn 0.85s ease 0.4s forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  opacity: 0; animation: riseIn 0.85s ease 0.55s forwards;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.page-hero {
  padding: calc(var(--header-h) + 3.25rem) 0 3rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(50,105,255,0.25) 0%, transparent 55%),
    linear-gradient(135deg, var(--dark) 0%, var(--deep) 100%);
  color: var(--white);
}
.page-hero--compact { padding-bottom: 2rem; }
.page-hero h1 {
  margin: 0 0 0.75rem; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.page-hero p { margin: 0; max-width: 720px; color: rgba(255,255,255,0.88); }

.section { padding: 4.75rem 0; }
.section-alt {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
}
.section-header { max-width: 720px; margin-bottom: 2.5rem; }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700; color: var(--white); margin: 0 0 1rem; line-height: 1.2;
}
.section-lead { font-size: 1.05rem; max-width: 680px; margin: 0; color: var(--text-muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 600; color: var(--gold); margin: 0 0 0.5rem;
}

.split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.35rem;
}
.card-grid--services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.service-card, .service-overview-card, .info-card, .case-card {
  background: rgba(10, 18, 53, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover, .service-overview-card:hover, .case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(50,105,255,0.45);
  box-shadow: 0 12px 36px rgba(50,105,255,0.12);
}
.service-card-body, .service-overview-card { padding: 1.35rem 1.4rem 1.55rem; }
.service-card h5, .service-overview-card h3, .case-card h3 {
  margin: 0 0 0.55rem; font-size: 1.08rem; font-weight: 600;
  font-family: var(--font-display); color: var(--white);
}
.service-card h5 a, .service-overview-card h3 a, .case-card h3 a { color: inherit; }
.service-card h5 a:hover, .service-overview-card h3 a:hover { color: var(--gold); }
.service-card p, .service-overview-card p, .case-card p {
  margin: 0 0 0.85rem; font-size: 0.95rem; color: var(--text-muted);
}
.service-card-icon {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; padding: 1.25rem 1.4rem 0;
}
.link-arrow {
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent);
}
.link-arrow:hover { color: var(--gold); }

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.85rem; color: var(--text); }
.icon-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(50,105,255,0.25);
}

.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  text-align: center;
}
.stat-item {
  padding: 1.75rem 1rem;
  border-top: 2px solid var(--accent);
}
.stat-value {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700; color: var(--gold); margin: 0 0 0.35rem; line-height: 1;
}
.stat-label {
  margin: 0; font-size: 0.95rem; color: var(--text-muted); font-weight: 500;
}

.case-card img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  background: var(--surface-alt);
}
.case-card-body { padding: 1.25rem 1.35rem 1.5rem; }

.client-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.25rem 2.75rem;
}
.client-logo {
  height: 36px; width: auto; max-width: 140px; object-fit: contain;
  opacity: 0.78; filter: brightness(1.15) grayscale(15%);
  transition: opacity 0.2s, filter 0.2s;
}
.client-logo:hover { opacity: 1; filter: none; }

.cta-band {
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(50,105,255,0.28) 0%, transparent 55%),
    linear-gradient(135deg, var(--dark) 0%, var(--deep) 55%, #1630a8 100%);
  color: var(--white);
}
.cta-band .section-title { color: var(--white); }

.info-card { padding: 1.75rem; }
.info-card h3 {
  margin: 0 0 0.75rem; color: var(--white);
  font-family: var(--font-display); font-size: 1.15rem;
}
.info-card p { margin: 0; color: var(--text-muted); }

.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start;
}
.contact-info .info-block { margin-bottom: 1.75rem; }
.contact-info h3 {
  margin: 0 0 0.5rem; color: var(--gold); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.contact-info p, .contact-info a { color: var(--text); }
.address-list { list-style: none; margin: 0; padding: 0; }
.address-list li { margin-bottom: 1.15rem; }
.address-list strong {
  display: block; color: var(--white); font-size: 0.92rem; margin-bottom: 0.25rem;
}

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.form-title {
  margin: 0 0 0.35rem; font-size: 1.35rem; font-weight: 600;
  font-family: var(--font-display); color: var(--white);
}
.form-intro { margin: 0 0 1.5rem; color: var(--text-muted); }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; margin-bottom: 0.35rem; font-size: 0.9rem;
  font-weight: 500; color: var(--soft);
}
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1px solid var(--border); border-radius: 4px;
  background: rgba(4,9,34,0.65); color: var(--white);
  font-family: var(--font); font-size: 0.95rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(50,105,255,0.2);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.9rem; }
.form-status--success { background: rgba(46,160,90,0.18); color: #9be7b5; }
.form-status--error { background: rgba(180,50,40,0.2); color: #ffb4ae; }

.detail-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start;
}
.detail-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.sidebar-link {
  display: block; padding: 0.55rem 0.85rem; border-radius: 4px;
  color: var(--text); font-size: 0.9rem;
  background: rgba(10,18,53,0.8); border: 1px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(50,105,255,0.2); color: var(--gold); border-color: var(--border);
}
.prose-content h2, .prose-content h3, .prose-content h4 {
  color: var(--white); font-family: var(--font-display); margin-top: 1.5rem;
}
.prose-content p { color: var(--text-muted); }
.prose-content ul { padding-left: 1.25rem; color: var(--text); }
.prose-content li { margin-bottom: 0.4rem; }
.detail-cta {
  margin-top: 2rem; padding: 1.5rem;
  background: rgba(15,35,133,0.35); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.detail-cta h3 { margin: 0 0 0.5rem; color: var(--white); font-family: var(--font-display); }

.footer-note { font-size: 0.9rem; margin: 0 0 0.75rem; color: var(--text-muted); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.newsletter-form input[type="email"] {
  flex: 1 1 180px; padding: 0.65rem 0.85rem;
  border: 1px solid var(--border); border-radius: 4px;
  background: rgba(4,9,34,0.65); color: var(--white); font-family: var(--font);
}

.legal-content h1 { margin-top: 0; font-family: var(--font-display); color: var(--white); }
.legal-content p { margin: 0 0 1rem; color: var(--text-muted); }
.legal-content strong { display: block; margin-top: 1.25rem; color: var(--gold); }

.site-footer {
  background: #020618; color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-col h3 {
  color: var(--white); font-size: 0.95rem; font-weight: 600;
  font-family: var(--font-display); margin: 0 0 0.85rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: rgba(255,255,255,0.72); }

.fade-in {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .split-grid, .contact-layout, .detail-layout, .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto;
    background: rgba(4,9,34,0.98); padding: 1.25rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > ul { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; border: none;
    padding: 0.25rem 0 0.5rem 1rem; display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,0.85); padding: 0.35rem 0; background: transparent; }
  .header-actions .btn-outline { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 3.25rem 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .brand img { height: 34px; }
}
