:root {
  /* Logo palette: navy / purple→magenta / blue→teal / white */
  --navy: #05122b;
  --slate-950: #05122b;
  --slate-900: #0a1a38;
  --slate-850: #102448;
  --slate-800: #173056;
  --slate-700: #24406a;
  --ink: #ffffff;
  --muted: #9bb0c9;
  --purple: #6a11cb;
  --magenta: #e02aff;
  --blue: #2575fc;
  --cyan: #6aedff;
  --cyan-dim: #2575fc;
  --amber: #e02aff;
  --amber-soft: #c45cff;
  --line: rgba(106, 237, 255, 0.14);
  --paper: #f4f7fc;
  --paper-ink: #05122b;
  --paper-muted: #4a5f7a;
  --grad-brand: linear-gradient(135deg, var(--purple), var(--magenta));
  --grad-accent: linear-gradient(135deg, var(--blue), var(--cyan));
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --container: min(1140px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 28px 70px rgba(5, 18, 43, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--slate-950);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(5, 18, 43, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-mark {
  width: auto;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand .adept {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav .cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--grad-brand);
  color: var(--ink) !important;
}

.menu-toggle,
.close-menu {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 18, 43, 0.97);
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav nav a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0.35) 35%, rgba(7, 11, 20, 0.92) 100%),
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(224, 42, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 15% 70%, rgba(45, 212, 191, 0.12), transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hero-content {
  width: var(--container);
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-brand-block {
  animation: rise-in 0.9s var(--ease) both;
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-logo {
  width: clamp(72px, 12vw, 120px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(106, 17, 203, 0.45));
}

.hero-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-brand-text .adept {
  display: block;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-brand-text .systems {
  display: block;
  font-size: 0.38em;
  letter-spacing: 0.28em;
  color: var(--cyan);
  margin-top: 0.55rem;
  font-weight: 700;
}

.hero-copy {
  max-width: 38rem;
  animation: rise-in 1s var(--ease) 0.12s both;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise-in 1s var(--ease) 0.22s both;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-amber {
  background: var(--grad-brand);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid rgba(232, 238, 247, 0.35);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-dark {
  background: var(--slate-900);
  color: var(--ink);
}

.btn-outline-dark {
  border: 1px solid rgba(18, 32, 51, 0.25);
  color: var(--paper-ink);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-light {
  background:
    linear-gradient(180deg, #eef3f9 0%, var(--paper) 100%);
  color: var(--paper-ink);
}

.section-slate {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(224, 42, 255, 0.10), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(45, 212, 191, 0.07), transparent 45%),
    var(--slate-900);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.85rem;
}

.section-light .eyebrow {
  color: var(--cyan-dim);
}

.title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 22ch;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.section-light .lede {
  color: var(--paper-muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.service-rail {
  display: grid;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row:hover {
  padding-left: 0.5rem;
  background: rgba(224, 42, 255, 0.06);
}

.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--amber);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.service-row h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.service-row p {
  color: var(--muted);
  max-width: 52ch;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pillar {
  padding: 1.75rem 1.5rem;
  border-top: 2px solid var(--amber);
  background: rgba(255, 255, 255, 0.03);
}

.section-light .pillar {
  background: rgba(255, 255, 255, 0.7);
  border-top-color: var(--cyan-dim);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-light .pillar p {
  color: var(--paper-muted);
}

.steps {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-left: 2px solid rgba(45, 212, 191, 0.35);
  padding-left: 1.5rem;
  margin-left: 0.75rem;
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 1.85rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(224, 42, 255, 0.22);
}

.step-index {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--muted);
  max-width: 48ch;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(224, 42, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(224, 42, 255, 0.14), rgba(106, 237, 255, 0.10));
  border-radius: 4px;
}

.cta-band .title {
  max-width: 18ch;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 5rem 0 3rem;
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(224, 42, 255, 0.14), transparent 50%),
    linear-gradient(180deg, var(--slate-900), var(--slate-950));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.page-hero.light {
  background: linear-gradient(180deg, #e8eef6, var(--paper));
  color: var(--paper-ink);
  border-bottom-color: rgba(18, 32, 51, 0.08);
}

.page-hero.light p {
  color: var(--paper-muted);
}

.prose {
  max-width: 62ch;
}

.prose p + p {
  margin-top: 1.1rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.detail {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.section-light .detail {
  background: #fff;
  border-color: rgba(18, 32, 51, 0.08);
}

.detail h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.detail p {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-light .detail p {
  color: var(--paper-muted);
}

/* Contact */
.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.contact-meta {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.contact-meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-meta dd {
  color: var(--ink);
  font-size: 1.05rem;
}

.contact-meta a:hover {
  color: var(--cyan);
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--slate-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-brand .adept {
  color: var(--amber);
}

.site-footer p {
  color: var(--muted);
  max-width: 36ch;
  font-size: 0.95rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-toggle,
  .close-menu {
    display: inline-flex;
  }

  .split,
  .contact-panel,
  .pillars,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 5.5rem;
  }

  .service-row {
    grid-template-columns: 3rem 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 88vh;
  }

  .hero-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band {
    padding: 1.5rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
