* {
  box-sizing: border-box;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

:root {
  --bg: #09111f;
  --bg-soft: #101b31;
  --panel: rgba(11, 18, 35, 0.88);
  --panel-border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #a5b4c8;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --danger: #f87171;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.20), transparent 28%),
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #0b1324 55%, #08111d 100%);
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1180px;
  padding: 40px 20px 72px;
}

.landing-nav,
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.sf-landing .studio-topbar {
  background: #ffffff;
  border: 1px solid #dde6f3;
  border-radius: 14px;
  padding: 14px 16px;
}

.sf-landing .studio-topbar .studio-topcopy {
  margin-left: auto;
  text-align: right;
}

.sf-landing .studio-topbar .eyebrow {
  color: #2563eb;
}

.sf-landing .studio-topbar h1 {
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.sf-landing .studio-topbar .hero-copy {
  color: #334155;
  max-width: 560px;
  margin-left: auto;
}

.studio-usage-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe7f6;
  background: #f8fbff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.studio-onboarding {
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid #dde6f3;
  border-radius: 12px;
  padding: 10px 12px;
  color: #0f172a;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.studio-onboarding span {
  color: #334155;
}

.studio-steps-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.studio-wizard-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.wizard-step-btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #dde6f3;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  text-shadow: none;
}

.wizard-step-btn.active {
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.13) inset;
}

.wizard-step-btn:disabled,
.wizard-step-btn.is-locked {
  opacity: 0.88;
  color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
  cursor: not-allowed;
  filter: none;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.studio-step-card {
  border: 1px solid #dde6f3;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  color: #1e293b;
  font-size: 12px;
  line-height: 1.35;
}

.studio-step-card b {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(67, 56, 202, 0.10);
  border: 1px solid rgba(67, 56, 202, 0.25);
  color: #3730a3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.studio-section-title {
  margin: 2px 0 10px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(147, 197, 253, 0.35);
}

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

.tool-card {
  display: block;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.92) 0%, rgba(8, 15, 28, 0.84) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.3);
  filter: brightness(1.02);
}

.tool-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.tool-card p {
  color: var(--muted);
  line-height: 1.65;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: #9fe3b4;
  font-weight: 800;
}

.tool-result-inline {
  margin-top: 16px;
}

.convert-page-card {
  margin-top: 6px;
}

.landing-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.landing-nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero {
  max-width: 760px;
  margin-bottom: 26px;
}

.hero-grid {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.hero-main {
  padding-top: 12px;
}

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

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.hero-btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
}

.hero-btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

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

