:root {
  --bg: #070a12;
  --bg-soft: #0a0f1a;
  --panel: #0d1322;
  --panel-2: #111a2c;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e8eef9;
  --muted: #8b96ab;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --green: #34d399;
  --red: #f87171;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

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

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

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 10, 18, 0.9);
}

.nav-wrap {
  width: min(1200px, calc(100% - 40px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.brand span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.5);
  background: var(--panel-2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.lang-btn {
  width: auto;
  padding: 0 12px;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.menu-btn {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  color: #06111a;
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(34, 211, 238, 0.34);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(17, 26, 44, 0.6);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: var(--panel-2);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 1rem;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.96) 0%, rgba(7, 10, 18, 0.78) 46%, rgba(7, 10, 18, 0.42) 100%),
    url("../assets/demo-result.jpg") center 18% / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 19, 34, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: 3.4rem;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.grad-text {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 58%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  font-size: 1.5rem;
  color: var(--text);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  width: min(360px, 100%);
  justify-self: end;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 19, 34, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  animation: floaty 5s ease-in-out infinite;
}

.hero-chip svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.chip-a {
  top: 34px;
  left: -34px;
}

.chip-b {
  top: 42%;
  right: -30px;
  animation-delay: 1.1s;
}

.chip-c {
  bottom: 26px;
  left: -18px;
  animation-delay: 2s;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 52px;
  background: var(--line);
  overflow: hidden;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 18px;
  background: var(--cyan);
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0% { transform: translateY(-18px); }
  60%, 100% { transform: translateY(52px); }
}

.section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 46px;
  max-width: 760px;
}

.section-head h2 {
  margin: 12px 0 10px;
  font-size: 2.3rem;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.kicker {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.upload-grid {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.dropzone {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(34, 211, 238, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.05), rgba(139, 92, 246, 0.05)),
    var(--panel);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--cyan);
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.1)),
    var(--panel-2);
}

.dropzone:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.drop-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
}

.drop-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--cyan);
}

.drop-icon svg {
  width: 28px;
  height: 28px;
}

.drop-empty strong {
  font-size: 1.15rem;
}

.drop-empty span {
  color: var(--muted);
  font-size: 0.9rem;
}

.drop-preview {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg-soft);
}

.drop-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.drop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.86rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.metrics-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color 0.2s ease;
}

.input-wrap:focus-within {
  border-color: var(--cyan);
}

.input-wrap svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.input-wrap input::placeholder {
  color: rgba(139, 150, 171, 0.6);
}

.generate-btn {
  margin-top: 8px;
}

.form-error {
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 600;
}

.link-btn {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.steps {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.step::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 14px;
  height: 1px;
  background: var(--line);
}

.step:last-child::after {
  display: none;
}

.step-node {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--muted);
}

.step-node svg {
  width: 19px;
  height: 19px;
}

.step-status {
  position: absolute;
  inset: -5px -5px auto auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #04110b;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.step-status svg {
  width: 12px;
  height: 12px;
}

.step-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.step-index {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.step-body strong {
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.step.is-running {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.08), var(--panel));
}

.step.is-running .step-node {
  border-color: var(--cyan);
  color: var(--cyan);
  animation: nodePulse 1.4s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
}

.step.is-running .step-status {
  background: var(--cyan);
  animation: spin 0.9s linear infinite;
}

.step.is-running .step-status svg {
  display: none;
}

.step.is-running .step-status::after {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid transparent;
  border-top-color: #04111a;
  border-radius: 50%;
}

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

.step.is-done {
  border-color: rgba(52, 211, 153, 0.4);
}

.step.is-done .step-node {
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--green);
}

.step.is-done .step-status {
  opacity: 1;
  transform: scale(1);
}

.step.is-error {
  border-color: rgba(248, 113, 113, 0.55);
}

.step.is-error .step-node {
  border-color: var(--red);
  color: var(--red);
}

.pipeline-error {
  width: min(1200px, calc(100% - 40px));
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius);
  background: rgba(248, 113, 113, 0.08);
  color: var(--red);
  font-weight: 600;
}

.result-grid {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.preview-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.segmented button.active {
  background: var(--panel-2);
  color: var(--text);
}

.segmented svg {
  width: 16px;
  height: 16px;
}

.turntable-wrap {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.08), transparent 42%),
    var(--bg-soft);
  overflow: hidden;
  perspective: 1300px;
}

.turntable {
  position: relative;
  height: min(520px, 64vh);
  transform-style: preserve-3d;
  transition: transform 0.12s linear;
}

.turntable-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  backface-visibility: hidden;
  padding: 14px;
}

.turntable-face figcaption {
  align-self: start;
  justify-self: start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(13, 19, 34, 0.9);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.turntable-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  overflow: hidden;
}

.turntable-face:nth-child(1) {
  transform: translateZ(2px);
}

.turntable-face:nth-child(2) {
  transform: rotateY(180deg) translateZ(2px);
}

.turntable-wrap.mode-video .turntable {
  transform: rotateY(180deg);
}

