:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: rgba(9, 14, 24, .78);
  --panel-strong: rgba(12, 18, 30, .94);
  --line: rgba(116, 150, 210, .34);
  --text: #f4f7ff;
  --muted: #aeb8cc;
  --blue: #2f6bff;
  --blue-strong: #1646cf;
  --bd-green: #006a4e;
  --bd-green-soft: rgba(0, 106, 78, .42);
  --bd-red: #f42a41;
  --bd-red-soft: rgba(244, 42, 65, .24);
  --gold: #f6c65b;
  --danger: #ff6969;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(110deg, rgba(4, 12, 10, .97) 0%, rgba(5, 17, 15, .84) 42%, rgba(5, 7, 11, .96) 100%),
    radial-gradient(circle at 78% 24%, rgba(0, 106, 78, .32), transparent 34%),
    radial-gradient(circle at 55% 36%, rgba(244, 42, 65, .12), transparent 18%),
    radial-gradient(circle at 50% 42%, rgba(246, 198, 91, .12), transparent 24%),
    #05070b;
  background-size: cover;
  background-position: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(58, 170, 137, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 170, 137, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0%, rgba(246, 198, 91, .07) 48%, transparent 56%),
    radial-gradient(circle at var(--mx, 68%) var(--my, 38%), rgba(0, 106, 78, .24), transparent 24%);
  opacity: .72;
  mix-blend-mode: screen;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 62% 38%, var(--bd-red) 0 26%, transparent 27%),
    linear-gradient(135deg, var(--bd-green), rgba(10, 17, 31, .9));
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28);
}