.hero-stat {
  padding: 14px;
  border-radius: 16px;
  background: rgba(10, 19, 36, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-stat strong {
  display: block;
  font-size: 13px;
  color: #e9f5ff;
  margin-bottom: 6px;
}

.hero-stat span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-offer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.offer-points,
.pricing-points,
.how-steps {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.offer-points div,
.pricing-points div,
.how-steps div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(8, 16, 31, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #dbe6f4;
  line-height: 1.5;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 18px;
}

.feature-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 15, 29, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.how-card,
.pricing-card {
  min-height: 100%;
}

.price-line {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.price-big {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.price-small {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 6px;
}

.studio-head {
  margin: 18px 0 8px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.faq-card {
  min-height: 100%;
}

.landing-cta {
  text-align: center;
}

.landing-cta .hero-copy {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 680px;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.convert-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.convert-card + .convert-card {
  margin-top: 0;
}

.convert-card-copy .hero-copy {
  max-width: 560px;
}

.convert-card-controls {
  width: 100%;
}

.wide-result {
  grid-column: 1 / -1;
}

.wide-preview-card {
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 16px;
}

.wide-preview-card video {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #000;
}

.youtube-confirm-thumb {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.wide-preview-actions {
  margin-top: 12px;
}

.wide-preview-actions a {
  display: inline-block;
  color: #86efac;
  text-decoration: none;
  font-weight: 700;
}

.wide-preview-actions a:hover {
  text-decoration: underline;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.card {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card-main {
  min-height: 100%;
}

.label {
  font-size: 13px;
  margin-bottom: 7px;
  display: block;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.caption-style-card {
  position: relative;
  display: block;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  overflow: hidden;
  min-width: 0;
}

.caption-style-card:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.32);
}

.caption-style-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.caption-style-card:has(input:checked) {
  border-color: rgba(125, 211, 252, 0.8);
  background: rgba(11, 26, 48, 0.95);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.25);
}

.caption-preview {
  min-height: 128px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: normal;
  word-break: normal;
}

.caption-preview span {
  display: inline-block;
  margin-left: 6px;
  max-width: 100%;
}

.preview-electric {
  background: linear-gradient(180deg, #172033 0%, #0d1423 100%);
  color: #ffffff;
  text-shadow:
    0 0 0 #000,
    0 3px 0 #000,
    0 0 18px rgba(125, 211, 252, 0.28);
}

.preview-electric span {
  color: #7dd3fc;
}

.preview-caption-yellow span {
  color: #fde047;
}

.preview-caption-green span {
  color: #4ade80;
}

.preview-caption-blue span {
  color: #7dd3fc;
}

.preview-clean {
  background: linear-gradient(180deg, #181818 0%, #0f0f0f 100%);
  color: #ffffff;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.72),
    0 0 14px rgba(255, 255, 255, 0.1);
}

.preview-clean span {
  color: #ffffff;
}

.preview-impact {
  background: linear-gradient(180deg, #1b2032 0%, #0f1422 100%);
  color: #ffffff;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.8),
    0 0 16px rgba(74, 222, 128, 0.16);
}

.preview-impact span {
  color: #4ade80;
}

.caption-style-name {
  margin-top: 10px;
  font-size: 12px;
  color: #dbe6f4;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  margin-bottom: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.9);
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 72px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
}

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

.buttons-secondary {
  display: grid;
  grid-template-columns: auto minmax(110px, 140px) auto minmax(180px, 280px) auto;
  gap: 12px;
  align-items: center;
  justify-content: start;
}

.buttons-primary .action-btn {
  width: 100%;
}

.inline-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

button {
  padding: 13px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
}

.btn-danger {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  color: white;
}

#result {
  margin-top: 24px;
  max-width: 1200px;
}

.clip {
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 16px;
  box-sizing: border-box;
}

.clip video {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto 12px;
  background: #000;
}

.clip h3 {
  font-size: 16px;
  margin: 8px 0;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clip p {
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0;
  color: #d0d9e8;
}

.clip button,
.clip a {
  margin-top: 8px;
  margin-right: 8px;
}

.clip a {
  display: inline-block;
  color: #93c5fd;
  text-decoration: none;
}

.clip a:hover {
  text-decoration: underline;
}

.progress-wrap {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.progress-text {
  margin-bottom: 12px;
  color: #e6f0fb;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: linear-gradient(180deg, rgba(9, 17, 31, 0.92) 0%, rgba(16, 27, 49, 0.84) 100%);
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background:
    linear-gradient(90deg, rgba(99, 102, 241, 0.95) 0%, rgba(79, 70, 229, 0.95) 42%, rgba(59, 130, 246, 0.92) 100%);
  transition: width 0.4s ease;
  border-radius: 999px;
  box-shadow:
    0 0 16px rgba(56, 189, 248, 0.28),
    inset 0 0 10px rgba(255, 255, 255, 0.18);
}

.progress-fill-indeterminate {
  width: 38%;
  animation: progress-slide 1.2s ease-in-out infinite;
}

.compact-progress {
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: none;
}

.compact-progress .progress-text {
  margin-bottom: 8px;
  font-size: 13px;
}

.compact-progress .progress-bar {
  height: 10px;
}

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

.clips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.clip-assets-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
}

body.modal-open {
  overflow: hidden;
}

.clip-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  z-index: 1200;
}

.clip-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(820px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 0;
  padding: 16px;
  background: rgba(10, 17, 31, 0.97);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 1300;
}

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

  .clip-modal {
    top: 16px;
    transform: translateX(-50%);
    max-height: calc(100vh - 24px);
  }
}

.clip-modal-close {
  float: right;
  margin-left: 8px;
  margin-bottom: 8px;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  z-index: 2000;
}

.auth-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 28px));
  background: rgba(10, 17, 31, 0.98);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 16px;
  padding: 16px;
  z-index: 2010;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}


.clip-assets-box label {
  display: block;
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.transcript-map-box {
  margin-top: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  padding: 10px;
  max-height: 230px;
  overflow: auto;
}

.transcript-map-help {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 8px;
  line-height: 1.35;
}

.transcript-map-empty {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

.transcript-word-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.transcript-word-chip {
  margin: 0;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(30, 41, 59, 0.82);
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.transcript-word-chip:hover {
  border-color: #60a5fa;
  color: #ffffff;
}

.transcript-word-chip.is-start,
.transcript-word-chip.is-end {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.transcript-word-chip.is-range {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(96, 165, 250, 0.85);
  color: #dbeafe;
}

.broll-list {
  margin-top: 12px;
}

.broll-search-results {
  margin-top: 10px;
}

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

.broll-search-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(11, 18, 35, 0.88);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.broll-search-card:hover,
.broll-search-card:focus-visible {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.38);
  transform: translateY(-1px);
}

.broll-search-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #020617;
}

.broll-search-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #020617;
}

.broll-search-card span {
  display: block;
  color: #dbe6f4;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 9px 9px;
  min-height: 42px;
}

.broll-search-card[data-type="video"]::after {
  content: "Hover preview";
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.72);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.broll-search-card.is-playing::after {
  content: "Playing";
  background: rgba(22, 101, 52, 0.82);
}

.broll-search-empty {
  color: var(--muted);
  font-size: 12px;
}

.broll-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  margin-top: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  background: rgba(11, 18, 35, 0.75);
}

.broll-item span {
  font-size: 12px;
  color: #dbe6f4;
  line-height: 1.35;
  flex: 1;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clip-mode-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.debug-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(8, 20, 38, 0.72);
}

.debug-line {
  margin-top: 6px;
  font-size: 12px;
  color: #bfdbfe;
  line-height: 1.45;
  word-break: break-word;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 12px;
  justify-content: start;
}

.history-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.history-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(9, 16, 29, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.history-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.history-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.history-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}

.history-meta {
  padding: 8px 10px 10px;
}

.history-meta h3 {
  margin: 0 0 6px;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.3;
}

.history-meta p {
  margin: 0 0 6px;
  color: #a5b4fc;
  font-size: 11px;
}

.history-meta span {
  color: #93c5fd;
  font-size: 11px;
}

.history-actions {
  display: flex;
  gap: 8px;
  padding: 0 10px 10px;
}

.history-actions .sf-btn,
.history-actions .btn-danger {
  padding: 8px 10px;
  font-size: 12px;
}

.history-retrying {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #c7dcff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.clip-quick-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.clip-quick-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.clip-quick-dialog {
  position: relative;
  width: min(1200px, 94vw);
  margin: 3vh auto;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 14px;
  max-height: 94vh;
  overflow: auto;
}

.clip-quick-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #111827;
  color: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
}

.clip-quick-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.clip-quick-video video {
  width: 100%;
  max-height: 58vh;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.clip-quick-panel {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 12px;
}

@media (max-width: 900px) {
  .clip-quick-layout {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .landing-hero,
  .hero-grid,
  .how-grid,
  .faq-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .convert-card {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .buttons,
  .buttons-primary,
  .buttons-secondary {
    grid-template-columns: 1fr;
  }

  .studio-steps-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-wizard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .inline-label {
    margin-top: 4px;
  }
}

@media (max-width: 720px) {
  body {
    display: block;
  }

  .container {
    padding: 20px 14px 40px;
  }

  .landing-nav,
  .studio-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }

  .studio-steps-strip {
    grid-template-columns: 1fr;
  }
  .studio-wizard-nav {
    grid-template-columns: 1fr;
  }

  .hero-btn {
    width: 100%;
  }

  .hero {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 0.98;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.6;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .caption-style-grid {
    grid-template-columns: 1fr;
  }

  .caption-preview {
    min-height: 112px;
    font-size: clamp(18px, 5vw, 22px);
  }

  .clips-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .clip {
    padding: 14px;
  }

  .wide-preview-card video {
    max-width: 100%;
  }

  .clip video {
    max-width: 100%;
  }

  .broll-search-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .clip button,
  .clip a {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px 12px 32px;
  }

  .eyebrow {
    letter-spacing: 0.12em;
    font-size: 10px;
  }

  .caption-preview {
    min-height: 104px;
    padding: 14px;
  }

  .progress-wrap {
    padding: 14px;
  }

  .clip-assets-box {
    padding: 10px;
  }

  .broll-search-grid {
    grid-template-columns: 1fr;
  }
}

.cf-landing {
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(249, 115, 22, 0.26), transparent 60%),
    radial-gradient(1000px 580px at 90% 18%, rgba(56, 189, 248, 0.26), transparent 62%),
    linear-gradient(180deg, #071325 0%, #040a16 58%, #07101f 100%);
  min-height: 100vh;
}

.cf-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 26px;
  padding-bottom: 56px;
}

.cf-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 22px;
}

.cf-logo {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.cf-logo span {
  color: #fb923c;
}

.cf-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cf-nav a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 600;
}

.cf-btn {
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cf-btn-orange {
  background: linear-gradient(90deg, #f97316, #fb923c);
  color: #fff;
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.34);
}

.cf-hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 26px;
  align-items: center;
  padding: 18px 0 26px;
}

.cf-left h1 {
  font-size: clamp(40px, 6vw, 62px);
  color: #f8fafc;
  line-height: 1.02;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cf-left h1 span {
  color: #fb923c;
}

.cf-left p {
  color: #cbd5e1;
  margin: 0 0 18px;
}

.cf-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.cf-input-row input {
  background: rgba(12, 20, 34, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
}

.cf-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cf-chip-row span,
.cf-mini-grid div {
  background: rgba(10, 20, 34, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  border-radius: 11px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.cf-phone-zone {
  position: relative;
  display: flex;
  justify-content: center;
}

.cf-phone-zone::before {
  content: "";
  position: absolute;
  inset: 12% 16%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.34), transparent 66%);
  filter: blur(18px);
}

.cf-phone {
  position: relative;
  z-index: 1;
  width: min(340px, 82vw);
  border-radius: 40px;
  border: 3px solid #0b1320;
  background: linear-gradient(180deg, #090f19, #0d1523);
  padding: 18px 14px 14px;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.62), 0 24px 44px rgba(0, 0, 0, 0.44);
}

.cf-phone-top {
  color: #f8fafc;
  font-weight: 900;
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.02;
}

.cf-phone-top span {
  color: #fb923c;
}

.cf-phone-face {
  height: 360px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 48% 34%, rgba(249, 115, 22, 0.38), transparent 30%),
    linear-gradient(180deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.cf-phone-sub {
  color: #f1f5f9;
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}

.cf-phone-controls {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb923c 42%, rgba(148, 163, 184, 0.3) 42%);
}

.cf-ways {
  margin-top: 10px;
  text-align: center;
}

.cf-ways h2,
.cf-final h2 {
  margin: 0 0 16px;
  color: #f8fafc;
  font-size: clamp(30px, 4vw, 40px);
}

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

.cf-card {
  background: linear-gradient(180deg, rgba(12, 23, 40, 0.88), rgba(8, 16, 28, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
}

.cf-card h3 {
  margin: 0 0 8px;
  color: #fb923c;
  font-size: 24px;
}

.cf-card p {
  margin: 0 0 5px;
  color: #dbeafe;
}

.cf-quote {
  margin: 26px 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  background: rgba(7, 17, 30, 0.86);
}

.cf-quote p {
  margin: 0 0 8px;
  color: #e2e8f0;
  font-size: 21px;
  font-style: italic;
}

.cf-quote strong {
  color: #f8fafc;
}

.cf-final {
  text-align: center;
  padding: 10px 0 0;
}

.cf-btn-big {
  font-size: 22px;
  padding: 14px 24px;
}

.cf-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.cf-badges span {
  color: #cbd5e1;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(9, 17, 30, 0.72);
}

@media (max-width: 980px) {
  .cf-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cf-cards {
    grid-template-columns: 1fr;
  }

  .cf-phone {
    width: min(360px, 92vw);
  }
}

@media (max-width: 720px) {
  .cf-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cf-nav {
    flex-wrap: wrap;
  }

  .cf-input-row {
    grid-template-columns: 1fr;
  }

  .cf-mini-grid {
    grid-template-columns: 1fr;
  }
}

.sf-landing {
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.14), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(99, 102, 241, 0.16), transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  min-height: 100vh;
}

.sf-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 44px;
  animation: sfFadeUp 520ms ease-out both;
}

.sf-topbar {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.sf-logo {
  text-decoration: none;
  color: #111827;
  font-size: 36px;
  font-weight: 900;
}

.sf-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sf-nav a {
  color: #111827;
  text-decoration: none;
  font-weight: 700;
}

.sf-btn {
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease, background-color 220ms ease;
}

.sf-btn:hover {
  transform: translateY(-1px);
}

.sf-btn:active {
  transform: translateY(0);
}

.sf-btn-outline {
  border: 1px solid #c8d6ea;
  background: #fff;
}

.sf-btn-primary {
  background: linear-gradient(100deg, #2563eb, #4f46e5);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.sf-btn-xl {
  font-size: 22px;
  padding: 14px 22px;
}

.sf-hero {
  background:
    radial-gradient(circle at 8% 18%, rgba(191, 219, 254, 0.2), transparent 28%),
    linear-gradient(115deg, #1e3a8a 0%, #3730a3 52%, #2563eb 100%);
  border-radius: 26px;
  padding: 28px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  box-shadow: 0 28px 60px rgba(30, 41, 59, 0.26);
  animation: sfHeroIn 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sf-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sf-hero-copy h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.sf-hero-copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 22px;
}

.sf-hero-copy small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.sf-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 12px 0 8px;
}

.sf-input-row input {
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  padding: 12px 14px;
}

.sf-preview-wrap {
  display: flex;
  justify-content: center;
}

.sf-preview-panel {
  width: min(430px, 90vw);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.78));
  padding: 16px;
  box-shadow: 0 24px 48px rgba(3, 7, 18, 0.45);
  animation: sfFloatIn 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sf-preview-header {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sf-preview-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  padding: 12px;
  margin-bottom: 10px;
}

.sf-preview-item strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 4px;
}

.sf-preview-item span {
  display: block;
  color: #bfdbfe;
  font-size: 12px;
  margin-bottom: 8px;
}

.sf-preview-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.sf-preview-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #4f46e5);
}

.sf-trust-line {
  display: inline-flex;
  margin: 0 0 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #eef2ff;
  font-size: 12px;
  font-weight: 700;
}

.sf-how,
.sf-features,
.sf-cta {
  background: #fff;
  border: 1px solid #dde6f3;
  border-radius: 20px;
  padding: 22px;
  margin-top: 16px;
  animation: sfFadeUp 520ms ease-out both;
}

.sf-how h2,
.sf-features h2,
.sf-cta h2 {
  text-align: center;
  margin: 0 0 14px;
  color: #0f172a;
}

.sf-how p,
.sf-features p,
.sf-cta p,
.sf-how label,
.sf-features label,
.sf-cta label {
  color: #334155;
}

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

.sf-steps-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sf-steps article,
.sf-feature-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
}

.sf-steps h3,
.sf-feature-grid h3 {
  margin: 0 0 8px;
  color: #111827;
}

.sf-steps p,
.sf-feature-grid p {
  margin: 0;
  color: #334155;
}

.sf-steps article input {
  width: 100%;
  margin-bottom: 8px;
}

.sf-steps article button {
  width: 100%;
}

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

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

.sf-pricing-grid article {
  border: 1px solid #dbe8ff;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
  transition: transform 220ms ease, box-shadow 260ms ease, border-color 220ms ease;
}

.sf-pricing-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
  border-color: #bfdbfe;
}

.sf-pricing-grid article h3 {
  margin: 0 0 8px;
  color: #111827;
}

.sf-pricing-grid article p {
  margin: 0 0 8px;
  color: #334155;
}

.sf-pricing-grid article label {
  display: block;
  color: #334155;
  margin-bottom: 8px;
  font-weight: 600;
}

.sf-pricing-grid article .sf-btn {
  margin-top: 10px;
  width: 100%;
}

.sf-pricing-grid article input[type="range"] {
  width: 100%;
  margin-bottom: 8px;
}

.sf-billing-list {
  display: grid;
  gap: 8px;
}

.sf-billing-item {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(80px, 120px) minmax(100px, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fbff;
  color: #0f172a;
  font-size: 12px;
}

.sf-tier-grid {
  align-items: stretch;
}

.sf-tier-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sf-tier-featured {
  border-color: #93c5fd !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.16);
}

@keyframes sfFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sfHeroIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sfFloatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-wrap,
  .sf-hero,
  .sf-preview-panel,
  .sf-how,
  .sf-features,
  .sf-cta {
    animation: none !important;
  }

  .sf-btn,
  .sf-pricing-grid article {
    transition: none !important;
  }
}

.sf-tier-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(90deg, #1d4ed8, #4f46e5);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 10px;
}

.sf-compare-wrap {
  overflow-x: auto;
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  background: #fff;
}

.sf-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.sf-compare-table th,
.sf-compare-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 14px;
  color: #0f172a;
  text-align: center;
}

.sf-compare-table th:first-child,
.sf-compare-table td:first-child {
  text-align: left;
  font-weight: 700;
}

.sf-compare-table thead th {
  background: #f8fbff;
  font-weight: 800;
}

.sf-check {
  color: #16a34a !important;
  font-weight: 900;
}

.sf-x {
  color: #dc2626 !important;
  font-weight: 900;
}

.sf-cta {
  text-align: center;
}

.sf-badges {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sf-badges span {
  border: 1px solid #dbe7f8;
  border-radius: 999px;
  padding: 7px 12px;
  color: #334155;
  background: #f8fbff;
}

@media (max-width: 980px) {
  .sf-hero {
    grid-template-columns: 1fr;
  }

  .sf-preview-panel {
    width: min(520px, 95vw);
  }

  .sf-steps,
  .sf-feature-grid,
  .sf-pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sf-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sf-nav {
    flex-wrap: wrap;
  }

  .sf-input-row {
    grid-template-columns: 1fr;
  }
}

/* Landing v2 */
.lf-landing {
  background:
    radial-gradient(1000px 560px at 10% -8%, rgba(124, 58, 237, 0.24), transparent 58%),
    radial-gradient(1100px 620px at 92% 6%, rgba(59, 130, 246, 0.2), transparent 62%),
    linear-gradient(180deg, #050915 0%, #060c19 58%, #070e1b 100%);
  min-height: 100vh;
}

.lf-landing .sf-wrap {
  max-width: 1180px;
}

.lf-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 20px;
}

.lf-logo {
  color: #f8fafc;
  text-decoration: none;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.lf-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lf-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.lf-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, filter 200ms ease, box-shadow 220ms ease;
}

.lf-btn:hover {
  transform: translateY(-1px);
}

.lf-btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 100%);
  box-shadow: 0 12px 34px rgba(79, 70, 229, 0.4);
}

.lf-btn-secondary {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.48);
}

.lf-btn-ghost {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.28);
}

.lf-btn-lg {
  font-size: 20px;
  padding: 13px 24px;
}

.lf-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: center;
  margin-top: 8px;
}

