:root{
  --black: #030712;
  --navy-950: #050b18;
  --navy-900: #0a1730;
  --navy-800: #0d2050;
  --blue-dark: #0b2f6b;
  --blue-mid: #1e5fd6;
  --blue-light: #4fa3ff;
  --blue-pale: #bfe0ff;
  --white: #f6f9ff;
  --white-dim: rgba(246,249,255,0.72);
  --white-faint: rgba(246,249,255,0.45);

  --gradient-main: linear-gradient(135deg, var(--black) 0%, var(--blue-dark) 38%, var(--blue-mid) 72%, var(--blue-light) 100%);
  --gradient-soft: linear-gradient(180deg, rgba(10,23,48,0.0) 0%, rgba(5,11,24,0.92) 100%);
  --gradient-card: linear-gradient(155deg, rgba(30,95,214,0.16) 0%, rgba(5,11,24,0.55) 100%);
  --gradient-accent-text: linear-gradient(90deg, var(--blue-light) 0%, var(--blue-pale) 100%);

  --border-soft: rgba(191,224,255,0.14);
  --border-strong: rgba(191,224,255,0.30);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 60px rgba(30,95,214,0.35);
  --shadow-card: 0 20px 50px rgba(3,7,18,0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font);
  background: var(--navy-950);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before{
  content:"";
  position: fixed;
  inset:0;
  z-index:-2;
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: bgShift 22s ease-in-out infinite;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 15% 20%, rgba(79,163,255,0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(11,47,107,0.35), transparent 50%);
  pointer-events:none;
}

@keyframes bgShift{
  0%{ background-position: 0% 0%; }
  50%{ background-position: 100% 100%; }
  100%{ background-position: 0% 0%; }
}

a{ color: inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }

::selection{ background: var(--blue-light); color: var(--black); }


::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background: transparent; }
::-webkit-scrollbar-thumb{ background: var(--blue-dark); border-radius: 10px; }

.navbar{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 5%;
  background: rgba(5,11,24,0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  transition: background .3s var(--ease), padding .3s var(--ease);
}

.nav-brand{
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
}
.nav-brand img{
  width:38px; height:38px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--border-strong), 0 6px 20px rgba(30,95,214,0.45);
}
.nav-brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.nav-brand-text b{
  font-size: 15px;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.nav-brand-text span{
  font-size: 11px;
  color: var(--white-faint);
  letter-spacing: 1.5px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:6px;
}
.nav-link{
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white-dim);
  transition: color .25s var(--ease), background .25s var(--ease);
  border:1px solid transparent;
}
.nav-link:hover{ color: var(--white); background: rgba(191,224,255,0.06); }
.nav-link.active{
  color: var(--white);
  background: rgba(79,163,255,0.14);
  border-color: var(--border-strong);
}

.nav-user{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav-user img{
  width:32px; height:32px;
  border-radius:50%;
  border: 2px solid var(--blue-light);
}
.nav-user-name{ font-size:13px; font-weight:600; }

.hamburger{
  display:none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(191,224,255,0.08);
  border: 1px solid var(--border-soft);
  align-items:center; justify-content:center;
  color: var(--white);
}

.btn-primary, .btn-discord, .btn-secondary, .btn-danger, .btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 15px 30px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), opacity .2s;
  white-space:nowrap;
}
.btn-primary{
  background: linear-gradient(120deg, var(--blue-mid), var(--blue-light));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(30,95,214,0.45);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 16px 40px rgba(30,95,214,0.6); }
.btn-primary:active{ transform: translateY(-1px); }
.btn-primary svg{ transition: transform .25s var(--ease); }
.btn-primary:hover svg{ transform: translateX(4px); }

