/* =========================================================================
   TCQ — Landing Page
   Design language: New Brutalism (Dichromatic + Accent)
   Taste source: yanliudesign — migrated grammar, NOT brand identity.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --canvas: #ffffff;
  --ink: #000000;
  --accent: #7fff00;          /* single accent — lime */
  --accent-marquee: #bfff00;  /* allowed darker lime variant for marquee */
  --tint: oklab(0.97 0 0 / 0.30); /* single near-white section tint */
  --muted: rgba(0, 0, 0, 0.58);

  --radius: 0rem;             /* global sharp corners */
  --shadow: 8px 8px 0 0 var(--accent); /* the ONLY shadow recipe */

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --pad-x: 96px;
  --maxw: 1280px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-cjk);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- Typography roles ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0;
  color: var(--ink);
}
.kicker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 20px;
}
.kicker::before { content: "■ "; color: var(--accent); }
.mono { font-family: var(--font-mono); }
.cjk { font-family: var(--font-cjk); }

mark {
  background: var(--accent);
  color: var(--ink);
  padding: 0 5px;
  border-radius: 0;
  font-weight: 700;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 2px solid var(--ink);
}
.nav__inner {
  height: var(--nav-h);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav__menu {
  display: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  background: var(--canvas);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  border-radius: 0;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  padding: 24px;
  animation: fade .15s ease both;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__close {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  background: var(--canvas);
  border: 2px solid var(--ink);
  padding: 8px 14px;
}
.mobile-menu__links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 44px;
  line-height: 1.05;
  padding: 12px 0;
  border-bottom: 2px solid var(--ink);
}
.mobile-menu__links a:hover { color: var(--accent); -webkit-text-stroke: 1px var(--ink); }

/* ---------- HERO ---------- */
.hero { padding: 96px 0 120px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero__title { font-size: clamp(120px, 19vw, 184px); margin: 6px 0 28px; }
.hero__tagline {
  font-size: 20px;
  line-height: 1.7;
  max-width: 520px;
  border-left: 5px solid var(--accent);
  padding-left: 20px;
  margin: 0 0 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.hero__note { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding: 16px 26px;
  border: 2px solid var(--ink);
  border-radius: 0;
  transition: box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { box-shadow: var(--shadow); }
.btn--ghost { background: var(--canvas); color: var(--ink); }
.btn--ghost:hover { background: var(--accent); }

/* ---------- Phone mockup (CSS illustration) ---------- */
.hero__art { display: flex; justify-content: center; }
.phone {
  width: 300px;
  max-width: 80vw;
  aspect-ratio: 9 / 18.5;
  background: #050505;
  border: 3px solid var(--ink);
  border-radius: 0;
  padding: 14px 12px 12px;
  position: relative;
  overflow: hidden;
}
.phone__screen { position: relative; height: 100%; overflow: hidden; }
.phone__scroll {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding-top: 18px;
  animation: teleScroll 16s linear infinite;
}
.phone__scroll .line {
  color: #f5f5f5;
  font-family: var(--font-cjk);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 6px;
  opacity: 0.92;
}
.phone__readline {
  position: absolute;
  left: 0; right: 0;
  top: 62%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
}
.phone__readline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 2px;
  bottom: -220px;
  background: #050505;
  opacity: 0.82;
}
.phone__cue {
  position: absolute;
  left: 0; top: -18px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.phone__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 8px;
  padding-top: 10px;
}
.phone__btn {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #111;
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 9px 6px;
}

/* ---------- MARQUEE ---------- */
.marquee {
  width: 100%;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.marquee--accent { background: var(--accent-marquee); color: var(--ink); }
.marquee--ink { background: var(--ink); color: #fff; }
.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 26px 0;
  display: inline-block;
}

/* ---------- SECTIONS ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section__title { font-size: clamp(90px, 11vw, 124px); margin: 4px 0 24px; }
.section__lead {
  font-size: 20px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 56px;
}

/* ---------- FEATURE CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--canvas);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 28px;
  min-height: 240px;
  transition: box-shadow .15s ease, background-image .15s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  background-image: radial-gradient(rgba(127,255,0,0.2) 1px, transparent 1px);
  background-size: 14px 14px;
}
.card__tag {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 18px;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.card__desc { font-size: 16px; line-height: 1.7; margin: 0; }

/* ---------- PRIVACY ---------- */
.privacy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.privacy__item {
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.privacy__no {
  font-weight: 700;
  font-size: 18px;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center;
}
.privacy__item p { margin: 0; font-size: 16px; line-height: 1.7; }

/* ---------- VOICE (experimental) ---------- */
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  padding: 4px 10px;
  margin-right: 10px;
  vertical-align: middle;
}
.voice { max-width: 760px; }
.voice p { font-size: 18px; line-height: 1.8; margin: 0 0 28px; }
.voice strong { background: var(--accent); padding: 0 4px; }
.voice__list {
  border-left: 4px solid var(--ink);
  padding-left: 20px;
  margin: 0 0 28px;
}
.voice__list li {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.02em;
}
.voice__note { font-size: 17px; }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 56px; }
.step {
  border-top: 4px solid var(--ink);
  padding-top: 20px;
}
.step__no { font-size: 64px; display: block; margin-bottom: 14px; }
.step p { font-size: 17px; line-height: 1.7; margin: 0; }
.link {
  font-family: var(--font-mono);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.link:hover { background: var(--accent); }
.start__cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: #fff;
  background-image: radial-gradient(rgba(127,255,0,0.2) 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 96px var(--pad-x);
}
.footer__grid { max-width: var(--maxw); margin: 0 auto; }
.footer__label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}
.footer__big {
  display: inline-block;
  color: #fff;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.95;
  margin-bottom: 40px;
  transition: box-shadow .15s ease;
}
.footer__big:hover { box-shadow: 8px 8px 0 0 var(--accent); color: var(--accent); }
.footer__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 28px;
}
.footer__links a { color: rgba(255,255,255,0.7); transition: color .15s ease; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { font-size: 13px; color: rgba(255,255,255,0.55); margin: 0; letter-spacing: 0.04em; }

/* ---------- Reveal animation (fade + translateY) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes teleScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  :root { --pad-x: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__art { order: -1; }
  .cards, .privacy { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 24px; }
  .nav__links { display: none; }
  .nav__menu { display: inline-block; }
  .hero { padding: 56px 0 80px; }
  .section { padding: 80px 0; }
  .hero__title { font-size: clamp(96px, 26vw, 140px); }
  .section__title { font-size: clamp(80px, 22vw, 110px); }
  .hero__tagline { font-size: 18px; }
  .marquee__track span { font-size: 18px; }
  .footer { padding: 72px var(--pad-x); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .phone__scroll { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