.lf-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.48);
  background: rgba(124, 58, 237, 0.15);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lf-hero-copy h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lf-hero-copy p {
  color: #cbd5e1;
  margin: 14px 0 0;
  font-size: 19px;
  max-width: 640px;
  line-height: 1.58;
}

.lf-hero-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 14px;
  flex-wrap: wrap;
}

.lf-trust {
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
}

.lf-app-mock {
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.6);
  background:
    radial-gradient(circle at 12% -20%, rgba(124, 58, 237, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(4, 8, 22, 0.97), rgba(10, 16, 34, 0.94));
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.55);
  padding: 16px;
}

.lf-app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #e2e8f0;
}

.lf-app-head button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  color: #fff;
  padding: 8px 10px;
  font-weight: 800;
}

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

.lf-app-mock .lf-app-grid {
  display: none;
}

.lf-short-preview {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: stretch;
}

.lf-phone-frame {
  border-radius: 18px;
  padding: 8px;
  background: #020617;
  border: 1px solid rgba(226, 232, 240, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.lf-phone-media {
  min-height: 240px;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(2, 6, 23, 0.86)),
    linear-gradient(135deg, #155e75 0%, #111827 48%, #881337 100%);
}

.lf-phone-media::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto;
  height: 46%;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.2), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(20, 184, 166, 0.65), rgba(14, 165, 233, 0.32));
}

