/* ── Variables ─────────────────────────────────────────── */
:root {
  --red:        #E60023;
  --red-deep:   #b5001b;
  --red-soft:   #fff0f2;
  --red-mid:    rgba(230,0,35,0.12);
  --red-glow:   rgba(230,0,35,0.22);

  --bg:         #fdf8f3;
  --bg2:        #fff9f5;
  --surface:    #ffffff;
  --surface2:   #fef4ee;

  --ink:        #1c1410;
  --ink2:       #4a3728;
  --muted:      #9c8070;
  --muted2:     #c4ae9e;

  --border:     rgba(180,130,100,0.15);
  --border2:    rgba(180,130,100,0.28);
  --border3:    rgba(230,0,35,0.35);

  --shadow-sm:  0 2px 8px rgba(60,20,10,0.07);
  --shadow-md:  0 8px 32px rgba(60,20,10,0.11);
  --shadow-lg:  0 24px 64px rgba(60,20,10,0.14);
  --shadow-red: 0 8px 32px rgba(230,0,35,0.22);

  --gold:       #c08b5c;
  --green:      #1a9e5c;
  --green-bg:   rgba(26,158,92,0.08);
  --blue:       #2563eb;
  --purple:     #7c3aed;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

/* ── Background canvas ─────────────────────────────────── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
}
.bg-orb-1 {
  width: 600px; height: 600px; top: -180px; right: -120px;
  background: radial-gradient(circle, #ffd6cc 0%, #ffe8e0 50%, transparent 75%);
  animation: orbFloat1 18s ease-in-out infinite alternate;
}
.bg-orb-2 {
  width: 500px; height: 500px; bottom: -120px; left: -100px;
  background: radial-gradient(circle, #ffecd5 0%, #fff3e8 50%, transparent 75%);
  animation: orbFloat2 22s ease-in-out infinite alternate;
}
.bg-orb-3 {
  width: 300px; height: 300px; top: 40%; left: 55%;
  background: radial-gradient(circle, rgba(230,0,35,0.06) 0%, transparent 70%);
  animation: orbFloat3 15s ease-in-out infinite alternate;
}
/* Dot grid texture */
.bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(150,80,50,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
@keyframes orbFloat1 { to { transform: translate(-60px, 80px) scale(1.1); } }
@keyframes orbFloat2 { to { transform: translate(80px, -60px) scale(1.08); } }
@keyframes orbFloat3 { to { transform: translate(-40px, 60px) scale(1.2); } }

/* ── Layout ────────────────────────────────────────────── */
.page {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

/* ── Top bar ───────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0 0.7rem;
  animation: riseIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
}
.brand-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(230,0,35,0.35);
}
.brand-icon svg { display: block; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--red); }
.brand-tag {
  font-size: 0.72rem; font-family: 'JetBrains Mono', monospace;
  background: var(--red-soft); color: var(--red);
  border: 1px solid rgba(230,0,35,0.2);
  border-radius: 4px; padding: 0.15rem 0.45rem;
  font-weight: 500; letter-spacing: 0.06em;
  align-self: flex-start; margin-top: 2px;
}
.topbar-right { display: flex; align-items: center; gap: 0.7rem; }
.stat-pill {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 100px; padding: 0.3rem 0.85rem;
  font-size: 0.84rem; font-family: 'JetBrains Mono', monospace; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.stat-pill .cnt { color: var(--red); font-weight: 500; }

/* ── Divider ───────────────────────────────────────────── */
.divider {
  height: 1px; width: 100%;
  background: linear-gradient(to right, transparent, var(--border2) 30%, var(--border2) 70%, transparent);
  margin-bottom: 1.4rem;
  animation: fadeIn 1s ease 0.2s both;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  text-align: center; margin-bottom: 1.2rem;
  animation: riseIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 100px; padding: 0.35rem 1rem;
  box-shadow: var(--shadow-sm); margin-bottom: 0.8rem;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulseAnim 2s ease-in-out infinite;
}
@keyframes pulseAnim { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink);
}
h1 em { color: var(--red); font-style: italic; }
h1 .line2 { display: block; font-weight: 400; font-style: italic; color: var(--ink2); }

.hero-sub {
  margin-top: 0.5rem; font-size: 1rem; color: var(--muted);
  font-weight: 300; line-height: 1.7; letter-spacing: 0.01em;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  justify-content: center; margin-top: 0.7rem;
}
.hero-pill {
  font-size: 0.88rem; font-weight: 500; color: var(--ink2);
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 100px; padding: 0.3rem 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* ── Tabs ──────────────────────────────────────────────── */
.tabs {
  display: flex; background: var(--surface2);
  border: 1px solid var(--border2); border-radius: var(--r-lg);
  padding: 5px; margin-bottom: 0.6rem; gap: 4px;
  box-shadow: var(--shadow-sm);
  animation: riseIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
.tab-btn {
  flex: 1; padding: 0.6rem 0.8rem; border: none;
  border-radius: calc(var(--r-lg) - 5px);
  background: transparent; color: var(--muted);
  font-family: 'Outfit', sans-serif; font-size: 0.96rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
}
.tab-btn svg { opacity: 0.7; transition: opacity 0.2s; }
.tab-btn.active {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.tab-btn.active svg { opacity: 1; }
.tab-btn:hover:not(.active) { color: var(--ink2); background: rgba(255,255,255,0.5); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Main card ─────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  animation: riseIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.25s both;
}
/* Decorative top stripe */
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 40%, #ff6b6b 60%, transparent 100%);
  opacity: 0.7;
}
/* Subtle corner accent */
.card::after {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,0,35,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.card-lbl {
  font-size: 0.8rem; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted2);
  margin-bottom: 0.75rem;
}

/* ── Input group ───────────────────────────────────────── */
.input-wrap {
  display: flex; align-items: stretch;
  background: var(--bg2); border: 1.5px solid var(--border2);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input-wrap:focus-within {
  border-color: var(--border3);
  box-shadow: 0 0 0 4px rgba(230,0,35,0.08), var(--shadow-sm);
}
.input-icon {
  padding: 0 1rem; display: flex; align-items: center;
  color: var(--red); flex-shrink: 0;
}
.url-inp {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 0.95rem 0.4rem; min-width: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 0.95rem;
  color: var(--ink); letter-spacing: 0.01em;
}
.url-inp::placeholder { color: var(--muted2); }
.go-btn {
  flex-shrink: 0; background: var(--red); border: none; color: #fff;
  padding: 0 1.6rem; font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.12s;
  letter-spacing: 0.02em; white-space: nowrap;
  border-radius: 0 calc(var(--r-md) - 1.5px) calc(var(--r-md) - 1.5px) 0;
}
.go-btn:hover { background: var(--red-deep); }
.go-btn:active { transform: scale(0.97); }
.go-btn:disabled { background: var(--muted2); cursor: not-allowed; transform: none; }

.input-hint {
  margin-top: 0.65rem; font-size: 0.88rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.4rem;
}
.input-hint kbd {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 5px; padding: 0.05rem 0.4rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--muted);
}

/* ── Batch ─────────────────────────────────────────────── */
.batch-area {
  width: 100%; min-height: 130px; resize: vertical;
  background: var(--bg2); border: 1.5px solid var(--border2);
  border-radius: var(--r-md); padding: 1rem 1.2rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.94rem;
  color: var(--ink); outline: none; line-height: 1.8;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.batch-area:focus {
  border-color: var(--border3);
  box-shadow: 0 0 0 4px rgba(230,0,35,0.08);
}
.batch-area::placeholder { color: var(--muted2); }
.batch-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }
.batch-go {
  margin-top: 1rem; width: 100%; padding: 0.9rem;
  background: var(--red); border: none; border-radius: var(--r-md);
  color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 1.05rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(230,0,35,0.25);
}
.batch-go:hover { background: var(--red-deep); box-shadow: var(--shadow-red); transform: translateY(-1px); }
.batch-go:active { transform: translateY(0); }
.batch-go:disabled { background: var(--muted2); box-shadow: none; cursor: not-allowed; transform: none; }

/* ── Loader ────────────────────────────────────────────── */
.loader {
  display: none; flex-direction: column; align-items: center; gap: 1rem;
  padding: 2.5rem 1rem;
}
.loader-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border2);
  border-top-color: var(--red);
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-txt {
  font-size: 0.95rem; color: var(--muted);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em;
}

/* ── Server banner ─────────────────────────────────────── */
#server-banner {
  margin-bottom: 1rem; padding: 0.7rem 1rem;
  border-radius: var(--r-sm); font-size: 0.82rem; line-height: 1.5;
  animation: riseIn 0.4s ease both;
}

/* ── Result panel ──────────────────────────────────────── */
#result-panel { margin-top: 1.4rem; }
.result-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r-lg); overflow: hidden;
  animation: riseIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
  box-shadow: var(--shadow-sm);
}

