:root {
  --bg: #05070d;
  --bg-2: #08111f;
  --surface: rgba(10, 18, 32, 0.78);
  --surface-strong: rgba(12, 26, 45, 0.92);
  --line: rgba(123, 244, 255, 0.24);
  --text: #edf7ff;
  --muted: #9ab2c7;
  --cyan: #27e8ff;
  --magenta: #ff3df2;
  --green: #7cff9b;
  --amber: #ffcf5a;
  --shadow-cyan: 0 0 36px rgba(39, 232, 255, 0.28);
  --shadow-magenta: 0 0 36px rgba(255, 61, 242, 0.2);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 61, 242, 0.18), transparent 28rem),
    radial-gradient(circle at 10% 20%, rgba(39, 232, 255, 0.2), transparent 26rem),
    linear-gradient(135deg, #04060b 0%, #06111d 45%, #10071a 100%);
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(39, 232, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 232, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.brand,
.main-nav,
.hero-actions,
.panel-top,
.contact-section,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(39, 232, 255, 0.8);
  border-radius: 6px;
  color: #021016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: var(--shadow-cyan);
}

.main-nav {
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav a,
.nav-cta {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.main-nav a:hover {
  color: var(--cyan);
}

.nav-cta {
  padding: 11px 16px;
  border: 1px solid rgba(255, 61, 242, 0.7);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 61, 242, 0.08);
  box-shadow: var(--shadow-magenta);
}

.nav-cta:hover {
  border-color: var(--cyan);
  background: rgba(39, 232, 255, 0.1);
}

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  width: min(calc(100% - 32px), var(--max));
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 112px 0 74px;
  align-items: center;
}

.hero-grid {
  position: absolute;
  right: 0;
  bottom: 7%;
  width: min(58%, 620px);
  height: 56%;
  border: 1px solid rgba(39, 232, 255, 0.16);
  transform: perspective(700px) rotateX(64deg) rotateZ(-8deg);
  background-image:
    linear-gradient(rgba(124, 255, 155, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 155, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  box-shadow: 0 0 80px rgba(39, 232, 255, 0.18);
  opacity: 0.75;
  pointer-events: none;
}

.hero-copy,
.command-panel,
.section-heading,
.platform-copy,
.flow-map,
.trust-card,
.contact-section > *,
.product-card {
  position: relative;
}

.system-line {
  margin: 0 0 18px;
  color: var(--green);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 660px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.35rem);
  line-height: 0.98;
  text-wrap: balance;
}

h3 {
  font-size: 1.65rem;
}

.hero-text {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border: 1px solid rgba(39, 232, 255, 0.9);
  color: #031017;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: var(--shadow-cyan);
}

.button-ghost {
  border: 1px solid rgba(255, 61, 242, 0.7);
  color: var(--text);
  background: rgba(255, 61, 242, 0.07);
}

.command-panel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(39, 232, 255, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(39, 232, 255, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(255, 61, 242, 0.16), transparent 40%),
    var(--surface);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.48), var(--shadow-cyan);
}

.panel-top {
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(39, 232, 255, 0.18);
  background: rgba(5, 7, 13, 0.64);
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
}

.panel-top span:nth-child(2) {
  background: var(--magenta);
}

.panel-top span:nth-child(3) {
  background: var(--green);
}

.panel-top strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.74rem;
}

.radar {
  position: relative;
  display: grid;
  width: min(100% - 70px, 430px);
  aspect-ratio: 1;
  margin: 34px auto 24px;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(39, 232, 255, 0.18), transparent 3px),
    radial-gradient(circle, rgba(124, 255, 155, 0.1), transparent 62%);
}

.radar::before,
.radar::after,
.radar-ring,
.radar-sweep,
.radar-node {
  position: absolute;
  content: "";
}

.radar::before {
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(39, 232, 255, 0.22);
}

.radar::after {
  inset: 0 auto 0 50%;
  width: 1px;
  background: rgba(39, 232, 255, 0.22);
}