.lf-retention-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 8px;
  color: #022c22;
  background: #86efac;
  font-size: 11px;
  font-weight: 900;
}

.lf-caption-preview {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  text-align: center;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.05;
  font-size: 24px;
  text-shadow: 0 2px 0 #020617, 0 0 14px rgba(2, 6, 23, 0.9);
}

.lf-caption-preview b {
  color: #facc15;
}

.lf-preview-list {
  display: grid;
  gap: 9px;
}

.lf-preview-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 8px;
  background: rgba(15, 23, 42, 0.75);
}

.lf-preview-list h4 {
  margin: 0 0 3px;
  color: #f8fafc;
}

.lf-preview-list p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.3;
}

.lf-preview-list strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 13px;
}

.lf-mini-thumb {
  height: 70px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.lf-mini-thumb::after {
  content: "";
  position: absolute;
  inset: 35% 18% 14%;
  border-radius: 8px 8px 0 0;
  background: rgba(248, 250, 252, 0.2);
}

.lf-mini-thumb span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  border-radius: 5px;
  padding: 2px 4px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.lf-mini-thumb.thumb-a {
  background: linear-gradient(135deg, #0f766e, #111827 58%, #f59e0b);
}

.lf-mini-thumb.thumb-b {
  background: linear-gradient(135deg, #1d4ed8, #172554 55%, #be123c);
}

.lf-mini-thumb.thumb-c {
  background: linear-gradient(135deg, #4338ca, #0f172a 54%, #16a34a);
}

.lf-app-grid article {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 10px;
  background: rgba(15, 23, 42, 0.75);
}

.lf-app-grid h4 {
  margin: 0 0 4px;
  color: #f8fafc;
}

.lf-app-grid p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.lf-progress {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(30, 27, 75, 0.45);
}

.lf-progress strong {
  display: block;
  color: #ede9fe;
  font-size: 13px;
}

.lf-progress span {
  display: block;
  color: #c4b5fd;
  font-size: 12px;
  margin-bottom: 8px;
}

.lf-progress i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed 87%, rgba(148, 163, 184, 0.32) 87%);
}

.lf-brands {
  margin-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 16px 0;
}

.lf-brands span {
  display: block;
  text-align: center;
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.lf-brands div {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.lf-brands b {
  color: #cbd5e1;
}

.lf-section {
  margin-top: 22px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(7, 12, 28, 0.93), rgba(9, 14, 30, 0.9));
  padding: 24px;
}

.lf-section h2 {
  margin: 0 0 16px;
  text-align: center;
  color: #f8fafc;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.02em;
}

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

.lf-feature-grid article,
.lf-step-grid article,
.lf-faq-grid article {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.66);
  padding: 14px;
}

.lf-feature-grid h3,
.lf-step-grid h3,
.lf-faq-grid h3 {
  margin: 0 0 8px;
  color: #f1f5f9;
}

.lf-feature-grid p,
.lf-step-grid p,
.lf-faq-grid p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.55;
}

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

.lf-real-talk p {
  color: #cbd5e1;
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
  font-size: 18px;
  line-height: 1.64;
}

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

.lf-price-grid article {
  border-radius: 15px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.66);
  padding: 16px;
}

