:root {
  --bg: #02040b;
  --bg-soft: #07101d;
  --surface: rgba(8, 17, 30, 0.68);
  --surface-strong: rgba(12, 24, 41, 0.9);
  --text: #f5fbff;
  --muted: rgba(224, 242, 255, 0.68);
  --subtle: rgba(224, 242, 255, 0.46);
  --line: rgba(135, 238, 255, 0.22);
  --cyan: #46f4ff;
  --mint: #66ffd7;
  --violet: #a855ff;
  --hot: #e756ff;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(168, 85, 255, 0.26), transparent 28rem),
    radial-gradient(circle at 12% 34%, rgba(70, 244, 255, 0.19), transparent 30rem),
    linear-gradient(180deg, #02040b 0%, #060915 44%, #02040b 100%);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(102, 255, 215, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 244, 255, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18));
}

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

#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0,
    rgba(255, 255, 255, 0.025) 50%,
    transparent 100%
  );
  background-size: 100% 6px;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(70, 244, 255, 0.18), transparent 64%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(2, 4, 11, 0.86), rgba(2, 4, 11, 0.44));
  border-bottom: 1px solid rgba(135, 238, 255, 0.13);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(102, 255, 215, 0.48);
  background: linear-gradient(145deg, rgba(70, 244, 255, 0.18), rgba(168, 85, 255, 0.2));
  box-shadow: 0 0 26px rgba(70, 244, 255, 0.18);
  font-size: 13px;
}

.nav-links {
  gap: clamp(18px, 3vw, 36px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-action,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-action,
.primary-button {
  color: #041016;
  background: linear-gradient(100deg, var(--mint), var(--cyan) 56%, #b3f4ff);
  box-shadow: 0 0 34px rgba(70, 244, 255, 0.28);
}

.ghost-button {
  color: var(--text);
  border-color: rgba(135, 238, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.header-action:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(70, 244, 255, 0.22);
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 96px;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(38px, 6vw, 82px);
  padding: 116px 0 88px;
}

.hero-content {
  position: relative;
}

.hero-code,
.section-index {
  margin: 0 0 18px;
  color: var(--mint);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.hero-orbit {
  position: relative;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  justify-self: center;
  filter: drop-shadow(0 0 52px rgba(70, 244, 255, 0.2));
}

.orbit-core {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(102, 255, 215, 0.55);
  background:
    radial-gradient(circle, rgba(102, 255, 215, 0.22), transparent 60%),
    rgba(5, 13, 25, 0.72);
  box-shadow: inset 0 0 42px rgba(70, 244, 255, 0.24), 0 0 60px rgba(102, 255, 215, 0.18);
  animation: corePulse 3.6s ease-in-out infinite;
}

.orbit-core strong {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 30px);
}

.orbit-core span {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(70, 244, 255, 0.22);
  transform: rotate(45deg);
}

.orbit-core span:nth-child(2) {
  inset: 30%;
  border-color: rgba(168, 85, 255, 0.36);
  animation: rotateReverse 7s linear infinite;
}

.orbit-core span:nth-child(3) {
  inset: 6%;
  border-color: rgba(102, 255, 215, 0.22);
  animation: rotate 9s linear infinite;
}

.orbit-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(135, 238, 255, 0.24);
  border-radius: 50%;
}

.ring-one {
  animation: rotate 15s linear infinite;
}

.ring-two {
  inset: 17%;
  border-color: rgba(168, 85, 255, 0.34);
  transform: rotateX(64deg) rotateZ(16deg);
  animation: tiltSpin 11s linear infinite;
}

.ring-three {
  inset: 1%;
  border-style: dashed;
  border-color: rgba(102, 255, 215, 0.3);
  animation: rotateReverse 23s linear infinite;
}

.data-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64px;
  height: 34px;
  color: var(--text);
  border: 1px solid rgba(135, 238, 255, 0.3);
  background: rgba(5, 13, 25, 0.75);
  box-shadow: 0 0 34px rgba(70, 244, 255, 0.14);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  animation: floatNode 3s ease-in-out infinite;
}

.node-a {
  left: 8%;
  top: 20%;
}

.node-b {
  right: 2%;
  top: 32%;
  animation-delay: -0.7s;
}

.node-c {
  left: 18%;
  bottom: 12%;
  animation-delay: -1.4s;
}

.node-d {
  right: 14%;
  bottom: 18%;
  animation-delay: -2s;
}

.mission,
.capabilities,
.advantage,
.process,
.fit,
.models,
.contact {
  padding: clamp(80px, 12vw, 142px) 0;
}

.mission {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.section-heading h2,
.contact h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.mission-text {
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.8;
}

.capabilities,
.advantage,
.process,
.fit,
.models {
  border-top: 1px solid var(--line);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.solution-card {
  min-height: 288px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(14, 29, 50, 0.86), rgba(4, 8, 18, 0.96)),
    radial-gradient(circle at top right, rgba(70, 244, 255, 0.12), transparent 60%);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, background 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-10px);
  background:
    linear-gradient(145deg, rgba(20, 39, 68, 0.96), rgba(5, 10, 22, 0.98)),
    radial-gradient(circle at top right, rgba(168, 85, 255, 0.18), transparent 64%);
}

.solution-card span {
  display: block;
  margin-bottom: 58px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.solution-card h3 {
  margin-bottom: 16px;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.18;
  text-wrap: balance;
}

.solution-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.advantage-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 6vw, 74px);
  margin-top: 52px;
}

.advantage-lead,
.method-copy {
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.78;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.text-card {
  min-height: 210px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(9, 19, 34, 0.9), rgba(3, 7, 16, 0.96)),
    radial-gradient(circle at top left, rgba(102, 255, 215, 0.1), transparent 56%);
}

.text-card:last-child {
  grid-column: 1 / -1;
  min-height: 160px;
}

.text-card h3,
.model-card h3 {
  margin-bottom: 14px;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.18;
  text-wrap: balance;
}

.text-card p,
.model-card p,
.fit-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(135, 238, 255, 0.34);
}