/* Preview area */
.preview-area {
  position: relative; background: #f5ede4;
  max-height: 300px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.preview-area img, .preview-area video {
  width: 100%; max-height: 300px; object-fit: cover; display: block;
}
.preview-area img { object-fit: contain; }
.play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; cursor: pointer;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.25));
  transition: background 0.2s;
}
.play-overlay:hover { background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4)); }
.play-btn-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.play-overlay:hover .play-btn-circle { transform: scale(1.08); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.play-btn-circle svg { margin-left: 3px; }

/* Result body */
.result-body { padding: 1.4rem 1.6rem 1.6rem; }
.result-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600; color: var(--ink);
  line-height: 1.4; margin-bottom: 0.75rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.result-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; font-family: 'JetBrains Mono', monospace;
  font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: 6px; padding: 0.25rem 0.7rem; border: 1px solid transparent;
}
.badge-red   { background: var(--red-soft); color: var(--red); border-color: rgba(230,0,35,0.2); }
.badge-green { background: var(--green-bg); color: var(--green); border-color: rgba(26,158,92,0.2); }
.badge-blue  { background: rgba(37,99,235,0.08); color: var(--blue); border-color: rgba(37,99,235,0.2); }
.badge-purple{ background: rgba(124,58,237,0.08); color: var(--purple); border-color: rgba(124,58,237,0.2); }
.badge-gray  { background: var(--surface2); color: var(--muted); border-color: var(--border2); }

