:root {
  color-scheme: dark;
  --bg: #141414;
  --bg-deep: #0a0a0a;
  --ink: #ededed;
  --muted: rgba(237, 237, 237, 0.7);
  --line: rgba(237, 237, 237, 0.16);
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.16);
  --paper: #f5f3ee;
  --paper-ink: #1a1a1a;
  --green: #173b34;
  --blue: #2958ff;
  --acid: #d8ff3d;
  --max: 1180px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.06), transparent 34rem),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 54px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, min-height 220ms ease;
}

.site-header.is-scrolled {
  min-height: 58px;
  background: rgba(10, 10, 10, 0.92);
}

.brand,
.nav-links,
.hero-actions,
.mini-metrics,
.footer-links,
.filter-tabs {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 11px;
  width: fit-content;
  font-weight: 900;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.nav-links {
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a,
.footer-links a,
.text-link {
  transition: color 180ms ease;
}

.nav-links a:hover,
.auth-link:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--gold);
}

.auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-greeting {
  color: rgba(237, 237, 237, 0.86);
}

.auth-link {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.nav-cta {
  justify-self: end;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid rgba(201, 162, 39, 0.75);
  border-radius: 6px;
  color: #15120a;
  background: var(--gold);
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(201, 162, 39, 0.18);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-poster,
.hero-shade,
.signal-grid {
  position: absolute;
  inset: 0;
}

.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.92) contrast(1.08) brightness(0.5);
  transform: scale(1.04);
}

.hero-shade {
  background:
    radial-gradient(circle at 24% 48%, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72) 25rem, transparent 49rem),
    linear-gradient(90deg, rgba(7, 7, 7, 0.98), rgba(7, 7, 7, 0.88) 44%, rgba(7, 7, 7, 0.46) 78%),
    linear-gradient(0deg, rgba(7, 7, 7, 0.97), transparent 58%);
}

.signal-grid {
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 150px;
}

.hero-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -26px;
  top: 106px;
  width: min(860px, calc(100vw - 24px));
  height: calc(100% - 226px);
  min-height: 480px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.44) 72%, transparent),
    rgba(0, 0, 0, 0.24);
  border-left: 5px solid var(--gold);
}

.eyebrow,
.section-kicker,
.case-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 26px;
  font-size: clamp(50px, 8vw, 112px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.92);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5.2vw, 70px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 800;
}

h3 {
  margin-bottom: 11px;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 780px;
  margin-bottom: 18px;
  color: rgba(237, 237, 237, 0.92);
  font-size: clamp(18px, 2.15vw, 25px);
  line-height: 1.88;
  font-weight: 700;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.94);
}

.hero-identity,
.intro-layout > p,
.section-heading p,
.reel-copy p,
.product-layout p,
.case-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.86;
}

.hero-identity {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(237, 237, 237, 0.88);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: #111;
  background: var(--gold);
  box-shadow: 0 14px 38px rgba(201, 162, 39, 0.2);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.hero-dock {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  width: min(var(--max), calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-dock div {
  min-width: 0;
  padding: 18px;
  background: rgba(12, 12, 12, 0.74);
  backdrop-filter: blur(14px);
}

.hero-dock b {
  display: block;
  color: var(--gold);
  font-size: 28px;
}

.hero-dock span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: clamp(78px, 10vw, 134px) 0;
}

.section-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  background:
    linear-gradient(135deg, rgba(23, 59, 52, 0.92), rgba(20, 20, 20, 0.98)),
    var(--green);
}

.intro-layout,
.section-heading.split,
.reel-layout,
.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 38px;
}