.lf-price-grid article.featured {
  border-color: rgba(124, 58, 237, 0.9);
  box-shadow: 0 14px 30px rgba(76, 29, 149, 0.4);
}

.lf-price-grid h3 {
  margin: 0;
  color: #f8fafc;
}

.lf-price {
  margin: 10px 0;
  color: #c4b5fd;
  font-size: 38px;
  font-weight: 900;
}

.lf-price-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lf-price-grid li {
  color: #cbd5e1;
  padding: 5px 0;
}

.lf-pricing-note {
  margin: 14px 0 0;
  text-align: center;
  color: #a5b4fc;
  font-weight: 700;
}

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

.lf-cta {
  margin-top: 22px;
  border-radius: 18px;
  border: 1px solid rgba(124, 58, 237, 0.44);
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.25), transparent 40%),
    linear-gradient(180deg, rgba(30, 27, 75, 0.58), rgba(10, 13, 28, 0.9));
  text-align: center;
  padding: 28px 20px;
}

.lf-cta h2 {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: clamp(30px, 4vw, 42px);
}

.lf-cta p {
  margin: 0 0 16px;
  color: #cbd5e1;
}

.lf-footer {
  margin-top: 22px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.62);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.lf-footer strong {
  color: #f8fafc;
  font-size: 18px;
}

