/* ---------- Variables ---------- */
:root {
  --bg: #0a1640;
  --bg-deep: #060e2c;
  --bg-card: #13235e;
  --surface: rgba(19, 35, 94, 0.55);
  --surface-strong: rgba(24, 43, 112, 0.75);
  --text: #f8fafc;
  --text-muted: #a8b4d6;
  --border: rgba(138, 164, 255, 0.16);
  --border-strong: #24377f;
  --primary: #d4af37;
  --primary-light: #f1d77a;
  --primary-dark: #b8932b;
  --primary-foreground: #0a1640;
  --gold-gradient: linear-gradient(135deg, #f6e08f 0%, #d4af37 45%, #b8932b 100%);
  --accent: #4169e1;
  --accent-dark: #2f54c9;
  --accent-foreground: #ffffff;
  --accent-text: #8aa4ff;
  --destructive: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(2, 6, 23, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(2, 6, 23, 0.8);
  --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.45);
  --max-width: 1160px;
  --font: 'Montserrat', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 90% -10%, rgba(65, 105, 225, 0.32), transparent 60%),
    radial-gradient(800px 500px at -10% 5%, rgba(212, 175, 55, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(212, 175, 55, 0.35); color: var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-light); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--text); }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-family: var(--font); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.text-primary {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-accent { color: var(--accent-text); font-style: italic; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, rgba(19, 35, 94, 0) 0%, rgba(19, 35, 94, 0.45) 20%, rgba(19, 35, 94, 0.45) 80%, rgba(19, 35, 94, 0) 100%);
}
.section h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  margin: 0.4rem 0 1rem;
}
.section-note { margin-top: -0.5rem; font-size: 0.85rem; margin-bottom: 2rem; font-style: italic; opacity: 0.8; }

/* ---------- Eyebrow labels / badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border-radius: 999px;
  padding: 0.35em 0.95em;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.badge-mono {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.badge-mono::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-gradient);
}
.badge-outline {
  color: var(--primary-light);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85em 1.8em;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn-primary {
  background: var(--gold-gradient);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  color: var(--primary-foreground);
  box-shadow: 0 16px 36px -10px rgba(212, 175, 55, 0.6);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(248, 250, 252, 0.22);
  color: var(--text);
}
.btn-outline:hover {
  color: var(--primary-light);
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.06);
}
.btn-lg { font-size: 1.05rem; padding: 1em 2.2em; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 64, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(8, 18, 54, 0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.8);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text);
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-tagline {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 0.2rem;
}
.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.18);
  transition: box-shadow 0.3s ease;
}
.logo:hover .logo-mark { box-shadow: 0 0 24px rgba(212, 175, 55, 0.35); }
.logo-mark svg { width: 100%; height: 100%; display: block; }

.primary-nav ul {
  display: flex;
  gap: 0.35rem;
}
.primary-nav a {
  position: relative;
  display: block;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55em 1em;
  transition: color 0.2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 1em;
  right: 1em;
  bottom: 0.2em;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.primary-nav a:hover { color: var(--text); text-decoration: none; }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a.active { color: var(--primary-light); }
.primary-nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: 5rem; padding-bottom: 6rem; overflow-x: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0.5rem 0 0;
}
.hero-sub {
  font-size: 1.1rem;
  margin-top: 1.6rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* Hero emblem visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  width: 100%;
  margin-left: auto;
}
.hero-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 105, 225, 0.55) 0%, rgba(65, 105, 225, 0.12) 45%, transparent 70%);
  filter: blur(20px);
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.28);
}
.hero-ring-1 { inset: 4%; }
.hero-ring-2 { inset: 18%; border-color: rgba(138, 164, 255, 0.22); border-style: dashed; animation: spin 60s linear infinite; }
.hero-emblem {
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #1d3488 0%, #0d1b52 70%);
  border: 2px solid transparent;
  background-clip: padding-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.12), 0 0 60px rgba(212, 175, 55, 0.25), var(--shadow-lg);
}
.hero-emblem::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gold-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.hero-emblem span {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.1rem 0.75rem 0.75rem;
  border-radius: 14px;
  background: rgba(16, 30, 84, 0.78);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.float-card .fc-icon svg { width: 17px; height: 17px; }
.fc-icon-gold,
.fc-icon-blue {
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
  color: var(--primary-light);
}
.float-card .fc-icon svg { stroke-width: 1.6; }
.float-card small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--text-muted); }
.fc-1 { top: 8%; left: -4%; }
.fc-2 { top: 40%; right: -3%; animation-delay: -2s; }
.fc-3 { bottom: 6%; left: 4%; animation-delay: -4s; }
.fc-4 { bottom: 0; right: 2%; animation-delay: -1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Steps card (About / Contact) ---------- */
.steps-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow);
}
.steps-card h3 { font-size: 1.05rem; margin-bottom: 1.25rem; }
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1.1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  min-height: 2.1rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { display: block; font-size: 0.95rem; color: var(--text); font-weight: 600; }

