:root {
  --bg: #03070f;
  --bg-2: #060c18;
  --panel: rgba(10, 18, 32, 0.85);
  --panel-border: rgba(35, 130, 230, 0.28);
  --blue: #1a8cff;
  --blue-bright: #36a6ff;
  --blue-deep: #0a4fb0;
  --gold: #f7a81b;
  --gold-bright: #ffc24d;
  --green: #4aaf6c;
  --text: #eaf2ff;
  --muted: #8ba3c7;
  --error: #ff5a5a;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: #03070f url("assets/background.png") no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* STAGE / centered layout */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 18px;
}

.panel {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel__logo {
  width: clamp(150px, 28vw, 220px);
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}

/* SECTIONS */
.section-title {
  text-align: center;
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(24px, 5vw, 34px);
  letter-spacing: 1px;
  margin: 0 0 18px;
}
.section-title span { color: var(--green); }

/* HOW TO trigger */
.howto-trigger {
  display: block;
  width: 100%;
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(26, 140, 255, 0.1);
  color: var(--text);
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: clamp(14px, 3vw, 16px);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.howto-trigger[hidden] { display: none; }
.howto-trigger span { color: var(--green); }
.howto-trigger:hover {
  background: rgba(26, 140, 255, 0.18);
  border-color: var(--blue-bright);
}

.modal__body .howto__steps li {
  background: rgba(3, 9, 18, 0.6);
}

/* HOW TO steps */
.howto__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.howto__steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}
.howto__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: "Anton", sans-serif;
  font-style: italic;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue-deep));
  color: #fff;
  font-size: 15px;
}
.howto__steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.howto__steps strong { color: var(--text); }
.kbd {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(26, 140, 255, 0.16);
  border: 1px solid var(--panel-border);
  color: var(--blue-bright);
  font-weight: 600;
  white-space: nowrap;
}

/* FORM */
.form-card {
  width: 100%;
  padding: 26px;
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.field { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label {
  display: block;
  margin-bottom: 7px;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 13px;
  color: #cbd9f0;
}

input, select {
  width: 100%;
  padding: 13px 14px;
  background: rgba(3, 9, 18, 0.7);
  border: 1px solid rgba(35, 130, 230, 0.3);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #5d748f; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2336a6ff' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
select option { background: #060c18; color: var(--text); }

input:focus, select:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(26, 140, 255, 0.2);
}

.input-suffix { position: relative; }
.input-suffix .suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Anton", sans-serif;
  font-style: italic;
  color: var(--green);
  font-size: 18px;
  pointer-events: none;
}
.input-suffix input { padding-right: 34px; }

input.invalid, select.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.15);
}

.error {
  display: block;
  min-height: 0;
  color: var(--error);
  font-size: 12px;
  margin-top: 5px;
}

.terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
  cursor: pointer;
}
.terms input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue-bright);
  flex: 0 0 auto;
}
.terms a { color: var(--blue-bright); }

.terms__link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--blue-bright);
  text-decoration: underline;
  cursor: pointer;
}
.terms__link:hover { color: var(--gold-bright); }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 15, 0.82);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  background: rgba(6, 12, 24, 0.97);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--panel-border);
  flex-shrink: 0;
}

.modal__header h2 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(16px, 3.5vw, 22px);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.modal__close {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(26, 140, 255, 0.12);
  color: var(--blue-bright);
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.modal__close:hover {
  background: rgba(26, 140, 255, 0.22);
  border-color: var(--blue-bright);
}

.modal__body {
  padding: 20px 22px 28px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.modal__body section { margin-bottom: 20px; }
.modal__body section:last-child { margin-bottom: 0; }

.modal__body h3 {
  margin: 0 0 10px;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 15px;
  color: var(--text);
}

.modal__body p {
  margin: 0 0 8px;
}
.modal__body p:last-child { margin-bottom: 0; }

.modal__body strong { color: var(--text); font-weight: 600; }
.modal__dialog--compact { max-width: 520px; max-height: min(80vh, 520px); }

.modal__body a { color: var(--blue-bright); }

.btn-submit {
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 18px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 10px 26px rgba(74, 175, 108, 0.3);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.btn-submit:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.success {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(26, 140, 255, 0.12);
  border: 1px solid var(--blue-bright);
  text-align: center;
}
.success strong {
  display: block;
  font-family: "Anton", sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: 20px;
  color: var(--blue-bright);
  margin-bottom: 4px;
}
.success p { margin: 0; color: var(--muted); }

@media (max-width: 560px) {
  body {
    background-image: url("assets/mobile.png");
    background-attachment: scroll;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .stage { padding: 28px 14px; }
}
