@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0c;
  --panel: #111113;
  --panel-strong: #17181b;
  --text: #f7f7f2;
  --muted: #aaa9a3;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --green: #55e38e;
  --red: #ff6b6b;
  --amber: #ffd166;
  --gold: #d4af6a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  zoom: 0.8;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 8%, rgba(212, 175, 106, 0.10), transparent 24rem),
    linear-gradient(180deg, #050505 0%, #0a0a0b 42%, #050505 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

img,
video {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(20px);
}

.brand,
.nav-links,
.header-actions,
.hero-actions,
.result-actions,
.proof-row,
.prompt-pills {
  display: flex;
  align-items: center;
}

.brand {
  gap: 6px;
  font-weight: 400;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: 'Dancing Script', cursive;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1;
}

.nav-links {
  gap: 26px;
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
}

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

.header-cta,
.api-link,
.button,
.submit-button,
.prompt-pills button {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-weight: 800;
}

.header-cta {
  padding: 10px 15px;
  background: #f7f7f2;
  color: #050505;
  font-size: 14px;
}

.header-actions {
  gap: 10px;
}

.api-link {
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
}

main {
  width: 100%;
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh / 0.8 - 69px);
  place-items: center;
  overflow: hidden;
  padding: 86px 18px 72px;
  text-align: center;
}

.hero-video,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease;
}

.hero-video-a { z-index: 0; opacity: 1; }
.hero-video-b { z-index: 1; opacity: 0; }

.hero-scrim {
  background:
    linear-gradient(180deg, rgba(5,5,5,0.18) 0%, rgba(5,5,5,0.42) 45%, rgba(5,5,5,0.86) 100%),
    radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 34rem);
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(212,175,106,0.65);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(22px, 3.6vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  white-space: normal;
  margin: 0 auto 20px;
  text-align: center;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(1040px, 100%);
}

.hero-actions,
.result-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
}

.button.primary,
.submit-button {
  background: #f7f7f2;
  color: #050505;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
}

.button.disabled {
  pointer-events: none;
  opacity: 0.38;
}

.proof-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: center;
}

.proof-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.media-stage {
  display: grid;
  gap: 14px;
  transform: translateY(10px);
}

.feature-reel,
.mini-reels article,
.generator,
.result-panel,
.workflow-grid article,
.example-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.feature-reel {
  position: relative;
  min-height: 560px;
  border-color: rgba(255, 255, 255, 0.2);
  background: #050505;
}

.feature-reel video,
.feature-reel img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.feature-reel::after,
.example-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.reel-chrome {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: flex;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.reel-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.video-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.video-status::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.reel-overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: 1;
  width: min(390px, calc(100% - 32px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.52);
  backdrop-filter: blur(14px);
}

.reel-overlay span,
.example-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reel-overlay p {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.mini-reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-reels article {
  position: relative;
  aspect-ratio: 1.85;
}

.mini-reels img,
.mini-reels video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-reels article::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.72));
  content: "";
}

.mini-reels span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 1;
  font-size: 13px;
  font-weight: 850;
}