.lf-footer p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.lf-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lf-footer a {
  color: #c4b5fd;
  font-weight: 700;
  text-decoration: none;
}

.seo-page {
  color: #e2e8f0;
}

.seo-topbar {
  margin-bottom: 22px;
}

.seo-layout {
  display: grid;
  gap: 18px;
}

.seo-index-hero,
.seo-article {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(7, 12, 28, 0.94), rgba(9, 14, 30, 0.9));
  padding: 26px;
}

.seo-index-hero h1,
.seo-article h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.seo-index-hero p,
.seo-subtitle {
  max-width: 860px;
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.65;
}

.seo-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.seo-meta span {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
  color: #a5b4fc;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

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

.seo-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.66);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.seo-card span,
.seo-card small {
  color: #a5b4fc;
  font-weight: 800;
}

.seo-card h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1.15;
}

.seo-card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.55;
}

.seo-toc {
  margin-top: 22px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.58);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.seo-toc strong {
  color: #f8fafc;
}

.seo-toc a {
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 700;
}

.seo-article-section {
  margin-top: 26px;
}

.seo-article-section h2,
.seo-related h2,
.seo-cta h2 {
  color: #f8fafc;
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
}

.seo-article-section p,
.seo-cta p {
  color: #cbd5e1;
  line-height: 1.72;
  margin: 10px 0;
  max-width: 920px;
}

.seo-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.seo-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.62);
}

.seo-table th,
.seo-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  vertical-align: top;
}

.seo-table th {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.72);
}

.seo-related,
.seo-cta {
  margin-top: 28px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.56);
  padding: 16px;
}

.seo-related div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-related a {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.72);
  color: #c4b5fd;
  padding: 8px 11px;
  text-decoration: none;
  font-weight: 800;
}

.seo-cta {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(15, 23, 42, 0.78) 46%, rgba(79, 70, 229, 0.18));
}

@media (max-width: 1020px) {
  .lf-hero {
    grid-template-columns: 1fr;
  }

  .lf-short-preview {
    grid-template-columns: minmax(160px, 0.75fr) minmax(0, 1.25fr);
  }

  .lf-feature-grid,
  .lf-step-grid,
  .lf-price-grid,
  .seo-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .lf-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .lf-hero-actions {
    flex-direction: column;
  }

  .lf-btn {
    width: 100%;
  }

  .lf-feature-grid,
  .lf-step-grid,
  .lf-price-grid,
  .lf-faq-grid,
  .lf-app-grid,
  .lf-short-preview,
  .seo-card-grid {
    grid-template-columns: 1fr;
  }

  .lf-footer,
  .seo-topbar {
    flex-direction: column;
  }

  .lf-footer nav,
  .seo-topbar .lf-nav {
    justify-content: flex-start;
  }

  .seo-index-hero,
  .seo-article {
    padding: 18px;
  }

  .lf-phone-media {
    min-height: 300px;
  }
}

/* Studio v2 */
.studio-v2 {
  background:
    radial-gradient(1200px 680px at 8% -5%, rgba(124, 58, 237, 0.2), transparent 62%),
    radial-gradient(1200px 700px at 90% 8%, rgba(59, 130, 246, 0.15), transparent 64%),
    linear-gradient(180deg, #030712 0%, #050b17 56%, #070f1d 100%);
}

.studio-v2-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  max-width: 1440px;
}

.studio-v2-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.95), rgba(7, 12, 26, 0.9));
  padding: 14px;
}

.studio-v2-logo {
  display: inline-flex;
  color: #f8fafc;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-bottom: 14px;
}

.studio-v2-nav {
  display: grid;
  gap: 8px;
}

.studio-v2-nav a {
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
  padding: 10px 12px;
  font-weight: 700;
}

.studio-v2-nav a.active {
  color: #fff;
  border-color: rgba(124, 58, 237, 0.8);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.32), rgba(79, 70, 229, 0.32));
}

.studio-v2-plan {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.45);
  background: rgba(30, 27, 75, 0.3);
  padding: 10px;
}

.studio-v2-plan strong {
  display: block;
  color: #ede9fe;
}

.studio-v2-plan span {
  color: #c4b5fd;
  font-size: 12px;
}

.studio-v2-main .studio-topbar {
  background: linear-gradient(180deg, rgba(7, 12, 27, 0.9), rgba(8, 13, 28, 0.84));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
}

.studio-v2-main .studio-topbar .eyebrow {
  color: #a78bfa;
}

.studio-v2-main .studio-topbar h1 {
  color: #f8fafc;
}

.studio-v2-main .studio-topbar .hero-copy {
  color: #94a3b8;
}

.studio-v2-main .hero-btn-secondary,
.studio-v2-main .wizard-step-btn {
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #dbeafe;
}

.studio-v2-main .studio-usage-pill {
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #ede9fe;
}