/* Horizontal variant: each step is its own card */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.steps-row li {
  padding: 4.5rem 1.75rem 1.75rem;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.steps-row li::before {
  left: 1.75rem;
  top: 1.75rem;
  width: 2.25rem;
  height: 2.25rem;
}
.steps-row strong { font-size: 1.05rem; margin-bottom: 0.4rem; }
@media (max-width: 900px) {
  .steps-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps-row { grid-template-columns: 1fr; }
}
.steps span { display: block; font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Shared card treatment ---------- */
.service-card,
.value-card,
.mv-card,
.service-detail-card,
.contact-form-wrap,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-card,
.value-card {
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s var(--ease);
}
.service-card:hover,
.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212, 175, 55, 0.12);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem 2rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%),
    var(--surface);
}
/* Thin gold rule along the top edge that draws in on hover */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-highlight {
  border-color: rgba(212, 175, 55, 0.35);
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(212, 175, 55, 0.10), transparent 70%),
    var(--surface-strong);
}
.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(168, 180, 214, 0.55);
  transition: color 0.3s ease;
}
.service-card:hover .service-num { color: var(--primary); }
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.service-card-top .service-icon { margin-bottom: 0; }
.service-icon svg { width: 21px; height: 21px; }
.service-icon-primary { background: var(--gold-gradient); color: var(--primary-foreground); }
.service-icon-accent { background: var(--accent); color: var(--accent-foreground); }
.service-icon-line {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.06);
  color: var(--primary-light);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.service-icon-line svg { width: 22px; height: 22px; stroke-width: 1.6; }
.service-card:hover .service-icon-line,
.value-card:hover .service-icon-line,
.service-detail-card:hover .service-icon-line {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--primary);
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}
.service-card p { margin: 0 0 1.5rem; font-size: 0.93rem; }
.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.service-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.service-link:hover { color: var(--primary-light); text-decoration: none; }
.service-card:hover .service-link svg  { transform: translateX(4px); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}
.contact-form-wrap,
.info-card {
  padding: 2rem;
}
.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.info-card-sub { font-size: 0.88rem; margin-bottom: 1.25rem; }

.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 0.85rem; font-size: 0.9rem; }
.contact-icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-list a { color: var(--text-muted); }
.contact-list a:hover { color: var(--primary-light); }
.contact-list span { color: var(--text-muted); }

.form-field { margin-bottom: 1.35rem; }
.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(6, 14, 44, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}
.form-field textarea { resize: vertical; }
.form-field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}
.form-status.success { color: var(--primary-light); }
.form-status.error { color: var(--destructive); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 2.25rem 0;
  background: rgba(4, 10, 32, 0.6);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.site-footer p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.site-footer a { font-size: 0.85rem; color: var(--text-muted); }
.site-footer a:hover { color: var(--primary-light); }

/* ---------- Spacing utilities ---------- */
.block-spacing { margin-bottom: 4rem; }
.block-spacing-sm { margin-bottom: 3rem; }
.note-tight { margin-top: -2.5rem; margin-bottom: 3rem; }
.heading-spacing { margin-bottom: 1.5rem; }
.heading-spacing + .note-tight { margin-top: -0.75rem; margin-bottom: 2rem; }

/* ---------- Page intro (sub-pages) ---------- */
.page-intro { max-width: 760px; margin-bottom: 3.5rem; }
.page-intro h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 0.4rem 0 1rem;
}
.page-intro p { font-size: 1.1rem; }

