
[hidden] { display: none !important; }

:root {
  --green: #56b947;
  --green-dark: #26731f;
  --yellow: #f3e500;
  --ink: #111820;
  --ink-soft: #1b261e;
  --muted: #66727f;
  --surface: #ffffff;
  --surface-soft: #f3f6f3;
  --line: #dce5dd;
  --shadow: 0 20px 55px rgba(8, 18, 11, .16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .65rem .9rem;
  color: #fff;
  background: var(--ink);
  border-radius: .5rem;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(17,24,32,.08);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1240px, calc(100% - 2rem));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand-logo { display: block; width: min(330px, 58vw); height: auto; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-label {
  padding: .52rem .82rem;
  color: var(--green-dark);
  background: rgba(86,185,71,.1);
  border: 1px solid rgba(86,185,71,.25);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.lock-button {
  border: 0;
  padding: .63rem .9rem;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
}
.lock-button:hover { background: #2a3641; }

.hero {
  position: relative;
  min-height: min(650px, 76vh);
  overflow: hidden;
  color: #fff;
  background: var(--ink) url('../images/portal-hero.jpg') center 43% / cover no-repeat;
  isolation: isolate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7,12,9,.97) 0%, rgba(7,12,9,.88) 42%, rgba(7,12,9,.42) 72%, rgba(7,12,9,.60) 100%),
    linear-gradient(0deg, rgba(7,12,9,.88) 0%, transparent 45%);
}
.hero-accent { position: absolute; z-index: -1; transform: skewX(-18deg); }
.hero-accent--green { right: -7rem; top: 0; width: 18rem; height: 100%; background: rgba(86,185,71,.18); }
.hero-accent--yellow { right: 7rem; bottom: -6rem; width: 23rem; height: 9rem; background: rgba(243,229,0,.22); }
.hero-content {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(8rem, 14vw, 11rem);
}
.eyebrow {
  margin-bottom: .75rem;
  color: var(--green);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--yellow); }
.hero h1 {
  max-width: 820px;
  margin-bottom: 1.1rem;
  font-size: clamp(3rem, 7.5vw, 6.4rem);
  line-height: .93;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.hero h1 span { color: var(--yellow); }
.hero-copy {
  max-width: 690px;
  margin-bottom: 1.8rem;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero-button {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.2rem;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.hero-button:hover { filter: brightness(.96); transform: translateY(-2px); }
.hero-stats {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1240px, calc(100% - 2rem));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(13,22,16,.90);
  border: 1px solid rgba(255,255,255,.13);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  backdrop-filter: blur(12px);
}
.hero-stats div {
  min-height: 104px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { color: var(--yellow); font-size: 2.25rem; line-height: 1; }
.hero-stats span { color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }

.program-section {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4.25rem, 7vw, 6.5rem) 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
.section-heading h2, .process-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.section-note { max-width: 470px; margin-bottom: .25rem; color: var(--muted); }

.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.program-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 34px rgba(17,24,32,.08);
  text-decoration: none;
}
.program-card--active { transition: transform 180ms ease, box-shadow 180ms ease; }
.program-card--active:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.program-card--active:focus-visible { outline: 5px solid rgba(243,229,0,.85); outline-offset: 4px; }
.card-media { position: relative; height: 245px; overflow: hidden; background: #111; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 58%); }
.card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 300ms ease; }
.program-card--active:hover .card-media img { transform: scale(1.035); }
.program-card--disabled .card-media img { filter: grayscale(.25) brightness(.72); }
.program-code {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  z-index: 2;
  min-width: 54px;
  height: 54px;
  padding: 0 .65rem;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid #fff;
  border-radius: 15px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: .48rem .76rem;
  color: #fff;
  background: rgba(17,24,32,.82);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.status--available { color: #133c0f; background: rgba(143,221,102,.95); border-color: rgba(255,255,255,.7); }
.status--testing { color: #342e00; background: rgba(243,229,0,.96); border-color: rgba(255,255,255,.75); }
.card-content { padding: 1.55rem 1.6rem 1.45rem; display: flex; flex: 1; flex-direction: column; }
.card-kicker { margin-bottom: .45rem; color: var(--green-dark); font-size: .75rem; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.card-content h3 { margin-bottom: .6rem; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.02; letter-spacing: -.035em; }
.card-content > p:not(.card-kicker) { margin-bottom: 1.35rem; color: var(--muted); }
.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .87rem;
  font-weight: 800;
}
.card-action { color: var(--green-dark); font-weight: 950; }
.card-action--muted { color: #8a939b; }
.program-card--disabled { background: rgba(255,255,255,.78); }

.process-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(86,185,71,.23), transparent 22rem),
    linear-gradient(135deg, #111820 0%, #172619 100%);
}
.process-section::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -11rem;
  width: 28rem;
  height: 28rem;
  border: 4rem solid rgba(243,229,0,.08);
  border-radius: 50%;
}
.process-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6rem) 0;
  display: grid;
  grid-template-columns: .85fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.process-heading .eyebrow { color: var(--yellow); }
.process-heading h2 { margin-bottom: 1rem; }
.process-heading > p:last-child { max-width: 500px; color: rgba(255,255,255,.72); }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.process-steps li {
  min-height: 148px;
  padding: 1.15rem;
  display: flex;
  gap: 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
}
.process-steps li > span { flex: 0 0 auto; color: var(--yellow); font-size: 1.3rem; font-weight: 950; }
.process-steps strong { display: block; margin-bottom: .25rem; font-size: 1.1rem; }
.process-steps p { margin-bottom: 0; color: rgba(255,255,255,.7); font-size: .91rem; }

.site-footer {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .88rem;
}
.site-footer div { display: flex; gap: .65rem; flex-wrap: wrap; }
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 0; }
.footer-version { font-weight: 900; }

.login-gate {
  min-height: 100vh;
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 85% 10%, rgba(86,185,71,.22), transparent 24rem),
    linear-gradient(135deg, #111820 0%, #1a241b 100%);
}
.login-card {
  width: min(520px, 100%);
  padding: clamp(2rem, 6vw, 3.25rem);
  color: var(--ink);
  background: #fff;
  border-top: 7px solid var(--green);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}
.login-logo { display: block; width: min(330px, 88%); height: auto; margin: 0 auto 2rem; }
.login-card h1 { margin-bottom: .75rem; font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.03; }
.login-copy { margin-bottom: 1.75rem; color: var(--muted); font-size: 1.05rem; }
.login-form { display: grid; gap: .75rem; }
.login-form label { font-weight: 850; }
.login-form input {
  width: 100%;
  min-height: 52px;
  padding: .75rem .9rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #cfd9d1;
  border-radius: 12px;
}
.login-form input:focus { outline: 4px solid rgba(243,229,0,.55); border-color: var(--green); }
.login-form button {
  min-height: 52px;
  margin-top: .25rem;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}
.login-error { min-height: 1.5rem; margin: 0; color: #a4161a; font-weight: 750; }

@media (max-width: 800px) {
  .header-inner { min-height: 76px; }
  .header-label { display: none; }
  .brand-logo { width: min(285px, 70vw); }
  .hero { min-height: 700px; background-position: 58% center; }
  .hero-content { padding-top: 4.5rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { min-height: 70px; justify-content: flex-start; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero-stats div:last-child { border-bottom: 0; }
  .section-heading { display: block; }
  .section-note { margin-top: .8rem; }
  .program-grid { grid-template-columns: 1fr; }
  .card-media { height: 225px; }
  .process-inner { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .header-actions { gap: .45rem; }
  .lock-button { padding: .55rem .7rem; font-size: .78rem; }
  .hero { min-height: 760px; }
  .hero-content { width: min(100% - 1.25rem, 1240px); }
  .program-section, .process-inner, .site-footer { width: min(100% - 1.25rem, 1240px); }
  .card-content { padding: 1.3rem; }
  .card-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
