/* ── Variables ── */
:root {
  --bg: #0e0c0a;
  --bg2: #161412;
  --bg3: #1e1b17;
  --amber: #f5a623;
  --orange: #ff6b35;
  --cream: #e8e4dc;
  --muted: rgba(232, 228, 220, 0.45);
  --line: rgba(232, 228, 220, 0.1);
  --line-bright: rgba(245, 166, 35, 0.3);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
img { display: block; width: 100%; }
a, button { font: inherit; text-decoration: none; }

/* ── Body ── */
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

/* ── Masthead ── */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 12, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: padding 300ms ease;
}

.masthead.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: rgba(232, 228, 220, 0.15);
}

.name {
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: font-size 300ms ease;
}

.masthead.scrolled .name {
  font-size: 1.1rem;
}

/* offset hero for fixed header */
body { padding-top: 65px; }

.name-accent { color: var(--amber); }

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 150ms;
}

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

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  min-height: calc(100vh - 57px);
}

.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(4rem, 9vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 28px;
}

.accent {
  color: var(--amber);
}

.hero-desc {
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
  text-transform: uppercase;
  margin-bottom: 36px;
}

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

/* Hero visual */
.hero-visual {
  position: relative;
  width: clamp(260px, 26vw, 400px);
}

.hero-img-frame {
  position: relative;
  aspect-ratio: 2/3;
  border: 1px solid var(--line-bright);
  overflow: hidden;
  background: var(--bg);
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-img-frame.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-frame.no-img::after {
  content: '// loading';
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.1em;
}

.hero-img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(14,12,10,0.9), transparent);
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--amber);
}

/* Grid decoration */
.hero-grid-deco {
  position: absolute;
  inset: -12px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: -1;
}

.hero-grid-deco::before {
  content: '';
  position: absolute;
  top: -12px; right: -12px;
  width: 24px; height: 24px;
  border-top: 1px solid var(--amber);
  border-right: 1px solid var(--amber);
}

.hero-grid-deco::after {
  content: '';
  position: absolute;
  bottom: -12px; left: -12px;
  width: 24px; height: 24px;
  border-bottom: 1px solid var(--amber);
  border-left: 1px solid var(--amber);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 180ms ease;
  cursor: pointer;
}

.btn--fill {
  background: var(--amber);
  color: var(--bg);
  font-weight: 700;
}

.btn--fill:hover {
  background: var(--orange);
}

.btn--ghost {
  border: 1px solid var(--line-bright);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ── Ticker ── */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  background: var(--bg2);
}

.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: ticker 24s linear infinite;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticker-track .sep { color: var(--amber); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Stats ── */
.stats-section {
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--amber);
  line-height: 1;
}

.stat-num sup {
  font-size: 0.45em;
  vertical-align: super;
  letter-spacing: 0;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}

.stat-note {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Section common ── */
.section-tag {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── Services ── */
.services-section {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: var(--bg);
  transition: background 200ms;
}

.service-card:hover {
  background: var(--bg2);
}

.service-card--lit {
  background: var(--bg2);
  border-top: 2px solid var(--amber);
  margin-top: -2px;
}

.service-card--lit .service-num { color: var(--amber); }

.service-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.service-card h3 {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.service-price {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--amber);
}

.service-card p:not(.service-price) {
  flex: 1;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}

.service-link {
  align-self: flex-start;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 150ms, border-color 150ms;
}

.service-link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ── Content ── */
.content-section {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.content-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.content-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  transition: background 130ms, padding 130ms;
}

.content-row:first-child { border-top: 1px solid var(--line); }

.content-row:not(.content-row--dim):hover {
  background: rgba(245, 166, 35, 0.04);
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -10px;
}

.content-row--dim {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.content-platform {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.content-desc {
  font-size: 0.88rem;
  line-height: 1.4;
}

.content-handle {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Contact ── */
.contact-section {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}

.contact-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
}

.contact-text p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.wechat-hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 10px;
}

.wechat-id {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--cream);
  cursor: pointer;
  user-select: none;
  transition: color 160ms;
}

.wechat-id:hover { color: var(--amber); }

.copy-feedback {
  height: 1.6em;
  margin-top: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 64px);
}

.footer-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-right {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    width: clamp(200px, 55vw, 320px);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item:nth-child(3) { border-right: none; }
  .stat-item:nth-child(4) { border-top: 1px solid var(--line); }
  .stat-item:nth-child(5) { border-top: 1px solid var(--line); border-right: none; }

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

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav { display: none; }

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

  .stat-item { border-right: none; border-bottom: 1px solid var(--line); }

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

  .content-row {
    grid-template-columns: 72px 1fr;
  }

  .content-handle { display: none; }
}