/* Quality selector */
.quality-lbl {
  font-size: 0.8rem; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.55rem;
}
.quality-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.quality-chip {
  padding: 0.35rem 0.9rem; border-radius: 8px;
  border: 1.5px solid var(--border2); background: var(--surface);
  color: var(--muted); font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem; cursor: pointer; transition: all 0.18s;
  box-shadow: var(--shadow-sm);
}
.quality-chip:hover { border-color: var(--red); color: var(--ink); }
.quality-chip.selected {
  border-color: var(--red); background: var(--red-soft); color: var(--red);
  box-shadow: 0 2px 8px rgba(230,0,35,0.15);
}

/* Progress bar */
.progress-wrap { margin-bottom: 1rem; display: none; }
.progress-header {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; font-family: 'JetBrains Mono', monospace;
  color: var(--muted); margin-bottom: 0.4rem;
}
.progress-track {
  width: 100%; height: 5px; background: var(--border2);
  border-radius: 100px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  border-radius: 100px; transition: width 0.3s ease;
}

/* Action buttons */
.actions { display: flex; gap: 0.6rem; }
.dl-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--red); color: #fff; border: none;
  border-radius: var(--r-md); padding: 0.9rem 1.2rem;
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(230,0,35,0.28);
  letter-spacing: 0.01em;
}
.dl-btn:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: var(--shadow-red); }
.dl-btn:active { transform: translateY(0); }
.dl-btn:disabled { background: var(--muted2); box-shadow: none; cursor: not-allowed; transform: none; }