.studio-v2-main .studio-onboarding,
.studio-v2-main .studio-step-card {
  background: linear-gradient(180deg, rgba(7, 12, 27, 0.9), rgba(8, 13, 28, 0.86));
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.studio-v2-main .studio-onboarding span {
  color: #94a3b8;
}

.studio-v2-main .studio-step-card b {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(124, 58, 237, 0.45);
  color: #ddd6fe;
}

.studio-v2-main .wizard-step-btn.active {
  border-color: rgba(124, 58, 237, 0.9);
  color: #ddd6fe;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.6) inset;
}

.studio-v2-main .card {
  background: linear-gradient(180deg, rgba(7, 12, 27, 0.94), rgba(8, 13, 28, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
}

.studio-v2-main .label {
  color: #cbd5e1;
}

.studio-v2-main .clip-mode-note {
  color: #94a3b8;
}

.studio-v2-main .btn-primary {
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
}

.studio-recent-card {
  margin: 14px 0;
}

.studio-recent-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.studio-recent-head .studio-section-title {
  margin-bottom: 4px;
}

.studio-recent-clips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.studio-recent-clip-card {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.56);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.studio-recent-clip-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.48);
  background: rgba(30, 41, 59, 0.64);
}

.studio-recent-clip-card video,
.studio-recent-clip-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.studio-recent-clip-card div {
  padding: 8px;
}

.studio-recent-clip-card strong {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.studio-recent-clip-card span {
  color: #a5b4fc;
  font-size: 12px;
  line-height: 1.35;
}

.studio-v2-main .clips-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.studio-v2-main .clip {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

.studio-v2-main .clip h3 {
  color: #f8fafc;
}

.studio-v2-main .clip p {
  color: #a5b4fc;
}

.studio-v2-main .clip-assets-box {
  background: rgba(15, 23, 42, 0.58);
}

@media (max-width: 1180px) {
  .studio-v2-shell {
    grid-template-columns: 1fr;
  }

  .studio-v2-sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .studio-v2-main .clips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* App dashboard v2 */
.app-v2 {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 680px at 8% -5%, rgba(124, 58, 237, 0.2), transparent 62%),
    radial-gradient(1200px 700px at 90% 8%, rgba(59, 130, 246, 0.15), transparent 64%),
    linear-gradient(180deg, #030712 0%, #050b17 56%, #070f1d 100%);
  color: #e2e8f0;
}

.app-v2-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: 240px minmax(0, 1fr);
}

.app-v2-sidebar {
  position: sticky;
  top: 14px;
  align-self: start;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.95), rgba(7, 12, 26, 0.9));
  padding: 14px;
}

.app-v2-logo {
  display: inline-flex;
  margin-bottom: 12px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.brand-logo-img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.app-v2-nav {
  display: grid;
  gap: 8px;
}

.app-v2-nav a {
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
  padding: 10px 12px;
  font-weight: 700;
}

.app-v2-nav a.active {
  color: #fff;
  border-color: rgba(124, 58, 237, 0.8);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.32), rgba(79, 70, 229, 0.32));
}

.app-v2-userbox,
.app-v2-usage {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.5);
  padding: 10px;
}

.app-v2-userbox strong {
  display: block;
  color: #f8fafc;
}

.app-v2-userbox span,
.app-v2-usage small {
  color: #94a3b8;
}

.app-v2-usage b {
  color: #ddd6fe;
}

.app-v2-upgrade {
  margin-top: 12px;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  padding: 11px 14px;
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
}

.app-v2-main {
  display: grid;
  gap: 14px;
}

.app-v2-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(7, 12, 27, 0.9), rgba(8, 13, 28, 0.84));
  padding: 16px;
}

.app-v2-top h1 {
  margin: 0 0 6px;
  color: #f8fafc;
  font-size: clamp(30px, 4vw, 44px);
}

.app-v2-top p {
  margin: 0;
  color: #94a3b8;
}

.app-v2-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-v2-top-actions a,
.app-v2-top-actions button {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  padding: 9px 12px;
  text-decoration: none;
  font-weight: 700;
}

.app-v2-top-actions a.primary {
  border-color: transparent;
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  color: #fff;
}

.app-v2-create-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(15, 23, 42, 0.76) 42%, rgba(79, 70, 229, 0.18)),
    rgba(15, 23, 42, 0.56);
  padding: 18px;
}

.app-v2-kicker {
  display: inline-flex;
  margin-bottom: 7px;
  color: #99f6e4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-v2-create-hero h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
}

.app-v2-create-hero p {
  margin: 8px 0 0;
  color: #cbd5e1;
  max-width: 820px;
  line-height: 1.55;
}

.app-v2-create-hero a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 54px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  background: linear-gradient(90deg, #14b8a6, #4f46e5);
  box-shadow: 0 16px 36px rgba(20, 184, 166, 0.22);
}

.app-v2-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-v2-quick article {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.58);
  padding: 16px;
}

.app-v2-quick article.featured {
  border-color: rgba(124, 58, 237, 0.8);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.65), rgba(79, 70, 229, 0.62));
}

.app-v2-quick h3 {
  margin: 0 0 8px;
  color: #f8fafc;
}

.app-v2-quick p {
  margin: 0 0 12px;
  color: #cbd5e1;
}

.app-v2-quick a {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 12px;
}

.app-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
}

.app-v2-card {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(7, 12, 27, 0.9), rgba(8, 13, 28, 0.84));
  padding: 14px;
}

.app-v2-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.app-v2-card-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 30px;
}

.app-v2-card-head a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 700;
}

.app-v2-list {
  display: grid;
  gap: 8px;
}

.app-v2-project-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  padding: 7px;
}

.app-v2-project-row img,
.app-v2-project-thumb-empty {
  width: 72px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #0f172a;
}

.app-v2-project-row strong {
  display: block;
  color: #f8fafc;
}

.app-v2-project-row small {
  color: #94a3b8;
}

.app-v2-project-row span {
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 9px;
}

.app-v2-project-row span.ready {
  color: #86efac;
  background: rgba(22, 163, 74, 0.18);
}

.app-v2-project-row span.queue {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
}

.app-v2-project-row span.processing {
  color: #fde68a;
  background: rgba(217, 119, 6, 0.2);
}

.app-v2-clips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.app-v2-clip-card {
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  overflow: hidden;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.app-v2-clip-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.48);
  background: rgba(30, 41, 59, 0.64);
}

.app-v2-clip-card video,
.app-v2-clip-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.app-v2-clip-card .meta {
  padding: 8px;
}

.app-v2-clip-card strong {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.app-v2-clip-card span {
  color: #a5b4fc;
  font-size: 12px;
}

.app-v2-empty {
  color: #94a3b8;
  margin: 0;
}

.app-v2-demo-stack {
  display: grid;
  gap: 8px;
}

.app-v2-demo-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 11px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.42);
  padding: 7px;
}