.radar-ring {
  border: 1px solid rgba(39, 232, 255, 0.28);
  border-radius: 999px;
}

.ring-one {
  inset: 9%;
}

.ring-two {
  inset: 27%;
}

.ring-three {
  inset: 43%;
}

.radar-sweep {
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(from 45deg, rgba(39, 232, 255, 0.52), transparent 22%, transparent);
  animation: rotate 7s linear infinite;
}

.radar-node {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.node-a {
  top: 28%;
  left: 31%;
}

.node-b {
  right: 22%;
  top: 44%;
  background: var(--magenta);
  box-shadow: 0 0 18px var(--magenta);
}

.node-c {
  bottom: 28%;
  left: 53%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.signal-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.signal-list div {
  padding: 14px;
  border: 1px solid rgba(39, 232, 255, 0.2);
  border-radius: 6px;
  background: rgba(5, 7, 13, 0.46);
}

.signal-list span,
.flow-item span,
.trust-card span {
  display: block;
  color: var(--cyan);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.signal-list strong,
.flow-item strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
}

.product-section,
.platform-section,
.trust-section,
.contact-section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.product-section {
  padding: 78px 0 44px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.product-card,
.trust-card {
  border: 1px solid rgba(39, 232, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(10, 18, 32, 0.92), rgba(9, 10, 18, 0.72));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

.product-card {
  min-height: 440px;
  padding: 26px;
  overflow: hidden;
}

.product-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.product-card.magenta::before {
  background: var(--magenta);
  box-shadow: var(--shadow-magenta);
}

.product-card.green::before {
  background: var(--green);
  box-shadow: 0 0 36px rgba(124, 255, 155, 0.22);
}

.card-code {
  margin-bottom: 72px;
  color: rgba(237, 247, 255, 0.2);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 0.8;
}

.product-card p,
.platform-copy p,
.contact-section p,
.trust-card p {
  color: var(--muted);
  line-height: 1.65;
}

.product-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.product-card li {
  position: relative;
  padding-left: 20px;
  color: #c6d8e9;
  line-height: 1.45;
}

.product-card li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.platform-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  padding: 94px 0;
  align-items: center;
}

.platform-copy p {
  font-size: 1.05rem;
}

.flow-map {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.flow-item {
  padding: 24px;
  border: 1px solid rgba(124, 255, 155, 0.26);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.5);
}

.flow-link {
  width: 2px;
  height: 38px;
  margin-left: 28px;
  background: linear-gradient(var(--cyan), var(--magenta));
  box-shadow: var(--shadow-cyan);
}

.trust-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0 96px;
}

.trust-card {
  padding: 28px;
}

.trust-card span {
  color: var(--amber);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.contact-section {
  justify-content: space-between;
  gap: 28px;
  padding: 44px;
  border: 1px solid rgba(255, 61, 242, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 61, 242, 0.14), transparent 42%),
    var(--surface-strong);
  box-shadow: var(--shadow-magenta);
}

.contact-section > div {
  max-width: 760px;
}

.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.site-footer {
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  transform: translateY(0);
  opacity: 1;
  transition: transform 700ms ease, opacity 700ms ease;
}

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

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .hero-grid {
    right: -8%;
    bottom: 36%;
    width: 96%;
    height: 34%;
    opacity: 0.42;
  }

  .product-grid,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .card-code {
    margin-bottom: 40px;
  }

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

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .brand {
    font-size: 0.94rem;
  }

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

  .nav-cta {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .hero,
  .product-section,
  .platform-section,
  .trust-section,
  .contact-section,
  .site-footer {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.15rem);
    line-height: 1;
    overflow-wrap: normal;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.04;
  }

  .command-panel {
    margin-top: 10px;
  }

  .radar {
    width: min(calc(100% - 48px), 330px);
  }

  .panel-top strong {
    font-size: 0.62rem;
  }

  .contact-section {
    padding: 28px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

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