:root {
  color-scheme: dark;
  --bg: #06070a;
  --bg-deep: #03050a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f8ff;
  --text-secondary: #a6afc2;
  --text-muted: #6f788d;
  --blue: #4f8dff;
  --blue-bright: #75c4ff;
  --violet: #8f68ff;
  --cyan: #58e5ff;
  --green: #67e8ad;
  --radius-md: 14px;
  --page-pad: clamp(20px, 4.2vw, 72px);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(32, 66, 130, 0.34), transparent 40%),
    linear-gradient(180deg, #070911 0%, var(--bg) 48%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(91, 143, 255, 0.35); color: #fff; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: #07090e;
  font-size: 14px;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.scene, .scene::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene { z-index: 0; overflow: hidden; }

.scene::after {
  z-index: 5;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.08) 0%, transparent 45%, rgba(3, 5, 10, 0.68) 100%);
  content: "";
}

#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
  will-change: transform;
}

.mesh-one {
  width: min(52vw, 760px);
  aspect-ratio: 1;
  top: -31%;
  left: 6%;
  background: radial-gradient(circle, rgba(45, 117, 255, 0.9), transparent 66%);
  animation: float-a 17s ease-in-out infinite alternate;
}

.mesh-two {
  width: min(48vw, 680px);
  aspect-ratio: 1;
  top: 12%;
  right: -20%;
  background: radial-gradient(circle, rgba(114, 69, 255, 0.72), transparent 68%);
  animation: float-b 21s ease-in-out infinite alternate;
}

.mesh-three {
  width: min(38vw, 540px);
  aspect-ratio: 1;
  bottom: -31%;
  left: 28%;
  background: radial-gradient(circle, rgba(28, 123, 255, 0.48), transparent 68%);
  animation: float-c 19s ease-in-out infinite alternate;
}

.grid-plane {
  position: absolute;
  left: 50%;
  bottom: -22%;
  width: 120%;
  height: 58%;
  transform: translateX(-50%) perspective(600px) rotateX(62deg);
  transform-origin: center bottom;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(101, 142, 222, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 142, 222, 0.2) 1px, transparent 1px);
  background-size: 64px 48px;
  mask-image: linear-gradient(to top, #000, transparent 80%);
}

.noise {
  position: absolute;
  inset: -100%;
  opacity: 0.026;
  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='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  transform: rotate(10deg);
}

.site-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100svh;
  padding: 0 var(--page-pad);
}

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header {
  min-height: 112px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(76, 118, 255, 0.4));
}

.wordmark {
  font-size: clamp(21px, 1.55vw, 27px);
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1;
}

.wordmark-dot {
  color: var(--blue-bright);
  text-shadow: 0 0 20px rgba(93, 171, 255, 0.9);
}

.hero {
  align-self: center;
  width: min(1050px, 100%);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 132px) 0 clamp(64px, 9vh, 110px);
  text-align: center;
}

h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(44px, 6.25vw, 94px);
  font-weight: 590;
  letter-spacing: -0.063em;
  line-height: 0.99;
  text-wrap: balance;
}

.headline-accent {
  color: transparent;
  background: linear-gradient(102deg, #f4f7ff 2%, #8fbfff 45%, #9b82ff 92%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 8px 34px rgba(84, 125, 255, 0.19));
}

.hero-copy {
  max-width: 760px;
  margin: clamp(28px, 3.3vw, 44px) auto 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.72;
  text-wrap: balance;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:focus-visible, .brand:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 4px; }

.button-primary {
  min-width: 146px;
  background: linear-gradient(135deg, #f3f7ff, #b8d3ff);
  box-shadow: 0 12px 35px rgba(62, 118, 222, 0.2), inset 0 1px 0 #fff;
  color: #07101e;
}

.button-primary::before {
  position: absolute;
  top: -50%;
  left: -55%;
  width: 38%;
  height: 200%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  content: "";
  transition: left 600ms ease;
}

.button-primary:hover::before { left: 120%; }
.button-arrow { font-size: 16px; transition: transform 180ms ease; }

.button:active { transform: translateY(0) scale(0.98); }

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 940px;
  margin: clamp(34px, 4.6vw, 56px) auto 0;
}

.services span {
  position: relative;
  padding: 10px 14px;
  border: 1px solid rgba(138, 178, 244, 0.2);
  border-radius: 9px;
  background: rgba(16, 24, 40, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 26px rgba(0, 0, 0, 0.12);
  color: #bcc6d8;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.services span::before {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: #75baff;
  box-shadow: 0 0 9px rgba(87, 169, 255, 0.72);
  content: "";
}

.site-footer {
  min-height: 80px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #9ca8bd;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal { opacity: 0; transform: translateY(13px); }

.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 780ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay), transform 780ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay);
}

@media (hover: hover) {
  .button:hover { transform: translateY(-2px); }
  .button-primary:hover { box-shadow: 0 16px 46px rgba(69, 128, 238, 0.3), inset 0 1px 0 #fff; }
  .button-primary:hover .button-arrow { transform: translate(2px, -2px); }
  .services span:hover { transform: translateY(-2px); border-color: rgba(104, 164, 255, 0.29); background: rgba(76, 121, 206, 0.09); color: #dce7fa; }
}

@keyframes float-a { to { transform: translate3d(12%, 7%, 0) scale(1.08); } }
@keyframes float-b { to { transform: translate3d(-14%, 9%, 0) scale(0.92); } }
@keyframes float-c { to { transform: translate3d(9%, -8%, 0) scale(1.12); } }

@media (max-width: 720px) {
  .site-header { min-height: 98px; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(42px, 12vw, 64px); line-height: 1.01; }
  h1 br { display: none; }
  .hero-copy { line-height: 1.65; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .services { gap: 7px; }
  .services span { padding: 10px 11px; font-size: 9px; }
  .site-footer { min-height: 70px; }
}

@media (max-width: 470px) {
  .site-footer { justify-content: center; }
}

@media (min-width: 1100px) and (min-height: 860px) {
  .hero { padding-top: 90px; padding-bottom: 90px; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
  #network-canvas { opacity: 0.32; }
}
