:root {
  --paper: #f4f1e8;
  --paper-deep: #ebe7db;
  --ink: #151613;
  --muted: #6f7069;
  --line: rgba(21, 22, 19, 0.14);
  --acid: #dfff54;
  --acid-dark: #c5ed28;
  --orange: #f7683c;
  --white: #fffefa;
  --shadow: 0 24px 70px rgba(30, 31, 26, 0.13);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 22, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 22, 19, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black 0, transparent 68%);
}

body::before {
  content: "";
  position: fixed;
  right: -12vw;
  top: -16vw;
  z-index: -1;
  width: 46vw;
  height: 46vw;
  min-width: 440px;
  min-height: 440px;
  border: 1px solid rgba(21, 22, 19, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(223, 255, 84, 0.08),
    0 0 0 140px rgba(21, 22, 19, 0.018);
}

.site-header {
  width: min(1440px, calc(100% - 64px));
  height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  position: relative;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 10px;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -10px 15px;
  background: var(--acid);
  transform: rotate(28deg);
}

.brand-mark span {
  position: relative;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--ink);
}

.brand-word {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.brand-word span {
  font-weight: 450;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 650;
}

.main-nav a {
  position: relative;
  color: #4f504a;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--ink);
  transition: right 180ms ease;
}

.main-nav a:hover::after {
  right: 0;
}

.server-state {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-access-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.phone-access-button:hover {
  color: var(--white);
  background: var(--ink);
}

.phone-access-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d6a126;
  box-shadow: 0 0 0 4px rgba(214, 161, 38, 0.12);
}

.server-state.online .status-dot {
  background: #56a73d;
  box-shadow: 0 0 0 4px rgba(86, 167, 61, 0.13);
}

.server-state.offline .status-dot {
  background: #d45f4a;
  box-shadow: 0 0 0 4px rgba(212, 95, 74, 0.13);
}

main {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  min-height: 750px;
  padding: 76px 0 94px;
}

.hero-copy {
  padding-left: clamp(0px, 2vw, 34px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.eyebrow span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow span:first-child::before {
  content: "";
  width: 29px;
  height: 2px;
  background: var(--orange);
}

.eyebrow span:last-child {
  padding: 5px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 790px;
  margin: 0;
  font-family: "Arial Black", "PingFang SC", sans-serif;
  font-size: clamp(60px, 6vw, 94px);
  font-weight: 900;
  line-height: 1.01;
  letter-spacing: -0.07em;
}

.accent-underline {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.accent-underline::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -4%;
  bottom: 7%;
  height: 27%;
  background: var(--acid);
  transform: rotate(-1.4deg);
  transform-origin: left center;
}

.hero-intro {
  max-width: 580px;
  margin: 30px 0 0;
  color: #5f6059;
  font-size: 16px;
  line-height: 1.85;
}

.feature-strip {
  display: flex;
  gap: 0;
  margin-top: 50px;
}

.feature-strip div {
  min-width: 132px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}

.feature-strip div:last-child {
  border-right: 0;
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  font-size: 25px;
  letter-spacing: -0.045em;
}

.feature-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.extractor-card {
  position: relative;
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(21, 22, 19, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 22px 64px rgba(30, 31, 26, 0.11);
}

.extractor-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -14px;
  bottom: -14px;
  width: 52%;
  height: 42%;
  background: rgba(223, 255, 84, 0.5);
  border: 1px solid rgba(21, 22, 19, 0.06);
  border-radius: 25px;
  transform: rotate(1.4deg);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.card-topline > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.card-topline h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.step-number {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 750;
}

.text-button,
.sample-link,
.clear-button,
.icon-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  color: #6f7069;
  font-size: 11px;
}

.text-button:hover {
  color: var(--ink);
}

.text-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-section {
  margin-bottom: 17px;
}

.mode-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
}

.mode-heading span:last-child {
  font-weight: 450;
}

.watermark-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 5px;
  background: var(--paper);
  border: 1px solid rgba(21, 22, 19, 0.08);
  border-radius: 14px;
}

.watermark-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.watermark-mode:hover {
  background: rgba(255, 254, 250, 0.68);
}

.watermark-mode.active {
  background: var(--white);
  border-color: rgba(21, 22, 19, 0.13);
  box-shadow: 0 5px 14px rgba(35, 36, 30, 0.07);
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 9px;
}

.watermark-mode.active .clean-icon {
  background: var(--acid);
}

.mode-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-copy {
  display: block;
  min-width: 0;
}

.mode-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-copy em {
  padding: 2px 5px;
  color: #465128;
  background: var(--acid);
  border-radius: 4px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.mode-copy small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #8a8b83;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-field {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 91px;
  padding: 18px 16px 18px 19px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.link-field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(223, 255, 84, 0.34);
}

.link-field.error {
  border-color: var(--orange);
  animation: field-shake 260ms ease;
}

.link-icon {
  align-self: start;
  margin-top: 2px;
  color: var(--muted);
}

.link-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-field textarea {
  width: 100%;
  min-height: 48px;
  max-height: 130px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.65;
}

.link-field textarea::placeholder {
  color: #95968f;
}

.clear-button {
  align-self: start;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.link-field.has-value .clear-button {
  opacity: 1;
  pointer-events: auto;
}

.clear-button:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.form-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 2px 17px;
  color: #8a8b84;
  font-size: 10px;
}

.sample-link {
  padding: 0;
  color: #5b5c55;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 10px;
}

.x-session-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 15px;
  padding: 12px;
  background: #f1f6e4;
  border: 1px solid rgba(75, 93, 32, 0.16);
  border-radius: 11px;
}

