:root {
  --bg:#03040a;
  --bg2:#080b14;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(0,0,0,.36);
  --line:rgba(214,177,95,.22);
  --gold:#d6b15f;
  --gold2:#f5d98b;
  --red:#d11f2f;
  --blue:#2f6df6;
  --text:#f8fafc;
  --muted:rgba(248,250,252,.72);
}

* {
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html {
  scroll-behavior:smooth;
}

body {
  min-height:100vh;
  color:var(--text);
  font-family:Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 8%, rgba(47,109,246,.24), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(209,31,47,.25), transparent 30%),
    radial-gradient(circle at 50% 88%, rgba(214,177,95,.10), transparent 34%),
    linear-gradient(135deg,#03040a,#080b14 52%,#13070b);
  overflow-x:hidden;
}

body:before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.020) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.020) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 85%);
}

a {
  color:inherit;
  text-decoration:none;
}

.wrap {
  width:min(1220px, calc(100% - 36px));
  margin:0 auto;
}

header {
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(3,4,10,.78);
  border-bottom:1px solid rgba(214,177,95,.14);
  backdrop-filter:blur(18px);
  box-shadow:0 8px 42px rgba(0,0,0,.20);
}

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

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
}

.brand-logo {
  width:48px;
  height:48px;
  min-width:48px;
  border-radius:50%;
  background:url("/assets/imperial/favicon.png?v=8") center/cover no-repeat;
  box-shadow:0 0 34px rgba(214,177,95,.24);
  border:1px solid rgba(245,217,139,.22);
}

.brand-text strong {
  display:block;
  color:var(--gold2);
  letter-spacing:.02em;
}

.brand-text small {
  color:var(--muted);
  font-size:12px;
}

.links {
  display:flex;
  align-items:center;
  gap:18px;
  color:rgba(248,250,252,.78);
  font-size:14px;
  font-weight:800;
}

.links a {
  position:relative;
  padding:8px 0;
  opacity:.84;
}

.links a:hover,
.links a.is-active {
  opacity:1;
  color:var(--gold2);
}

.links a:after {
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--blue),var(--gold2),var(--red));
  box-shadow:0 0 12px rgba(245,217,139,.38);
  transition:width .22s ease;
}

.links a:hover:after,
.links a.is-active:after {
  width:100%;
}

.btn {
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid rgba(214,177,95,.28);
  background:linear-gradient(135deg,var(--gold2),var(--gold));
  color:#05060a;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 18px 54px rgba(214,177,95,.14);
  transition:.18s ease;
}

.btn.secondary {
  background:rgba(255,255,255,.07);
  color:var(--text);
  border-color:rgba(248,250,252,.14);
  box-shadow:none;
}

.btn:hover {
  transform:translateY(-1px);
  box-shadow:0 18px 52px rgba(214,177,95,.18), 0 0 18px rgba(214,177,95,.10);
}

.badge {
  display:inline-flex;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(214,177,95,.26);
  color:var(--gold2);
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  background:rgba(255,255,255,.045);
  margin-bottom:20px;
}

h1,h2,h3 {
  font-family:Georgia, serif;
}

h1 {
  font-size:clamp(58px,9vw,122px);
  line-height:.86;
  letter-spacing:-.075em;
}

h2 {
  font-size:clamp(38px,5vw,70px);
  line-height:.92;
  letter-spacing:-.06em;
}

h3 {
  color:var(--gold2);
  font-size:30px;
  letter-spacing:-.04em;
}