.turntable-wrap.mode-video .turntable-face:nth-child(2) img {
  object-fit: cover;
  animation: kenburns 9s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes kenburns {
  0% { transform: scale(1.02) translate(0, 0); }
  50% { transform: scale(1.12) translate(-2.5%, 2%); }
  100% { transform: scale(1.05) translate(2%, -1.5%); }
}

.turntable-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
}

.turntable-wrap.mode-video .turntable-hint {
  display: none;
}

.preview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.demo-note {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 600;
}

.analysis-panel {
  min-width: 0;
}

.score-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.overall-ring {
  width: 118px;
  height: 118px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--panel) 56%, transparent 58%),
    conic-gradient(var(--cyan) 0deg 280deg, var(--line) 280deg 360deg);
}

.overall-ring strong {
  font-size: 2.1rem;
  line-height: 1;
  color: var(--text);
}

.overall-ring span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.score-hero p {
  color: var(--muted);
  font-size: 0.96rem;
}

.score-bars {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.score-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
}

.score-item span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.score-track {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
}

.score-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--cyan);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-item b {
  color: var(--text);
  font-size: 0.9rem;
  text-align: right;
}

.block-divider {
  height: 1px;
  margin: 26px 0;
  background: var(--line);
}

.look-block h3,
.traits-block h3,
.advice-block h3 {
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.look-list {
  display: grid;
  gap: 12px;
}

.look-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.look-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--cyan);
}

.look-icon svg {
  width: 16px;
  height: 16px;
}

.look-list li > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.look-list small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.look-list strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-chip {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.advice-list {
  display: grid;
  gap: 10px;
  counter-reset: advice;
}

.advice-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.advice-list li::before {
  counter-increment: advice;
  content: counter(advice);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
}

.stack-grid {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stack-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stack-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-3px);
}

.stack-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--cyan);
}

.stack-icon svg {
  width: 22px;
  height: 22px;
}

.stack-card h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.stack-card p {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.pricing-grid {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.price-card.featured {
  border-color: rgba(34, 211, 238, 0.45);
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.07), rgba(139, 92, 246, 0.07)),
    var(--panel);
}

.pop-badge {
  position: absolute;
  top: -13px;
  right: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  color: #06111a;
  font-size: 0.74rem;
  font-weight: 800;
}

.price-name {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price strong {
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0;
}

.price span {
  color: var(--muted);
  font-size: 0.9rem;
}

.price-card ul {
  display: grid;
  gap: 12px;
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.price-card li svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--green);
}

.price-card .btn {
  margin-top: auto;
  justify-content: space-between;
}

.cta-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08), rgba(245, 158, 11, 0.05)),
    var(--bg-soft);
}

.cta-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.cta-inner h2 {
  max-width: 700px;
  font-size: 2.4rem;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner .brand {
  font-size: 1.05rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }

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

  .step::after {
    display: none;
  }
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 18, 0.97);
    backdrop-filter: blur(14px);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .nav-links.is-open {
    transform: none;
  }

  .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 110px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-visual {
    width: min(320px, 80%);
    justify-self: start;
  }

  .chip-a {
    left: -16px;
  }

  .chip-b {
    right: -14px;
  }

  .upload-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .nav-wrap,
  .section-head,
  .upload-grid,
  .steps,
  .result-grid,
  .stack-grid,
  .pricing-grid,
  .cta-inner,
  .footer-inner {
    width: min(100% - 28px, 1200px);
  }

  .hero-inner {
    width: min(100% - 28px, 1200px);
  }

  .section {
    padding: 76px 0;
  }

  .section-head h2 {
    font-size: 1.85rem;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .hero-copy > p {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-visual {
    width: min(280px, 88%);
  }

  .hero-chip {
    font-size: 0.76rem;
  }

  .dropzone {
    min-height: 320px;
  }

  .metrics-form {
    padding: 20px;
  }

  .preview-panel {
    padding: 14px;
  }

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

  .turntable {
    height: 440px;
  }

  .score-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .score-item {
    grid-template-columns: 84px minmax(0, 1fr) 34px;
    gap: 8px;
  }

  .stack-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner h2 {
    font-size: 1.9rem;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

.user-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.84rem;
}

.user-name {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement {
  position: relative;
  z-index: 40;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.gallery-filters {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.45);
}

.filter-chip.active {
  color: #06111a;
  border-color: transparent;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
}

.gallery-grid {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-soft);
}

.gallery-card figcaption {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.gallery-card strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.gallery-card figcaption span {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 6, 12, 0.74);
}

.modal {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  font-size: 1.05rem;
}

.modal-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
}

.auth-form input:focus {
  border-color: var(--cyan);
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.history-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.product-drop {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px dashed rgba(34, 211, 238, 0.4);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  overflow-wrap: anywhere;
}

.product-drop:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

.script-list {
  display: grid;
  gap: 10px;
  counter-reset: script;
}

.script-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 0.88rem;
  color: var(--muted);
}

.script-list strong {
  color: var(--cyan);
  font-size: 0.9rem;
}

.script-list em {
  color: var(--amber);
  font-style: normal;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.modal-subtitle {
  margin: 4px 0 10px;
  font-size: 0.96rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.work-card figcaption {
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-area {
    display: flex;
  }

  .user-name {
    display: none;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