.process-line div {
  position: relative;
  padding: 34px 24px 0 0;
}

.process-line div::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--mint);
  box-shadow: 0 0 24px var(--mint);
}

.process-line span {
  display: block;
  margin-bottom: 12px;
  color: var(--subtle);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.process-line strong {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.22;
}

.method-copy {
  max-width: 880px;
  margin: 28px 0 0;
}

.fit-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
}

.fit-list p {
  min-height: 190px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(12, 24, 41, 0.88), rgba(4, 8, 18, 0.96)),
    radial-gradient(circle at bottom right, rgba(168, 85, 255, 0.12), transparent 60%);
  font-weight: 600;
}

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

.model-card {
  min-height: 300px;
  padding: 30px;
  border: 1px solid rgba(135, 238, 255, 0.24);
  background:
    linear-gradient(150deg, rgba(8, 17, 30, 0.88), rgba(7, 8, 20, 0.96)),
    radial-gradient(circle at top right, rgba(70, 244, 255, 0.12), transparent 52%);
  box-shadow: 0 22px 74px rgba(0, 0, 0, 0.28);
}

.model-card span {
  display: block;
  margin-bottom: 72px;
  color: var(--mint);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact {
  justify-content: space-between;
  gap: clamp(30px, 6vw, 76px);
  margin-bottom: 44px;
  padding: clamp(42px, 7vw, 72px);
  border: 1px solid rgba(135, 238, 255, 0.24);
  background:
    linear-gradient(110deg, rgba(8, 17, 30, 0.92), rgba(10, 12, 29, 0.86)),
    radial-gradient(circle at right, rgba(231, 86, 255, 0.16), transparent 40%);
  box-shadow: var(--shadow);
}

.contact-copy {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.qr-card {
  position: relative;
  display: grid;
  gap: 16px;
  flex: 0 0 auto;
  width: min(280px, 100%);
  padding: 18px;
  border: 1px solid rgba(135, 238, 255, 0.34);
  background:
    linear-gradient(150deg, rgba(8, 17, 30, 0.9), rgba(6, 10, 23, 0.96)),
    radial-gradient(circle at top right, rgba(102, 255, 215, 0.16), transparent 58%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38), 0 0 42px rgba(70, 244, 255, 0.14);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.qr-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 255, 215, 0.72);
  box-shadow: 0 28px 94px rgba(0, 0, 0, 0.44), 0 0 58px rgba(70, 244, 255, 0.2);
}

.qr-label {
  color: var(--mint);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.qr-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.qr-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: #19c463;
  border: 5px solid #ffffff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.site-footer {
  padding: 0 0 46px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.footer-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-contact span {
  color: var(--subtle);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-qr {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid rgba(135, 238, 255, 0.32);
  box-shadow: 0 0 34px rgba(70, 244, 255, 0.13);
}

.footer-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes tiltSpin {
  to {
    transform: rotateX(64deg) rotateZ(376deg);
  }
}

@keyframes corePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: inset 0 0 42px rgba(70, 244, 255, 0.24), 0 0 60px rgba(102, 255, 215, 0.18);
  }
  50% {
    transform: scale(1.06);
    box-shadow: inset 0 0 64px rgba(70, 244, 255, 0.34), 0 0 88px rgba(168, 85, 255, 0.28);
  }
}

@keyframes floatNode {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

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

  .hero-orbit {
    width: min(86vw, 430px);
  }

  .solution-grid,
  .advantage-layout,
  .fit-list,
  .model-grid,
  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantage-layout {
    gap: 36px;
  }

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

@media (max-width: 620px) {
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .header-action {
    display: none;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 96px;
  }

  h1 {
    font-size: clamp(43px, 13vw, 64px);
    line-height: 0.98;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .solution-grid,
  .advantage-layout,
  .advantage-list,
  .fit-list,
  .model-grid,
  .process-line {
    grid-template-columns: 1fr;
  }

  .solution-card,
  .model-card {
    min-height: 240px;
  }

  .text-card:last-child {
    grid-column: auto;
  }

  .fit-list p {
    min-height: auto;
  }

  .footer-inner,
  .footer-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    gap: 8px;
  }

  .qr-card {
    width: 100%;
  }
}

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