:root {
  color-scheme: dark;
  --ink: #f5f5ff;
  --muted: #b8bfdc;
  --soft: #929cbe;
  --line: rgba(211, 220, 255, 0.15);
  --blue: #6e9cff;
  --violet: #a78bfa;
  --deep: #090f25;
  --header-height: 78px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
  background: var(--deep);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(39, 106, 205, 0.27), transparent 36rem),
    radial-gradient(ellipse at 90% 32%, rgba(133, 76, 208, 0.25), transparent 42rem),
    linear-gradient(135deg, #0a1533 0%, #101b3d 36%, #211844 72%, #11112d 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

a { color: inherit; }

.skip-link {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  color: #10152b;
  background: #fff;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(220, 226, 255, 0.11);
  background: rgba(8, 13, 32, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner, .footer-inner {
  display: flex;
  width: min(1120px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.wordmark, .footer-wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}
.wordmark-dot, .footer-wordmark span { color: var(--violet); }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 550;
  transition: color 180ms ease;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  content: "";
  transition: transform 180ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  display: grid;
  min-height: min(700px, calc(100svh - var(--header-height)));
  overflow: hidden;
  place-items: center;
  padding: 100px 24px 116px;
  isolation: isolate;
  text-align: center;
}
.hero::before, .hero::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}
.hero::before {
  width: min(850px, 95vw);
  height: min(500px, 70vw);
  border: 1px solid rgba(177, 190, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(87, 112, 220, 0.12), inset 0 0 100px rgba(139, 92, 246, 0.07);
}
.hero::after {
  inset: 0;
  opacity: 0.45;
  background: linear-gradient(180deg, transparent 65%, rgba(8, 13, 32, 0.32));
}
.hero-content { position: relative; width: min(100%, 900px); animation: rise-in 850ms both; }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { top: 5%; left: 6%; width: 180px; height: 180px; background: rgba(57, 126, 255, 0.12); filter: blur(75px); }
.hero-glow-two { right: 5%; bottom: 4%; width: 260px; height: 260px; background: rgba(157, 93, 240, 0.16); filter: blur(90px); }
.eyebrow, .section-kicker {
  margin: 0;
  color: #b9c6f6;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 20px 0 7px;
  font-size: clamp(4rem, 13vw, 9.25rem);
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1;
  background: linear-gradient(105deg, #fff 8%, #cbd8ff 44%, #bda8ff 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 42px rgba(128, 143, 255, 0.2));
}
.hero-rule { display: flex; justify-content: center; margin: 28px 0 24px; }
.hero-rule span { width: 74px; height: 3px; border-radius: 10px; background: linear-gradient(90deg, var(--blue), var(--violet)); box-shadow: 0 0 24px rgba(145, 132, 255, 0.65); }
.tagline { margin: 0; color: #e1e5fb; font-size: clamp(1.1rem, 2.4vw, 1.55rem); font-weight: 400; letter-spacing: 0.015em; }
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 58px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: color 180ms ease, transform 180ms ease;
}
.scroll-cue:hover { color: #fff; transform: translateY(3px); }
.scroll-cue svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.hero-bottom { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 7px; }
.hero-bottom span { width: 4px; height: 4px; border-radius: 50%; background: rgba(220, 224, 255, 0.45); }

.content-wrap { width: min(1000px, calc(100% - 64px)); margin: 0 auto; }
.content-section {
  position: relative;
  display: grid;
  min-height: 360px;
  grid-template-columns: 120px minmax(0, 1fr) 180px;
  align-items: start;
  gap: 28px;
  overflow: hidden;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 18px);
}
.section-index { padding-top: 7px; color: #d6dbf3; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.12em; }
.section-index span { color: var(--soft); font-weight: 500; }
.section-kicker { margin-bottom: 14px; color: #aebdf4; font-size: 0.68rem; }
.section-copy { position: relative; z-index: 1; max-width: 650px; }
.section-copy h2 { margin: 0 0 20px; font-size: clamp(2rem, 4.7vw, 3.5rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1.12; }
.section-copy h2 span { color: #b9a8ff; }
.section-description { max-width: 610px; margin: 0; color: #c3c9e1; font-size: 1.04rem; line-height: 1.85; }
.section-decoration { position: relative; display: grid; min-height: 190px; place-items: center; opacity: 0.9; }
.orbit { position: absolute; display: block; width: 156px; height: 156px; border: 1px solid rgba(161, 177, 255, 0.25); border-radius: 50%; transform: rotate(-25deg) scaleY(0.6); }
.orbit-two { width: 128px; height: 128px; border-color: rgba(190, 151, 255, 0.28); transform: rotate(55deg) scaleY(0.7); }
.decoration-star { color: #c0b3ff; font-size: 3rem; text-shadow: 0 0 40px rgba(163, 146, 255, 0.65); }
.contact-decoration { overflow: hidden; }
.contact-orb { width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(135, 177, 255, 0.8), rgba(92, 104, 225, 0.23) 46%, rgba(153, 96, 232, 0.06) 72%); box-shadow: 0 0 65px rgba(112, 128, 255, 0.2); }
.contact-orb-small { position: absolute; top: 22px; right: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(193, 166, 255, 0.6); filter: blur(13px); }

.site-footer { border-top: 1px solid var(--line); background: rgba(6, 10, 27, 0.28); }
.footer-inner { min-height: 118px; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; }
.footer-wordmark { font-size: 1rem; }
.footer-note, .copyright { margin: 0; color: var(--soft); font-size: 0.78rem; }
.back-to-top { color: #d8ddf6; text-decoration: none; font-size: 0.78rem; transition: color 180ms ease; }
.back-to-top:hover { color: #fff; }
.back-to-top span { margin-left: 5px; color: #b9a8ff; }

:focus-visible { outline: 2px solid #c5b8ff; outline-offset: 4px; }

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

@media (max-width: 760px) {
  :root { --header-height: 70px; }
  .header-inner, .footer-inner { width: min(100% - 40px, 1120px); }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 13, 32, 0.97);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
  }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav a { padding: 13px 4px; }
  .site-nav a::after { right: auto; width: 46px; }
  .hero { min-height: min(660px, calc(100svh - var(--header-height))); padding-top: 78px; padding-bottom: 94px; }
  .eyebrow { font-size: 0.61rem; letter-spacing: 0.16em; }
  .hero h1 { letter-spacing: 0.045em; }
  .scroll-cue { margin-top: 45px; }
  .content-wrap { width: min(100% - 40px, 1000px); }
  .content-section { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 58px 0; }
  .section-index { padding: 0; }
  .section-decoration { position: absolute; right: -36px; bottom: 8px; width: 125px; min-height: 125px; opacity: 0.38; }
  .section-copy { max-width: 100%; padding-right: 8px; }
  .section-description { font-size: 0.98rem; }
  .footer-inner { justify-content: flex-start; padding: 24px 0; }
  .footer-wordmark { width: 100%; }
  .back-to-top { margin-left: auto; }
}

@media (max-width: 420px) {
  .hero { padding-right: 18px; padding-left: 18px; }
  .hero h1 { font-size: clamp(3.3rem, 17vw, 4.4rem); }
  .tagline { max-width: 300px; margin: 0 auto; }
  .footer-note { width: calc(100% - 100px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-content { animation: none; }
}
