:root {
  color-scheme: dark;
  --bg: #060709;
  --panel: #101216;
  --panel-2: #171a20;
  --text: #f3eee4;
  --muted: #aaa49a;
  --line: rgba(243, 238, 228, 0.16);
  --amber: #f7b447;
  --cyan: #69e7ff;
  --red: #ff5b4f;
  --green: #9bd675;
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 180, 71, 0.1), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(105, 231, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, #000 0%, var(--bg) 46%, #0b0a08 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  line-break: strict;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand img {
  width: 32px;
  height: 32px;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.88rem;
}

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

.section-dark {
  position: relative;
  overflow: hidden;
}

.hero {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 116px clamp(18px, 5vw, 72px) 64px;
}

.hero-copy,
.section-heading,
.device-copy,
.download > div {
  max-width: 760px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--amber);
  font-family: "SF Mono", "Roboto Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 26px;
  font-size: clamp(3.5rem, 6.6vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fff 0%, #f5f1e8 46%, #86868b 100%);
  -webkit-background-clip: text;
  color: transparent;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.locale-en h1 {
  max-width: 760px;
  font-size: clamp(2.85rem, 4.2vw, 4.7rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 3.9vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
  max-width: 980px;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  text-wrap: balance;
}

.hero-text,
.device-copy p,
.download p,
.section-heading p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 30px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.app-store-badge img {
  width: clamp(184px, 21vw, 246px);
  height: auto;
  object-fit: contain;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.app-store-badge:hover img {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.ghost-button {
  min-height: 58px;
  border-radius: 8px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(245, 245, 247, 0.24);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.stats span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.stats b {
  color: var(--amber);
}

.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-self: center;
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(2vw);
}

.hero-stage img {
  width: auto;
  max-width: none;
  height: min(98vh, 820px);
  filter: drop-shadow(0 44px 90px rgba(0, 0, 0, 0.58));
}

.scanline,
.hero-stage::after {
  display: none;
}

.scanline {
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 6px
  );
  mix-blend-mode: overlay;
}

.hero-stage::after {
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55);
}

.focus-mark {
  display: none;
}

.focus-one {
  top: 22%;
  left: 18%;
}

.focus-two {
  right: 16%;
  bottom: 22%;
}

.readout {
  display: none;
}

.readout span {
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--amber);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #0e1014;
}

.marquee div {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 16px 0;
  animation: track 28s linear infinite;
}

.marquee span {
  color: var(--amber);
  font-family: "SF Mono", "Roboto Mono", ui-monospace, monospace;
  font-size: 0.8rem;
}

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

.workflow,
.films,
.darkroom,
.download {
  padding: clamp(92px, 12vw, 164px) clamp(18px, 5vw, 72px);
}

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

.section-heading p {
  max-width: 760px;
}

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

.workflow-grid article {
  min-height: 310px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), #111;
}

.workflow-grid span {
  display: inline-block;
  margin-bottom: 78px;
  color: var(--amber);
  font-family: "SF Mono", "Roboto Mono", ui-monospace, monospace;
}

.workflow-grid p,
.film-copy p,
figcaption,
footer {
  color: var(--muted);
  line-height: 1.75;
}

.device-wall {
  display: flex;
  min-height: clamp(620px, 76vw, 860px);
  align-items: flex-start;
  padding: clamp(76px, 10vw, 132px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0.16) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.72) 100%),
    url("./assets/banner.png") center / cover no-repeat;
}

.device-copy {
  max-width: 600px;
  padding-top: clamp(10px, 4vw, 52px);
}

.sample-grid img {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #050507;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

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

.film-tabs button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.film-tabs button.active,
.film-tabs button:hover {
  border-color: rgba(247, 180, 71, 0.7);
  color: #050507;
  background: var(--amber);
}

.film-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
}

.film-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.film-copy h3,
.film-copy p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

#film-code {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--red);
  font-family: "SF Mono", "Roboto Mono", ui-monospace, monospace;
  font-weight: 800;
}

.sample-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.9fr;
  gap: 14px;
  align-items: end;
}

.sample-grid img {
  width: 100%;
  height: clamp(250px, 34vw, 520px);
  object-fit: cover;
}

.sample-grid img:nth-child(2) {
  height: clamp(320px, 43vw, 640px);
}