.section-heading.split {
  max-width: none;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pain-grid article {
  min-height: 255px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.pain-grid b,
.article-grid b {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 13px;
}

.pain-grid p,
.system-track p,
.article-grid p,
.proof-grid blockquote,
.form-note,
.site-footer p,
.timeline p {
  color: var(--muted);
  line-height: 1.74;
}

.system-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #111;
  background-size: 56px 56px;
}

.system-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.system-track article {
  min-height: 292px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 220ms ease, background 220ms ease;
}

.system-track article:hover {
  transform: translateY(-6px);
  background: rgba(201, 162, 39, 0.08);
}

.system-track span {
  display: block;
  margin-bottom: 62px;
  color: var(--acid);
  font-weight: 900;
}

.cases-section,
.reel-section {
  background: var(--paper);
  color: var(--paper-ink);
}

.cases-section .section-kicker,
.reel-section .section-kicker {
  color: #8c6818;
}

.cases-section .section-heading p,
.reel-copy p,
.case-copy p {
  color: #52615c;
}

.feature-case {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.case-media {
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.16);
  box-shadow: 0 28px 80px rgba(20, 20, 20, 0.18);
}

.case-media img,
.case-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-copy {
  align-self: center;
}

.case-copy dl {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.case-copy dl div {
  padding-top: 12px;
  border-top: 1px solid rgba(26, 26, 26, 0.14);
}

.case-copy dt {
  color: #8c6818;
  font-weight: 900;
}

.case-copy dd {
  margin: 5px 0 0;
  color: #52615c;
  line-height: 1.7;
}

.text-link {
  color: #8c6818;
  font-weight: 900;
}

.text-link.strong {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 13px;
  color: #1a1a1a;
  border: 1px solid rgba(140, 104, 24, 0.28);
  background: rgba(201, 162, 39, 0.2);
}

.case-actions {
  display: grid;
  gap: 12px;
}

.case-details {
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: rgba(255, 255, 255, 0.46);
}

.case-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  color: #8c6818;
  font-weight: 900;
  cursor: pointer;
}

.case-details summary::after {
  content: "+";
  color: #1a1a1a;
  font-size: 20px;
}

.case-details[open] summary::after {
  content: "-";
}

.case-details p {
  padding: 0 13px 13px;
  margin: 0;
  color: #52615c;
  line-height: 1.7;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.case-grid article {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.12);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
}

.case-grid img {
  aspect-ratio: 4 / 3;
}

.case-grid div {
  min-height: 158px;
  padding: 20px 22px 22px;
  border-top: 4px solid var(--gold);
  background:
    linear-gradient(130deg, rgba(201, 162, 39, 0.12), transparent 62%),
    #fff;
}

.case-grid b {
  color: var(--paper-ink);
}

.case-grid p {
  margin: 8px 0 0;
  color: #59635f;
  line-height: 1.65;
}

.motion-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 22, 20, 0.16);
  box-shadow: 0 28px 80px rgba(20, 20, 20, 0.18);
}

.motion-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.motion-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201, 162, 39, 0.72);
  pointer-events: none;
}

.mini-metrics {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mini-metrics a,
.filter-tabs button {
  padding: 9px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.mini-metrics a {
  color: #151515;
  background: rgba(255, 255, 255, 0.28);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.mini-metrics a:hover {
  color: #fff;
  background: #151515;
  transform: translateY(-2px);
}

.gallery-section {
  overflow: hidden;
  background: #0f0f0f;
}

.poster-marquee {
  width: 100%;
  overflow: hidden;
  margin-top: 18px;
}

.poster-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: posterFlow 46s linear infinite;
}

.poster-track img {
  width: clamp(230px, 24vw, 360px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.articles-section {
  background:
    linear-gradient(135deg, rgba(41, 88, 255, 0.14), transparent 34rem),
    #151515;
}

.prompt-section {
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.12), transparent 34rem),
    #111;
}

.prompt-grid,
.tool-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.prompt-grid article {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.052);
}

.prompt-grid span,
.tool-entry span {
  display: inline-block;
  width: fit-content;
  margin-bottom: 22px;
  padding: 6px 9px;
  color: #111;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.prompt-grid p {
  color: var(--muted);
  line-height: 1.74;
}

.prompt-grid a {
  margin-top: auto;
  color: var(--acid);
  font-weight: 900;
}

.filter-tabs {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-tabs button {
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.filter-tabs button.is-active {
  color: #111;
  border-color: var(--gold);
  background: var(--gold);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-grid article {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  transition: transform 220ms ease, border-color 220ms ease, opacity 180ms ease;
}

.article-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 39, 0.6);
}

.article-grid article.is-hidden {
  display: none;
}

.article-grid h3 {
  font-size: 20px;
}

.article-grid a {
  margin-top: auto;
  color: var(--acid);
  font-weight: 900;
}

.origin-section {
  background: #101010;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline article {
  position: relative;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(201, 162, 39, 0.08), transparent 62%),
    #151515;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.timeline span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--gold);
  font-weight: 900;
}

.proof-section {
  background: var(--paper);
  color: var(--paper-ink);
}

.proof-section .section-kicker {
  color: #8c6818;
}

.proof-section .section-heading p {
  color: #52615c;
}

.proof-section .section-heading h2 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 1.04;
}

