:root {
  color-scheme: dark;
  --bg: #030405;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #f5f7fa;
  --muted: rgba(245, 247, 250, 0.68);
  --faint: rgba(245, 247, 250, 0.42);
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #7ce7ff;
  --gold: #f2d38b;
  --green: #92f2bd;
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 50% 15%, rgba(124, 231, 255, 0.17), transparent 32%),
    linear-gradient(180deg, #06080b 0%, #030405 52%, #080704 100%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 80%, transparent);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 4, 5, 0.56);
  backdrop-filter: blur(22px) saturate(160%);
}

.brand {
  font-size: 14px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.section {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(86px, 13vw, 172px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
  min-height: 92svh;
  padding-top: 100px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 790px;
  font-size: clamp(50px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lede,
.statement p,
.system-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button.primary {
  background: var(--text);
  color: #050607;
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.device {
  width: min(88vw, 430px);
  aspect-ratio: 0.78;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 44px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 38%),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: rotateX(8deg) rotateY(-12deg);
  transform-style: preserve-3d;
  transition: transform 240ms ease-out;
}

.device-glass {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 34% 24%, rgba(124, 231, 255, 0.38), transparent 28%),
    radial-gradient(circle at 74% 72%, rgba(242, 211, 139, 0.24), transparent 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035));
}

.signature-mark {
  position: absolute;
  left: 34px;
  top: 34px;
  font-size: clamp(54px, 9vw, 92px);
  font-weight: 800;
  letter-spacing: 0;
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(124, 231, 255, 0.32) 50%,
    transparent 100%
  );
  height: 90px;
  animation: scan 5s ease-in-out infinite;
}

.metrics {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: grid;
  gap: 4px;
  color: var(--text);
  text-align: right;
}

.metrics span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.metrics strong {
  font-size: 58px;
  line-height: 0.9;
}

.pulse-grid {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 120px;
  height: 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.14) 0 1px,
    transparent 1px 16px
  );
  opacity: 0.7;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 22px;
  height: 36px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--text);
  animation: scrollDot 1.8s ease-in-out infinite;
}

.statement {
  width: 100%;
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.statement-inner {
  max-width: 980px;
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(34px, 6vw, 72px);
}

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

.work-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 231, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(124, 231, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.04);
}

.work-index {
  margin-bottom: auto;
  color: var(--faint);
  font-size: 13px;
}

.work-card p {
  color: var(--muted);
  line-height: 1.7;
}

.work-card a {
  width: fit-content;
  margin-top: 22px;
  color: var(--cyan);
  font-weight: 700;
}

.ideas-list {
  border-top: 1px solid var(--line);
}

.idea-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 102px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition:
    background 180ms ease,
    padding 180ms ease;
}

.idea-row:hover {
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.idea-row span,
.idea-row em {
  color: var(--faint);
  font-size: 13px;
  font-style: normal;
}

.idea-row strong {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.22;
}

.system-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.bootnote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.bootnote-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.bootnote-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  isolation: isolate;
}

.bootnote-stage::before,
.bootnote-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.8;
  z-index: -1;
}

.bootnote-stage::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(124, 231, 255, 0.34), transparent 68%);
  animation: floatGlow 7s ease-in-out infinite;
}

.bootnote-stage::after {
  width: 230px;
  height: 230px;
  transform: translate(84px, 96px);
  background: radial-gradient(circle, rgba(242, 211, 139, 0.24), transparent 70%);
  animation: floatGlow 8.4s ease-in-out infinite reverse;
}

.bootnote-card {
  position: relative;
  isolation: isolate;
  width: min(88vw, 390px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035) 44%),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.bootnote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from 120deg,
    transparent,
    rgba(124, 231, 255, 0.72),
    transparent 28%,
    rgba(242, 211, 139, 0.58),
    transparent 58%
  );
  opacity: 0.48;
  animation: borderFlow 8s linear infinite;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
}

.bootnote-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 82px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 24px rgba(124, 231, 255, 0.62);
  animation: qrSweep 3.8s ease-in-out infinite;
  z-index: 2;
}

.bootnote-card > * {
  position: relative;
  z-index: 1;
}

.bootnote-topline,
.bootnote-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bootnote-topline {
  margin-bottom: 16px;
}

.bootnote-topline span {
  font-size: 26px;
  font-weight: 800;
}

.bootnote-topline em,
.bootnote-bottom strong {
  color: var(--faint);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.qr-shell {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 22px 42px rgba(0, 0, 0, 0.32);
}

.qr-shell::before,
.qr-shell::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  border-color: #050607;
  border-style: solid;
  pointer-events: none;
}

.qr-shell::before {
  left: 10px;
  top: 10px;
  border-width: 2px 0 0 2px;
}

.qr-shell::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 2px 2px 0;
}

.qr-shell img {
  display: block;
  width: min(70vw, 258px);
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: crisp-edges;
}

.bootnote-bottom {
  margin-top: 16px;
}

.bootnote-bottom span {
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
}

.system-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(86vw, 460px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.orbit-core {
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--text);
  color: #060708;
  font-size: 34px;
  font-weight: 800;
}

.system-orbit span {
  --angle: calc(var(--i) * 60deg);
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 32px;
  margin: -16px 0 0 -46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(3, 4, 5, 0.62);
  color: var(--muted);
  font-size: 12px;
  transform: rotate(var(--angle)) translateX(clamp(116px, 31vw, 198px)) rotate(calc(-1 * var(--angle)));
}

.contact-section {
  min-height: 72svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.contact-inner {
  max-width: 940px;
}

.contact-actions {
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes scan {
  0%,
  100% {
    transform: translateY(-110px);
    opacity: 0;
  }
  22%,
  68% {
    opacity: 1;
  }
  80% {
    transform: translateY(580px);
    opacity: 0;
  }
}

@keyframes scrollDot {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 14px);
    opacity: 0;
  }
}

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

@keyframes qrSweep {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
  18%,
  74% {
    opacity: 0.9;
  }
  82% {
    transform: translateY(300px);
    opacity: 0;
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(-24px, -18px, 0) scale(0.96);
  }
  50% {
    transform: translate3d(22px, 18px, 0) scale(1.05);
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 58px;
  }

  .nav-links {
    gap: 16px;
  }

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

  .hero {
    padding-top: 96px;
  }

  .hero-visual {
    order: -1;
  }

  .device {
    width: min(82vw, 350px);
    transform: rotateX(6deg) rotateY(-8deg);
  }

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

  .work-card {
    min-height: 310px;
  }

  .bootnote-stage {
    min-height: 460px;
  }

  .idea-row {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 22px 0;
  }

  .idea-row em {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 28px, var(--max));
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3),
  .nav-links a:nth-child(4) {
    display: none;
  }

  h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .hero-lede,
  .statement p,
  .bootnote-copy p,
  .system-copy p {
    font-size: 17px;
  }

  .bootnote-card {
    border-radius: 22px;
    padding: 14px;
  }

  .bootnote-topline span {
    font-size: 22px;
  }

  .button {
    width: 100%;
  }

  .contact-actions {
    width: 100%;
  }

  .system-orbit span {
    width: 82px;
    margin-left: -41px;
    transform: rotate(var(--angle)) translateX(clamp(104px, 34vw, 138px)) rotate(calc(-1 * var(--angle)));
  }
}

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