:root {
  color-scheme: dark;
  --page: #02050a;
  --surface: #0b111c;
  --surface-2: #101824;
  --text: #ffffff;
  --muted: #b0b2b7;
  --faint: #777d8c;
  --border: #222b3b;
  --brand: #6366f3;
  --magenta: #ed3bd0;
  --shell: min(1380px, calc(100vw - 96px));
  --font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 45%, rgba(60, 67, 175, .09), transparent 30%),
    var(--page);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 78%, transparent);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--text);
  color: var(--page);
  border-radius: 8px;
  transition: top .2s ease;
}

.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.site-footer {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 184px; height: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: clamp(48px, 8vw, 112px); }
.nav-links { display: flex; align-items: center; gap: 54px; }
.nav-links a, .external-link { color: #c7c9d1; font-size: 15px; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.external-link { display: inline-flex; align-items: center; gap: 9px; color: #8187ff; }
.external-link svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nav-toggle {
  display: none;
  width: 45px;
  height: 45px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

.hero {
  width: var(--shell);
  min-height: calc(100vh - 168px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(560px, 1.08fr);
  align-items: center;
  gap: 48px;
  padding: 60px 0 42px;
}

.hero-copy { position: relative; z-index: 3; padding-bottom: 22px; }
.hero h1 { margin: 0; max-width: 650px; font-size: clamp(54px, 5.15vw, 82px); line-height: .98; letter-spacing: -.055em; font-weight: 800; }
.hero-copy > p:not(.form-note):not(.form-status) { max-width: 610px; margin: 34px 0 0; color: var(--muted); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.65; }

.notify-form { display: flex; align-items: stretch; gap: 10px; max-width: 625px; margin-top: 31px; }
.email-field { min-width: 0; flex: 1; position: relative; display: flex; align-items: center; }
.email-field svg { position: absolute; left: 21px; width: 22px; fill: none; stroke: #9399aa; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.email-field input {
  width: 100%;
  min-height: 62px;
  padding: 0 20px 0 58px;
  border: 1px solid #3a4460;
  border-radius: 12px;
  outline: none;
  background: rgba(9, 14, 24, .86);
  color: var(--text);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.email-field input::placeholder { color: #8e93a3; }
.email-field input:focus { border-color: #7376ff; box-shadow: 0 0 0 3px rgba(99, 102, 243, .16); }
.notify-form button {
  min-width: 158px;
  min-height: 62px;
  padding: 0 28px;
  border: 1px solid #8384ff;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f5cf6, #7559ff);
  box-shadow: 0 12px 35px rgba(74, 72, 245, .25), inset 0 1px rgba(255,255,255,.22);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.notify-form button:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(74, 72, 245, .36), inset 0 1px rgba(255,255,255,.22); }
.notify-form button:active { transform: translateY(0); }
.notify-form button:focus-visible, a:focus-visible, .nav-toggle:focus-visible { outline: 2px solid #9c9eff; outline-offset: 4px; }
.form-note { margin: 16px 0 0; color: #9a9eaa; font-size: 14px; }
.form-status { min-height: 24px; margin: 9px 0 0; color: #a6a8ff; font-size: 14px; }
.form-status.is-error { color: #ff8abf; }

.product-visual {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1.08;
  justify-self: end;
  perspective: 1100px;
  transform-style: preserve-3d;
  --rx: 0deg;
  --ry: 0deg;
}

.signal-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.paths path { fill: none; stroke: url(#signal-gradient); stroke-width: 1.45; opacity: .72; filter: drop-shadow(0 0 5px rgba(104,91,255,.75)); }
.paths path:nth-child(even) { stroke-dasharray: .05 .025; animation: dash 9s linear infinite; }
.nodes { fill: white; filter: drop-shadow(0 0 7px #6971ff) drop-shadow(0 0 9px #dd3fe4); }
.nodes circle:nth-child(3n + 2) { animation: nodePulse 2.4s ease-in-out infinite .5s; }

.interface-panel {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(105, 116, 224, .65);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(17, 28, 52, .88), rgba(6, 12, 24, .75));
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 18px 45px rgba(0,0,0,.34), 0 0 30px rgba(83, 78, 229, .06);
  backdrop-filter: blur(7px);
  transform: translate3d(calc(var(--px, 0px)), calc(var(--py, 0px)), 0) rotateY(var(--panel-r, 0deg));
}
.interface-panel span { display: block; height: 5px; margin-top: 9px; border-radius: 4px; background: #243564; }
.panel-code { left: 4%; top: 18%; width: 30%; height: 26%; padding: 20px 19px; --panel-r: 8deg; animation: float 6.2s ease-in-out infinite; }
.panel-code i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #566b9a; }
.panel-code span:nth-of-type(1) { width: 56%; background: linear-gradient(90deg, var(--brand), var(--magenta)); }
.panel-code span:nth-of-type(2) { width: 80%; }
.panel-code span:nth-of-type(3) { width: 68%; }
.panel-code span:nth-of-type(4) { width: 85%; }
.panel-code span:nth-of-type(5) { width: 48%; background: #44328b; }
.panel-profile { right: 0; top: 16%; width: 27%; height: 25%; padding: 22px; --panel-r: -8deg; animation: float 6.8s ease-in-out infinite -2s; }
.panel-profile i { display: block; width: 36px; height: 36px; margin-bottom: 16px; border: 1px solid #5e70ea; border-radius: 50%; background: linear-gradient(145deg, #25387d, #111a39); }
.panel-profile span:nth-of-type(1) { width: 65%; }
.panel-profile span:nth-of-type(2) { width: 82%; }
.panel-profile span:nth-of-type(3) { width: 53%; }
.panel-list { left: 2%; bottom: 13%; width: 28%; height: 25%; padding: 22px; --panel-r: 7deg; animation: float 7.2s ease-in-out infinite -4s; }
.panel-list b { display: block; width: 25px; height: 30px; border: 1px solid #6172eb; border-radius: 3px; }
.panel-list span:nth-of-type(1) { width: 70%; }
.panel-list span:nth-of-type(2) { width: 88%; }
.panel-list span:nth-of-type(3) { width: 59%; }
.panel-chart { right: 1%; bottom: 10%; width: 29%; height: 27%; padding: 42px 24px 23px; display: flex; align-items: end; gap: 11px; --panel-r: -7deg; animation: float 6.5s ease-in-out infinite -3s; }
.panel-chart span { width: 13%; margin: 0; background: linear-gradient(to top, #394af0, #854dff); }
.panel-chart span:nth-child(1) { height: 27%; }.panel-chart span:nth-child(2) { height: 47%; }.panel-chart span:nth-child(3) { height: 69%; }.panel-chart span:nth-child(4) { height: 87%; }

.product-core {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1.16;
  transform: translate(-50%, -45%) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  filter: drop-shadow(0 26px 36px rgba(0,0,0,.55));
  transition: transform .15s ease-out;
  animation: coreFloat 5s ease-in-out infinite;
}
.core-top { position: absolute; inset: 0 0 34%; border: 1px solid #8c90ff; border-radius: 22px; background: linear-gradient(145deg, rgba(33,43,77,.96), rgba(8,13,28,.98)); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 0 35px rgba(91,79,255,.26); transform: skewY(-1.5deg); }
.core-top svg { position: absolute; width: 32%; left: 34%; top: 26%; overflow: visible; }
.core-top path:first-child { fill: url(#signal-gradient); filter: drop-shadow(0 0 9px rgba(113,78,255,.65)); }
.core-top path:last-child { fill: none; stroke: #171c3c; stroke-width: 6; }
.core-edge { position: absolute; inset: 53% 1% 16%; border: 1px solid #646cff; border-radius: 0 0 20px 20px; background: linear-gradient(180deg, #6458f0 0 8%, rgba(62,38,119,.96) 10%, rgba(12,17,38,.98) 100%); box-shadow: inset 0 7px 14px rgba(121,85,255,.25), 0 0 25px rgba(90,65,255,.32); }
.core-face { position: absolute; left: 12%; right: 12%; bottom: 3%; height: 27%; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding-right: 20px; border-radius: 0 0 15px 15px; background: linear-gradient(180deg, rgba(10,15,30,.4), #070c19); }
.core-face i { width: 6px; height: 6px; border-radius: 50%; background: #7c82ff; box-shadow: 0 0 9px #6971ff; animation: nodePulse 2s ease-in-out infinite; }
.core-face i:nth-child(2) { animation-delay: .35s; }.core-face i:nth-child(3) { animation-delay: .7s; }

.site-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: #9a9da8;
  font-size: 13px;
}
.site-footer p { margin: 0; }
.site-footer > div { display: flex; align-items: center; gap: 24px; }
.site-footer > div span { width: 1px; height: 19px; background: var(--border); }
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: white; }

[data-reveal] { opacity: 0; transform: translateY(18px); }
.is-loaded [data-reveal] { animation: reveal .75s cubic-bezier(.2,.75,.25,1) forwards; }
.is-loaded .product-visual { animation-delay: .14s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes dash { to { stroke-dashoffset: -1; } }
@keyframes nodePulse { 0%, 100% { opacity: .45; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes coreFloat { 0%,100% { margin-top: 0; } 50% { margin-top: -11px; } }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 56px, 960px); }
  .site-nav { gap: 40px; }
  .nav-links { gap: 28px; }
  .hero { grid-template-columns: 1fr .9fr; gap: 18px; }
  .hero h1 { font-size: clamp(48px, 6.1vw, 67px); }
  .product-visual { width: 118%; margin-right: -18%; }
}

@media (max-width: 820px) {
  :root { --shell: calc(100% - 40px); }
  .site-header { height: 80px; }
  .brand img { width: 158px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: calc(100% + 10px); display: none; align-items: stretch; gap: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(7,11,18,.98); box-shadow: 0 20px 45px rgba(0,0,0,.42); }
  .site-nav.is-open { display: block; animation: menuIn .2s ease-out; }
  .nav-links { display: grid; gap: 0; }
  .nav-links a, .external-link { padding: 14px 12px; }
  .external-link { border-top: 1px solid var(--border); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 18px; padding: 72px 0 30px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: 680px; font-size: clamp(49px, 10.2vw, 72px); }
  .hero-copy > p:not(.form-note):not(.form-status) { max-width: 590px; }
  .product-visual { width: min(100%, 680px); margin: 6px auto 0; justify-self: center; }
  .site-footer { margin-top: 14px; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); }
  body::before { background-size: 48px 48px; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); line-height: 1; }
  .hero-copy > p:not(.form-note):not(.form-status) { margin-top: 25px; font-size: 17px; line-height: 1.65; }
  .notify-form { display: grid; margin-top: 26px; }
  .notify-form button { min-height: 58px; }
  .email-field input { min-height: 58px; }
  .product-visual { width: 100%; margin-left: 0; }
  .site-footer { padding: 23px 0; align-items: flex-start; gap: 18px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
