:root {
  color-scheme: dark;
  --bg: #020504;
  --panel: rgba(8, 24, 24, 0.74);
  --panel-hard: rgba(7, 31, 30, 0.95);
  --ink: #f4fff8;
  --muted: #91aaa3;
  --cyan: #25f6d2;
  --cyan-soft: rgba(37, 246, 210, 0.2);
  --red: #ff3b4f;
  --red-soft: rgba(255, 59, 79, 0.22);
  --acid: #d8ff4f;
  --line: rgba(188, 255, 239, 0.18);
  --shadow-cyan: 0 0 32px rgba(37, 246, 210, 0.32);
  --shadow-red: 0 0 34px rgba(255, 59, 79, 0.22);
  font-family:
    "DIN Condensed", "Avenir Next Condensed", "Bahnschrift", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 14%, rgba(37, 246, 210, 0.15), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(255, 59, 79, 0.13), transparent 24rem),
    linear-gradient(135deg, #020504 0%, #06110f 44%, #020504 100%);
}

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

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 34px clamp(18px, 4vw, 64px) 28px;
}

.motion-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.grid-plane {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 246, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 246, 210, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 74%, transparent 100%);
  transform: perspective(700px) rotateX(58deg) translateY(16vh) scale(1.55);
  transform-origin: 50% 100%;
}

.signal-orbit {
  position: absolute;
  width: 44vw;
  max-width: 720px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: calc(0.28 + var(--pulse) * 0.28);
  transform: rotate(var(--orbit));
}

.orbit-one {
  top: -14vw;
  right: -8vw;
  box-shadow: inset var(--shadow-cyan), var(--shadow-cyan);
}

.orbit-two {
  bottom: -18vw;
  left: -12vw;
  border-color: rgba(255, 59, 79, 0.24);
  box-shadow: inset var(--shadow-red), var(--shadow-red);
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 7px
  );
  mix-blend-mode: screen;
  opacity: 0.22;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: min(760px, calc(100vh - 72px));
}

.hero-copy {
  max-width: 980px;
}

.eyebrow,
.hero-tagline,
.hero-signal,
.hero-actions,
.identity-band,
.hero-console {
  opacity: var(--enter);
  transform: translateY(calc((1 - var(--enter)) * 18px));
}

.eyebrow {
  --enter: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(2, 10, 10, 0.74);
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: var(--shadow-cyan);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.glitch-title {
  position: relative;
  max-width: 1120px;
  margin: clamp(28px, 5vw, 56px) 0 18px;
  font-size: clamp(3.9rem, 10vw, 10.8rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 28px rgba(37, 246, 210, 0.4),
    3px 0 0 rgba(255, 59, 79, 0.8),
    -2px 0 0 rgba(37, 246, 210, 0.55);
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
}

.glitch-title::before {
  color: var(--red);
  transform: translate(3px, -2px);
  clip-path: inset(0 0 58% 0);
}

.glitch-title::after {
  color: var(--cyan);
  transform: translate(-3px, 3px);
  clip-path: inset(54% 0 0 0);
}

.hero-tagline {
  --enter: 1;
  max-width: 760px;
  margin: 0;
  color: var(--acid);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.45;
}

.hero-signal {
  --enter: 1;
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: "Menlo", "Consolas", monospace;
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  line-height: 1.7;
}

.hero-actions {
  --enter: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--cyan);
  background: linear-gradient(135deg, rgba(37, 246, 210, 0.2), rgba(37, 246, 210, 0.06));
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: var(--shadow-cyan);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.action-link:hover {
  transform: translateY(-2px);
  border-color: var(--acid);
  background: linear-gradient(135deg, rgba(216, 255, 79, 0.2), rgba(37, 246, 210, 0.08));
}

.action-link.secondary {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(255, 59, 79, 0.2), rgba(255, 59, 79, 0.06));
  box-shadow: var(--shadow-red);
}

.action-link.ghost {
  border-color: var(--line);
  background: rgba(3, 15, 15, 0.72);
  box-shadow: none;
}

.hero-console {
  --enter: 1;
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(37, 246, 210, 0.09), transparent 34%),
    rgba(2, 12, 12, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    var(--shadow-cyan);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(216, 255, 79, 0.22);
  clip-path: polygon(0 0, 68% 0, 68% 14px, 100% 14px, 100% 100%, 0 100%);
}

.console-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px;
  color: var(--cyan);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.75rem;
}

