:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: rgba(13, 20, 31, 0.78);
  --panel-strong: rgba(18, 28, 42, 0.92);
  --text: #f5f8fb;
  --muted: #9ba9b6;
  --line: rgba(140, 190, 255, 0.18);
  --cyan: #33d6ff;
  --green: #62f0b8;
  --amber: #f0be62;
  --red: #ff5d7e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 10%, rgba(51, 214, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 12% 26%, rgba(98, 240, 184, 0.11), transparent 30rem),
    linear-gradient(135deg, #05070a 0%, #0b1118 46%, #05070a 100%);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(140, 190, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 190, 255, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0%, rgba(51, 214, 255, 0.06) 44%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 36%);
  background-size: 220% 100%, 100% 100%;
  animation: backgroundSweep 12s linear infinite;
  content: "";
  pointer-events: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: headerPulse 3.8s ease-in-out infinite;
  content: "";
}

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

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(51, 214, 255, 0.5);
  background: linear-gradient(145deg, rgba(51, 214, 255, 0.18), rgba(98, 240, 184, 0.1));
  color: var(--cyan);
  font-size: 13px;
  box-shadow: 0 0 28px rgba(51, 214, 255, 0.22);
  animation: markGlow 4s ease-in-out infinite;
}

.nav {
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.header-action:hover {
  color: var(--text);
}

.nav a {
  position: relative;
  padding: 6px 0;
}

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

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

.header-action {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 72px 0 52px;
}

.data-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  background: linear-gradient(100deg, #ffffff 0%, #d9fbff 38%, #69e7ff 58%, #ffffff 78%);
  background-clip: text;
  color: transparent;
  font-size: clamp(60px, 8vw, 118px);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 0 40px rgba(51, 214, 255, 0.16);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 34px;
  color: #c8d4de;
  font-size: 18px;
}

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

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  content: "";
}

.button:hover {
  border-color: rgba(98, 240, 184, 0.68);
  box-shadow: 0 20px 52px rgba(51, 214, 255, 0.18);
  transform: translateY(-2px);
}

.button:hover::before {
  transform: translateX(120%);
}

.button.primary {
  border-color: rgba(51, 214, 255, 0.65);
  background: linear-gradient(90deg, rgba(51, 214, 255, 0.9), rgba(98, 240, 184, 0.86));
  color: #031016;
  box-shadow: 0 18px 42px rgba(51, 214, 255, 0.2);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #d8e9f4;
}

.hero-visual {
  min-height: 520px;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  border: 1px solid rgba(51, 214, 255, 0.18);
  content: "";
}

.hero-visual::before {
  inset: 44px 30px;
  transform: skewY(-7deg);
  animation: frameDrift 8s ease-in-out infinite;
}

.hero-visual::after {
  inset: 96px 0 58px 88px;
  transform: skewY(9deg);
  animation: frameDrift 8s ease-in-out infinite reverse;
}

.market-terminal {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(140, 190, 255, 0.24);
  background:
    linear-gradient(160deg, rgba(14, 24, 38, 0.96), rgba(4, 8, 13, 0.82)),
    repeating-linear-gradient(0deg, transparent 0, transparent 14px, rgba(51, 214, 255, 0.035) 15px);
  box-shadow: var(--shadow), inset 0 0 60px rgba(51, 214, 255, 0.06);
  transform-style: preserve-3d;
  animation: terminalFloat 7s ease-in-out infinite;
}

.market-terminal::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, transparent, rgba(51, 214, 255, 0.08), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.026) 0, rgba(255, 255, 255, 0.026) 1px, transparent 2px, transparent 6px);
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  content: "";
}

.terminal-scan {
  position: absolute;
  inset: -30% 0 auto;
  z-index: 2;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(98, 240, 184, 0.14), transparent);
  animation: scanLine 5.8s linear infinite;
  pointer-events: none;
}

.terminal-top {
  position: relative;
  z-index: 3;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.terminal-top span {
  width: 9px;
  height: 9px;
  background: var(--red);
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

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

.terminal-top strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.signal-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.signal-card,
.solution-grid article,
.capability-list article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.signal-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 18px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.signal-card::after,
.solution-grid article::after,
.capability-list article::after {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(51, 214, 255, 0.36), transparent 28%, rgba(98, 240, 184, 0.2)) border-box;
  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  content: "";
  pointer-events: none;
}

.signal-card:hover {
  border-color: rgba(51, 214, 255, 0.48);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25), inset 0 0 30px rgba(51, 214, 255, 0.05);
  transform: translateY(-4px);
}

.signal-card:hover::after,
.solution-grid article:hover::after,
.capability-list article:hover::after {
  opacity: 1;
}

.signal-card small,
.capability-list span {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
}

.signal-card b {
  display: block;
  margin: 24px 0 8px;
  font-size: 26px;
  line-height: 1.12;
}

.signal-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.signal-card.live {
  box-shadow: inset 0 0 45px rgba(98, 240, 184, 0.08);
}

.signal-card.wide {
  grid-column: 1 / -1;
}

.chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 140px;
  padding-top: 24px;
}

.chart i {
  flex: 1;
  min-width: 16px;
  background: linear-gradient(to top, rgba(51, 214, 255, 0.92), rgba(98, 240, 184, 0.82));
  animation: pulse 2.6s ease-in-out infinite, columnHue 5s linear infinite;
}

.chart i:nth-child(1) { height: 35%; }
.chart i:nth-child(2) { height: 56%; animation-delay: 0.1s; }
.chart i:nth-child(3) { height: 44%; animation-delay: 0.2s; }
.chart i:nth-child(4) { height: 72%; animation-delay: 0.3s; }
.chart i:nth-child(5) { height: 62%; animation-delay: 0.4s; }
.chart i:nth-child(6) { height: 86%; animation-delay: 0.5s; }
.chart i:nth-child(7) { height: 74%; animation-delay: 0.6s; }
.chart i:nth-child(8) { height: 94%; animation-delay: 0.7s; }