h1 span,
h2 span {
  background:linear-gradient(135deg,#fff2bf,#d6b15f,#fff2bf);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

p, li {
  color:var(--muted);
  line-height:1.74;
}

section {
  padding:76px 0;
}

.hero {
  min-height:calc(100vh - 78px);
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
  padding:72px 0;
}

.hero-grid {
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(480px,1.08fr);
  gap:48px;
  align-items:center;
}

.lead {
  max-width:800px;
  font-size:20px;
  margin:24px 0 30px;
}

.actions {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.status-signal {
  margin-top:22px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid rgba(245,217,139,.18);
  background:rgba(255,255,255,.045);
  color:rgba(248,250,252,.80);
  font-weight:900;
  font-size:13px;
}

.status-dot {
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--gold2);
  box-shadow:0 0 12px rgba(245,217,139,.75);
  animation:statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  0%,100% { opacity:.55; transform:scale(.92); }
  50% { opacity:1; transform:scale(1.15); }
}

.hero-art {
  position:relative;
  min-height:585px;
  border-radius:34px;
  border:1px solid rgba(214,177,95,.24);
  background-image:
    linear-gradient(90deg, rgba(3,4,10,.34), transparent 46%, rgba(3,4,10,.34)),
    linear-gradient(to top, rgba(3,4,10,.46), transparent 46%),
    url("/assets/imperial/hero-banner.webp?v=8");
  background-size:cover;
  background-position:center center;
  overflow:hidden;
  box-shadow:0 32px 110px rgba(0,0,0,.34);
  transition:transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}

.hero-art:hover {
  border-color:rgba(245,217,139,.38);
  box-shadow:0 34px 120px rgba(0,0,0,.38),0 0 50px rgba(214,177,95,.08);
}

.hero-art:before {
  content:"";
  position:absolute;
  inset:24px;
  border-radius:28px;
  border:1px solid rgba(214,177,95,.18);
  pointer-events:none;
}

.hero-art:after {
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at center, transparent 20%, rgba(3,4,10,.24) 78%);
  pointer-events:none;
}

.hero-holo {
  position:absolute;
  left:24px;
  top:24px;
  z-index:5;
  display:grid;
  gap:7px;
  opacity:.68;
}

.hero-holo span {
  display:block;
  width:92px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(245,217,139,.75), transparent);
}

.hero-holo span:nth-child(2) {
  width:54px;
  background:linear-gradient(90deg, rgba(47,109,246,.65), transparent);
}

.hero-holo span:nth-child(3) {
  width:72px;
  background:linear-gradient(90deg, rgba(209,31,47,.55), transparent);
}

.hero-overlay {
  position:absolute;
  z-index:5;
  left:24px;
  right:24px;
  bottom:24px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 18px;
  border-radius:22px;
  border:1px solid rgba(214,177,95,.30);
  background:rgba(3,4,10,.74);
  backdrop-filter:blur(14px);
}

.mini-emblem {
  width:54px;
  height:54px;
  min-width:54px;
  border-radius:50%;
  background:url("/assets/imperial/favicon.png?v=8") center/cover no-repeat;
  box-shadow:0 0 24px rgba(214,177,95,.20);
}

.hero-overlay strong {
  display:block;
  color:var(--gold2);
  font-family:Georgia,serif;
  font-size:23px;
  line-height:1.1;
}

.hero-overlay small {
  display:block;
  color:var(--muted);
  margin-top:4px;
}

.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}

.section-head p {
  max-width:610px;
}

.grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.grid.two {
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.card,
.panel,
.form-card {
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:30px;
  padding:28px;
  min-height:100%;
  box-shadow:0 24px 90px rgba(0,0,0,.16);
  transition:.18s ease;
}

.card:after,
.panel:after,
.form-card:after {
  content:"";
  position:absolute;
  right:18px;
  top:18px;
  width:34px;
  height:34px;
  pointer-events:none;
  opacity:.38;
  border-top:1px solid rgba(245,217,139,.28);
  border-right:1px solid rgba(245,217,139,.28);
  border-radius:0 12px 0 0;
}

.card:hover,
.panel:hover,
.form-card:hover {
  transform:translateY(-1px);
  border-color:rgba(245,217,139,.30);
  box-shadow:0 22px 80px rgba(0,0,0,.22),0 0 24px rgba(214,177,95,.055);
}

.card.blue {
  border-color:rgba(47,109,246,.34);
  background:linear-gradient(145deg,rgba(47,109,246,.13),rgba(255,255,255,.045));
}

.card.red {
  border-color:rgba(209,31,47,.34);
  background:linear-gradient(145deg,rgba(209,31,47,.13),rgba(255,255,255,.045));
}

.card.gold {
  border-color:rgba(214,177,95,.34);
  background:linear-gradient(145deg,rgba(214,177,95,.13),rgba(255,255,255,.045));
}

.pills {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:16px;
}

.pill {
  display:inline-flex;
  padding:8px 11px;
  border-radius:999px;
  border:1px solid rgba(248,250,252,.13);
  background:rgba(0,0,0,.25);
  color:rgba(248,250,252,.78);
  font-size:12px;
  font-weight:900;
}

.page-hero {
  padding:56px 0 28px;
}

.form-card {
  padding:32px;
}

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

label {
  display:grid;
  gap:8px;
  color:var(--gold2);
  font-weight:900;
  font-size:13px;
}

.full {
  grid-column:1/-1;
}

input,select,textarea {
  width:100%;
  min-height:50px;
  border-radius:16px;
  border:1px solid rgba(248,250,252,.14);
  background:rgba(0,0,0,.28);
  color:var(--text);
  padding:12px 14px;
  outline:none;
}

input:focus,
select:focus,
textarea:focus {
  border-color:rgba(245,217,139,.38);
  box-shadow:0 0 0 2px rgba(214,177,95,.07),0 0 18px rgba(214,177,95,.045);
}

textarea {
  min-height:135px;
  resize:vertical;
}

.msg {
  display:none;
  padding:14px 16px;
  border-radius:16px;
  margin-top:14px;
  font-weight:900;
}

.ok {
  display:block;
  background:rgba(80,200,120,.13);
  color:#bcf7ce;
  border:1px solid rgba(80,200,120,.28);
}

.err {
  display:block;
  background:rgba(255,80,80,.13);
  color:#ffd0d0;
  border:1px solid rgba(255,80,80,.28);
}

.stepper {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.step-dot {
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(248,250,252,.12);
  background:rgba(0,0,0,.20);
  color:var(--muted);
  font-weight:900;
  font-size:12px;
}

.step-dot.active {
  color:#05060a;
  background:linear-gradient(135deg,var(--gold2),var(--gold));
}

.step {
  display:none;
}

.step.active {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.form-nav {
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.faction-visual-card {
  position:relative;
  overflow:hidden;
  min-height:360px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.faction-visual-card:before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(3,4,10,.92), rgba(3,4,10,.18));
  z-index:1;
}

.faction-visual-card > * {
  position:relative;
  z-index:2;
}

.faction-visual-card.jedi {
  background:url('/assets/imperial/jedi-bg.webp?v=8') center/cover no-repeat;
}

.faction-visual-card.sith {
  background:url('/assets/imperial/sith-bg.webp?v=8') center/cover no-repeat;
}

.faction-visual-card.trooper {
  background:url('/assets/imperial/trooper-bg.webp?v=8') center/cover no-repeat;
}

.rank-strip {
  border:1px solid rgba(214,177,95,.20);
  border-radius:28px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
}

.rank-strip img {
  width:100%;
  display:block;
}

.imperial-scroll-progress {
  position:fixed;
  top:0;
  left:0;
  height:2px;
  width:0%;
  z-index:99999;
  background:linear-gradient(90deg,var(--blue),var(--gold2),var(--red));
  box-shadow:0 0 14px rgba(245,217,139,.45);
  pointer-events:none;
}

.force-cursor {
  position:fixed;
  left:0;
  top:0;
  width:145px;
  height:145px;
  pointer-events:none;
  z-index:9999;
  border-radius:50%;
  opacity:.28;
  mix-blend-mode:screen;
  background:
    radial-gradient(circle at 48% 48%, rgba(245,217,139,.20), transparent 11%),
    radial-gradient(circle at 42% 46%, rgba(47,109,246,.16), transparent 34%),
    radial-gradient(circle at 62% 54%, rgba(209,31,47,.13), transparent 38%);
  filter:blur(12px);
  transform:translate3d(-50%,-50%,0);
}

.force-cursor.is-hovering {
  width:210px;
  height:210px;
  opacity:.42;
}

.saber-cursor-line {
  position:fixed;
  left:0;
  top:0;
  width:58px;
  height:2px;
  pointer-events:none;
  z-index:9998;
  border-radius:999px;
  opacity:0;
  transform-origin:left center;
  background:linear-gradient(90deg,transparent,rgba(245,217,139,.92),rgba(47,109,246,.42),transparent);
  box-shadow:0 0 8px rgba(245,217,139,.42),0 0 14px rgba(47,109,246,.16);
}

.saber-cursor-line.active {
  opacity:.38;
}

footer {
  border-top:1px solid rgba(214,177,95,.14);
  padding:26px 0;
  color:rgba(248,250,252,.55);
  font-size:13px;
}

.footer-inner {
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

@media(max-width:1100px) {
  .hero-grid {
    grid-template-columns:1fr;
  }

  .hero-art {
    min-height:440px;
  }
}

@media(max-width:980px) {
  .grid,.grid.two {
    grid-template-columns:1fr;
  }

  .section-head {
    display:block;
  }

  .section-head p {
    margin-top:12px;
  }

  .links {
    display:none;
  }
}

@media(max-width:720px) {
  .wrap {
    width:min(100% - 28px,1220px);
  }

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

  .form-card,.card,.panel {
    padding:22px;
  }

  .hero {
    padding:44px 0;
  }

  .hero-art {
    min-height:330px;
  }

  .force-cursor,
  .saber-cursor-line {
    display:none;
  }
}

/* === IMPERIAL PHASE 9 PLAYER ATTRACTION LAYER === */

.phase9-alert {
  width: 100%;
  border-bottom: 1px solid rgba(214,177,95,.22);
  background:
    linear-gradient(90deg, rgba(47,109,246,.18), rgba(214,177,95,.12), rgba(209,31,47,.18)),
    rgba(3,4,10,.92);
  color: var(--gold2);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .04em;
  text-align: center;
  padding: 10px 14px;
  box-shadow: 0 0 28px rgba(214,177,95,.10);
}

.phase9-alert span {
  color: #fff;
  opacity: .88;
}

.cinematic-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.side-choice {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(214,177,95,.20);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: .22s ease;
}

.side-choice:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.02);
  transition: .35s ease;
}

.side-choice:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(3,4,10,.94), rgba(3,4,10,.22)),
    radial-gradient(circle at 50% 20%, transparent, rgba(3,4,10,.42));
}