.shot-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.shot-details div {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.shot-details strong,
.shot-details span {
  display: block;
}

.shot-details strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-details span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workspace-heading .section-heading {
  margin-bottom: 0;
}

.mode-tabs {
  display: inline-flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.mode-tab {
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mode-tab:hover {
  color: var(--text);
}

.mode-tab.active {
  background: var(--gold);
  color: #050505;
}

.generator-col {
  min-width: 0;
}

.showcase,
.workflow,
.api-section,
.workspace {
  width: min(1320px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.showcase,
.workflow,
.api-section {
  padding: 100px 0;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.example-card {
  position: relative;
  min-width: 0;
  padding: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.example-card video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 220ms ease;
}

.example-card:hover video {
  transform: scale(1.035);
}

.example-card span,
.example-card strong {
  position: absolute;
  right: 14px;
  left: 14px;
  z-index: 1;
}

.example-card span {
  bottom: 48px;
}

.example-card strong {
  bottom: 18px;
  font-size: 18px;
}

.workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.76fr);
  gap: 20px;
  padding: 72px 0;
}

.workspace::before {
  position: absolute;
  inset: 28px calc(50% - 50vw);
  z-index: -1;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.028);
  content: "";
}

.result-panel {
  align-self: start;
  position: sticky;
  top: 92px;
}

.generator,
.result-panel {
  padding: clamp(18px, 3vw, 30px);
}

.field,
.upload-box {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span,
.checkbox {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #08080a;
  color: var(--text);
  outline: none;
}

input,
select {
  height: 45px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
}

.prompt-pills {
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
}

.prompt-pills button {
  min-height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}

.field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field input[readonly] {
  cursor: pointer;
}

.field-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.field-row input {
  flex: 1;
  min-width: 0;
}

.choose-btn {
  flex-shrink: 0;
  height: 45px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.choose-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.opt {
  font-weight: 400;
  opacity: 0.55;
  font-size: 12px;
}

.resolution-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resolution-row select {
  flex: 1;
  min-width: 0;
}

.res-dim {
  width: 76px;
  flex-shrink: 0;
  text-align: center;
  padding: 0 6px;
}

.res-dim[readonly] {
  opacity: 0.5;
  cursor: default;
}

.res-x {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}

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

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 18px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.toggle-label-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-track {
  background: var(--gold);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(20px);
}

.slider-field {
  margin-bottom: 16px;
}

.slider-label-text {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-row input[type="range"] {
  flex: 1;
  height: 4px;
  accent-color: var(--gold);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.duration-num {
  width: 70px;
  height: 45px;
  text-align: center;
  flex-shrink: 0;
}

.slider-field.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.advanced-settings {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.advanced-settings summary {
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.advanced-settings summary::-webkit-details-marker { display: none; }

.advanced-settings summary::before {
  content: '›';
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
  display: inline-block;
  color: var(--gold);
}

.advanced-settings[open] summary::before {
  transform: rotate(90deg);
}

.advanced-body {
  padding: 12px 14px 4px;
  border-top: 1px solid var(--line);
}

.submit-button {
  width: 100%;
  min-height: 50px;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.result-header {
  margin-bottom: 16px;
}

.result-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.progress-track {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg,
    var(--gold) 0%,
    #f0ddb0 45%,
    var(--gold) 55%,
    #c8a050 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  box-shadow: 0 0 8px rgba(212, 175, 106, 0.50);
  transition: width 0.4s ease-out, background-color 0.4s;
}

.progress-fill.done {
  background: var(--green);
  box-shadow: 0 0 8px rgba(85, 227, 142, 0.45);
  animation: none;
}

.result-label {
  font-size: 16px;
}

.result-badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.result-badge.running {
  background: rgba(255, 209, 102, 0.15);
  color: var(--amber);
}

.result-badge.done {
  background: rgba(85, 227, 142, 0.15);
  color: var(--green);
}

.result-badge.error {
  background: rgba(255, 107, 107, 0.15);
  color: var(--red);
}

.media-result {
  display: grid;
  min-height: 320px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050506;
}

.media-result video,
.media-result img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.empty-state {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 40px 20px;
}

.empty-state p {
  margin: 0;
  max-width: 230px;
  font-size: 14px;
}

.result-footer {
  margin-top: 20px;
}

.result-next {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.result-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.result-download:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.11);
}

.result-download.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.log-output,
.api-section pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08080a;
  color: #d8d8d8;
  font-size: 13px;
  line-height: 1.5;
}

.log-output {
  min-height: 128px;
  margin: 16px 0 0;
  padding: 12px;
  white-space: pre-wrap;
}

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

.workflow-grid article {
  padding: 24px;
}

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

.workflow-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.api-section {
  padding-bottom: 84px;
}

.api-section h2 {
  max-width: 820px;
}

.api-section pre {
  padding: 18px;
}

@media (max-width: 980px) {
  .workspace,
  .example-grid,
  .workflow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy,
  .section-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .workspace,
  .example-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100vh - 69px);
    padding-top: 72px;
  }

  .feature-reel,
  .feature-reel video,
  .feature-reel img {
    min-height: 340px;
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .header-cta {
    display: none;
  }

  .showcase,
  .workflow,
  .api-section,
  .workspace {
    width: min(100% - 28px, 1320px);
  }

  h1 {
    font-size: 32px;
  }

  .settings-grid,
  .mini-reels {
    grid-template-columns: 1fr;
  }
}

/* ── Log Dialog ─────────────────────────────────────────────────────────── */
#logDialog {
  width: min(90vw, 860px);
  max-height: 80vh;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: #0f0f0f;
  color: #e0e0e0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#logDialog::backdrop {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.log-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.log-dialog-actions {
  display: flex;
  gap: 8px;
}
.log-dialog-actions button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #e0e0e0;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 13px;
}
.log-dialog-actions button:hover {
  background: rgba(255,255,255,0.14);
}
#logDialogContent {
  padding: 16px 18px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  flex: 1;
}

/* ── Nav additions ────────────────────────────────────────────────────────── */

.nav-active {
  color: var(--text) !important;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--gold);
  color: #0a0805 !important;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-credits {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  padding: 4px 10px;
  border: 1px solid rgba(212,175,106,0.3);
  border-radius: 20px;
}

/* ── Hero additions ────────────────────────────────────────────────────────── */

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 7px 18px;
  border: 1px solid rgba(212,175,106,0.38);
  border-radius: 999px;
  background: rgba(212,175,106,0.08);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-sub {
  color: rgba(247,247,242,0.65);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-stat {
  margin: 20px 0 0;
  color: rgba(247,247,242,0.35);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.hero-specs span {
  padding: 8px 20px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
}
.hero-specs span:last-child { border-right: none; }

.button.large {
  min-height: 54px;
  padding: 0 32px;
  font-size: 16px;
  border-radius: 10px;
}

.button.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.button.ghost:hover { color: var(--text); border-color: var(--line-strong); }

/* ── Showcase tabs ────────────────────────────────────────────────────────── */

.showcase-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.showcase-tab {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.showcase-tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.showcase-tab.active {
  background: var(--gold);
  color: #0a0805;
  border-color: transparent;
  font-weight: 700;
}

/* ── Showcase additions ───────────────────────────────────────────────────── */

.example-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9/16;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.example-card:hover { border-color: var(--gold); }
.example-card video { width: 100%; height: 100%; object-fit: cover; }
.example-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 12px;
  color: var(--muted);
}

/* ── How it works ─────────────────────────────────────────────────────────── */

.how-it-works {
  padding: 80px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.hiw-heading {
  text-align: center;
  margin: 0 auto 56px;
}

.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.step-card {
  padding: 36px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover {
  border-color: rgba(212,175,106,0.45);
  transform: translateY(-3px);
}

.step-num {
  font-size: 48px;
  font-weight: 900;
  color: rgba(212,175,106,0.18);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.step-card h3 { font-size: 17px; margin: 0 0 10px; }
.step-card p  { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

.step-arrow {
  color: var(--gold);
  font-size: 22px;
  padding: 0 24px;
  opacity: 0.45;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
  .step-arrow {
    text-align: center;
    padding: 8px 0;
    transform: rotate(90deg);
  }
}

/* ── Features section ─────────────────────────────────────────────────────── */

.features-section {
  padding: 100px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feature-icon { display: block; margin-bottom: 16px; color: var(--gold); opacity: 0.9; }
.feature-card h3 { margin: 0 0 8px; font-size: 15px; }
.feature-card p  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── Pricing teaser ───────────────────────────────────────────────────────── */

.pricing-teaser {
  text-align: center;
  padding: 80px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.pricing-teaser h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 32px); }
.pricing-teaser p  { color: var(--muted); margin: 0 0 32px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px clamp(18px, 6vw, 80px) 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand-col {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand-link { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.footer-brand-link .brand-name { font-size: 15px; }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.footer-social { display: flex; gap: 8px; margin-top: 4px; }
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.footer-social-link:hover { color: var(--text); border-color: var(--line-strong); }
.footer-nav { display: flex; gap: 52px; margin-left: auto; }
.footer-nav-col { display: flex; flex-direction: column; gap: 12px; }
.footer-nav-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0 0 2px;
}
.footer-nav-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s;
}
.footer-nav-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 680px) {
  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-brand-col { flex: none; }
  .footer-nav { gap: 32px; }
}

/* ── Auth page ────────────────────────────────────────────────────────────── */

.auth-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh / 0.8 - 60px);
  padding: 40px 20px;
  overflow: hidden;
}
.auth-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
  z-index: 0;
  filter: brightness(0.4) saturate(1.1);
}
.auth-bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(5,4,3,0.45) 0%, rgba(5,4,3,0.78) 100%);
}
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: rgba(10,8,5,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 36px;
}
.auth-title { font-size: 24px; margin: 0 0 8px; }
.auth-sub   { color: var(--muted); margin: 0 0 32px; font-size: 15px; }

.auth-notice {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212,175,106,0.25);
  background: rgba(212,175,106,0.07);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.auth-notice a { color: var(--gold); }

.auth-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  font-size: 16px;
  color: var(--muted);
}
.auth-gate a { color: var(--gold); }

/* ── Pricing page ─────────────────────────────────────────────────────────── */

.pricing-page {
  padding: 72px clamp(18px, 5vw, 64px) 100px;
  max-width: 1360px;
  margin: 0 auto;
}

.pricing-header {
  position: relative;
  text-align: center;
  margin-bottom: 72px;
  padding: 40px 0 0;
  overflow: visible;
}
.pricing-header::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 420px;
  background: radial-gradient(ellipse at 50% 35%, rgba(212,175,106,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.pricing-header > * { position: relative; }
.pricing-header .eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(212,175,106,0.45);
  border-radius: 100px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.pricing-header h1 {
  font-size: clamp(40px, 5vw, 64px);
  max-width: none;
  white-space: normal;
  margin: 0 auto 22px;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-align: center;
}
.heading-gradient {
  background: linear-gradient(90deg, #ffffff 0%, rgba(212,175,106,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-sub {
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

/* ── Billing toggle ──────────────────────────────────────────────────────── */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 20px;
}
.billing-label {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.2s;
}
.billing-label.dim { opacity: 0.35; }
.billing-pill {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--line-strong);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}
.billing-pill.active { background: var(--gold); }
.billing-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.billing-pill.active .billing-thumb { transform: translateX(18px); }
.save-badge {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(85,227,142,0.12);
  color: #55e38e;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ── Plan grid ───────────────────────────────────────────────────────────── */
/* ── Plan grid ───────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

.plan-card {
  position: relative;
  padding: 32px 24px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.plan-card-featured {
  border-color: rgba(212,175,106,0.55);
  background: linear-gradient(160deg, rgba(212,175,106,0.07) 0%, var(--panel) 55%);
  box-shadow: 0 0 0 1px rgba(212,175,106,0.25), 0 8px 32px rgba(212,175,106,0.08);
}
.plan-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(212,175,106,0.45), 0 20px 56px rgba(212,175,106,0.14);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gold);
  color: #0a0805;
  font-size: 10px;
  font-weight: 800;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* identical top-section structure across all 3 cards */
.plan-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.plan-price-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.price-amount { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-period { color: var(--muted); font-size: 14px; }
.plan-credit-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 6px;
}
/* visibility keeps reserved space so height never changes on toggle */
.plan-annual-note {
  font-size: 12px;
  color: #55e38e;
  margin: 0 0 16px;
  min-height: 16px;
  visibility: hidden;
}
.plan-annual-note.visible { visibility: visible; }
.plan-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.plan-hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0;
  flex-shrink: 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 14px;
  flex: 1;
}
.plan-features li { display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.feat-check, .feat-x { flex-shrink: 0; display: flex; align-items: center; }
.feat-off { color: var(--muted); }

.plan-cta {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  transition: opacity 0.15s, transform 0.15s;
  margin-top: 24px;
  flex-shrink: 0;
}
.plan-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.plan-cta:disabled { opacity: 0.5; cursor: wait; }
.plan-cta.primary {
  background: var(--gold);
  color: #050505;
  border-color: var(--gold);
}
.plan-cta.secondary {
  background: transparent;
  color: var(--text);
}

/* ── Comparison table ────────────────────────────────────────────────────── */
.compare-wrap {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0;
}
.compare-head {
  text-align: center;
  margin-bottom: 36px;
}
.compare-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.compare-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.compare-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table thead th {
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.compare-table thead th.compare-feature-col {
  text-align: left;
  width: 36%;
}
.compare-table thead th.compare-featured-col {
  color: var(--gold);
  position: relative;
}
.compare-table td {
  padding: 12px 16px;
  text-align: center;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.compare-table td:first-child {
  text-align: left;
  color: var(--text);
  font-size: 13.5px;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .compare-featured-col {
  background: rgba(212,175,106,0.04);
}
.compare-section-row td {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted) !important;
  padding: 18px 16px 8px !important;
  background: var(--bg) !important;
  border-bottom: 1px solid var(--line) !important;
}
.compare-note {
  font-size: 11px;
  color: var(--muted);
  margin-left: 3px;
}
.ck { display: inline-flex; align-items: center; justify-content: center; }
.cx { color: rgba(255,255,255,0.18); font-size: 16px; font-weight: 300; line-height: 1; }
.compare-cta-row td { padding: 20px 16px !important; border-top: 1px solid var(--line); border-bottom: none !important; }
.compare-plan-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
  text-align: center;
}
.compare-plan-btn.primary {
  background: var(--gold);
  color: #0a0805;
}
.compare-plan-btn.secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}
.compare-plan-btn.outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.compare-plan-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── Trust strip ─────────────────────────────────────────────────────────── */
.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 16px 0 56px;
  font-size: 13px;
  color: var(--muted);
}
.pricing-trust span { display: flex; align-items: center; gap: 6px; }

/* ── Credit table ────────────────────────────────────────────────────────── */
.credit-table-wrap {
  max-width: 640px;
  margin: 0 auto 64px;
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.credit-section-head { text-align: center; margin-bottom: 28px; }
.credit-table-title { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.credit-table-sub   { color: var(--muted); font-size: 14px; margin: 0; }
.credit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.credit-table thead tr { background: rgba(255,255,255,0.035); }
.credit-table th, .credit-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.credit-table tbody tr:last-child td { border-bottom: none; }
.credit-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.credit-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }

/* ── Dashboard page ───────────────────────────────────────────────────────── */

.dashboard-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px clamp(18px, 4vw, 40px) 80px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 26px; font-weight: 800; }

.dash-section { margin-bottom: 40px; }
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-section-header h2 { margin: 0; font-size: 16px; }
.dash-section-actions { display: flex; gap: 10px; }

.button.small {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: background 0.15s;
}
.button.small:hover { background: rgba(255,255,255,0.07); }

.job-list { display: flex; flex-direction: column; gap: 8px; }

.job-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s;
}
.job-card:hover { border-color: var(--line-strong); }

.job-thumb {
  width: 90px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-strong);
}
.job-thumb video { width: 100%; height: 100%; object-fit: cover; }
.job-thumb-placeholder { width: 100%; height: 100%; }
.job-thumb-placeholder.completed { background: rgba(85,227,142,0.1); }
.job-thumb-placeholder.failed    { background: rgba(255,107,107,0.1); }
.job-thumb-placeholder.processing { background: rgba(212,175,106,0.1); }

.job-info    { flex: 1; min-width: 0; }
.job-prompt  { margin: 0 0 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-meta    { margin: 0; font-size: 12px; color: var(--muted); }

.job-status-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

.job-badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.job-badge-completed  { background: rgba(85,227,142,0.15);  color: var(--green); }
.job-badge-failed     { background: rgba(255,107,107,0.15); color: var(--red); }
.job-badge-processing { background: rgba(212,175,106,0.15); color: var(--gold); }
.job-badge-pending    { background: rgba(212,175,106,0.1);  color: var(--muted); }

.dash-empty   { color: var(--muted); font-size: 14px; }
.dash-empty a { color: var(--gold); }
.dash-loading { color: var(--muted); font-size: 14px; padding: 20px 0; }

/* ── Playground additions ─────────────────────────────────────────────────── */

.credit-estimate {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.credit-estimate strong { color: var(--text); }
.credit-balance { color: var(--muted); }

/* ── Modal overlay ────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  backdrop-filter: blur(8px);
}
.modal-spinner {
  text-align: center;
  color: var(--muted);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── User menu (nav) ──────────────────────────────────────────────────────── */

.user-menu { position: relative; }

.user-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}
.user-avatar-btn:hover { border-color: var(--gold); }

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--panel-strong);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 6px;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.user-email-label {
  display: block;
  padding: 6px 10px 10px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.user-dropdown-item:hover { background: rgba(255,255,255,0.07); }

/* ── Auth form (auth.html) ────────────────────────────────────────────────── */

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-tab.active {
  background: var(--gold);
  color: #050505;
}

.auth-form { text-align: left; margin-bottom: 16px; }

.auth-error {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 7px;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.3);
  color: var(--red);
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  font-size: 15px;
  margin-top: 4px;
  border-radius: 9px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-oauth {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.auth-check-email {
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(85,227,142,0.3);
  background: rgba(85,227,142,0.07);
  color: var(--green);
  font-size: 14px;
  text-align: center;
}

/* ── Scroll-in animations ─────────────────────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.example-grid .fade-up:nth-child(2) { transition-delay: 0.07s; }
.example-grid .fade-up:nth-child(3) { transition-delay: 0.14s; }
.example-grid .fade-up:nth-child(4) { transition-delay: 0.21s; }
.example-grid .fade-up:nth-child(5) { transition-delay: 0.08s; }
.example-grid .fade-up:nth-child(6) { transition-delay: 0.15s; }
.example-grid .fade-up:nth-child(7) { transition-delay: 0.22s; }
.example-grid .fade-up:nth-child(8) { transition-delay: 0.29s; }
.features-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.features-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }
.features-grid .fade-up:nth-child(4) { transition-delay: 0.3s; }
.testimonials-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ── Mobile hamburger & nav ───────────────────────────────────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 40px;
}
.mobile-nav-inner a {
  font-size: 28px;
  font-weight: 700;
  color: rgba(247,247,242,0.75);
  transition: color 0.15s;
}
.mobile-nav-inner a:hover { color: var(--text); }
.mobile-nav-inner .mobile-nav-cta {
  padding: 14px 40px;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 8px;
  font-size: 20px;
  color: var(--text);
}

@media (max-width: 760px) {
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
}

/* ── Model strip ──────────────────────────────────────────────────────────── */

.model-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
  flex-wrap: wrap;
  overflow: hidden;
}
.model-strip-label {
  padding: 14px 20px 14px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.model-strip-items {
  display: flex;
  flex-wrap: wrap;
}
.model-badge {
  padding: 14px 22px;
  color: rgba(247,247,242,0.55);
  font-size: 13px;
  font-weight: 600;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  transition: color 0.15s;
}
.model-badge:hover { color: rgba(247,247,242,0.9); }
.model-badge:last-child { border-right: none; }

/* ── Stats strip ──────────────────────────────────────────────────────────── */
.stats-strip {
  padding: 48px clamp(18px, 6vw, 80px) 0;
  max-width: 1100px;
  margin: 0 auto;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 36px 48px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.stat-num {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-plus {
  color: var(--gold);
  font-size: 0.65em;
  font-weight: 800;
  vertical-align: super;
  margin-left: 1px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.stat-sep {
  width: 1px;
  height: 44px;
  background: var(--line);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .stats-inner {
    flex-wrap: wrap;
    gap: 32px 0;
    padding: 28px 24px;
    justify-content: space-evenly;
  }
  .stat-sep { display: none; }
  .stat-item { flex: 0 0 50%; }
}

/* ── Testimonials ─────────────────────────────────────────────────────────── */

.testimonials-section {
  padding: 100px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.testimonials-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.testimonial-card {
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(247,247,242,0.78);
  margin: 0;
}
.testimonial-text::before { content: '\201C'; }
.testimonial-text::after  { content: '\201D'; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212,175,106,0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,106,0.08);
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.testimonial-author span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* ── FAQ (pricing page) ───────────────────────────────────────────────────── */

.faq-section {
  max-width: 700px;
  margin: 64px auto 0;
}
.faq-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 32px;
}
.faq-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: color 0.15s;
}
.faq-item summary:hover { color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item[open] > summary { border-bottom: 1px solid var(--line); color: var(--gold); }
.faq-item p {
  padding: 18px 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ── Legal pages (privacy, terms) ────────────────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px clamp(18px, 5vw, 48px) 100px;
}
.legal-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.legal-header h1 {
  max-width: none;
  white-space: normal;
  font-size: clamp(32px, 4vw, 48px);
  margin: 8px 0 12px;
  letter-spacing: -0.025em;
}
.legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.legal-body h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  color: var(--text);
}
.legal-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 24px 0 8px;
}
.legal-body p {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 16px;
}
.legal-body ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}
.legal-body ul li {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 6px;
}
.legal-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover { opacity: 0.8; }

/* ── Contact page ─────────────────────────────────────────────────────────── */
.contact-page {
  min-height: calc(100vh / 0.8 - 60px);
  display: flex;
  align-items: center;
  padding: 72px clamp(18px, 5vw, 64px) 100px;
}
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-copy .eyebrow { margin-bottom: 16px; }
.contact-copy h1 {
  max-width: none;
  white-space: normal;
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.contact-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 380px;
}
.contact-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.contact-response {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin: 0;
}
.contact-form-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform-field { display: flex; flex-direction: column; gap: 7px; }
.cform-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.cform-req { color: var(--gold); }
.cform-field input,
.cform-field select,
.cform-field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.cform-field input::placeholder,
.cform-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.cform-field input:focus,
.cform-field select:focus,
.cform-field textarea:focus {
  outline: none;
  border-color: rgba(212,175,106,0.55);
}
.cform-field select { cursor: pointer; }
.cform-field select option { background: #1a1a1a; }
.cform-field textarea { resize: vertical; min-height: 100px; }
.cform-submit {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: #0a0805;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 4px;
}
.cform-submit:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.cform-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.cform-privacy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin: 0;
}
.cform-privacy a { color: rgba(255,255,255,0.4); text-decoration: underline; }
.contact-success {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact-success h2 { font-size: 24px; margin: 0; }
.contact-success p { color: var(--muted); font-size: 14px; margin: 0; max-width: 280px; }
@media (max-width: 820px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .cform-row { grid-template-columns: 1fr; }
  .contact-desc { max-width: none; }
}
