:root {
  --void: #050D13;
  --void-2: #08161F;
  --surface: rgba(255,255,255,0.05);
  --surface-2: rgba(255,255,255,0.08);
  --surface-border: rgba(255,255,255,0.11);
  --surface-border-strong: rgba(255,255,255,0.20);
  --text: #F3F6F7;
  --muted: #8FA3AF;
  --muted-dim: #5F7480;
  --gold: #D9A94E;
  --gold-bright: #F0C878;
  --gold-soft: rgba(217,169,78,0.14);
  --blue: #064665;
  --blue-bright: #1D8FC4;
  --blue-soft: rgba(29,143,196,0.16);
  --ink: #050D13;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

.serif { font-family: Cambria, 'Georgia', serif; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue-bright); color: #fff; }
img { max-width: 100%; display: block; }

/* ---------- ambient edge-glow background (Connex-style) ---------- */
.orb-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
}
.orb-gold { width: 620px; height: 620px; background: radial-gradient(circle, var(--blue-bright), transparent 70%); top: -220px; left: -200px; animation: drift1 28s ease-in-out infinite; opacity: 0.3; }
.orb-violet { width: 680px; height: 680px; background: radial-gradient(circle, var(--blue-bright), transparent 70%); bottom: -260px; right: -220px; animation: drift2 34s ease-in-out infinite; opacity: 0.32; }
.orb-small { width: 420px; height: 420px; background: radial-gradient(circle, var(--blue-bright), transparent 70%); top: 30%; right: -160px; opacity: 0.2; animation: drift3 24s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,50px) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-40px) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-60px,-30px); } }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}

/* ---------- glass panel base ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  background: rgba(5,13,19,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  flex-wrap: wrap;
}

.logo-mark { display: flex; align-items: center; gap: 12px; }
.logo-mark img { height: 60px; width: auto; display: block; border-radius: 10px; }
.logo-mark svg { width: 30px; height: 30px; }
.logo-word { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.logo-sub { font-size: 8.5px; letter-spacing: 0.22em; color: var(--muted-dim); margin-top: 1px; }

nav ul { display: flex; gap: 34px; list-style: none; }
nav a { font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color 0.2s ease; padding-bottom: 3px; }
nav a:hover { color: var(--text); }
nav a.active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(217,169,78,0.5); }
.btn-ghost { border-color: var(--surface-border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-soft); }

/* ---------- mobile menu ---------- */
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--surface-border-strong);
  border-radius: 10px;
  align-items: center; justify-content: center;
  cursor: pointer; background: var(--surface); flex-shrink: 0;
}
.menu-toggle svg { width: 18px; height: 18px; color: var(--text); }

.mobile-menu {
  display: block;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 84%; max-width: 340px;
  background: var(--void-2);
  border-left: 1px solid var(--surface-border);
  z-index: 200;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu-close { display: flex; justify-content: flex-end; margin-bottom: 28px; }
.mobile-menu-close svg { width: 22px; height: 22px; color: var(--muted); cursor: pointer; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.mobile-menu ul li a { display: block; padding: 14px 4px; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--surface-border); }
.mobile-menu ul li a.active { color: var(--gold); }
.mobile-menu-overlay { display: none; position: fixed; inset: 0; z-index: 199; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.mobile-menu-overlay.open { display: block; }

/* ---------- shared layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 56px; position: relative; z-index: 2; }
.page-hero { padding: 120px 56px 90px; position: relative; overflow: hidden; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 22px; font-weight: 700;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 3px var(--gold-soft); }

section { position: relative; z-index: 2; }
.section-pad { padding: 100px 56px; }
.section-pad.tight { padding: 80px 56px; }

.section-head { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: end; margin-bottom: 60px; }
.section-kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; max-width: 600px; }
.section-desc { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 320px; padding-bottom: 4px; }

/* ---------- footer ---------- */
footer { position: relative; z-index: 2; border-top: 1px solid var(--surface-border); padding: 56px 56px 0; background: var(--void-2); }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand-desc { font-size: 13px; color: var(--muted-dim); line-height: 1.65; margin-top: 16px; max-width: 270px; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--surface-border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.footer-social a svg { width: 16px; height: 16px; color: var(--muted); transition: color 0.2s ease; }
.footer-social a:hover { border-color: var(--gold); background: var(--gold-soft); }
.footer-social a:hover svg { color: var(--gold-bright); }
.footer-col h5 { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--surface-border); font-size: 11.5px; color: var(--muted-dim);
}

/* ---------- misc shared ---------- */
.tag { font-size: 11px; padding: 4px 11px; border: 1px solid var(--surface-border-strong); border-radius: 20px; color: var(--muted); }
.actions-row { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 980px) {
  header { padding: 16px 22px; }
  nav { display: none; }
  .menu-toggle { display: flex; }
  .page-hero { padding: 110px 22px 60px; }
  .section-pad, .section-pad.tight { padding: 64px 22px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 22px; }
  footer { padding: 48px 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}