:root {
  --navy: #061123;
  --navy-2: #0a1b35;
  --blue: #00aeef;
  --ice: #9ed8ff;
  --yellow: #f7df23;
  --silver: #d7dde7;
  --white: #ffffff;
  --ink: #111827;
  --line: rgba(158, 216, 255, 0.24);
  --panel: rgba(7, 17, 36, 0.82);
  --panel-solid: #0b172b;
  --success: #31d47a;
  --warning: #ffd45c;
  --danger: #ff6f6f;
  --headline: "Bebas Neue", "Oswald", Impact, sans-serif;
  --body: "Inter", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 174, 239, 0.2), transparent 28rem),
    radial-gradient(circle at 90% 24%, rgba(247, 223, 35, 0.12), transparent 20rem),
    linear-gradient(145deg, #050914, var(--navy) 46%, #071c2e);
  font-family: var(--body);
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(158, 216, 255, 0.08) 48% 49%, transparent 50%),
    linear-gradient(35deg, transparent 0 58%, rgba(255, 255, 255, 0.05) 59% 60%, transparent 61%);
  background-size: 22rem 22rem, 30rem 30rem;
  opacity: 0.44;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem clamp(1rem, 4vw, 4rem);
  transition: background 180ms ease, border-color 180ms ease;
}

.portal-header.is-scrolled,
.portal-header.compact,
.portal-header.is-open {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 35, 0.92);
  backdrop-filter: blur(18px);
}

.logo-link {
  flex: 0 0 auto;
  width: min(13rem, 42vw);
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.6rem);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-nav a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.portal-nav a::after {
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.portal-nav a:hover::after,
.portal-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.3rem auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 17, 35, 0.94) 0%, rgba(6, 17, 35, 0.7) 34%, rgba(6, 17, 35, 0.1) 75%),
    linear-gradient(0deg, rgba(6, 17, 35, 0.98) 0%, transparent 28%, rgba(6, 17, 35, 0.32) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(56rem, 92vw);
  min-height: 88vh;
  padding: 7rem clamp(1rem, 4vw, 4rem) 5rem;
}

.hero-logo {
  width: min(22rem, 74vw);
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--ice);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--headline);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(4.3rem, 9vw, 8.6rem);
  line-height: 0.86;
  text-shadow: 0 0 24px rgba(158, 216, 255, 0.52);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 5.6vw, 5.3rem);
  line-height: 0.92;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 42rem;
  margin-bottom: 1.35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary {
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 14px 36px rgba(247, 223, 35, 0.2);
}

.button-secondary {
  color: var(--white);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.login-prompt {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.login-prompt a,
.small-link a,
address a,
.portal-panel a,
.admin-record a {
  color: var(--ice);
}

.section,
.contact-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 6rem) 0;
}

.section-heading {
  max-width: 55rem;
  margin-bottom: 1.65rem;
}

.section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.glance-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 1rem;
}

.glance-list,
.media-card,
.benefit-grid article,
.promo-box,
.resource-panel,
.portal-panel,
.status-panel,
.auth-card,
.admin-record {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.glance-list {
  padding: 1.35rem;
}

.glance-list ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.1rem;
}

.glance-list li::marker {
  color: var(--yellow);
}

.media-card {
  min-height: 17rem;
  margin: 0;
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: 24.0rem;
  object-fit: contain;
  background: var(--white);
}

.media-card figcaption {
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.placeholder-card {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
}

.placeholder-card span {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--yellow);
  font-size: 1.8rem;
}

.benefit-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.benefit-grid article {
  padding: 1.25rem;
}

.benefit-grid i,
.channel-grid i {
  color: var(--yellow);
  font-size: 1.55rem;
}

.benefit-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(158, 216, 255, 0.15);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ice);
  font-size: 0.76rem;
  text-transform: uppercase;
}

td:last-child,
th:last-child {
  text-align: right;
}

.promo-box {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border-color: rgba(247, 223, 35, 0.38);
}

.promo-box strong {
  color: var(--yellow);
  font-size: 1.25rem;
}

.promo-box span,
.policy-note {
  color: rgba(255, 255, 255, 0.72);
}

.channel-grid {
  grid-template-columns: repeat(3, 1fr);
}

