/* ─────────────────────────────────────────────
   AltMode.cc — Terminal Zen Aesthetic
   Designer: 0x319
   ───────────────────────────────────────────── */

:root {
  --bg:          #111211;
  --bg-deep:     #0c0d0c;
  --surface:     #161716;
  --border:      #252625;
  --text:        #f0f0ee;
  --text-dim:    #666866;
  --text-muted:  #3a3c3a;
  --accent:      #39FF14;
  --accent-dim:  rgba(57, 255, 20, 0.12);
  --accent-glow: rgba(57, 255, 20, 0.35);
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --nav-h:       56px;
}

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

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CRT OVERLAY ── */
.crt-overlay {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  animation: crt-flicker 8s infinite;
}
@keyframes crt-flicker {
  0%, 97%, 100% { opacity: 1; }
  98%            { opacity: 0.92; }
  99%            { opacity: 0.98; }
}

/* ── CODE RAIN CANVAS ── */
#code-rain {
  position: fixed; inset: 0; z-index: 0;
  opacity: 0.045;
  pointer-events: none;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 18, 17, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  user-select: none;
}
.nav__logo-prefix { color: var(--accent); margin-right: 1px; }
.nav__logo-tld    { color: var(--text-dim); }

.nav__links {
  display: flex; gap: 32px;
}
.nav__link {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav__link:hover,
.nav__link.active { color: var(--text); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

.nav__status {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── HERO LAYOUT ── */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 0;
  align-items: center;
}

/* ── LEFT: DATA COL ── */
.hero__data-col {
  padding: 48px 24px 48px 36px;
  display: flex; flex-direction: column; gap: 20px;
  border-right: 1px solid var(--border);
  height: 100%;
  justify-content: center;
}
.data-block {
  display: flex; flex-direction: column; gap: 2px;
}
.data-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.data-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
}
.data-value.accent {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

.pixel-divider {
  display: flex; gap: 4px; margin: 4px 0;
}
.pixel-divider span {
  width: 4px; height: 4px;
  background: var(--border);
}

.data-note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── CENTER: PRODUCT FRAME ── */
.hero__product {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
}

.product-frame {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pixel corner brackets */
.bracket {
  position: absolute;
  width: 18px; height: 18px;
  z-index: 2;
}
.bracket::before,
.bracket::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.bracket::before { width: 100%; height: 2px; }
.bracket::after  { width: 2px; height: 100%; }

.bracket.tl { top: 0;    left: 0;  }
.bracket.tl::before { top: 0;    left: 0; }
.bracket.tl::after  { top: 0;    left: 0; }

.bracket.tr { top: 0;    right: 0; }
.bracket.tr::before { top: 0;    right: 0; }
.bracket.tr::after  { top: 0;    right: 0; }

.bracket.bl { bottom: 0; left: 0;  }
.bracket.bl::before { bottom: 0;  left: 0; }
.bracket.bl::after  { bottom: 0;  left: 0; }

.bracket.br { bottom: 0; right: 0; }
.bracket.br::before { bottom: 0;  right: 0; }
.bracket.br::after  { bottom: 0;  right: 0; }

/* Inner scanlines over hoodie */
.product-scanlines {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
}

.hoodie-svg {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(0,0,0,0.9)) drop-shadow(0 0 80px rgba(0,0,0,0.6));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.product-label {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  z-index: 3;
}
.product-label__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  text-transform: uppercase;
}
.product-label__sku {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

/* ── RIGHT: COPY COL ── */
.hero__copy-col {
  padding: 48px 36px 48px 40px;
  display: flex; flex-direction: column; gap: 20px;
  border-left: 1px solid var(--border);
  height: 100%;
  justify-content: center;
}

.copy-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.8;
}

.hero__headline {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}
.headline-accent {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(57,255,20,0.15);
}

.hero__sub {
  font-size: 12px;
  line-height: 2;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.hero__desc {
  font-size: 11px;
  line-height: 2;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 14px;
}

/* CTAs */
.hero__cta-group {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: box-shadow 0.2s, transform 0.15s;
  font-family: var(--font-mono);
}
.cta-primary:hover {
  box-shadow: 0 0 24px var(--accent-glow), 0 0 48px rgba(57,255,20,0.15);
  transform: translateY(-1px);
}
.cta-prefix { font-weight: 400; opacity: 0.7; }

.cta-secondary {
  display: inline-flex; align-items: center;
  padding: 11px 20px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-mono);
}
.cta-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

.cursor-line { margin-top: 12px; }
.cursor-blink {
  color: var(--accent);
  font-size: 16px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── FOOTER ── */
.footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100;
  height: 36px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  border-top: 1px solid var(--border);
  background: rgba(12, 13, 12, 0.92);
  backdrop-filter: blur(8px);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.footer__center { color: var(--text-dim); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .hero__data-col,
  .hero__copy-col {
    border: none;
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    height: auto;
  }
  .hero__product { padding: 40px 24px; }
  .product-frame { width: 280px; height: 340px; }
  .nav { padding: 0 20px; }
  .footer { padding: 0 20px; }
}

/* ── LANGUAGE SYSTEM ── */
[data-lang="en"] .only-cn { display: none !important; }
[data-lang="cn"] .only-en { display: none !important; }

/* ── LANG TOGGLE BUTTON ── */
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-left: 16px;
}
.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* image blend: removes white/light bg visually on dark canvas */
.hoodie-svg {
  mix-blend-mode: multiply;
}

/* ── COLLECTION SECTION ── */
.collection {
  position: relative; z-index: 10;
  padding: 56px 80px 80px;
  border-top: 1px solid var(--border);
}
.collection__header {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 36px;
}
.collection__tag {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.collection__title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.collection__grid {
  display: grid;
  grid-template-columns: repeat(2, 320px);
  gap: 24px;
}
.product-card {
  position: relative;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
  overflow: hidden;
}
.product-card--active:hover { border-color: var(--accent); }
.product-card--locked { opacity: 0.5; cursor: default; }
.product-card__badge {
  position: absolute; top: 12px; left: 14px; z-index: 2;
  font-size: 9px; letter-spacing: 0.18em; font-weight: 700;
  color: var(--accent);
  padding: 2px 6px;
  border: 1px solid var(--accent-dim);
  background: rgba(0,0,0,0.6);
}
.product-card__badge--pending { color: var(--text-muted); border-color: var(--border); }
.product-card__img {
  width: 100%; height: 260px;
  object-fit: contain;
  mix-blend-mode: multiply;
  background: transparent;
}
.product-card__placeholder {
  width: 100%; height: 260px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.ph-ascii {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.05em;
}
.ph-status {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.ph-cursor {
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.product-card__info {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.product-card__name {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--text);
}
.product-card__sub {
  font-size: 10px; color: var(--text-dim); letter-spacing: 0.08em;
}
.product-card__action {
  font-size: 10px; color: var(--accent);
  letter-spacing: 0.12em; margin-top: 8px;
}
.product-card__action--pending { color: var(--text-muted); }

@media (max-width: 768px) {
  .collection { padding: 40px 24px 60px; }
  .collection__grid { grid-template-columns: 1fr; }
}
