/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg:          #09090E;
  --surface:     #111118;
  --card:        #14141F;
  --card-2:      #1A1A28;
  --border:      #1E1E30;
  --border-2:    #2A2A42;

  --orange:      #FF6B00;
  --orange-2:    #FF8C33;
  --orange-glow: rgba(255, 107, 0, 0.28);
  --orange-dim:  rgba(255, 107, 0, 0.12);

  --neon:        #00E5FF;
  --neon-glow:   rgba(0, 229, 255, 0.22);
  --neon-dim:    rgba(0, 229, 255, 0.08);
  --neon-ok:     #00FF88;
  --neon-ok-glow:rgba(0, 255, 136, 0.25);

  --white:       #FFFFFF;
  --text-1:      #EEEEF4;
  --text-2:      #9898AA;
  --text-3:      #5A5A72;
  --error:       #FF4455;

  --radius:      14px;
  --radius-sm:   8px;
  --radius-pill: 100px;
  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.header {
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,14,0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { width: 28px; height: 28px; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--white);
}

/* Privacy pill in header */
.privacy-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--neon);
  border: 1px solid rgba(0,229,255,0.25);
  background: rgba(0,229,255,0.06);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.privacy-pill svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Page grid ────────────────────────────────────────────────────────────── */
.page-grid {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 28px;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
  flex: 1;
}

/* ── Sidebars ─────────────────────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 40px;
}
.banner-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  line-height: 0;
}
.banner-link:hover {
  border-color: var(--orange);
  box-shadow: 0 0 20px var(--orange-glow), 0 4px 24px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}
.banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 1px);
}

/* ── Main ─────────────────────────────────────────────────────────────────── */
.main {
  padding: 52px 0 64px;
  min-width: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5.5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 14px;
}
.accent-orange { color: var(--orange); }
.accent-neon   { color: var(--neon); }
.hero-sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Hero banner — Banner 3 */
.hero-banner-link {
  display: block;
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  line-height: 0;
}
.hero-banner-link:hover {
  border-color: var(--orange);
  box-shadow: 0 0 24px var(--orange-glow), 0 4px 28px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 1px);
}

/* ── Trust badges row ─────────────────────────────────────────────────────── */
.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--neon);
  border: 1px solid rgba(0,229,255,0.18);
  background: rgba(0,229,255,0.05);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.trust-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Drop Zone ────────────────────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
}
.drop-zone:hover {
  border-color: var(--orange);
  background: var(--orange-dim);
  box-shadow: 0 0 0 4px var(--orange-glow), inset 0 0 32px rgba(255,107,0,0.04);
}
.drop-zone.dragover {
  border-style: solid;
  border-color: var(--neon);
  background: var(--neon-dim);
  box-shadow: 0 0 0 4px var(--neon-glow);
}
.drop-zone.has-file {
  border-style: solid;
  border-color: var(--orange);
  background: var(--orange-dim);
  cursor: default;
}

.drop-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(255,107,0,0.2);
  animation: float 3s ease-in-out infinite;
}
.drop-icon { width: 36px; height: 36px; color: var(--orange); }

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

.drop-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}
.drop-sub { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.link-btn {
  background: none; border: none;
  color: var(--orange); cursor: pointer;
  font-size: 14px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; padding: 0;
}
.link-btn:hover { color: var(--orange-2); }
.drop-hint { font-size: 11.5px; color: var(--text-3); letter-spacing: 0.3px; }

.drop-file-info {
  display: flex; align-items: center; gap: 14px; text-align: left;
}
.file-icon svg { width: 40px; height: 40px; flex-shrink: 0; }
.file-meta {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.file-name {
  font-weight: 600; font-size: 14px; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-size { font-size: 12px; color: var(--text-2); }
.clear-btn {
  background: var(--card-2); border: 1px solid var(--border-2);
  border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
  color: var(--text-2);
}
.clear-btn svg { width: 12px; height: 12px; }
.clear-btn:hover { background: rgba(255,68,85,0.15); border-color: var(--error); color: var(--error); }

/* ── Format Section ───────────────────────────────────────────────────────── */
.format-section { display: flex; flex-direction: column; gap: 14px; }
.format-header { display: flex; align-items: center; justify-content: space-between; }
.format-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-2);
}
.format-tabs {
  display: flex; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 3px;
}
.tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--text-2); padding: 5px 14px; border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}
.tab-btn.active { background: var(--orange); color: var(--white); }
.tab-btn:not(.active):hover { color: var(--text-1); }

.format-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-pill); color: var(--text-2); cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.4px; padding: 6px 16px;
  transition: all var(--transition);
}
.pill:hover { border-color: rgba(255,107,0,0.4); color: var(--orange); background: var(--orange-dim); }
.pill.active { background: var(--orange); border-color: var(--orange); color: var(--white); box-shadow: 0 0 14px var(--orange-glow); }

