:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f9;
  --text: #0f172a;
  --muted: #475569;
  --line: #d7e2ef;
  --brand: #0b3a6f;
  --brand-2: #10539b;
  --brand-soft: #dbeafe;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, #e9f2ff 0%, transparent 32%),
    radial-gradient(circle at 95% 10%, #e6eef8 0%, transparent 28%),
    var(--bg);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.brand-text {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero {
  position: relative;
  padding: 92px 0 68px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0b172c;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 18, 35, 0.58), rgba(8, 18, 35, 0.58));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #f8fbff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.1;
}

.lead {
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #dbe7f7;
  max-width: 68ch;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
}

.btn:hover {
  opacity: 0.95;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

.btn-small {
  padding: 9px 13px;
  font-size: 0.88rem;
}

.btn i {
  font-size: 0.95rem;
}

.section {
  padding: 62px 0;
}

.section h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
}

.section-text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cards,
.split {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.card h3,
.panel h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.card p,
.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-action {
  margin-top: 14px;
}

.card-action a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.card-action a:hover {
  text-decoration: underline;
}

.faq-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--brand-2);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid #edf3fa;
}

.section-soft {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta {
  padding: 34px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.cta h2 {
  max-width: 22ch;
}

.cta p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 66ch;
  line-height: 1.7;
}

.site-footer {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-wrap p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.form-wrap {
  max-width: 860px;
}

.form-wrap h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.apply-form {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
}

.discord-link-card {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.discord-link-card p {
  margin: 0;
  color: var(--text);
}

.step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.step-dot.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.form-step {
  display: none;
  will-change: transform, opacity;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.label-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: -2px;
  color: var(--brand-2);
  cursor: help;
}

.info-tip i {
  font-size: 0.9rem;
}

.tip-text {
  position: absolute;
  left: 20px;
  top: -8px;
  width: min(300px, 70vw);
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #e5efff;
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.3);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 8;
}

.info-tip:hover .tip-text,
.info-tip:focus-within .tip-text {
  opacity: 1;
  transform: translateY(0);
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand-2);
}

.apply-form a {
  color: var(--brand);
  font-weight: 700;
}

.toggle-field {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
}

.toggle-field p {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.toggle-row {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
  gap: 3px;
}

.toggle-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-row label {
  margin: 0;
  min-width: 68px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.toggle-row input[type="radio"]:checked + label {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.group-request-box {
  border: 1px dashed #a8c3e6;
  border-radius: 12px;
  padding: 14px;
  background: #f3f8ff;
}

.group-request-box p {
  margin: 0 0 8px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 600;
}

.check-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.span-2 {
  grid-column: span 2;
}

@media (max-width: 920px) {
  .cards,
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .section {
    padding: 34px 0;
  }

  .form-wrap {
    width: 100%;
  }

  .apply-form {
    padding: 16px;
    border-radius: 12px;
  }

  .discord-link-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-dot {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .step-actions {
    flex-direction: column;
  }

  .step-actions .btn {
    width: 100%;
  }

  .toggle-row {
    width: 100%;
    justify-content: space-between;
  }

  .toggle-row label {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
  }

  .group-request-box {
    padding: 12px;
  }

  .tip-text {
    left: 0;
    top: 24px;
    width: min(290px, 84vw);
  }

  .hero {
    padding: 64px 0 44px;
  }

  .cards,
  .split {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 24px;
  }
}