.channel-grid article,
.policy-grid span,
.resource-list span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(158, 216, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0;
}

.spec-grid div {
  padding: 1rem;
  border: 1px solid rgba(158, 216, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.spec-grid dt {
  color: var(--ice);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-grid dd {
  margin: 0.4rem 0 0;
}

.resource-panel {
  display: grid;
  gap: 1.2rem;
  padding: 1.25rem;
}

.resource-panel .button {
  width: fit-content;
}

.resource-list,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.application-form {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 36, 0.72);
}

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

label {
  display: grid;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 800;
}

.field-note {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid rgba(158, 216, 255, 0.26);
  border-radius: 6px;
  color: var(--white);
  background: rgba(2, 8, 20, 0.66);
  padding: 0.72rem 0.85rem;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 174, 239, 0.42);
  outline-offset: 2px;
}

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

.check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.check-row input {
  width: 1rem;
  min-height: 1rem;
  margin-top: 0.2rem;
}

.application-form .button {
  margin-top: 1.2rem;
}

.screen-reader-field {
  position: absolute;
  left: -9999px;
}

.notice {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.notice p,
.notice ul {
  margin: 0;
}

.notice.error {
  border-color: rgba(255, 111, 111, 0.48);
  color: #ffd7d7;
}

.notice.success {
  border-color: rgba(49, 212, 122, 0.48);
  color: #ceffe2;
}

.notice.warning {
  border-color: rgba(255, 212, 92, 0.48);
  color: #fff0c2;
}

.contact-section {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

address {
  display: grid;
  gap: 0.45rem;
  font-style: normal;
  font-weight: 800;
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
}

.auth-page {
  min-height: 100vh;
}

.auth-shell,
.dashboard-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 0;
}

.auth-logo {
  width: min(19rem, 70vw);
  margin-bottom: 1.2rem;
}

.auth-card {
  width: min(32rem, 100%);
  padding: 1.35rem;
}

.auth-card h1,
.dashboard-hero h1 {
  font-size: clamp(3.6rem, 8vw, 6.5rem);
}

.auth-card form,
.portal-panel form,
.record-actions {
  display: grid;
  gap: 1rem;
}

.small-link {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-shell {
  padding: 7rem 0 4rem;
}

.dashboard-hero {
  margin-bottom: 1.5rem;
}

.status-panel,
.portal-panel {
  padding: 1.25rem;
}

.portal-panel + .portal-panel,
.dashboard-grid + .portal-panel {
  margin-top: 1rem;
}

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-record {
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 22rem);
  gap: 1rem;
  padding: 1rem;
}

.record-main dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.record-main dt {
  color: var(--ice);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.record-main dd {
  margin: 0.2rem 0 0;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.pending {
  color: var(--warning);
}

.status-pill.approved {
  color: var(--success);
}

.status-pill.rejected {
  color: var(--danger);
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-form select {
  min-width: 7rem;
}

@media (max-width: 980px) {
  .portal-nav:not(.always-visible) {
    position: fixed;
    top: 4.8rem;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 17, 35, 0.96);
  }

  .portal-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .glance-grid,
  .benefit-grid,
  .channel-grid,
  .spec-grid,
  .resource-list,
  .policy-grid,
  .form-grid,
  .dashboard-grid,
  .admin-record,
  .record-main dl {
    grid-template-columns: 1fr 1fr;
  }

  .glance-list,
  .wide,
  .admin-record .record-main,
  .record-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 92vh;
  }

  .hero-content {
    min-height: 92vh;
    padding-top: 6.5rem;
  }

  .hero-image {
    object-position: 58% center;
  }

  .glance-grid,
  .benefit-grid,
  .channel-grid,
  .spec-grid,
  .resource-list,
  .policy-grid,
  .form-grid,
  .dashboard-grid,
  .record-main dl {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-section,
  .portal-footer,
  .portal-nav.always-visible {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .resource-panel .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(4rem, 19vw, 5.2rem);
  }

  .portal-header.compact {
    position: static;
  }

  .dashboard-shell {
    padding-top: 2rem;
  }

  td:last-child,
  th:last-child {
    text-align: left;
  }
}