.darkroom {
  background:
    radial-gradient(circle at 50% 56%, rgba(247, 180, 71, 0.1), transparent 22rem),
    radial-gradient(circle at 72% 50%, rgba(105, 231, 255, 0.055), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01));
}

.darkroom-bench {
  position: relative;
  isolation: isolate;
  display: grid;
  max-width: 1040px;
  min-height: auto;
  grid-template-columns: minmax(180px, 0.86fr) minmax(220px, 1fr) minmax(180px, 0.86fr);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin: 0 auto;
  padding: clamp(8px, 2vw, 18px) clamp(8px, 2vw, 16px) 14px;
  overflow: visible;
}

.darkroom-bench::before {
  display: none;
}

.bench-rail {
  display: none;
}

.bench-phone {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform-origin: bottom center;
}

.bench-phone img {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.bench-phone-main {
  z-index: 3;
}

.bench-phone-main img {
  max-width: 390px;
  border-width: 0;
  box-shadow: none;
}

.bench-phone-left {
  z-index: 1;
  transform: translateX(8%) translateY(18px) scale(0.94) rotateZ(2deg);
  opacity: 0.86;
}

.bench-phone-right {
  z-index: 1;
  transform: translateX(-8%) translateY(18px) scale(0.94) rotateZ(-2deg);
  opacity: 0.86;
}

figcaption {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px 8px 0;
  color: var(--muted);
  font-family: "SF Mono", "Roboto Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  text-align: center;
}

figcaption span {
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
}

figcaption strong {
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  text-wrap: balance;
}

.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    linear-gradient(135deg, rgba(245, 245, 247, 0.96), rgba(247, 180, 71, 0.82)),
    #f5f5f7;
  color: #070707;
}

.download .kicker,
.download p {
  color: rgba(7, 7, 7, 0.72);
}

.download .seo-links a {
  border-color: rgba(7, 7, 7, 0.18);
  color: rgba(7, 7, 7, 0.72);
  background: rgba(255, 255, 255, 0.34);
}

.download .seo-links a:hover {
  border-color: rgba(7, 7, 7, 0.4);
  color: #070707;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #050507;
  font-size: 0.9rem;
}

footer a:hover {
  color: var(--text);
}

.seo-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(247, 180, 71, 0.13), transparent 30rem),
    linear-gradient(180deg, #050507 0%, #0d0e12 48%, #050507 100%);
}

.seo-article {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 88px;
}

.seo-article h1 {
  max-width: 860px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.02;
}

.seo-article h2 {
  margin-top: 52px;
  font-size: clamp(1.65rem, 2.8vw, 2.8rem);
}

.seo-article p,
.seo-article li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.seo-article ul {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
}

.seo-article .app-store-badge {
  margin-top: 18px;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.seo-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.seo-links a:hover {
  color: var(--text);
  border-color: rgba(247, 180, 71, 0.55);
}

@media (max-width: 1040px) {
  .hero,
  .film-showcase {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    transform: none;
  }

  .workflow-grid,
  .darkroom-bench {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .darkroom-bench {
    min-height: auto;
    align-items: end;
  }

  .bench-phone-main {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .bench-phone-left,
  .bench-phone-right {
    transform: none;
    opacity: 0.86;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 92px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.2rem);
  }

  .locale-en h1 {
    font-size: clamp(2.6rem, 11.5vw, 3.35rem);
    line-height: 1.06;
  }

  .hero-stage img {
    height: 360px;
  }

  .workflow-grid,
  .darkroom-bench,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .device-wall {
    min-height: 620px;
    background-position: 58% center;
  }

  .darkroom-bench {
    gap: 30px;
    padding-inline: 0;
  }

  .darkroom-bench::before,
  .bench-rail {
    display: none;
  }

  .bench-phone-main {
    grid-column: auto;
    grid-row: auto;
  }

  .bench-phone-left,
  .bench-phone-right {
    transform: none;
    opacity: 1;
  }

  .bench-phone img,
  .bench-phone-main img {
    max-width: min(310px, 88vw);
  }

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

  .workflow-grid span {
    margin-bottom: 34px;
  }

  .sample-grid img,
  .sample-grid img:nth-child(2) {
    height: 340px;
  }

  .download {
    align-items: flex-start;
    flex-direction: column;
  }
}