.lang-switch button {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.lang-switch button.active {
  color: var(--text);
  background: rgba(0, 106, 78, .36);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: 48px;
  padding: 64px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 7% -4% 14% 44%;
  z-index: -2;
  border: 1px solid rgba(116, 150, 210, .13);
  background:
    radial-gradient(circle at 54% 38%, rgba(244, 42, 65, .16), transparent 16%),
    linear-gradient(90deg, transparent 49.7%, rgba(246, 198, 91, .16) 50%, transparent 50.3%),
    linear-gradient(rgba(58, 170, 137, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 170, 137, .08) 1px, transparent 1px);
  background-size: 100% 100%, 42px 42px, 42px 42px;
  transform: skewX(-8deg);
  opacity: .72;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: .96;
  letter-spacing: 0;
  text-transform: uppercase;
}

html[lang="bn"] h1,
html[lang="bn"] .form-copy h2 {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.08;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.notice,
.info-panel,
.steps article,
.application-form {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

.notice {
  max-width: 680px;
  padding: 20px;
  margin: 30px 0 16px;
  border-left: 4px solid var(--bd-red);
}

.notice strong {
  display: block;
  margin-bottom: 8px;
}

.notice p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.brotherhood-note {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 680px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(246, 198, 91, .28);
  background:
    linear-gradient(135deg, rgba(0, 106, 78, .24), rgba(9, 14, 24, .76)),
    radial-gradient(circle at 92% 20%, rgba(244, 42, 65, .18), transparent 28%);
}

.brotherhood-note p {
  margin: 0;
  color: #e8fff7;
  line-height: 1.45;
  font-weight: 700;
}

.flag-dot {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 56% 45%, var(--bd-red) 0 35%, transparent 36%),
    var(--bd-green);
  border: 1px solid rgba(246, 198, 91, .42);
  box-shadow: 0 0 24px rgba(0, 106, 78, .28);
}

.bangladesh-bridge {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.bangladesh-bridge span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  color: #eafff7;
  border: 1px solid rgba(58, 170, 137, .42);
  background:
    linear-gradient(135deg, rgba(0, 106, 78, .34), rgba(8, 13, 23, .68));
  font-weight: 800;
}

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

.primary,
.secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(126, 162, 235, .58);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.primary {
  background: linear-gradient(135deg, #008c66, var(--bd-green));
  box-shadow: 0 16px 45px rgba(0, 106, 78, .34);
}

.secondary {
  background: rgba(8, 13, 23, .72);
}

.primary:hover,
.secondary:hover {
  border-color: rgba(246, 198, 91, .72);
  box-shadow: 0 16px 45px rgba(0, 106, 78, .24);
}

.info-panel {
  position: relative;
  z-index: 2;
  padding: 26px;
}

.info-panel div {
  padding: 22px 0;
  border-bottom: 1px solid rgba(58, 170, 137, .22);
}

.info-panel div:last-child {
  border-bottom: 0;
}

.info-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.info-panel strong {
  font-size: 24px;
}

.info-panel a {
  color: var(--text);
  text-decoration: none;
}

.info-panel a:hover {
  color: var(--gold);
}

.tactical-orb {
  position: absolute;
  z-index: 1;
  right: clamp(520px, 45vw, 650px);
  top: 74%;
  width: clamp(220px, 23vw, 340px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: translate3d(var(--orb-x, 0px), calc(-50% + var(--orb-y, 0px)), 0) rotateX(58deg) rotateZ(-18deg);
  filter: drop-shadow(0 0 34px rgba(0, 106, 78, .34));
  opacity: .82;
  pointer-events: none;
}

.tactical-orb::before,
.tactical-orb::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(58, 170, 137, .42);
  transform-style: preserve-3d;
}

.tactical-orb::before {
  clip-path: polygon(0 0, 28% 0, 28% 8%, 8% 8%, 8% 28%, 0 28%, 0 0, 72% 0, 100% 0, 100% 28%, 92% 28%, 92% 8%, 72% 8%);
}

.tactical-orb::after {
  inset: 22%;
  border-color: rgba(244, 42, 65, .32);
  transform: translateZ(36px) rotateZ(45deg);
}

.orb-core {
  position: absolute;
  inset: 29%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 34%, rgba(255, 255, 255, .84), transparent 9%),
    radial-gradient(circle, rgba(244, 42, 65, .48), rgba(0, 106, 78, .14) 48%, transparent 70%);
  border: 1px solid rgba(246, 198, 91, .42);
  box-shadow:
    inset 0 0 42px rgba(244, 42, 65, .22),
    0 0 70px rgba(0, 106, 78, .24);
  transform: translateZ(48px);
}

.orb-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(58, 170, 137, .4);
  transform-style: preserve-3d;
}

.ring-a {
  border-top-color: rgba(255, 255, 255, .78);
  border-right-color: rgba(246, 198, 91, .6);
}

.ring-b {
  inset: 20%;
  border-left-color: rgba(255, 255, 255, .72);
  transform: rotateX(68deg) rotateY(24deg);
}

.ring-c {
  inset: 4%;
  border-bottom-color: rgba(244, 42, 65, .75);
  border-left-color: transparent;
  transform: translateZ(-24px) rotateY(68deg);
}

.scan-plane {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(246, 198, 91, .22), rgba(0, 106, 78, .18) 18%, transparent 32%, transparent 100%);
  transform: translateZ(22px);
  opacity: .72;
}

.orb-label {
  position: absolute;
  left: 50%;
  min-width: 128px;
  padding: 7px 10px;
  color: rgba(244, 247, 255, .78);
  border: 1px solid rgba(58, 170, 137, .36);
  background: rgba(5, 7, 11, .7);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  transform: translateX(-50%) rotateX(-58deg) rotateZ(18deg);
}

.label-top {
  top: 15%;
}

.label-bottom {
  bottom: 13%;
}

.route-section {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, .75fr));
  gap: 18px;
  padding: 0 0 72px;
}

.route-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 24px;
  border: 1px solid rgba(58, 170, 137, .32);
  background:
    linear-gradient(135deg, rgba(0, 106, 78, .22), rgba(9, 14, 24, .84)),
    radial-gradient(circle at 82% 20%, rgba(244, 42, 65, .16), transparent 30%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
}

.route-card::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 130px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(246, 198, 91, .24);
  background: radial-gradient(circle, rgba(244, 42, 65, .26), transparent 62%);
}

.route-card h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.route-card p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
}