.x-session-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.x-session-check input {
  margin: 3px 0 0;
  accent-color: var(--ink);
}

.x-session-check span,
.x-session-check strong,
.x-session-check small {
  display: block;
}

.x-session-check strong {
  font-size: 10.5px;
}

.x-session-check small {
  margin-top: 3px;
  color: #74786b;
  font-size: 8.5px;
  line-height: 1.45;
}

.x-session-panel select {
  height: 30px;
  padding: 0 24px 0 8px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(21, 22, 19, 0.14);
  border-radius: 7px;
  outline: none;
  font-size: 9px;
}

.open-x-login-button {
  height: 30px;
  padding: 0 10px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.open-x-login-button:hover {
  background: #33352e;
}

.x-session-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8b6d35;
  font-size: 8px;
  font-weight: 700;
}

.x-session-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #d49b39;
  border-radius: 50%;
}

.x-session-status.connected {
  color: #55712c;
}

.x-session-status.connected::before {
  background: #70a83d;
}

.consent {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 3px 0 19px;
  color: #5e5f58;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}

.consent input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-ui {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 1px solid #a8a99f;
  border-radius: 4px;
  background: var(--white);
  transition:
    background 140ms ease,
    border-color 140ms ease;
}

.checkbox-ui svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.consent input:checked + .checkbox-ui {
  background: var(--acid);
  border-color: var(--ink);
}

.consent input:checked + .checkbox-ui svg {
  opacity: 1;
  transform: scale(1);
}

.consent input:focus-visible + .checkbox-ui {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.consent.invalid .checkbox-ui {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(247, 104, 60, 0.12);
}

.primary-button {
  position: relative;
  display: flex;
  width: 100%;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 22px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(21, 22, 19, 0.18);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 9px;
  font-size: 19px;
  font-weight: 500;
  transition: transform 180ms ease;
}

.primary-button:hover .button-arrow {
  transform: rotate(45deg);
}

.button-loader {
  display: none;
  position: absolute;
  right: 23px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button.loading .button-arrow {
  opacity: 0;
}

.primary-button.loading .button-loader {
  display: block;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}

.platform-row span {
  padding: 5px 8px;
  color: #6f7069;
  background: var(--paper);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 650;
}

.platform-row span:last-child {
  color: var(--ink);
  background: var(--acid);
}

.legal-note {
  margin: 17px 0 0;
  color: #8a8b84;
  font-size: 9.5px;
  line-height: 1.65;
}

.result-shell {
  margin: 10px 0 84px;
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 60px rgba(37, 38, 32, 0.08);
  animation: rise-in 420ms ease both;
}

.result-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-kicker {
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.result-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.05em;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--paper);
}

.result-mode-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
  padding: 12px 14px 12px 17px;
  background: var(--paper);
  border: 1px solid rgba(21, 22, 19, 0.08);
  border-radius: 13px;
}

.result-mode-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.result-mode-label span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.result-mode-label strong {
  font-size: 12px;
}

.result-watermark-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--paper-deep);
  border-radius: 8px;
}

