/* Home page: features, how it works, license, footer, toasts and popups. */

/* ── FEATURES ── */
.section { max-width: 1000px; margin: 0 auto; padding: 40px 24px; }
.section-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 48px; line-height: 1.1; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card); border: 2.5px solid var(--black);
  border-radius: 10px; padding: 24px;
  box-shadow: 4px 4px 0 var(--black);
  transition: transform 0.12s, box-shadow 0.12s;
}
.feature-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--lime);
  border: 2px solid var(--black);
  box-shadow: 2.5px 2.5px 0 var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--black);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.feature-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 40px; }
.step {
  background: var(--card); border: 2.5px solid var(--black);
  border-radius: 10px; padding: 24px; box-shadow: 4px 4px 0 var(--black);
  position: relative;
}
.step-num {
  width: 36px; height: 36px; background: var(--lime);
  border: 2.5px solid var(--black); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; margin-bottom: 16px;
  box-shadow: 2px 2px 0 var(--black);
}
.step h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── LICENSE ── */
.license-section {
  background: var(--black); color: var(--white);
  border-radius: 16px; border: 3px solid var(--black);
  box-shadow: 8px 8px 0 var(--lime);
  padding: 60px 48px; margin: 40px 24px;
  max-width: 960px; margin: 40px auto;
}
.license-section h2 { font-size: 36px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 14px; }
.license-section p { color: #9ca3af; font-size: 16px; line-height: 1.6; margin-bottom: 36px; }
.license-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.license-step { border: 1.5px solid #374151; border-radius: 10px; padding: 20px; background: #111; }
.license-step .num { color: var(--lime); font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.license-step h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.license-step p { font-size: 13px; color: #9ca3af; margin-bottom: 0; }
.btn-license {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--lime); color: var(--black);
  border: 3px solid var(--lime); border-radius: 10px;
  padding: 16px 32px; font-size: 16px; font-weight: 800;
  cursor: pointer; text-decoration: none;
  box-shadow: 4px 4px 0 var(--lime-dark); transition: all 0.08s;
}
.btn-license:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--lime-dark); }

/* ── FOOTER ── */
footer {
  border-top: 2.5px solid var(--black); background: var(--card);
  padding: 32px 100px 32px 40px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer .f-logo { font-size: 16px; font-weight: 900; }
footer p { font-size: 13px; color: var(--muted); }
footer a { color: var(--black); font-weight: 600; }

@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-account { gap: 12px; margin-left: 0; }
  .nav-account .btn-nav { padding: 7px 12px; font-size: 12px; }
  .license-section { padding: 36px 24px; margin: 20px 16px; }
}

/* ── TOAST NOTIFICATIONS ── */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 450px;
  background: var(--white);
  color: var(--black);
  border: 2.5px solid var(--black);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--black);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s;
  position: relative;
}
.toast.toast-success {
  background: #f0fdf4;
  border-color: var(--black);
}
.toast.toast-error {
  background: #fef2f2;
  border-color: var(--black);
}
.toast.toast-warning {
  background: #fffbeb;
  border-color: var(--black);
}
.toast-icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}
.toast-content {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  flex: 1;
}
.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  padding: 0 4px;
  line-height: 1;
  margin-left: 8px;
}
.toast-close:hover {
  color: var(--black);
}
@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes toastFadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ── MODAL DIALOG ── */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1; pointer-events: auto;
}
.modal-card {
  background: var(--card);
  border: 3.5px solid var(--black);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--black);
  width: 90%; max-width: 520px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}
.modal-header {
  background: var(--lime);
  border-bottom: 3.5px solid var(--black);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 18px; font-weight: 900; }
.modal-close {
  background: none; border: none; font-size: 28px; font-weight: 800;
  cursor: pointer; line-height: 1; color: var(--black);
}
.modal-close:hover { opacity: 0.7; }
.modal-body { padding: 24px; }
.modal-download-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--lime); color: var(--black);
  border: 3px solid var(--black); border-radius: 10px;
  padding: 16px 24px; font-size: 16px; font-weight: 800;
  text-decoration: none; text-align: center;
  box-shadow: 4px 4px 0 var(--black);
  margin-bottom: 24px; transition: all 0.08s;
}
.modal-download-btn:hover {
  transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black);
}
.modal-steps {
  display: flex; flex-direction: column; gap: 16px;
  border-top: 1.5px dashed var(--dot); padding-top: 20px;
}
.modal-step-item {
  display: flex; gap: 14px; align-items: flex-start;
  text-align: left;
}
.modal-step-item .step-badge {
  width: 24px; height: 24px; background: var(--black); color: var(--white);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 2px;
}
.modal-step-item strong { font-size: 14px; font-weight: 700; color: var(--black); display: block; margin-bottom: 2px; }
.modal-step-item p { font-size: 13px; color: var(--muted); line-height: 1.4; margin-bottom: 0; }
.modal-step-item code { background: #f3f3e8; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 12px; font-weight: 600; color: var(--black); }