.proof-section .section-heading.split {
  align-items: center;
}

.proof-section .section-heading.split > p {
  max-width: 650px;
  padding: 22px 24px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.52);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.proof-grid blockquote {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 24px;
  border-left: 4px solid var(--gold);
  background: #fff;
  color: #4d5753;
  box-shadow: 0 12px 34px rgba(20, 20, 20, 0.06);
}

.proof-grid cite {
  color: #8c6818;
  font-style: normal;
  font-weight: 900;
}

.product-section {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0.72)),
    url("assets/poster-workflow.png") center / cover fixed;
}

.tool-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.tool-entry {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(237, 237, 237, 0.18);
  background:
    linear-gradient(145deg, rgba(201, 162, 39, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.06);
}

.tool-entry b {
  display: block;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}

.tool-entry small {
  margin-top: auto;
  color: var(--muted);
  line-height: 1.6;
}

.access-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: #111;
  background: rgba(245, 243, 238, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.access-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.access-form input,
.access-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 22, 20, 0.2);
  border-radius: 6px;
  padding: 12px 13px;
  color: #111;
  background: #fffaf0;
  resize: vertical;
}

.form-button {
  width: 100%;
}

.product-actions {
  margin-top: 26px;
}

.form-note {
  margin: 0;
  color: #5b635d;
  font-size: 13px;
}

.resource-hero {
  min-height: 62svh;
  display: flex;
  align-items: end;
  padding-top: 112px;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.98), rgba(8, 8, 8, 0.6)),
    url("assets/comfyui-workflow.png") center / cover;
}

.resource-hero .hero-inner {
  padding: 96px 0 72px;
}

.resource-hero .hero-inner::before {
  display: none;
}

.resource-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.resource-card,
.submit-panel,
.auth-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.resource-card {
  min-height: 320px;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.resource-card b {
  color: var(--gold);
}

.resource-card p,
.submit-panel p,
.auth-card p {
  color: var(--muted);
  line-height: 1.74;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.resource-secret {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--acid);
  background: rgba(201, 162, 39, 0.12);
  font-weight: 900;
}

.resource-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.resource-meta div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.resource-meta dt {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.resource-meta dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.submit-panel {
  padding: 24px;
}

.site-form {
  display: grid;
  gap: 16px;
  max-width: 620px;
}

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.site-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.site-form input,
.site-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  resize: vertical;
}

.site-form .form-note {
  color: var(--muted);
}

.auth-card {
  width: min(560px, 100%);
  margin-top: 28px;
  padding: 24px;
}

.auth-card .site-form {
  max-width: none;
}

.auth-switch {
  margin-top: 18px;
  color: #52615c;
}

.auth-switch a,
.member-link {
  color: #8c6818;
  font-weight: 900;
}

.legal .site-form label {
  color: #52615c;
}

.legal .site-form input,
.legal .site-form textarea {
  color: #111;
  border-color: rgba(16, 22, 20, 0.2);
  background: #fffaf0;
}

.legal .site-form .form-note {
  color: #52615c;
}

.site-footer {
  padding: 46px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #070707;
}

.legal-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--paper-ink);
}

.legal {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 90px;
}

.legal a {
  display: inline-block;
  margin-bottom: 34px;
  color: #8c6818;
  font-weight: 900;
}

.legal h1 {
  margin-bottom: 18px;
  color: var(--paper-ink);
  text-shadow: none;
}

.legal h2 {
  margin-top: 34px;
  color: var(--paper-ink);
  font-size: 22px;
}

.legal p {
  color: #52615c;
  line-height: 1.9;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), 100%);
  margin: 0 auto 30px;
}

.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 6px;
  background: #fff;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
}

