.wrapper {
  background-color: var(--neutral);
  min-height: 100vh;
  padding-bottom: 100px;
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 4rem;
}

.red {
  color: var(--primary);
  font-style: italic;
}

/* HEADER */
.header {
  padding: 180px 0 80px;
  background-color: var(--neutral);
}

.label {
  font-size: 0.75rem;
  font-weight: 900;
  color: #555;
  letter-spacing: 0.2rem;
  display: block;
  margin-bottom: 1.5rem;
}

.title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
  text-transform: uppercase;
}

.warningBox {
  background-color: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.3);
  padding: 2.5rem;
  border-radius: 8px;
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
}

.warnIcon {
  color: var(--primary);
  flex-shrink: 0;
}

.warnText h4 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.warnText p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
}

/* OVERVIEW */
.overview {
  padding: 0 0 80px;
}

.overviewBox {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  overflow: hidden;
}

.overviewContent {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overviewContent h3 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.overviewContent p {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.componentsList {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.componentsList li {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 900;
  color: #fff;
}

.overviewImageWrapper {
  position: relative;
  min-height: 400px;
  background-color: #111;
  border-left: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.3s;
}
.overviewImageWrapper:hover {
  opacity: 0.8;
}

.imagePlaceholder {
  position: absolute;
  inset: 0;
}

/* STEPS GRID */
.steps {
  padding: 40px 0;
}

.stepsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.stepCard {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stepImageWrapper {
  position: relative;
  height: 250px;
  background-color: #000;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.3s;
}
.stepImageWrapper:hover {
  opacity: 0.8;
}

.stepNumber {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(255,0,0,0.3);
  z-index: 10;
}

.stepContent {
  padding: 2rem;
  flex-grow: 1;
}

.stepContent h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.stepContent p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
}

/* FIRST UPLOAD */
.firstUpload {
  padding: 80px 0;
}

.uploadBox {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.uploadText h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.uploadText p {
  color: #888;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.instructionList {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.instItem {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.instItem span {
  font-size: 0.9rem;
  color: #ddd;
}

.instItem strong {
  color: #fff;
}

.uploadImageWrapper {
  position: relative;
  height: 350px;
  background-color: #000;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.3s;
}
.uploadImageWrapper:hover {
  opacity: 0.8;
}

/* MODAL OVERLAY */
.modalOverlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  padding: 2rem;
}

.modalContent {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  border-radius: 8px;
  overflow: hidden;
}

.closeBtn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s, color 0.2s;
}

.closeBtn:hover {
  transform: scale(1.1);
  color: var(--primary);
}

@media (max-width: 1024px) {
  .overviewBox, .uploadBox {
    grid-template-columns: 1fr;
  }
  .overviewImageWrapper {
    min-height: 300px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}
