:root {
  --bg: #0d0f12;
  --bg-soft: #12151a;
  --card: #161a20;
  --card-2: #1a1f27;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f2f2f2;
  --muted: #9aa3af;
  --primary: #8fb7ff;
  --primary-soft: rgba(143, 183, 255, 0.12);
  --success: #8bd3a8;
  --error: #ff9b9b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
  text-transform: lowercase;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.layout {
  width: min(1440px, calc(100% - 40px));
  margin: 24px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.page {
  min-height: auto;
  padding: 0;
  display: block;
}

.card {
  width: 100%;
  max-width: none;
  background:
    radial-gradient(circle at top, rgba(143, 183, 255, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
}

.how-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.how-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.how-subtitle {
  margin: 0;
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.how-step {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  min-height: 240px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.how-step:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 183, 255, 0.24);
  background: linear-gradient(180deg, rgba(143, 183, 255, 0.05), rgba(255,255,255,0.015));
}

.how-step-image {
  width: 100%;
  height: 100%;
  min-height: 190px;
  border-radius: 18px;
  overflow: hidden;
  background: #0f1318;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.how-step-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.how-step-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-number {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.how-step-content h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.how-step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 48ch;
}

img {
  max-width: 100%;
  display: block;
}

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

.divBy {
  width: min(860px, calc(100% - 40px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.byJoao {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.linkJoao {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.linkJoao:hover {
  border-color: var(--border-strong);
  opacity: 0.9;
}

.lang-select {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  cursor: pointer;
}


h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.subtitle {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 620px;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.drop-zone {
  position: relative;
  display: block;
  border: 1px dashed var(--border-strong);
  background: var(--bg-soft);
  border-radius: 22px;
  padding: 42px 24px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.drop-zone:hover {
  border-color: rgba(143, 183, 255, 0.35);
  background: #141820;
  transform: translateY(-1px);
}

.drop-zone.dragover {
  border-color: var(--primary);
  background: #141a23;
}

.drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.upload-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  font-size: 1.2rem;
  color: var(--muted);
}

.drop-content h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.drop-content p {
  margin: 0;
  color: var(--muted);
}

.file-hint {
  display: inline-flex;
  margin-top: 6px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.selectors-box,
.preview-container,
.progress-section {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.selectors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.selectors-header h3,
.preview-container h3,
.sub-options h4 {
  margin: 0;
  letter-spacing: -0.02em;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.inline-check input,
.check-card input {
  accent-color: var(--primary);
  width: 24px;
  height: 24px;
  cursor: pointer;
}

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

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

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 54px;
}

.check-card:hover {
  border-color: rgba(143, 183, 255, 0.32);
  background: rgba(255, 255, 255, 0.015);
}

.check-card span {
  font-weight: 500;
}

.sub-options {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.sub-options h4 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.preview-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-box {
  background: #111419;
  border: 1px solid var(--border);
  border-radius: 18px;
  min-height: 220px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-box img {
  max-height: 320px;
  object-fit: contain;
  border-radius: 14px;
}

.file-meta {
  color: var(--muted);
  font-size: 0.95rem;
  word-break: break-word;
}

.progress-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.25s ease;
}

.status-message {
  min-height: 24px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.status-message.info {
  color: var(--muted);
}

.status-message.success {
  color: var(--success);
}

.status-message.error {
  color: var(--error);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: var(--text);
  color: #0d0f12;
}

.primary-btn:hover {
  opacity: 0.94;
}

.secondary-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.secondary-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.02);
}

.hidden {
  display: none !important;
}


@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 1fr;
    width: min(980px, calc(100% - 32px));
  }

  .how-card {
    order: -1;
  }
}

@media (max-width: 768px) {
  .divBy {
    width: calc(100% - 32px);
    margin: 16px auto 0;
    flex-wrap: wrap;
  }

  .card {
    padding: 24px;
    border-radius: 20px;
  }

  .how-step {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
  }

  .how-step-image {
    min-height: 220px;
  }

  .checkbox-grid,
  .checkbox-grid.small {
    grid-template-columns: 1fr;
  }

  .selectors-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .drop-zone {
    padding: 30px 18px;
  }

  .how-step-content h3 {
    font-size: 1.3rem;
  }

  .how-step-content p {
    font-size: 0.96rem;
  }
}

@media (max-width: 480px) {
  .layout {
    width: calc(100% - 20px);
    margin: 16px auto 28px;
  }

  .card {
    padding: 18px;
  }

  h1,
  .section-title {
    font-size: 1.95rem;
  }

  .subtitle,
  .how-subtitle {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .upload-icon {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }

  .drop-content h2 {
    font-size: 1.05rem;
  }

  .file-hint {
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.4;
  }

  .how-step-image {
    min-height: 180px;
  }

  .how-step-content h3 {
    font-size: 1.12rem;
  }

  .how-step-content p {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}