.route-card.mini {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}

.route-card.mini span {
  color: var(--gold);
  font-size: 32px;
  font-weight: 900;
}

.route-card.mini strong {
  font-size: 18px;
  line-height: 1.25;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 72px;
}

.steps article {
  padding: 24px;
}

.steps span {
  color: var(--gold);
  font-weight: 900;
}

.steps h2 {
  margin: 16px 0 10px;
  font-size: 22px;
}

.steps p,
.form-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.form-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 36px;
  align-items: start;
  padding: 0 0 90px;
}

.form-copy h2 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}

.application-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: var(--panel-strong);
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

label span,
legend {
  color: var(--muted);
  font-weight: 800;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input:not([type]) {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(116, 150, 210, .34);
  background: rgba(0, 0, 0, .24);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(116, 150, 210, .54);
  padding: 14px;
  background: rgba(0, 0, 0, .22);
  color: var(--muted);
}

input:focus-visible {
  outline: 2px solid rgba(246, 198, 91, .62);
  outline-offset: 2px;
  border-color: rgba(246, 198, 91, .72);
}

.radio-line,
.consent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.passport-upload small,
.form-status {
  color: var(--muted);
}

.form-status.error {
  color: var(--danger);
}

.form-status.success {
  color: #76ffac;
}

.submit {
  width: 100%;
  border: 1px solid rgba(126, 162, 235, .7);
  cursor: pointer;
}

.submit:disabled {
  opacity: .65;
  cursor: wait;
}

.hidden,
.hidden-hp {
  display: none;
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 24px, 620px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .hero,
  .steps,
  .route-section,
  .form-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 46px 0 50px;
    gap: 28px;
  }

  .hero::before {
    inset: 2% -10% 34% 10%;
    opacity: .42;
  }

  .tactical-orb {
    position: relative;
    right: auto;
    top: auto;
    width: min(72vw, 310px);
    margin: -6px auto 8px;
    transform: rotateX(58deg) rotateZ(-18deg);
    order: 2;
  }

  .hero-actions a {
    width: 100%;
  }

  .bangladesh-bridge span {
    width: 100%;
  }

  .route-section {
    padding-bottom: 48px;
  }

  .route-card {
    min-height: 132px;
  }

  .info-panel {
    order: 3;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .info-panel,
  .route-card,
  .steps article,
  .application-form {
    animation: rise .65s ease both;
  }

  .info-panel {
    animation-delay: .12s;
  }

  .ring-a {
    animation: spinZ 15s linear infinite;
  }

  .ring-b {
    animation: spinY 18s linear infinite;
  }

  .ring-c {
    animation: spinX 22s linear infinite reverse;
  }

  .scan-plane {
    animation: sweep 5.5s linear infinite;
  }

  .orb-core {
    animation: pulse 4s ease-in-out infinite;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes spinZ {
    to {
      transform: rotateZ(360deg);
    }
  }

  @keyframes spinY {
    from {
      transform: rotateX(68deg) rotateY(24deg) rotateZ(0deg);
    }
    to {
      transform: rotateX(68deg) rotateY(24deg) rotateZ(360deg);
    }
  }

  @keyframes spinX {
    from {
      transform: translateZ(-24px) rotateY(68deg) rotateZ(0deg);
    }
    to {
      transform: translateZ(-24px) rotateY(68deg) rotateZ(360deg);
    }
  }

  @keyframes sweep {
    to {
      transform: translateZ(22px) rotateZ(360deg);
    }
  }

  @keyframes pulse {
    0%, 100% {
      opacity: .82;
      box-shadow: inset 0 0 42px rgba(244, 42, 65, .2), 0 0 70px rgba(0, 106, 78, .18);
    }
    50% {
      opacity: 1;
      box-shadow: inset 0 0 54px rgba(244, 42, 65, .28), 0 0 90px rgba(0, 106, 78, .3);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .tactical-orb,
  .orb-ring,
  .scan-plane,
  .orb-core {
    animation: none !important;
    transition: none !important;
  }
}
