/* ============================================================
   ImageConvert — WeTransfer-inspired theme
   Font: Inter Tight · Full-bleed hero · Bottom-left dock
   ============================================================ */

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

:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F1EE;
  --fg: #1A1A1A;
  --fg-muted: #777;
  --accent: #1A1A1A;
  --border: #E2E0DA;
  --radius: 10px;
  --radius-sm: 6px;
  --dock-bg: rgba(24, 24, 24, 0.88);
  --dock-fg: #fff;
  --dock-muted: rgba(255,255,255,0.55);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}


/* ============================================================
   NAV — overlay on hero, transparent
   ============================================================ */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
}

.nav-inner {
  max-width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.nav-logo svg { color: #fff; }

.nav-links { display: flex; gap: 6px; }

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.15s;
}

.nav-link:hover { color: #fff; }


/* ============================================================
   HERO — full-bleed background image + converter dock
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.25) 100%
  );
  pointer-events: none;
}


/* ============================================================
   DOCK — bottom-left converter panel
   ============================================================ */
.dock {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 10;
  background: var(--dock-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 14px;
  padding: 28px 30px;
  width: 340px;
  max-width: calc(100vw - 32px);
  color: var(--dock-fg);
}

.dock-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.dock-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  align-items: center;
}

.dock-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dock-muted);
}

.dock-sep {
  color: rgba(255,255,255,0.25);
  font-size: 14px;
}

/* Drop zone */
.dock-drop {
  position: relative;
  border: 1.5px dashed rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dock-drop:hover,
.dock-drop.drag-over {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

.dock-drop.has-file {
  display: none;
}

.dock-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dock-drop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  font-size: 18px;
  font-weight: 300;
  color: var(--dock-fg);
  flex-shrink: 0;
}

.dock-drop-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dock-muted);
}

/* File preview */
.dock-file {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}

.dock-file.visible { display: flex; }

.dock-file-info { flex: 1; min-width: 0; }

.dock-file-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-file-size {
  display: block;
  font-size: 11px;
  color: var(--dock-muted);
  margin-top: 1px;
}

.dock-file-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dock-muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.dock-file-remove:hover { color: #fff; }

/* Format selection */
.dock-output {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.dock-output.visible { display: flex; }

.dock-output-label {
  font-size: 12px;
  color: var(--dock-muted);
  white-space: nowrap;
}

.dock-output-options { display: flex; gap: 6px; }

.dock-fmt {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  background: transparent;
  color: var(--dock-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}

.dock-fmt:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.dock-fmt.selected {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* Error */
.dock-error {
  display: none;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(220, 38, 38, 0.15);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 13px;
}

.dock-error.visible { display: block; }

/* Convert button */
.dock-btn {
  display: none;
  width: 100%;
  padding: 12px;
  margin-top: 14px;
  background: #fff;
  color: #1A1A1A;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}

.dock-btn.visible { display: block; }

.dock-btn:hover:not(:disabled) { background: #f0f0f0; }
.dock-btn:active:not(:disabled) { transform: scale(0.99); }
.dock-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Progress */
.dock-progress {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--dock-muted);
}

.dock-progress.visible { display: flex; }

.dock-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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


/* ============================================================
   BELOW THE FOLD — shared section styles
   ============================================================ */
.section {
  padding: 100px 40px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-sub {
  margin-top: 14px;
  font-size: 17px;
  color: var(--fg-muted);
}


/* ============================================================
   FORMATS SECTION
   ============================================================ */
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.format-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.format-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.format-icon {
  margin-bottom: 16px;
  color: var(--fg-muted);
}

.format-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.format-card p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
}


/* ============================================================
   PRIVACY SECTION
   ============================================================ */
.privacy {
  background: var(--bg-alt);
}

.privacy .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--fg);
}

.privacy-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-top: 16px;
}

.privacy-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.privacy-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.privacy-step span {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--bg);
}

.step-circle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step-line {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-bottom: 28px;
}


/* ============================================================
   MANIFESTO SECTION
   ============================================================ */
.manifesto-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 18px;
}

.manifesto-body {
  margin-top: 20px;
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
}


/* ============================================================
   CLOSING SECTION
   ============================================================ */
.closing {
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.closing-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--fg-muted);
}

.closing-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s;
}

.closing-cta:hover { opacity: 0.85; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}

.footer-copy {
  font-size: 13px;
  color: var(--fg-muted);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy .section-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .hero { min-height: 100svh; }

  .nav { padding: 0 16px; }

  .dock {
    bottom: 20px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    padding: 22px 20px;
  }

  .section { padding: 64px 20px; }

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

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