.result-watermark-switch button {
  display: flex;
  min-width: 96px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 11px;
  color: #76776f;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 700;
  transition:
    color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.result-watermark-switch button small {
  color: #9a9b93;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.result-watermark-switch button.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 3px 8px rgba(27, 28, 23, 0.08);
}

.result-watermark-switch button.active small {
  color: #5e6551;
}

.variant-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #55712c;
  font-size: 9px;
  font-weight: 700;
}

.variant-state::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #70a83d;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(112, 168, 61, 0.12);
}

.variant-state.fallback {
  color: #a5682e;
}

.variant-state.fallback::before {
  background: #d39142;
  box-shadow: 0 0 0 3px rgba(211, 145, 66, 0.12);
}

.video-summary {
  display: grid;
  grid-template-columns: minmax(270px, 42%) 1fr;
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.thumbnail-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 190px;
  overflow: hidden;
  border-radius: 17px;
  background:
    linear-gradient(135deg, #24251f, #616355);
}

.thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-wrap.no-thumbnail {
  background:
    radial-gradient(circle at 78% 22%, rgba(223, 255, 84, 0.4), transparent 22%),
    linear-gradient(135deg, #20211c, #626457);
}

.thumbnail-wrap.no-thumbnail::before {
  content: "";
  position: absolute;
  inset: 14px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.thumbnail-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 13, 10, 0.35), transparent 55%);
}

.thumbnail-wrap.is-image .thumbnail-play {
  display: none;
}

.thumbnail-play {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding-left: 3px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  font-size: 15px;
}

.source-badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  padding: 6px 9px;
  color: var(--white);
  background: rgba(14, 15, 12, 0.72);
  backdrop-filter: blur(7px);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.video-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.video-platform {
  width: max-content;
  padding: 5px 8px;
  color: #4b4c45;
  background: var(--paper);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.video-copy h3 {
  max-width: 820px;
  margin: 17px 0 12px;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
}

.meta-separator {
  width: 3px;
  height: 3px;
  background: #a9aaa2;
  border-radius: 50%;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  padding: 22px 0 2px;
  border-bottom: 1px solid var(--line);
}

.media-preview {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: #20211d;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.media-preview img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 260px;
  object-fit: cover;
}

.media-preview-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  color: var(--white);
  background: rgba(15, 16, 13, 0.74);
  backdrop-filter: blur(6px);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 700;
}

.media-preview-label::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--acid);
  border-radius: 50%;
}

.media-preview.is-video .media-preview-label::before {
  background: var(--orange);
}

.media-preview.is-live .media-preview-label::before {
  background: #4f9bff;
  box-shadow: 0 0 0 3px rgba(79, 155, 255, 0.16);
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.quality-panel {
  padding: 30px 0;
}

.quality-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 750;
}

.quality-hint {
  color: var(--muted);
  font-size: 10px;
  font-weight: 450;
}

.quality-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quality-option {
  position: relative;
  flex: 1 1 170px;
  max-width: 270px;
  min-width: 0;
  padding: 17px;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.quality-option:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 22, 19, 0.22);
}

