@charset "UTF-8";

:root {
  --bg: #030303;
  --bg-soft: #080808;
  --surface: rgba(255, 255, 255, 0.018);
  --surface-strong: rgba(255, 255, 255, 0.035);
  --text: #f4f4f1;
  --muted: #b8b8b3;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --header-height: 68px;
  --shell-width: min(1180px, calc(100vw - 48px));
  --grid-unit: clamp(34px, 3.2vw, 46px);
  --mono: "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Bahnschrift", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0)) no-repeat,
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size:
    var(--grid-unit) var(--grid-unit),
    var(--grid-unit) var(--grid-unit),
    calc(var(--grid-unit) * 4) calc(var(--grid-unit) * 4),
    calc(var(--grid-unit) * 4) calc(var(--grid-unit) * 4);
  opacity: 0.24;
  animation: grid-breathe 16s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.024)) 8% 16% / 108px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.024)) 8% 16% / 1px 108px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)) 82% 18% / 156px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)) 82% 18% / 1px 156px no-repeat;
  opacity: 0.5;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: var(--shell-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.94);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand-link,
.site-nav a,
.nav-trigger {
  position: relative;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}

.brand-logo {
  width: clamp(92px, 8vw, 122px);
  height: auto;
  opacity: 0.9;
  filter: grayscale(1) brightness(1.18) contrast(1.08);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-nav a::after,
.nav-trigger::after,
.brand-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.32rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease, opacity 180ms ease;
  opacity: 0.65;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.nav-trigger:hover::after,
.nav-trigger:focus-visible::after,
.brand-link:hover::after,
.brand-link:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-trigger:hover,
.nav-trigger:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  color: #ffffff;
}

.hero,
.section-block,
.site-footer {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.hero {
  padding: 44px 0 40px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 64px;
  align-items: center;
  min-height: clamp(620px, calc(100svh - var(--header-height) - 68px), 720px);
}

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

.hero-kicker,
.section-kicker,
.visual-header,
.visual-footer,
.record-title,
.modal-kicker,
.footer-brand {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero h1,
.section-heading h2,
.modal-panel h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(3rem, 7.2vw, 5.5rem);
  line-height: 0.96;
}

.hero-subtitle {
  margin: 22px 0 0;
  max-width: 18em;
  color: var(--text);
  font-size: clamp(1.12rem, 2.2vw, 1.44rem);
}

.hero-description,
.section-text,
.feature-card p,
.about-copy p,
.section-panel p,
.footer-text,
.footer-meta,
.record-link,
.modal-text {
  color: var(--muted);
}

.hero-description {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: 1rem;
}

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

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
  cursor: pointer;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.028), transparent) 0 0 / 180px 100% no-repeat;
  opacity: 0.55;
  animation: sweep 14s linear infinite;
  pointer-events: none;
}

.visual-header,
.visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
}

.visual-header {
  margin-bottom: 16px;
}

.visual-footer {
  margin-top: 18px;
}

.tesseract-stage {
  position: relative;
  isolation: isolate;
}

.tesseract-stage::before {
  content: "";
  position: absolute;
  inset: 10% 8% 13%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)) center / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)) center / 1px 100% no-repeat,
    radial-gradient(circle at center, rgba(255, 255, 255, 0.035), transparent 62%);
  opacity: 0.5;
  pointer-events: none;
}

.tesseract-stage::after {
  content: "";
  position: absolute;
  inset: 12% 11% 15%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.tesseract-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.stage-corner,
.stage-axis {
  position: absolute;
  pointer-events: none;
}

.stage-corner {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  opacity: 0.56;
}

.stage-corner-top {
  top: 48px;
  left: 38px;
}

.stage-corner-bottom {
  right: 34px;
  bottom: 46px;
}

.stage-axis {
  left: 18%;
  right: 27%;
  bottom: 88px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.08));
  opacity: 0.7;
}

.section-block {
  padding: 88px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  max-width: 640px;
}

.section-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-text {
  margin: 16px 0 0;
  max-width: 40em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.feature-card,
.section-panel,
.record-board {
  border: 1px solid var(--line);
  background: var(--surface);
}

.feature-card {
  min-height: 188px;
  padding: 22px 20px;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.feature-card:hover,
.feature-card:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 500;
}

.feature-card p,
.about-copy p,
.section-panel p,
.footer-text,
.record-link,
.modal-text {
  margin: 0;
}

.about-shell,
.split-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  padding-top: 6px;
}

.section-panel {
  display: grid;
  gap: 20px;
  align-content: start;
  min-height: 188px;
  padding: 24px;
}

.contact-section .section-panel,
.miniapp-section .section-panel {
  max-width: 480px;
}

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-shell {
  display: grid;
  gap: 30px;
}

.footer-brand {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
}

.footer-text {
  margin: 0;
}

.record-board {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.record-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
}

.record-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.012);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

a.record-link:hover,
a.record-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.record-placeholder {
  opacity: 0.92;
}

.record-icon {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 3px;
  display: inline-block;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.modal[hidden] {
  display: none;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.modal-panel {
  position: relative;
  width: min(100%, 408px);
  max-height: min(86svh, 760px);
  overflow: auto;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 6, 6, 0.97);
  text-align: center;
  transform: translateY(10px);
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.modal-kicker {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.modal-panel h2 {
  font-size: clamp(1.4rem, 4.4vw, 1.78rem);
  line-height: 1.12;
}

.modal-text {
  margin-top: 12px;
}

.qr-frame {
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #ffffff;
}

.qr-image {
  width: min(100%, 248px);
  height: auto;
  margin: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  aspect-ratio: 430 / 430;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

::selection {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

@keyframes grid-breathe {
  from {
    opacity: 0.18;
  }

  to {
    opacity: 0.3;
  }
}

@keyframes sweep {
  from {
    transform: translateX(-24%);
  }

  to {
    transform: translateX(124%);
  }
}

@media (max-width: 1080px) {
  .hero-shell,
  .about-shell,
  .split-shell {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    gap: 40px;
    min-height: auto;
  }

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

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

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --shell-width: min(100vw - 32px, 1180px);
    --header-height: 86px;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    letter-spacing: 0.02em;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .ghost-button {
    width: 100%;
    flex: none;
  }

  .hero-visual {
    min-height: 360px;
    padding: 18px;
  }

  .stage-corner {
    width: 34px;
    height: 34px;
  }

  .stage-corner-top {
    top: 40px;
    left: 28px;
  }

  .stage-corner-bottom {
    right: 26px;
    bottom: 40px;
  }

  .stage-axis {
    bottom: 72px;
  }

  .section-block {
    padding: 72px 0;
  }

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

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

@media (max-width: 520px) {
  .brand-logo {
    width: 98px;
  }

  .hero-kicker,
  .section-kicker,
  .visual-header,
  .visual-footer {
    letter-spacing: 0.1em;
  }

  .hero-subtitle {
    max-width: none;
  }

  .hero-description {
    max-width: none;
  }

  .record-link {
    width: 100%;
  }

  .modal {
    padding: 16px;
  }

  .modal-panel {
    max-height: 88svh;
    width: min(100%, 356px);
    padding: 46px 14px 16px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  .modal-panel h2 {
    max-width: 10.6em;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.34rem;
    line-height: 1.12;
  }

  .modal-text {
    margin-top: 10px;
  }

  .qr-frame {
    margin-top: 16px;
    padding: 8px;
  }

  .qr-image {
    width: min(100%, 220px);
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