.side-choice:hover {
  transform: translateY(-3px);
  border-color: rgba(245,217,139,.42);
}

.side-choice:hover:before {
  transform: scale(1.07);
}

.side-choice.jedi-side:before {
  background-image: url("/assets/imperial/jedi-bg.webp?v=9");
}

.side-choice.sith-side:before {
  background-image: url("/assets/imperial/sith-bg.webp?v=9");
}

.side-choice h3 {
  font-size: 42px;
  margin-bottom: 12px;
}

.choice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.choice-meta span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(248,250,252,.12);
  color: rgba(248,250,252,.82);
  font-size: 12px;
  font-weight: 900;
}

.server-path {
  display: grid;
  gap: 12px;
  counter-reset: path;
}

.path-item {
  position: relative;
  padding: 20px 20px 20px 72px;
  border-radius: 24px;
  border: 1px solid rgba(214,177,95,.18);
  background: rgba(255,255,255,.045);
}

.path-item:before {
  counter-increment: path;
  content: counter(path);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07080c;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  font-weight: 900;
  box-shadow: 0 0 22px rgba(214,177,95,.18);
}

.path-item strong {
  display: block;
  color: var(--gold2);
  font-size: 18px;
  margin-bottom: 6px;
}

.recruit-strip {
  border: 1px solid rgba(214,177,95,.24);
  border-radius: 34px;
  padding: 32px;
  background:
    radial-gradient(circle at 20% 30%, rgba(47,109,246,.18), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(209,31,47,.18), transparent 28%),
    rgba(255,255,255,.055);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.recruit-strip strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -.05em;
  color: var(--gold2);
  margin-bottom: 8px;
}

@media(max-width: 900px) {
  .cinematic-split,
  .recruit-strip {
    grid-template-columns: 1fr;
  }

  .side-choice {
    min-height: 330px;
  }
}