.quality-option.selected {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.quality-option .quality-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.quality-option strong {
  font-size: 23px;
  letter-spacing: -0.05em;
}

.recommended-badge {
  padding: 4px 6px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.quality-option .quality-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: 11px;
  color: #7d7e76;
  font-size: 9.5px;
}

.quality-option.selected .quality-detail {
  color: rgba(255, 255, 255, 0.62);
}

.quality-option .quality-size {
  display: block;
  margin-top: 8px;
  color: #8f9088;
  font-size: 9px;
}

.quality-option.selected .quality-size {
  color: rgba(255, 255, 255, 0.72);
}

.result-notice {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.download-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 20px 20px 20px 23px;
  background: var(--paper);
  border-radius: 16px;
}

.download-copy span,
.download-copy strong {
  display: block;
}

.download-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.download-copy strong {
  font-size: 15px;
}

.download-button,
.save-ready-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--acid);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.download-button:hover,
.save-ready-button:hover {
  background: var(--acid-dark);
  transform: translateY(-1px);
}

.download-button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.download-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.job-progress {
  margin-top: 15px;
  padding: 20px 21px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.progress-kicker,
.progress-head strong {
  display: block;
}

.progress-kicker {
  margin-bottom: 5px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.progress-head strong {
  font-size: 13px;
}

.progress-percent {
  font-size: 18px;
  font-weight: 800;
}

.progress-track {
  height: 7px;
  margin: 17px 0 10px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 99px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  border-radius: inherit;
  transition: width 420ms ease;
}

.progress-track span.indeterminate {
  width: 32% !important;
  animation: progress-scan 1.2s ease-in-out infinite;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.save-ready-button {
  width: 100%;
  margin-top: 17px;
}

.process-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.section-intro h2,
.platform-section h2,
.disclaimer h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 4.5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.section-intro p {
  max-width: 440px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-self: end;
}

.process-grid article {
  position: relative;
  min-height: 300px;
  padding: 19px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.process-grid article:nth-child(2) {
  margin-top: 16px;
  background: var(--acid);
  border-color: var(--ink);
}

.process-grid article:nth-child(3) {
  margin-top: 32px;
}

.process-index {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #a0a199;
  font-size: 10px;
  font-weight: 750;
}

.process-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin: 32px 0 55px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.process-grid article:nth-child(2) .process-icon {
  background: rgba(255, 255, 255, 0.5);
}

.process-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-grid h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.process-grid article:nth-child(2) p {
  color: #4e5140;
}

.platform-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.platform-section p {
  margin: 4px 0 31px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.platform-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.platform-cloud a,
.platform-cloud span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 650;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.platform-cloud a:hover,
.platform-cloud a:focus-visible {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  outline: none;
  transform: translateY(-2px);
}

.platform-cloud .large {
  padding: 11px 22px;
  background: var(--ink);
  color: var(--white);
}

.platform-cloud a.large:hover,
.platform-cloud a.large:focus-visible {
  color: var(--white);
  background: #000;
  border-color: #000;
}

.platform-cloud .outline {
  background: transparent;
  border-color: rgba(21, 22, 19, 0.35);
}

.platform-cloud .more-platform {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--ink);
}

.platform-cloud .more-platform:hover,
.platform-cloud .more-platform:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.disclaimer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 25px;
  margin-bottom: 100px;
  padding: 36px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
}

.disclaimer-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: var(--acid);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

.disclaimer h2 {
  margin-top: 0;
  font-size: 31px;
}

.disclaimer p {
  max-width: 880px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.8;
}

footer {
  width: min(1440px, calc(100% - 64px));
  min-height: 95px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.footer-brand {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

footer p {
  margin: 0;
}

footer span {
  margin-left: auto;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 28px;
  max-width: min(430px, calc(100vw - 36px));
  padding: 12px 17px;
  color: var(--white);
  background: var(--ink);
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: #a93f2b;
}

.network-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.network-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 17, 0.56);
  border: 0;
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.network-dialog {
  position: relative;
  width: min(500px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  padding: 30px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(15, 16, 12, 0.22);
  animation: rise-in 240ms ease both;
}

.network-dialog h2 {
  margin: 8px 36px 22px 0;
  font-size: 31px;
  letter-spacing: -0.05em;
}

.network-close {
  position: absolute;
  top: 19px;
  right: 19px;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 21px;
}

.network-loading,
.network-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.network-ready {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 20px;
  align-items: center;
}

.network-url {
  display: block;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 11px;
}

.network-dialog .save-ready-button,
.network-dialog .copy-url-button {
  width: 100%;
  margin-top: 10px;
  color: var(--ink);
  background: var(--acid);
  border: 0;
}

.network-dialog .copy-url-button {
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.network-qr {
  width: 150px;
  height: 150px;
  padding: 7px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.network-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.network-auth div {
  padding: 10px;
  background: var(--paper);
  border-radius: 8px;
}

.network-auth span,
.network-auth strong {
  display: block;
}

.network-auth span {
  color: var(--muted);
  font-size: 8px;
}

.network-auth strong {
  margin-top: 4px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.network-command {
  margin-top: 13px;
  padding: 12px;
  color: var(--white);
  background: var(--ink);
  border-radius: 9px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 11px;
}

.network-tip {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.reveal {
  animation: rise-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy .reveal:nth-child(2) {
  animation-delay: 80ms;
}

.hero-copy .reveal:nth-child(3) {
  animation-delay: 150ms;
}

.hero-copy .reveal:nth-child(4) {
  animation-delay: 220ms;
}

.extractor-card.reveal {
  animation-delay: 110ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes field-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-4px);
  }
  65% {
    transform: translateX(4px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progress-scan {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(340%);
  }
}

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

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 70px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero h1 {
    max-width: 900px;
  }

  .extractor-card {
    width: min(700px, 100%);
  }

  .process-section,
  .platform-section {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .process-grid article {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 680px);
  }

  .site-header {
    height: 76px;
  }

  .server-state {
    font-size: 0;
  }

  .server-state .status-dot {
    margin-right: 3px;
  }

  .header-actions {
    gap: 9px;
  }

  .phone-access-button {
    width: 34px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .hero {
    min-height: 0;
    padding: 54px 0 65px;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(50px, 14.5vw, 76px);
    letter-spacing: -0.075em;
  }

  .hero-intro {
    margin-top: 24px;
    font-size: 14px;
  }

  .feature-strip {
    margin-top: 33px;
  }

  .feature-strip div {
    min-width: 0;
    flex: 1;
    padding-right: 14px;
    margin-right: 14px;
  }

  .feature-strip strong {
    font-size: 21px;
  }

  .extractor-card {
    padding: 24px 18px;
    border-radius: 23px;
  }

  .extractor-card::before {
    right: -8px;
    bottom: -13px;
  }

  .card-topline {
    align-items: center;
  }

  .card-topline h2 {
    font-size: 18px;
  }

  .watermark-mode {
    gap: 8px;
    padding: 10px 9px;
  }

  .mode-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .mode-copy strong {
    font-size: 11px;
  }

  .text-button {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    background: var(--paper);
    border-radius: 8px;
    font-size: 0;
  }

  .link-field {
    min-height: 105px;
  }

  .result-shell {
    margin: 0 0 55px;
    padding: 23px 18px;
    border-radius: 23px;
  }

  .video-summary {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .result-mode-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 13px;
  }

  .result-mode-label {
    min-width: 0;
    margin-right: auto;
  }

  .variant-state {
    margin-left: 0;
  }

  .thumbnail-wrap {
    min-height: 0;
  }

  .video-copy h3 {
    margin-top: 13px;
  }

  .source-link {
    margin-top: 18px;
  }

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

  .quality-hint {
    display: none;
  }

  .download-zone {
    align-items: stretch;
    flex-direction: column;
    padding: 17px;
  }

  .download-button {
    width: 100%;
  }

  .process-section,
  .platform-section {
    padding: 70px 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article,
  .process-grid article:nth-child(2),
  .process-grid article:nth-child(3) {
    min-height: 235px;
    margin-top: 0;
  }

  .process-icon {
    margin: 20px 0 38px;
  }

  .disclaimer {
    grid-template-columns: 1fr;
    margin-bottom: 60px;
    padding: 27px 22px;
  }

  footer {
    min-height: 110px;
    flex-wrap: wrap;
    gap: 9px;
    padding: 23px 0;
  }

  footer span {
    width: 100%;
    margin-left: 0;
  }

  .network-dialog {
    padding: 24px 18px;
  }

  .network-ready {
    grid-template-columns: 1fr;
  }

  .network-qr {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