/* ── Convert Button ───────────────────────────────────────────────────────── */
.action-row { display: flex; justify-content: center; }
.btn-convert {
  background: linear-gradient(135deg, var(--orange) 0%, #FF3D00 100%);
  border: none; border-radius: var(--radius-pill); color: var(--white);
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700;
  padding: 14px 44px; transition: all var(--transition);
  box-shadow: 0 4px 24px var(--orange-glow);
}
.btn-convert:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,107,0,0.45); }
.btn-convert:not(:disabled):active { transform: translateY(0); }
.btn-convert:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.btn-icon { width: 18px; height: 18px; }

/* ── Progress ─────────────────────────────────────────────────────────────── */
.progress-section { display: flex; flex-direction: column; gap: 16px; }

.phase-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity var(--transition);
}
.phase-wrap.dimmed { opacity: 0.4; }

.phase-header { display: flex; align-items: center; justify-content: space-between; }
.phase-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-2);
}
.phase-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.phase-dot.load    { background: var(--neon);    box-shadow: 0 0 6px var(--neon-glow); }
.phase-dot.convert { background: var(--neon-ok); box-shadow: 0 0 6px var(--neon-ok-glow); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.phase-dot.active { animation: pulse 1.1s ease-in-out infinite; }

.phase-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--text-1);
}

.phase-note {
  font-size: 11px; color: var(--text-3); font-style: italic;
}

.progress-track {
  height: 6px; background: var(--border);
  border-radius: 99px; overflow: hidden; position: relative;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.load-fill {
  background: linear-gradient(90deg, var(--neon), #00CCFF);
  box-shadow: 0 0 10px var(--neon-glow);
}
.convert-fill {
  background: linear-gradient(90deg, var(--neon-ok), #00CCAA);
  box-shadow: 0 0 10px var(--neon-ok-glow);
}

.progress-scan {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  border-radius: 99px;
  animation: scan 1.5s ease-in-out infinite;
}
@keyframes scan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

.phase-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-family: 'Space Grotesk', sans-serif;
}

.progress-status {
  text-align: center; font-size: 13px; color: var(--text-2); font-style: italic;
}

/* ── Download ─────────────────────────────────────────────────────────────── */
.download-section {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 0;
}
.download-icon svg { width: 56px; height: 56px; animation: float 2.5s ease-in-out infinite; }
.download-info { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.download-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--neon-ok);
}
.download-sub { font-size: 12px; color: var(--text-3); }
.download-filename { font-size: 13px; color: var(--text-2); word-break: break-all; }
.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #00CCAA, var(--neon-ok));
  border: none; border-radius: var(--radius-pill);
  color: #001a10;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700;
  padding: 13px 36px; cursor: pointer; text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 24px var(--neon-ok-glow);
}
.btn-download svg { width: 18px; height: 18px; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,255,136,0.4); }
.btn-new {
  background: none; border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  color: var(--text-2); cursor: pointer; font-family: 'Inter', sans-serif; font-size: 13px;
  padding: 9px 22px; transition: all var(--transition);
}
.btn-new:hover { color: var(--text-1); background: var(--card-2); }

/* ── Error ────────────────────────────────────────────────────────────────── */
.error-section {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0;
}
.error-icon { width: 48px; height: 48px; }
.error-msg { font-size: 14px; color: var(--error); text-align: center; max-width: 400px; }
.btn-retry {
  background: rgba(255,68,85,0.1); border: 1px solid rgba(255,68,85,0.3);
  border-radius: var(--radius-pill); color: var(--error); cursor: pointer;
  font-size: 13px; font-weight: 600; padding: 9px 22px; transition: all var(--transition);
}
.btn-retry:hover { background: rgba(255,68,85,0.2); }

/* ── How it works ─────────────────────────────────────────────────────────── */
.how-it-works {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 36px 0 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
  gap: 8px;
}
.how-step {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 160px;
}
.how-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange-dim);
  border: 1px solid rgba(255,107,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--orange);
  flex-shrink: 0;
}
.how-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.how-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.how-text span {
  font-size: 12px;
  color: var(--text-3);
}
.how-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  padding: 0 4px;
}
.how-arrow svg { width: 16px; height: 16px; }

/* ── Features row ─────────────────────────────────────────────────────────── */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 20px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}
.feature svg { width: 14px; height: 14px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .page-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    padding: 0 20px;
  }
  .sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    justify-content: center;
    gap: 16px;
    padding: 0 0 16px;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar-left  { order: 2; }
  .main          { order: 1; padding-bottom: 12px; }
  .sidebar-right { order: 3; }
  .banner-link   { flex-shrink: 0; max-width: 280px; }
  .banner-link:hover { transform: none; }
  .how-it-works  { gap: 12px; }
}

@media (max-width: 560px) {
  .card { padding: 20px 16px; gap: 22px; }
  .drop-zone { padding: 32px 16px; }
  .btn-convert { width: 100%; justify-content: center; }
  .privacy-pill { display: none; }
  .how-arrow { display: none; }
  .how-it-works { flex-direction: column; align-items: flex-start; gap: 16px; }
  .how-step { min-width: unset; width: 100%; }
}