.qr-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.qr-grid article {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(201, 162, 39, 0.13), transparent 48%),
    rgba(255, 255, 255, 0.055);
}

.qr-grid article::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.qr-grid img {
  width: 158px;
  height: 158px;
  object-fit: cover;
  margin: 24px auto 18px;
  border: 10px solid #fff;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.qr-grid b {
  display: block;
  max-width: 100%;
  margin: 0 -18px 8px;
  padding: 14px 18px 0;
  color: #fff;
  background: transparent;
  border-left: 0;
  font-size: 17px;
  line-height: 1.3;
}

.qr-grid b::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 16px;
  margin-right: 10px;
  vertical-align: -2px;
  background: var(--gold);
}

.qr-grid p {
  max-width: 320px;
}

.to-top {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 237, 237, 0.16);
  border-radius: 999px;
  color: #111;
  background: var(--gold);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .poster-track {
    animation: none;
  }

  .reveal {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .pain-grid,
  .system-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid,
  .prompt-grid,
  .proof-grid,
  .case-grid,
  .timeline,
  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-case {
    grid-template-columns: 1fr;
  }

  .case-media {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: static;
    z-index: 70;
    width: 100%;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border: 1px solid rgba(237, 237, 237, 0.16);
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  }

  .nav-links a {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 6px;
    color: rgba(237, 237, 237, 0.82);
    background: rgba(255, 255, 255, 0.055);
    font-size: 13px;
    font-weight: 900;
  }

  .auth-nav {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.055);
  }

  .auth-nav a,
  .auth-link,
  .auth-greeting {
    font-size: 13px;
    font-weight: 900;
  }

  .nav-links a:last-child {
    color: #111;
    background: var(--gold);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .intro-layout,
  .section-heading.split,
  .reel-layout,
  .product-layout,
  .resource-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 110px;
    padding: 10px 14px;
    background: rgba(10, 10, 10, 0.86);
  }

  .brand {
    gap: 8px;
    width: 100%;
    font-size: 14px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    display: block;
  }

  .hero-poster {
    object-position: 58% center;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max));
    padding: 138px 0 24px;
  }

  .hero-inner::before {
    left: -10px;
    top: 122px;
    width: calc(100vw - 8px);
    height: calc(100% - 82px);
    min-height: 520px;
    border-left-width: 3px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.06;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 32px;
    line-height: 1.12;
  }

  .hero-lead {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.64;
  }

  .hero-identity,
  .intro-layout > p,
  .section-heading p,
  .reel-copy p,
  .product-layout p,
  .case-copy p {
    font-size: 16px;
    line-height: 1.76;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .pain-grid,
  .system-track,
  .article-grid,
  .prompt-grid,
  .tool-entry-grid,
  .proof-grid,
  .case-grid,
  .timeline,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .hero-dock {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100% - 28px, var(--max));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto 30px;
    transform: none;
  }

  .hero-dock div {
    min-height: 72px;
    display: grid;
    align-content: center;
    padding: 10px 8px;
  }

  .hero-dock b {
    font-size: 22px;
    line-height: 1.1;
  }

  .hero-dock span {
    font-size: 11px;
    line-height: 1.35;
  }

  .button {
    width: 100%;
    min-height: 44px;
    padding: 10px 11px;
    font-size: 14px;
    line-height: 1.25;
  }

  .section-inner {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 58px 0;
  }

  .pain-grid article,
  .system-track article,
  .article-grid article {
    min-height: auto;
  }

  .system-track span,
  .timeline span,
  .pain-grid b,
  .article-grid b {
    margin-bottom: 22px;
  }

  .case-media {
    min-height: 260px;
  }

  .case-grid div,
  .prompt-grid article,
  .tool-entry {
    min-height: auto;
  }

  .poster-track img {
    width: 206px;
  }

  .footer-main {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .qr-grid img {
    width: 132px;
    height: 132px;
  }

  .qr-grid article {
    min-height: auto;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

}

@media (max-width: 374px) {
  .brand {
    font-size: 13px;
  }

  h1 {
    font-size: 37px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .hero-dock b {
    font-size: 20px;
  }

  .hero-dock span {
    font-size: 10px;
  }

  .filter-tabs button {
    font-size: 12px;
    padding: 8px 10px;
  }
}
