/* Typography & base */
:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f12;
  --fg: #e6e6e6;
  --muted: #9a9aa0;
  --accent: #8b5cf6; /* violet */
  --accent-2: #22d3ee; /* cyan */
  --danger: #ef4444;
  --card: #13131a;
  --border: #22222b;
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  background: radial-gradient(
      1200px 800px at 80% -10%,
      rgba(139, 92, 246, 0.15),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at -10% 20%,
      rgba(34, 211, 238, 0.12),
      transparent 55%
    ),
    var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

a {
  color: var(--fg);
  text-decoration: none;
  opacity: 0.9;
}
a:hover {
  opacity: 1;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.9),
    rgba(10, 10, 10, 0.6)
  );
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand .logo {
  font-size: 22px;
}
.brand .name {
  font-size: 14px;
}
.brand .ticker {
  color: var(--accent-2);
}
.nav {
  display: flex;
  gap: 16px;
}
.nav a {
  font-size: 13px;
  color: var(--muted);
}
.nav a:hover {
  color: var(--fg);
}

/* Hero */
.hero {
  padding: 80px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.tagline {
  color: var(--muted);
  min-height: 24px;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin: 18px 0 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--border);
  background: #121217;
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.12);
}
.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2),
    rgba(34, 211, 238, 0.2)
  );
  border-color: rgba(139, 92, 246, 0.35);
}
.btn.ghost {
  background: transparent;
}
.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

.contract-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  margin-top: 10px;
  background: rgba(18, 18, 23, 0.7);
}
.contract-box .label {
  color: var(--muted);
  font-size: 12px;
}

.hero-model {
  display: flex;
  justify-content: center;
  align-items: center;
}
#live2d-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 30px 70px var(--shadow);
}
#live2d {
  width: 100%;
  height: 100%;
  display: block;
}
.fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 14px;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(
    to bottom,
    rgba(19, 19, 26, 0.5),
    rgba(10, 10, 10, 0.4)
  );
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 16px 40px var(--shadow);
}
.steps {
  margin: 0;
  padding-left: 18px;
}
.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 26px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.small {
  font-size: 12px;
}

/* CRT Noise overlay */
#noise {
  position: fixed;
  inset: -20px;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22200%22 viewBox=%220 0 200 200%22><filter id=%22n%22><feTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%222%22 stitchTiles=%22stitch%22/></filter><rect width=%22200%22 height=%22200%22 filter=%22url(%23n)%22 opacity=%220.035%22/></svg>');
  opacity: 0.8;
  mix-blend-mode: overlay;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 56px;
  }
}