/* ---------- Section heads (eyebrow + heading) ---------- */
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { margin: 0.4rem 0 0; }

/* ---------- Home section heads ---------- */
.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.home-section-head h2 { margin: 0; }
.home-section-head p { margin: 0.5rem 0 0; max-width: 520px; }
.view-all {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}
.view-all:hover { text-decoration: none; border-bottom-color: var(--primary-light); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(65, 105, 225, 0.45), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(212, 175, 55, 0.16), transparent 70%),
    var(--bg-card);
  border-radius: calc(var(--radius) + 8px);
  padding: 3.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.6rem; }
.cta-banner p { margin: 0; max-width: 500px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Service detail cards (Services page) ---------- */
.service-detail-card {
  scroll-margin-top: 96px;
  position: relative;
  padding: 2.25rem;
  margin-bottom: 1.75rem;
}
.service-detail-card.highlight {
  border-color: rgba(212, 175, 55, 0.4);
  background: var(--surface-strong);
}
.service-detail-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.service-detail-head .service-icon { margin-bottom: 0; flex-shrink: 0; }
.service-detail-title-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.service-detail-title-row h2 { margin: 0; font-size: 1.6rem; }
.service-detail-desc { margin-top: 0.5rem; max-width: 640px; }
.service-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--primary);
}
.service-detail-body {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.service-detail-body h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.check-list { display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.93rem; color: var(--text); }
.check-list svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 0.25em; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge-tech {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.78rem;
  padding: 0.35em 0.85em;
  border-radius: 999px;
}

/* ---------- Service extras (Services page) ---------- */
.service-ideal {
  font-size: 0.85rem;
  color: var(--primary-light);
  margin: 0.75rem 0 0;
}
.service-ideal span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.build-block {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.build-block > h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.build-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(6, 14, 44, 0.35);
  transition: border-color 0.3s ease;
}
.build-item:hover { border-color: rgba(212, 175, 55, 0.45); }
.build-item .service-icon-line { width: 42px; height: 42px; margin-bottom: 1rem; }
.build-item .service-icon-line svg { width: 19px; height: 19px; }
.build-item h4 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.build-item .service-ideal { margin: 0.5rem 0 0.75rem; font-size: 0.8rem; }
.build-item p:last-child { margin: 0; font-size: 0.88rem; }
.service-detail-foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.service-detail-card:hover .service-link svg { transform: translateX(4px); }

/* ---------- Mission / vision ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}
.mv-card {
  padding: 2rem;
  border-top: 2px solid var(--primary);
}
.mv-card h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.mv-card p { margin: 0; }

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}
.value-card { padding: 1.75rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.value-card p { margin: 0; font-size: 0.92rem; }

/* ---------- 404 ---------- */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
}
.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found h1 { margin-top: 0.75rem; }
.not-found p { max-width: 420px; margin: 0 auto 1.75rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { margin: 0 auto; max-width: 380px; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .build-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8, 18, 54, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
  }
  .primary-nav ul li { width: 100%; }
  .primary-nav ul a { padding: 0.8rem 0; }
  .primary-nav a::after { left: 0; right: auto; width: 32px; }

  .logo-tagline { font-size: 0.55rem; letter-spacing: 0.08em; white-space: nowrap; }
  .badge-mono { letter-spacing: 0.12em; font-size: 0.7rem; }
  .badge-mono::before { width: 18px; }

  .hero { padding-top: 3rem; padding-bottom: 4rem; }
  .hero-sub { font-size: 1rem; }
  .hero-visual { max-width: 300px; }
  .float-card { font-size: 0.75rem; padding: 0.55rem 0.8rem 0.55rem 0.55rem; }
  .float-card .fc-icon { width: 28px; height: 28px; }
  .float-card small { display: none; }
  .fc-1 { left: -6%; }
  .fc-2 { right: -6%; }

  .section { padding: 4rem 0; }

  .card-badge { position: static; display: inline-flex; margin-bottom: 1rem; }

  .cta-banner { padding: 2.25rem 1.5rem; }
  .service-detail-card { padding: 1.75rem; }
}
