/* Hallmark · macrostructure: Marquee Hero · tone: playful-utilitarian · anchor hue: lime 128
 * theme: custom "哈哈 lime on graphite" (light variant) · paper oklch(0.985 0.006 95) warm-white · accent oklch(0.72 0.17 128)
 * display: Space Grotesk · body: Inter / PingFang SC · mono: JetBrains Mono
 * pre-emit critique: P5 H5 E4 S5 R4 V4
 */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap");

:root {
  --paper: oklch(0.985 0.006 95);
  --paper-2: oklch(0.965 0.008 95);
  --paper-3: oklch(0.945 0.01 95);
  --ink: oklch(0.22 0.012 265);
  --ink-2: oklch(0.42 0.012 265);
  --ink-3: oklch(0.56 0.012 265);
  --line: oklch(0.9 0.008 95);
  --line-2: oklch(0.84 0.01 95);

  --graphite: oklch(0.19 0.013 265);
  --graphite-2: oklch(0.24 0.014 265);

  --accent: oklch(0.72 0.17 128);
  --accent-2: oklch(0.66 0.17 128);
  --accent-ink: oklch(0.99 0.02 130);
  --accent-faint: oklch(0.72 0.17 128 / 0.12);
  --accent-glow: oklch(0.72 0.17 128 / 0.28);

  --kind-video: oklch(0.62 0.18 28);
  --kind-audio: oklch(0.55 0.17 305);
  --kind-image: oklch(0.55 0.13 215);

  --font-display: "Space Grotesk", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "PingFang SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────── Nav ───────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: oklch(0.985 0.006 95 / 0.78);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  box-shadow: 0 6px 16px var(--accent-glow);
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 28px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: var(--paper-2);
}
.btn--lg {
  padding: 15px 28px;
  font-size: 16px;
  border-radius: 14px;
}
.btn__sub {
  font-weight: 500;
  opacity: 0.8;
  font-size: 13px;
}

/* ───────────── Hero (Marquee) ───────────── */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-faint);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  min-width: 0;
}
.hero h1 .hl {
  color: var(--accent-2);
}
.hero__sub {
  margin: 22px 0 32px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2);
  max-width: 32ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-3);
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tick {
  color: var(--accent-2);
  font-weight: 700;
}

/* Hero compression demo card (Tier-A CSS art) */
.demo {
  background: var(--graphite);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 30px 70px oklch(0.2 0.02 265 / 0.28);
  color: oklch(0.96 0.004 250);
  position: relative;
}
.demo__bar-top {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.demo__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--graphite-2);
}
.demo__title {
  font-size: 13px;
  color: oklch(0.7 0.01 255);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.demo__badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--graphite-2);
  color: oklch(0.7 0.01 255);
}
.meter {
  margin-bottom: 18px;
}
.meter__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: oklch(0.78 0.008 255);
}
.meter__track {
  height: 14px;
  border-radius: 999px;
  background: var(--graphite-2);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  border-radius: 999px;
  width: 100%;
  background: oklch(0.5 0.02 28);
}
.meter__fill--before {
  background: linear-gradient(90deg, var(--kind-video), oklch(0.7 0.16 40));
}
.meter__fill--after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 27%;
  transition: width 1.2s var(--ease);
}
.demo__result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--graphite-2);
}
.demo__big {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 30px;
  color: var(--accent);
}
.demo__small {
  font-size: 13px;
  color: oklch(0.66 0.01 255);
}

/* ───────────── Sections ───────────── */
.section {
  padding: clamp(56px, 9vw, 104px) 0;
}
.section--alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section__kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section__lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
}

/* Pillars (3 media types) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px oklch(0.2 0.02 265 / 0.08);
  border-color: var(--line-2);
}
.pillar__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #fff;
}
.pillar__icon--video { background: var(--kind-video); }
.pillar__icon--audio { background: var(--kind-audio); }
.pillar__icon--image { background: var(--kind-image); }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
.pillar p {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 16px;
}
.pillar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--paper-3);
  color: var(--ink-2);
}

/* Differentiators (bento) */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.cell--wide { grid-column: span 2; }
.cell--dark {
  background: var(--graphite);
  color: oklch(0.96 0.004 250);
  border-color: var(--graphite-2);
}
.cell--accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.cell__big {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cell p {
  font-size: 14.5px;
  opacity: 0.9;
}
.cell--dark p,
.cell--accent p {
  opacity: 0.85;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 14px;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 8px;
}
.step p {
  color: var(--ink-2);
  font-size: 15px;
}

/* Formats */
.formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.fmt {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.fmt__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 14px;
}
.fmt__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.fmt__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.qa__icon {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
  color: var(--accent-2);
  font-size: 22px;
  line-height: 1;
}
.qa[open] .qa__icon {
  transform: rotate(45deg);
}
.qa__a {
  padding: 0 0 24px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 64ch;
}

/* CTA band */
.cta {
  text-align: center;
  background: var(--graphite);
  color: oklch(0.96 0.004 250);
  border-radius: 28px;
  padding: clamp(44px, 7vw, 80px) 24px;
  position: relative;
  overflow: clip;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}
.cta p {
  margin: 18px auto 32px;
  color: oklch(0.78 0.008 255);
  font-size: 18px;
  max-width: 46ch;
  position: relative;
}
.cta .btn {
  position: relative;
}

/* Footer */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer__meta {
  color: var(--ink-3);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.footer__links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer__links a:hover { color: var(--accent-2); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Mobile nav toggle (hidden on desktop) */
.nav__burger { display: none; }

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .demo { order: -1; max-width: 460px; }
  .pillars,
  .steps,
  .formats { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--wide { grid-column: span 2; }
  .nav__links { display: none; }
  .nav__links--open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav__links--open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__burger {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: var(--paper);
    cursor: pointer;
  }
  .nav__cta--desktop { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .cell--wide { grid-column: span 1; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