.app-v2-demo-row strong {
  display: block;
  color: #f8fafc;
}

.app-v2-demo-row small {
  color: #94a3b8;
}

.app-v2-demo-row span {
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 9px;
}

.app-v2-empty-cta {
  display: inline-flex;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 12px;
  background: linear-gradient(90deg, #14b8a6, #4f46e5);
}

.app-v2-demo-clip {
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.42);
  padding: 8px;
}

.app-v2-demo-clip-art {
  display: grid;
  align-items: end;
  min-height: 178px;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  padding: 10px;
  overflow: hidden;
  background: #0f172a;
}

.app-v2-demo-clip-art span {
  color: #fff;
  font-size: 18px;
  line-height: 1.02;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 0 #020617, 0 0 12px rgba(2, 6, 23, 0.9);
}

.app-v2-demo-clip-art.art-a {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.86)), linear-gradient(135deg, #0f766e, #111827 58%, #f59e0b);
}

.app-v2-demo-clip-art.art-b {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.86)), linear-gradient(135deg, #1d4ed8, #172554 55%, #be123c);
}

.app-v2-demo-clip-art.art-c {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.86)), linear-gradient(135deg, #4338ca, #0f172a 54%, #16a34a);
}

.app-v2-demo-clip strong {
  display: block;
  margin-top: 8px;
  color: #f8fafc;
  font-size: 13px;
}

.app-v2-demo-clip small {
  color: #a5b4fc;
}

.app-v2 .app-v2-card > h2 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: clamp(28px, 3.5vw, 40px);
}

.app-v2 .sf-pricing-grid article h3 {
  color: #f8fafc;
}

.app-v2 .sf-pricing-grid article {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(17, 24, 39, 0.78));
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.26);
}

.app-v2 .sf-pricing-grid article p,
.app-v2 .sf-pricing-grid article label {
  color: #cbd5e1;
}

.app-v2 .sf-tier-card .sf-btn-outline {
  background: rgba(15, 23, 42, 0.48);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
}

.app-v2 .sf-tier-card .sf-btn-primary {
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
}

.app-v2 .sf-tier-badge {
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
}

.app-v2 .sf-compare-wrap {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.55);
}

.app-v2 .sf-compare-table thead th {
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
}

.app-v2 .sf-compare-table th,
.app-v2 .sf-compare-table td {
  color: #cbd5e1;
  border-bottom-color: rgba(148, 163, 184, 0.22);
}

.app-v2 .history-filters .btn-primary {
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
}

.app-v2-tabbar {
  display: flex;
  gap: 8px;
}

.app-v2-tab {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.app-v2-tab.active {
  color: #fff;
  border-color: rgba(124, 58, 237, 0.86);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.55), rgba(79, 70, 229, 0.48));
}

.app-v2 .history-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#historyProjectsSection .history-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#historyClipsSection .history-grid {
  grid-template-columns: repeat(4, minmax(240px, 1fr));
}

.app-v2 .history-card {
  min-width: 0;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.58);
}

.app-v2 .history-meta h3 {
  color: #f8fafc;
}

.app-v2 .history-meta p,
.app-v2 .history-meta span {
  color: #94a3b8;
}

.app-v2-lower {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
}

.app-v2-usage-ring-wrap {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.app-v2-usage-ring {
  --usage-pct: 0%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(#7c3aed var(--usage-pct), rgba(148, 163, 184, 0.2) var(--usage-pct));
  position: relative;
}

.app-v2-usage-ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #0b1224;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.app-v2-usage-ring .inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.app-v2-usage-ring .inner strong {
  display: block;
  color: #f8fafc;
  font-size: 44px;
  line-height: 1;
}

.app-v2-usage-ring .inner span {
  color: #a5b4fc;
  font-weight: 700;
  font-size: 13px;
}

.app-v2-usage-legend p {
  margin: 0 0 8px;
  color: #cbd5e1;
}

.app-v2-usage-legend b {
  color: #ddd6fe;
}

.app-v2-usage-legend a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 700;
}

.app-v2-tip-list,
.app-v2-news-list {
  display: grid;
  gap: 9px;
}

.app-v2-tip-list a,
.app-v2-news-list div {
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.5);
  padding: 10px;
}

.app-v2-tip-list strong,
.app-v2-news-list strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 4px;
}

.app-v2-tip-list span,
.app-v2-news-list span {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1220px) {
  .app-v2-shell {
    grid-template-columns: 1fr;
  }

  .app-v2-sidebar {
    position: static;
  }
}

@media (max-width: 1040px) {
  .studio-recent-clips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-v2-create-hero {
    grid-template-columns: 1fr;
  }

  .app-v2-create-hero a {
    width: 100%;
  }

  .app-v2-quick {
    grid-template-columns: 1fr;
  }

  .app-v2-grid {
    grid-template-columns: 1fr;
  }

  .app-v2-lower {
    grid-template-columns: 1fr;
  }

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

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

  #historyProjectsSection .history-grid,
  #historyClipsSection .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .studio-recent-head {
    flex-direction: column;
  }

  .studio-recent-head .hero-btn {
    width: 100%;
  }

  .studio-recent-clips {
    grid-template-columns: 1fr;
  }

  .app-v2-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-v2-top-actions {
    width: 100%;
  }

  .app-v2-top-actions a,
  .app-v2-top-actions button {
    width: 100%;
    text-align: center;
  }

  .app-v2-clips {
    grid-template-columns: 1fr;
  }

  .app-v2-demo-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .app-v2-demo-row span {
    justify-self: start;
    grid-column: 2;
  }

  .app-v2 .history-grid {
    grid-template-columns: 1fr;
  }

  #historyProjectsSection .history-grid,
  #historyClipsSection .history-grid {
    grid-template-columns: 1fr;
  }
}