.terminal-status {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.terminal-status span {
  min-height: 42px;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 13, 0.9);
  color: #bbcad6;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 120px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metrics div {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 24px;
  background: rgba(6, 11, 17, 0.88);
}

.metrics div::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent, rgba(51, 214, 255, 0.1), transparent 55%);
  transform: translateX(-120%);
  animation: cardSweep 8s ease-in-out infinite;
  content: "";
}

.metrics b {
  display: block;
  margin-bottom: 12px;
}

.metrics span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.section,
.architecture,
.experience,
.contact {
  margin-bottom: 120px;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 118px;
}

.capability-list {
  display: grid;
  gap: 16px;
}

.capability-list article {
  position: relative;
  overflow: hidden;
  padding: 28px;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

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

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.solution-grid article {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.solution-grid article:hover,
.capability-list article:hover {
  border-color: rgba(51, 214, 255, 0.48);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  transform: translateY(-5px);
}

.architecture-board {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 18, 0.72);
}

.architecture-lines {
  position: absolute;
  inset: 18px;
  pointer-events: none;
}

.architecture-lines span {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(51, 214, 255, 0.65), rgba(98, 240, 184, 0.35), transparent);
  animation: dataFlow 4.4s linear infinite;
}

.architecture-lines span:nth-child(1) { top: 24%; }
.architecture-lines span:nth-child(2) { top: 50%; animation-delay: 0.8s; }
.architecture-lines span:nth-child(3) { top: 76%; animation-delay: 1.6s; }
.architecture-lines span:nth-child(4) {
  top: 50%;
  left: 50%;
  right: auto;
  width: 1px;
  height: 80%;
  background: linear-gradient(180deg, transparent, rgba(51, 214, 255, 0.58), transparent);
  transform: translate(-50%, -50%);
  animation: verticalFlow 5s linear infinite;
}

.node {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 116px;
  place-items: center;
  border: 1px solid rgba(51, 214, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(51, 214, 255, 0.12), rgba(98, 240, 184, 0.04)),
    rgba(255, 255, 255, 0.03);
  color: #dff7ff;
  font-weight: 800;
  text-align: center;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.node:hover {
  border-color: rgba(98, 240, 184, 0.5);
  box-shadow: inset 0 0 36px rgba(51, 214, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.experience,
.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.experience::before,
.contact::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(51, 214, 255, 0.1) 46%, transparent 60%);
  transform: translateX(-120%);
  animation: panelSweep 10s ease-in-out infinite;
  content: "";
  pointer-events: none;
}

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

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

.contact {
  grid-template-columns: 1fr auto;
  margin-bottom: 60px;
}

@keyframes pulse {
  0%, 100% {
    filter: saturate(1);
    transform: scaleY(0.92);
  }
  50% {
    filter: saturate(1.6);
    transform: scaleY(1.02);
  }
}

@keyframes backgroundSweep {
  from { background-position: 220% 0, 0 0; }
  to { background-position: -80% 0, 0 0; }
}

@keyframes headerPulse {
  0%, 100% { opacity: 0.2; transform: translateX(-35%); }
  50% { opacity: 1; transform: translateX(12%); }
}

@keyframes markGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(51, 214, 255, 0.2); }
  50% { box-shadow: 0 0 36px rgba(98, 240, 184, 0.34); }
}

@keyframes frameDrift {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

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

@keyframes scanLine {
  from { transform: translateY(-40%); }
  to { transform: translateY(560%); }
}

@keyframes columnHue {
  0%, 100% { box-shadow: 0 0 0 rgba(51, 214, 255, 0); }
  50% { box-shadow: 0 0 24px rgba(51, 214, 255, 0.22); }
}

@keyframes cardSweep {
  0%, 44%, 100% { transform: translateX(-120%); }
  58% { transform: translateX(120%); }
}

@keyframes dataFlow {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  20% { opacity: 0.9; }
  60% { clip-path: inset(0 0 0 0); }
  100% { opacity: 0; clip-path: inset(0 0 0 100%); }
}

@keyframes verticalFlow {
  0% { opacity: 0; clip-path: inset(100% 0 0 0); }
  35% { opacity: 0.8; }
  70% { clip-path: inset(0 0 0 0); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); }
}

@keyframes panelSweep {
  0%, 55%, 100% { transform: translateX(-120%); }
  70% { transform: translateX(120%); }
}

@media (max-width: 980px) {
  .shell {
    width: min(100% - 28px, 760px);
  }

  .nav {
    display: none;
  }

  .hero,
  .split,
  .experience,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: auto;
  }

  .metrics,
  .solution-grid,
  .architecture-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-copy {
    position: static;
  }

  .contact {
    align-items: start;
  }
}

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

  .brand {
    font-size: 15px;
  }

  .header-action {
    display: none;
  }

  .hero {
    gap: 36px;
    padding: 42px 0;
  }

  .hero-lede {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .signal-grid,
  .metrics,
  .solution-grid,
  .architecture-board {
    grid-template-columns: 1fr;
  }

  .signal-card.wide {
    grid-column: auto;
  }

  .terminal-status {
    grid-template-columns: repeat(2, 1fr);
  }

  .terminal-top strong {
    display: none;
  }

  .metrics,
  .section,
  .architecture,
  .experience,
  .contact {
    margin-bottom: 72px;
  }

  .experience,
  .contact {
    padding: 26px;
  }
}
