/* Intro Rust: coloque o arquivo em /fonts/IntroRust.woff2 (ou .otf/.ttf).
   Enquanto isso, Black Ops One cobre o caráter industrial da marca. */
@font-face {
  font-family: "Intro Rust";
  src:
    local("Intro Rust"),
    local("IntroRust"),
    url("/fonts/IntroRust.woff2") format("woff2"),
    url("/fonts/IntroRust.woff") format("woff"),
    url("/fonts/IntroRust.otf") format("opentype"),
    url("/fonts/IntroRust.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-elevated: rgba(28, 28, 30, 0.72);
  --panel: #121214;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f5f5;
  --text-muted: #a1a1aa;
  --brand: #c81e1e;
  --brand-deep: #9b1212;
  --brand-soft: rgba(200, 30, 30, 0.18);
  --danger: #ff6b6b;
  --radius-xl: 28px;
  --radius: 16px;
  --font-display: "Intro Rust", "Black Ops One", Impact, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% 40%, rgba(200, 30, 30, 0.16), transparent 60%),
    radial-gradient(700px 480px at 80% 10%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 2rem 0;
}

.hero-visual {
  min-height: min(78vh, 720px);
}

.visual-card {
  position: relative;
  height: 100%;
  min-height: min(78vh, 720px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
}

.visual-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
}

.visual-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}

.visual-logo {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: clamp(88px, 18%, 120px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.visual-caption {
  position: absolute;
  left: 1.35rem;
  bottom: 1.25rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 34rem;
}

.brand-badge {
  width: 96px;
  height: auto;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 10px 24px rgba(200, 30, 30, 0.25));
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: #fff;
}

.lead {
  margin: 0.15rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 500;
}

.btn-glass {
  appearance: none;
  width: min(100%, 420px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.95rem 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn-glass:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 30, 30, 0.55);
  background: linear-gradient(180deg, rgba(200, 30, 30, 0.22), rgba(255, 255, 255, 0.04));
}

.btn-glass-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
  transition: width 0.28s ease;
}

.step-indicator {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-brand {
  margin: 0 0 0.85rem;
}

.screen-brand img {
  width: 72px;
  height: auto;
}

.screen h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-weight: 400;
  padding-right: 2rem;
}

.muted {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 500;
}

.notice {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
}

.notice p {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
  color: #f3f3f3;
}

.form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* evita zoom automático no iOS */
  outline: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  border-radius: 18px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(200, 30, 30, 0.65);
  box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.16);
}

.field select {
  cursor: pointer;
  color-scheme: light;
  background: #ffffff;
  color: #111111;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Lista nativa: texto preto (necessário no Windows/Chrome) */
.field select option,
.field select optgroup {
  color: #111111 !important;
  background-color: #ffffff !important;
  -webkit-text-fill-color: #111111;
}

select#componente,
select#componente option {
  color: #111111;
  background: #ffffff;
}

.field select:focus {
  border-color: rgba(200, 30, 30, 0.75);
  box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.16);
}

.field input[type="file"] {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 18px;
}

.media-block {
  display: grid;
  gap: 0.75rem;
}

.media-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.camera-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px dashed rgba(200, 30, 30, 0.55);
  background: rgba(200, 30, 30, 0.1);
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.camera-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  background: rgba(200, 30, 30, 0.16);
}

.camera-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.camera-copy {
  display: grid;
  gap: 0.15rem;
}

.camera-copy strong {
  font-size: 0.95rem;
}

.camera-copy em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.field-gallery {
  margin-top: 0.15rem;
}

.media-selected {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3ecf8e;
}

.media-selected[hidden] {
  display: none;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.field-error[hidden] {
  display: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.equipment-card {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.equipment-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 30, 30, 0.4);
}

.equipment-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.equipment-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(200, 30, 30, 0.28);
}

.equipment-visual {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
}

.equipment-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equipment-meta {
  display: grid;
  gap: 0.15rem;
  padding: 0 0.15rem 0.2rem;
}

.equipment-meta strong {
  font-size: 0.95rem;
}

.equipment-meta em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-card {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid var(--line);
}

.spinner {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

.loading-card p {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    width: min(560px, calc(100% - 1.75rem));
    min-height: 100dvh;
    align-content: center;
    justify-items: stretch;
    gap: 0;
    padding:
      max(1.5rem, env(safe-area-inset-top))
      0
      max(1.5rem, env(safe-area-inset-bottom));
  }

  /* No celular/tablet: sem imagem lateral — só logo, textos e botão */
  .hero-visual {
    display: none;
  }

  .hero-copy {
    max-width: none;
    width: 100%;
    gap: 0.75rem;
  }

  .brand-badge {
    width: 88px;
    margin-bottom: 0.15rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
  }

  .lead {
    margin: 0.1rem 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .btn-glass {
    width: 100%;
    margin-top: 0.35rem;
  }
}

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .modal {
    width: 100%;
    max-height: none;
    min-height: 100dvh;
    border-radius: 0;
    padding:
      max(1.25rem, env(safe-area-inset-top))
      1rem
      max(1.1rem, env(safe-area-inset-bottom));
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column-reverse;
  }

  .actions .btn,
  .btn-glass {
    width: 100%;
    min-height: 48px;
  }

  .camera-card {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