.console-core {
  position: relative;
  width: min(76%, 340px);
  aspect-ratio: 1;
  margin: 24px auto;
}

.core-ring,
.core-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.core-ring {
  border: 1px solid var(--cyan);
  box-shadow: inset var(--shadow-cyan), var(--shadow-cyan);
}

.ring-a {
  animation: rotate-slow 16s linear infinite;
}

.ring-b {
  inset: 16%;
  border-color: var(--red);
  border-style: dashed;
  animation: rotate-slow 10s linear infinite reverse;
}

.core-dot {
  inset: 35%;
  background:
    radial-gradient(circle, var(--acid), rgba(216, 255, 79, 0.12) 45%, transparent 70%),
    radial-gradient(circle, var(--cyan), transparent 62%);
  filter: drop-shadow(0 0 24px rgba(216, 255, 79, 0.65));
}

.console-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 22px 22px;
  background: var(--line);
}

.console-stats div {
  padding: 15px;
  background: rgba(1, 9, 9, 0.82);
}

.console-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.console-stats dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.96rem;
}

.identity-band,
.app-section {
  max-width: 1180px;
  margin: 0 auto;
}

.identity-band {
  --enter: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: end;
  padding: clamp(24px, 4vw, 42px) 0;
  border-block: 1px solid var(--line);
}

.identity-band div {
  color: var(--cyan);
}

.identity-band p,
.section-heading p,
.app-copy p {
  margin: 0;
  color: var(--muted);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.78rem;
}

.identity-band h2,
.section-heading h2,
.app-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.identity-band > p {
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.75;
}

.content-grid {
  max-width: 1180px;
  margin: clamp(56px, 8vw, 96px) auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.channel-card {
  position: relative;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(37, 246, 210, 0.11), transparent 46%),
    var(--panel);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.channel-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--red), var(--acid));
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 180ms ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 246, 210, 0.65);
  box-shadow: var(--shadow-cyan);
}

.channel-card:hover::after {
  transform: scaleX(1);
}

.channel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  color: var(--cyan);
  background: rgba(1, 9, 9, 0.74);
}

.channel-card p {
  margin: 0;
  color: var(--acid);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.82rem;
}

.channel-card h3 {
  margin: 10px 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.channel-card span {
  display: block;
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  margin-bottom: clamp(54px, 8vw, 96px);
}

.app-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 40%, rgba(37, 246, 210, 0.22), transparent 17rem),
    rgba(2, 12, 12, 0.72);
  overflow: hidden;
}

.phone-frame {
  position: relative;
  width: min(74%, 260px);
  aspect-ratio: 0.58;
  border: 2px solid var(--cyan);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(2, 5, 5, 0.98), rgba(6, 34, 30, 0.88)),
    var(--panel-hard);
  box-shadow: var(--shadow-cyan);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 255, 248, 0.24);
  transform: translateX(-50%);
}

.photo-stack {
  position: absolute;
  left: 50%;
  width: 70%;
  aspect-ratio: 0.76;
  border: 1px solid rgba(244, 255, 248, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 59, 79, 0.62), transparent 42%),
    linear-gradient(315deg, rgba(37, 246, 210, 0.52), transparent 42%),
    rgba(216, 255, 79, 0.08);
}

.photo-one {
  top: 25%;
  transform: translateX(-50%) rotate(-8deg);
}

.photo-two {
  top: 31%;
  transform: translateX(-50%) rotate(5deg);
}

.photo-three {
  top: 37%;
  transform: translateX(-50%) rotate(-1deg);
}

.app-copy {
  max-width: 650px;
}

.app-copy span {
  display: block;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.78rem;
}

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

@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;
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding-inline: 18px;
  }

  .hero-section,
  .identity-band,
  .app-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding: 28px 0 52px;
  }

  .hero-console {
    min-height: 420px;
  }

  .channels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .glitch-title {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .action-link {
    width: 100%;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-visual {
    min-height: 340px;
  }
}
