:root {
  --ink: #07090d;
  --panel: #10141c;
  --panel-2: #171d28;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #3b8fd9;
  --blue-2: #7eb8ef;
  --cream: #f4efe6;
  --muted: #9aa6b8;
  --gold: #d7b56d;
  --ok: #3dd68c;
  --font: "Instrument Sans", "Segoe UI", sans-serif;
  --display: "Syne", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(59, 143, 217, 0.22), transparent 50%),
    radial-gradient(900px 400px at -10% 20%, rgba(215, 181, 109, 0.08), transparent 45%),
    var(--ink);
  line-height: 1.55;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: #fff; }

.wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 13, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: #fff;
  font-family: var(--display); font-weight: 800; letter-spacing: 0.08em;
}
.brand img {
  width: 46px; height: 46px; object-fit: cover; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(59, 143, 217, 0.4);
}
nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
nav a { color: var(--muted); font-size: 0.92rem; }
nav a[aria-current="page"], nav a:hover { color: #fff; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; color: #fff;
  cursor: pointer; font: inherit;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; cursor: pointer;
  font: inherit; color: #071018;
  background: linear-gradient(180deg, #8ec4f5, var(--blue));
  box-shadow: 0 10px 30px rgba(59, 143, 217, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); color: #071018; }
.btn.ghost {
  background: transparent; color: var(--cream);
  border-color: var(--line); box-shadow: none;
}
.btn.gold { background: linear-gradient(180deg, #ead59a, var(--gold)); color: #1a1408; box-shadow: 0 10px 30px rgba(215,181,109,0.22); }

.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 820px);
  display: grid; place-items: end start;
  border-bottom: 1px solid var(--line);
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(0.95) contrast(1.08);
  transform: scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,13,0.15) 0%, rgba(7,9,13,0.55) 45%, rgba(7,9,13,0.96) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 0 0 72px; max-width: 820px; }
.page-hero {
  position: relative; overflow: hidden;
  min-height: 340px; display: grid; place-items: end start;
  border-bottom: 1px solid var(--line);
}
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,13,0.25), rgba(7,9,13,0.92));
}
.page-hero .wrap { position: relative; z-index: 1; padding-bottom: 40px; }

.kicker {
  display: inline-block; letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 0.72rem; color: var(--gold); margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 14px; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
}
a.card:hover, .card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,143,217,0.35);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  color: inherit;
}
.card img { height: 180px; width: 100%; object-fit: cover; }
.card .body { padding: 22px; }
.card h3 { font-size: 1.35rem; }
.tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.tag.ad { color: var(--blue-2); }
.muted { color: var(--muted); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding: 16px 0; background: #0c1016;
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: slide 28s linear infinite;
  font-family: var(--display); font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-size: 0.85rem;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stat { font-family: var(--display); font-size: 2.4rem; }
.split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
}
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px;
}
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.list li strong { color: var(--cream); }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 12px;
}
.tile {
  position: relative; overflow: hidden; border-radius: 20px;
  border: 1px solid var(--line); color: #fff; display: flex; align-items: flex-end;
  min-height: 0;
}
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(7,9,13,0.88) 100%);
}
.tile span, .tile strong {
  position: relative; z-index: 1; padding: 0 18px;
}
.tile strong { display: block; font-family: var(--display); font-size: 1.25rem; padding-bottom: 16px; }
.tile span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

.cta-band {
  position: relative; overflow: hidden; border-radius: 28px;
  min-height: 280px; display: grid; place-items: center; text-align: center;
  border: 1px solid var(--line);
}
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,13,0.45), rgba(7,9,13,0.82));
}
.cta-band .inner { position: relative; z-index: 1; padding: 48px 24px; }

form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #0b0f16; color: var(--cream); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }

.site-footer {
  border-top: 1px solid var(--line); padding: 42px 0 28px; color: var(--muted); font-size: 0.92rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.legal-mini { opacity: 0.8; font-size: 0.82rem; }

.demo-bar {
  background: #d7b56d; color: #1a1408; font-weight: 800; text-align: center;
  padding: 8px 12px; font-size: 0.85rem; letter-spacing: 0.08em;
}
.demo-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; background: #0e1218; }
.side { background: #0a0d12; border-right: 1px solid var(--line); padding: 18px; }
.side a, .side button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  color: var(--muted); padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit;
}
.side a.on, .side button.on, .side a:hover, .side button:hover { background: #171d28; color: #fff; }
.main { padding: 22px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #1b2a1f; color: var(--ok); font-size: 0.75rem; }
.pill.warn { background: #2a2416; color: var(--gold); }
.job { padding: 16px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; background: #121722; }
.job h3 { margin: 0 0 6px; font-size: 1.1rem; }

@media (max-width: 900px) {
  .g-2, .g-3, .g-4, .split, .foot-grid, .demo-shell { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .tile.wide, .tile.tall { grid-column: span 1; grid-row: span 1; }
  .hero { min-height: 70vh; }
  .nav-toggle { display: grid; place-items: center; }
  nav {
    display: none;
    position: absolute; left: 18px; right: 18px; top: 70px;
    background: #10141c; border: 1px solid var(--line); border-radius: 16px;
    padding: 12px; flex-direction: column;
  }
  nav.open { display: flex; }
}