.btn-secondary{
  background: rgba(191,224,255,0.08);
  color: var(--white);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover{ background: rgba(191,224,255,0.16); transform: translateY(-2px); }

.btn-ghost{
  background: transparent;
  color: var(--white-dim);
  border: 1px solid var(--border-soft);
  padding: 10px 18px;
  font-size: 13px;
}
.btn-ghost:hover{ color:var(--white); border-color: var(--border-strong); }

.btn-danger{
  background: linear-gradient(120deg, #7a1f2b, #b3324a);
  color: var(--white);
}
.btn-danger:hover{ transform: translateY(-2px); box-shadow: 0 12px 30px rgba(179,50,74,0.4); }

.btn-discord{
  background: #5865F2;
  color: #fff;
  box-shadow: 0 10px 30px rgba(88,101,242,0.45);
}
.btn-discord:hover{ transform: translateY(-3px); box-shadow: 0 16px 40px rgba(88,101,242,0.6); }

.btn-disabled, button:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.page{
  position: relative;
  overflow: hidden;
  display:none;
  min-height: 100vh;
  padding: 140px 5% 100px;
  opacity: 0;
  transform: translateY(16px);
}
.page.active{
  display:block;
  animation: pageIn .55s var(--ease) forwards;
}
@keyframes pageIn{
  from{ opacity:0; transform: translateY(16px); }
  to{ opacity:1; transform: translateY(0); }
}
.page-inner{
  max-width: 980px;
  margin: 0 auto;
}
.page-header{ text-align:center; margin-bottom: 56px; }
.page-eyebrow{
  display:inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue-pale);
  background: rgba(79,163,255,0.12);
  border: 1px solid var(--border-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.page-title{
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}
.page-title span{
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-desc{
  font-size: 16px;
  color: var(--white-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero{
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 140px 5% 80px;
  position: relative;
}
.hero-logo-row{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap:26px;
  margin-bottom: 32px;
  margin-top: -130px;
  animation: fadeUp .8s var(--ease) both;
  position: relative;
  z-index: 1;
}
.hero-logo{
  width:132px; height:132px;
  border-radius: 30px;
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-glow);
  animation: logoBreathe 6s ease-in-out infinite;
}
@keyframes logoBreathe{
  0%, 100%{ transform: scale(1); box-shadow: 0 0 0 1px var(--border-strong), 0 0 60px rgba(30,95,214,0.35); }
  50%{ transform: scale(1.035); box-shadow: 0 0 0 1px var(--border-strong), 0 0 85px rgba(79,163,255,0.5); }
}
.hero-title{
  font-size: clamp(38px, 7vw, 74px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.02;
  margin:0;
  animation: fadeUp .8s .05s var(--ease) both;
}
.hero-title .accent{
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub{
  margin: 22px auto 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--white-dim);
  animation: fadeUp .8s .1s var(--ease) both;
}
.hero-actions{
  margin-top: 40px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  justify-content:center;
  animation: fadeUp .8s .15s var(--ease) both;
}
.hero-scroll{
  position:absolute;
  bottom: 34px;
  left:50%;
  transform: translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  color: var(--white-faint);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob{
  0%,100%{ transform: translate(-50%,0); }
  50%{ transform: translate(-50%,8px); }
}
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(22px); }
  to{ opacity:1; transform: translateY(0); }
}

.hero-decor{
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.85;
  animation: decorBreathe 9s ease-in-out infinite;
}
.hero-decor-1{
  top: 8%;
  left: 4%;
  width: 260px;
  animation-delay: 0s;
}
.hero-decor-2{
  bottom: 25%;
  right: 5%;
  width: 300px;
  animation-delay: 2.5s;
}
.hero-decor-3{
  top: 5%;
  right: 8%;
  width: 280px;
  opacity: 0.7;
  animation-delay: 1.2s;
}
@keyframes decorBreathe{
  0%, 100%{ transform: translateY(0) scale(1); opacity: 0.65; }
  50%{ transform: translateY(-14px) scale(1.06); opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce){
  .hero-decor, .hero-logo{ animation: none; }
}
@media (max-width: 860px){
  .hero-decor{ display:none; }
}

.page-decor{
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  width: 260px;
  opacity: 0.7;
  animation: decorBreathe 9s ease-in-out infinite;
}
.page-decor.pos-top-left{ top: 6%; left: 3%; animation-delay: 0.4s; }
.page-decor.pos-top-right{ top: 8%; right: 4%; animation-delay: 1.6s; }
.page-decor.pos-bottom-left{ bottom: 6%; left: 4%; animation-delay: 2.2s; }
.page-decor.pos-bottom-right{ bottom: 8%; right: 3%; animation-delay: 0.9s; }
.page-inner{ position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce){
  .page-decor{ animation: none; }
}
@media (max-width: 860px){
  .page-decor{ display:none; }
}

.req-list{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.req-item{
  display:flex;
  gap:20px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  border: 1px solid var(--border-soft);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.req-item:hover{
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.req-item-center{
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 0 auto;
}
@media (max-width: 720px){
  .req-item-center{ max-width: none; }
}
.req-num{
  font-size: 26px;
  font-weight: 800;
  color: var(--blue-light);
  opacity: .8;
  min-width: 40px;
}
.req-body h3{
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.req-body p{
  margin:0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--white-dim);
}
.req-body strong{ color: var(--blue-pale); }

.req-notice{
  display:flex;
  gap: 16px;
  align-items:flex-start;
  margin-top: 26px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: rgba(79,163,255,0.08);
  border: 1px dashed var(--border-strong);
}
.req-notice-icon{ font-size: 22px; }
.req-notice p{ margin: 6px 0 0; color: var(--white-dim); font-size: 14px; line-height:1.6; }

.form-card{
  background: var(--gradient-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}
.form-locked{
  text-align:center;
  padding: 60px 20px;
}
.form-locked img{
  width:54px; opacity:.85; margin-bottom:22px;
}
.form-locked h3{ font-size: 22px; margin: 0 0 10px; }
.form-locked p{ color: var(--white-dim); margin: 0 0 28px; max-width:420px; margin-left:auto; margin-right:auto; line-height:1.6; }

.form-blocked{
  text-align:center;
  padding: 60px 20px;
}
.form-blocked .blocked-icon{
  font-size: 40px;
  margin-bottom: 20px;
}
.form-blocked h3{
  font-size: 22px;
  margin: 0 0 10px;
  color: #ff9a8d;
}
.form-blocked p{
  color: var(--white-dim);
  margin: 0 auto;
  max-width: 440px;
  line-height: 1.6;
  padding: 14px 20px;
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.4);
  border-radius: var(--radius-md);
}

.progress-track{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 40px;
}
.progress-seg{
  flex:1;
  height: 4px;
  border-radius: 4px;
  background: rgba(191,224,255,0.14);
  overflow:hidden;
}
.progress-seg i{
  display:block;
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-light));
  transition: width .5s var(--ease);
}

.field{
  margin-bottom: 26px;
}
.field label{
  display:block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-pale);
  margin-bottom: 9px;
  letter-spacing: .3px;
}
.field .hint{
  display:block;
  font-size: 12px;
  color: var(--white-faint);
  margin-top: 6px;
}
.field input,
.field textarea,
.field select{
  width:100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(5,11,24,0.55);
  border: 1px solid var(--border-soft);
  color: var(--white);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .25s var(--ease), background .25s var(--ease);
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus{
  outline: none;
  border-color: var(--blue-light);
  background: rgba(5,11,24,0.75);
}
.field textarea{ min-height: 110px; }

.star-rating{
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 3px;
}
.star-rating input{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.star-rating label{
  font-size: 26px;
  line-height: 1;
  color: var(--border-strong);
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
  user-select: none;
}
.star-rating label::before{ content: "★"; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label{
  color: var(--blue-light);
}
.star-rating input:focus-visible + label{
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (max-width: 480px){
  .star-rating label{ font-size: 20px; }
}


.choice-toggle{
  display: flex;
  gap: 10px;
}
.choice-toggle input{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.choice-toggle label{
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
  color: var(--white-dim);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all .15s ease;
}
.choice-toggle input:checked + label{
  background: var(--blue-mid);
  border-color: var(--blue-light);
  color: var(--white);
}
.choice-toggle input:focus-visible + label{
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

.form-actions{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-top: 34px;
  gap: 14px;
}

.form-msg{
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  display:none;
}
.form-msg.show{ display:block; }
.form-msg.success{ background: rgba(46,204,113,0.12); border:1px solid rgba(46,204,113,0.4); color:#7ee2a8; }
.form-msg.error{ background: rgba(231,76,60,0.12); border:1px solid rgba(231,76,60,0.4); color:#ff9a8d; }


.success-screen{ text-align:center; padding: 60px 10px; }
.success-icon{
  width: 78px; height:78px; border-radius:50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 26px;
  box-shadow: var(--shadow-glow);
}
.success-screen h3{ font-size:24px; margin:0 0 12px; }
.success-screen p{ color: var(--white-dim); max-width:440px; margin: 0 auto 28px; line-height:1.6; }

.footer{
  border-top: 1px solid var(--border-soft);
  padding: 34px 5%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--white-faint);
}

@media (max-width: 860px){
  .nav-links{
    position: fixed;
    top: 70px; right: 16px; left:16px;
    flex-direction:column;
    align-items:stretch;
    background: rgba(5,11,24,0.96);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 10px;
    display:none;
    gap:4px;
  }
  .nav-links.open{ display:flex; }
  .nav-link{ text-align:center; }
  .hamburger{ display:flex; }
  .req-list{ grid-template-columns: 1fr; }
  .form-card{ padding: 28px; }
  .form-actions{ flex-direction:column-reverse; align-items:stretch; }
}