.copy-btn {
  padding: 0.9rem 1.1rem; background: var(--surface); border: 1.5px solid var(--border2);
  border-radius: var(--r-md); color: var(--muted); cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem;
  font-family: 'Outfit', sans-serif; font-size: 0.96rem; font-weight: 500;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.copy-btn:hover { border-color: var(--gold); color: var(--gold); box-shadow: var(--shadow-md); }
.copy-btn.copied { border-color: var(--green); color: var(--green); }

/* ── Error box ─────────────────────────────────────────── */
.err-box {
  margin-top: 1.2rem; padding: 1rem 1.2rem;
  background: #fff6f7; border: 1px solid rgba(230,0,35,0.2);
  border-radius: var(--r-md); display: flex; gap: 0.8rem;
  animation: riseIn 0.4s ease both;
}
.err-icon { font-size: 1.1rem; flex-shrink: 0; }
.err-msg { font-size: 0.98rem; color: #c0001a; line-height: 1.55; }

/* ── History ───────────────────────────────────────────── */
.history-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.clear-btn {
  font-size: 0.88rem; font-family: 'JetBrains Mono', monospace;
  color: var(--muted); background: none; border: none;
  cursor: pointer; transition: color 0.2s; letter-spacing: 0.06em;
}
.clear-btn:hover { color: var(--red); }
.history-list { display: flex; flex-direction: column; gap: 0.55rem; }
.history-item {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.history-item:hover { border-color: var(--border2); box-shadow: var(--shadow-md); }
.history-thumb {
  width: 52px; height: 40px; border-radius: 8px;
  object-fit: cover; background: var(--surface2); flex-shrink: 0;
}
.history-info { flex: 1; min-width: 0; }
.history-title {
  font-size: 0.97rem; color: var(--ink); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.2rem;
}
.history-time { font-size: 0.82rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.history-refetch {
  padding: 0.32rem 0.75rem; border: 1px solid var(--border2);
  border-radius: 7px; background: var(--surface2);
  color: var(--muted); font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; box-shadow: var(--shadow-sm);
}
.history-refetch:hover { border-color: var(--red); color: var(--red); }
.history-empty {
  text-align: center; padding: 2.5rem; color: var(--muted2); font-size: 1rem;
}

/* ── Batch results ─────────────────────────────────────── */
.batch-results-list { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.2rem; }
.batch-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1rem 1.1rem;
  animation: riseIn 0.4s ease both; box-shadow: var(--shadow-sm);
}
.batch-thumb {
  width: 64px; height: 48px; border-radius: 8px;
  object-fit: cover; background: var(--surface2); flex-shrink: 0;
}
.batch-info { flex: 1; min-width: 0; }
.batch-title {
  font-size: 0.97rem; color: var(--ink); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.3rem;
}
.batch-meta { font-size: 0.85rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.batch-err-txt { font-size: 0.9rem; color: #c0001a; }
.batch-dl {
  padding: 0.45rem 1rem; background: var(--red); border: none;
  border-radius: 8px; color: #fff; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
  font-family: 'Outfit', sans-serif; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(230,0,35,0.25);
}
.batch-dl:hover { background: var(--red-deep); }
.batch-dl:disabled { background: var(--muted2); box-shadow: none; }

/* ── How it works ──────────────────────────────────────── */
.how {
  margin-top: 3rem;
  animation: riseIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}
.how-title {
  text-align: center; font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted2); margin-bottom: 1.4rem;
}
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.9rem; }
.how-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.4rem 1.2rem;
  text-align: center; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}
.how-card:hover {
  border-color: rgba(230,0,35,0.25); transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.how-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 700; font-style: italic;
  color: rgba(230,0,35,0.15); line-height: 1; margin-bottom: 0.55rem;
}
.how-text { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }
.how-text strong { color: var(--ink2); font-weight: 600; }

/* ── Supported types banner ────────────────────────────── */
.types-bar {
  margin-top: 2rem; display: flex; align-items: center;
  justify-content: center; gap: 1.2rem; flex-wrap: wrap;
  animation: riseIn 0.8s ease 0.5s both;
}
.type-item {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.92rem; color: var(--muted); font-weight: 500;
}
.type-dot { width: 8px; height: 8px; border-radius: 50%; }
.type-sep { color: var(--border2); font-size: 1rem; }

/* ── Footer ────────────────────────────────────────────── */
footer {
  margin-top: 4rem; text-align: center;
  font-size: 0.85rem; color: var(--muted2);
  font-family: 'JetBrains Mono', monospace; line-height: 1.8;
  animation: fadeIn 1s ease 0.6s both;
}

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  border-radius: 100px; padding: 0.65rem 1.5rem;
  font-size: 0.97rem; font-weight: 500;
  box-shadow: 0 12px 40px rgba(30,10,5,0.25);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Animations ────────────────────────────────────────── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .card { padding: 1.4rem; }
  .how-grid { grid-template-columns: 1fr; }
  .go-btn { padding: 0 1rem; font-size: 0.94rem; }
  .actions { flex-direction: column; }
  h1 { font-size: 2.8rem; }
  .tabs { border-radius: var(--r-md); }
  .tab-btn { font-size: 0.88rem; padding: 0.5rem 0.5rem; }
  .types-bar { gap: 0.8rem; }
}

/* ═══ SEO Sections shared ══════════════════════════════════════════════════ */
.seo-section {
  margin-top: 4rem;
  animation: riseIn 0.8s ease both;
}
.seo-heading-wrap {
  text-align: center; margin-bottom: 2.2rem;
}
.seo-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 0.7rem; font-weight: 500;
}
.seo-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink);
}
.seo-h2 em { color: var(--red); font-style: italic; }
.seo-lead {
  margin-top: 0.8rem; font-size: 1.05rem; color: var(--muted);
  max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.7;
}

