:root {
  --bg-950: #050810;
  --bg-900: #0a1019;
  --brand-950: #00153f;
  --brand-900: #001f63;
  --brand-800: #002b81;
  --brand-600: #3268cf;
  --brand-500: #89a9f1;
  --text-primary: #f6f9ff;
  --text-secondary: #c5cedb;
  --text-tertiary: #8d99ad;
  --glass: rgba(9, 14, 22, 0.76);
  --glass-strong: rgba(7, 10, 16, 0.92);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --shadow-xl: 0 32px 120px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --max-width: 1240px;
  --font-body: "Onest", "Avenir Next", "Segoe UI", sans-serif;
  --font-accent: "Science Gothic", "Onest", sans-serif;
  --cursor-x: 50vw;
  --cursor-y: 20vh;
  --page-gradient:
    radial-gradient(circle at 16% 0%, rgba(0, 43, 129, 0.24), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(50, 104, 207, 0.13), transparent 24%),
    linear-gradient(180deg, #050810 0%, #09111d 52%, #050912 100%);
  --cursor-glow:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(137, 169, 241, 0.12), transparent 18%),
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(0, 43, 129, 0.08), transparent 28%);
}

:root[data-theme="light"],
body[data-theme="light"] {
  --bg-950: #ffffff;
  --bg-900: #f7f9fd;
  --brand-950: #00153f;
  --brand-900: #00205f;
  --brand-800: #002b81;
  --brand-600: #3e71d5;
  --brand-500: #6e98eb;
  --text-primary: #0b1320;
  --text-secondary: #536173;
  --text-tertiary: #768398;
  --glass: rgba(255, 255, 255, 0.88);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --stroke: rgba(16, 24, 39, 0.08);
  --stroke-strong: rgba(16, 24, 39, 0.16);
  --shadow-xl: 0 24px 80px rgba(65, 78, 107, 0.16);
  --page-gradient:
    radial-gradient(circle at 14% 0%, rgba(0, 43, 129, 0.08), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(110, 152, 235, 0.08), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fd 52%, #ffffff 100%);
  --cursor-glow:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(0, 43, 129, 0.06), transparent 18%),
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(110, 152, 235, 0.06), transparent 28%);
}

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

html {
  min-height: 100%;
  background: var(--page-gradient);
  background-color: var(--bg-950);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-primary);
  font-family: var(--font-body);
  background: var(--page-gradient);
  background-color: var(--bg-950);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--cursor-glow);
}

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

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.backdrop-grid,
.aurora,
.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop-grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

.aurora {
  z-index: 0;
  filter: blur(16px);
  opacity: 0.7;
}

.aurora-a {
  background: radial-gradient(circle at 10% 24%, rgba(0, 43, 129, 0.26), transparent 28%);
}

.aurora-b {
  background: radial-gradient(circle at 86% 18%, rgba(137, 169, 241, 0.16), transparent 24%);
}

.noise-layer {
  z-index: 0;
  opacity: 0.08;
  background-image:
    repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--glass);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(24px);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 28%, transparent 72%, rgba(137, 169, 241, 0.08));
  opacity: 0.55;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 84px;
  margin: 18px auto 0;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup,
.site-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(137, 169, 241, 0.24);
  border-radius: 18px;
  padding: 9px;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(145deg, var(--brand-600), var(--brand-950));
  box-shadow: inset 0 1px 18px rgba(255, 255, 255, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-kicker,
.hero-kicker,
.section-eyebrow {
  color: var(--text-tertiary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.site-nav {
  gap: 10px;
}

.nav-link,
.icon-button {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.nav-link {
  padding: 13px 18px;
  border-radius: 999px;
}

.icon-button {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.nav-link:hover,
.icon-button:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.1);
}

.page,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.page {
  padding: 42px 0 34px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.hero-card,
.service-card,
.info-card {
  border-radius: var(--radius-xl);
  min-width: 0;
}

.hero-card {
  min-height: 500px;
  padding: clamp(32px, 4.4vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 18px 0 0;
  font-family: var(--font-body);
  font-size: clamp(2.55rem, 3.9vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.075em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.headline-desktop > span,
.headline-mobile > span {
  display: block;
  color: var(--brand-500);
}

.headline-mobile {
  display: none;
}

.hero-card p,
.service-card p,
.info-card p {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
}

.hero-card p {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.65;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.ghost-button {
  min-height: 58px;
  padding: 17px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #3c7cff, var(--brand-800));
  box-shadow: 0 18px 46px rgba(0, 43, 129, 0.34);
}

.ghost-button {
  border: 1px solid var(--stroke-strong);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-3px);
}

.service-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.orbit-mark {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto 26px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 45% 40%, rgba(137, 169, 241, 0.34), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(0, 43, 129, 0.36), transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke);
}

.orbit-mark::before,
.orbit-mark::after {
  content: "";
  position: absolute;
  inset: 22%;
  border: 2px solid rgba(137, 169, 241, 0.5);
  border-radius: 50%;
  transform: rotate(-22deg) scaleX(1.55);
}

.orbit-mark::after {
  inset: 34%;
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(24deg) scaleX(1.25);
}

.orbit-mark span {
  position: absolute;
  inset: 34%;
  border-radius: 30%;
  border: 2px solid rgba(255, 255, 255, 0.36);
  background: rgba(0, 43, 129, 0.14);
}

.service-card h2,
.contact-section h2 {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 2.45vw, 2.65rem);
  line-height: 1.03;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.service-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.service-points span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
}

.status-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-grid {
  margin-top: 18px;
}

.info-card {
  padding: 26px;
  min-height: 220px;
}

.visual-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(50, 104, 207, 0.16);
  border: 1px solid rgba(137, 169, 241, 0.15);
  font-size: 1.6rem;
}

.info-card h3 {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.info-card p {
  margin: 12px 0 0;
  line-height: 1.65;
}

.contact-section {
  margin-top: 24px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.contact-section p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.7;
}

.contact-section .primary-button {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.site-footer {
  padding: 0 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-tertiary);
}

.site-footer a {
  color: var(--brand-500);
}

.reveal-card {
  animation: reveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.reveal-card:nth-child(2) {
  animation-delay: 90ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .site-header {
    width: min(calc(100% - 24px), var(--max-width));
    top: 12px;
    padding: 12px;
  }

  .brand-kicker,
  .site-nav {
    display: none;
  }

  .brand-copy strong {
    font-size: 1.5rem;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .hero-shell,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
    padding: 34px 24px;
  }

  .hero-card h1 {
    font-size: clamp(2.35rem, 7.5vw, 3.45rem);
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .ghost-button {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 76px;
  }

  .page,
  .site-footer {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .site-header {
    border-radius: 22px;
  }

  .hero-card h1 {
    font-size: clamp(2.18rem, 9vw, 2.8rem);
    line-height: 1.04;
    letter-spacing: -0.062em;
  }

  .headline-desktop {
    display: none;
  }

  .headline-mobile {
    display: block;
  }

  .hero-card p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .service-card,
  .info-card {
    padding: 24px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}