/* ═══ Features Grid ════════════════════════════════════════════════════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--border2);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-title {
  font-family: 'Outfit', sans-serif; font-size: 1rem;
  font-weight: 600; color: var(--ink); margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.9rem; color: var(--muted); line-height: 1.65;
}

/* ═══ Stats Banner ═════════════════════════════════════════════════════════ */
.stats-banner {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #fff5f5 0%, #fff9f5 50%, #f5f9ff 100%);
  border: 1px solid var(--border2); border-radius: var(--r-xl);
  padding: 2rem 1.5rem; display: flex; align-items: center;
  justify-content: space-around; gap: 1rem; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem; font-weight: 700; color: var(--red);
  line-height: 1; letter-spacing: -0.02em;
}
.stat-lbl {
  font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem;
  font-weight: 500;
}
.stat-divider {
  width: 1px; height: 48px;
  background: var(--border2);
}

/* ═══ Formats Grid ═════════════════════════════════════════════════════════ */
.formats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.format-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}
.format-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.format-header {
  padding: 1.4rem 1.4rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.format-ext {
  font-family: 'JetBrains Mono', monospace; font-size: 1rem;
  font-weight: 700; letter-spacing: 0.04em;
}
.format-body { padding: 0 1.4rem 1.4rem; }
.format-title {
  font-family: 'Outfit', sans-serif; font-size: 1rem;
  font-weight: 600; color: var(--ink); margin-bottom: 0.5rem;
}
.format-desc {
  font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin-bottom: 0.9rem;
}
.format-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.3rem;
}
.format-list li {
  font-size: 0.85rem; color: var(--ink2); display: flex; align-items: center; gap: 0.5rem;
}
.format-list li::before {
  content: '✓'; color: var(--green); font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}

/* ═══ FAQ ══════════════════════════════════════════════════════════════════ */
.faq-list {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.faq-item:has(.faq-a:not([hidden])) {
  border-color: rgba(230,0,35,0.25);
  box-shadow: 0 4px 16px rgba(230,0,35,0.07);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 1.3rem; background: none; border: none;
  cursor: pointer; text-align: left; font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--ink);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--red); }
.faq-q[aria-expanded="true"] { color: var(--red); }
.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); color: var(--red); }
.faq-arrow { flex-shrink: 0; transition: transform 0.25s ease, color 0.2s; color: var(--muted); }
.faq-a {
  padding: 0 1.3rem 1.2rem; font-size: 0.95rem; color: var(--muted);
  line-height: 1.75; border-top: 1px solid var(--border);
}
.faq-a p { margin-top: 1rem; }
.faq-a p:first-child { margin-top: 0.9rem; }
.faq-a code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 4px; padding: 0.1rem 0.4rem; color: var(--ink2);
}

/* ═══ About Section ════════════════════════════════════════════════════════ */
.about-body {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
}
.about-body p {
  font-size: 1rem; color: var(--muted); line-height: 1.8;
  margin-bottom: 1.1rem;
}
.about-body p:last-of-type { margin-bottom: 1.4rem; }
.about-body strong { color: var(--ink2); font-weight: 600; }
.about-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.about-tag {
  font-size: 0.82rem; color: var(--ink2); background: var(--surface2);
  border: 1px solid var(--border2); border-radius: 100px;
  padding: 0.28rem 0.85rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.about-tag:hover { border-color: rgba(230,0,35,0.3); color: var(--red); }

/* ═══ Footer ═══════════════════════════════════════════════════════════════ */
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Outfit', sans-serif; font-size: 1rem;
  font-weight: 600; color: var(--ink2);
}
.footer-links {
  display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
}
.footer-links a {
  font-size: 0.88rem; color: var(--muted); text-decoration: none;
  font-family: 'Outfit', sans-serif; transition: color 0.2s;
}
.footer-links a:hover { color: var(--red); }
.footer-legal {
  font-size: 0.8rem; color: var(--muted2);
  font-family: 'JetBrains Mono', monospace; text-align: center; line-height: 1.7;
}

/* ═══ Responsive additions ══════════════════════════════════════════════════ */
@media (max-width: 760px) {
  .features-grid { grid-template-columns: 1fr; }
  .formats-grid  { grid-template-columns: 1fr; }
  .stats-banner  { gap: 1.5rem; }
  .stat-divider  { width: 40px; height: 1px; }
  .about-body    { padding: 1.4rem; }
}
@media (max-width: 600px) {
  .seo-h2        { font-size: 1.8rem; }
  .faq-q         { font-size: 0.94rem; }
}