.portal-page {
  --portal-yellow: #f8b91a;
  --portal-ink: #0a0d0f;
  --portal-soft: #f4f1ea;
  --portal-line: rgba(255,255,255,.16);
  --portal-bg-fallback: url("portal-hero-v13.jpg");
  --portal-card-bg-fallback: url("portal-card-v13.jpg");
  min-height: 100vh;
  color: var(--portal-ink);
  background: var(--portal-soft);
}

.portal-page * {
  box-sizing: border-box;
}

.portal-page a {
  color: inherit;
  text-decoration: none;
}

.portal-hero {
  min-height: 820px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 22%, rgba(248,185,26,.16), transparent 28%),
    linear-gradient(90deg, rgba(10,13,15,.62), rgba(10,13,15,.34) 42%, rgba(10,13,15,.08) 72%, rgba(10,13,15,.02)),
    linear-gradient(180deg, rgba(10,13,15,0), rgba(10,13,15,.30) 90%),
    var(--portal-bg, var(--portal-bg-fallback)) center / cover no-repeat;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.portal-hero::before {
  content: none;
}

.portal-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background: linear-gradient(180deg, transparent, var(--portal-soft));
  pointer-events: none;
  z-index: 0;
}

.portal-topbar {
  height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(10,13,15,.42);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 1;
}

.portal-container {
  width: min(1400px, calc(100% - 96px));
  margin-left: 64px;
  margin-right: auto;
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.portal-logo {
  display: inline-flex;
  align-items: center;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.portal-logo b {
  color: var(--portal-yellow);
}

.portal-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255,255,255,.84);
  font-size: 13px;
  font-weight: 700;
}

.portal-menu a {
  padding: 28px 0;
  position: relative;
}

.portal-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--portal-yellow);
}

.portal-quote {
  min-height: 38px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: var(--portal-yellow);
  color: #101010;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-hero-inner {
  padding: 112px 0 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(36px, 5vw, 82px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.portal-eyebrow {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--portal-yellow);
  box-shadow: 0 0 22px var(--portal-yellow);
}

.portal-hero h1 {
  max-width: 820px;
  margin: 24px 0 22px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .94;
  letter-spacing: 0;
}

.portal-hero h1 span {
  color: var(--portal-yellow);
}

.portal-intro {
  max-width: 680px;
  color: rgba(255,255,255,.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.portal-btn {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.portal-btn-primary {
  background: var(--portal-yellow);
  color: #101010;
  box-shadow: 0 16px 38px rgba(248,185,26,.30);
}

.portal-btn-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

.portal-login-shell {
  padding: 1px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(248,185,26,.46), rgba(255,255,255,.14));
  box-shadow: 0 28px 80px rgba(0,0,0,.30);
}

.portal-login-card {
  border-radius: 21px;
  overflow: hidden;
  background: rgba(255,255,255,.84);
  color: var(--portal-ink);
  backdrop-filter: blur(22px);
}

.portal-login-top {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10,13,15,.04), rgba(10,13,15,.70)),
    var(--portal-card-bg, var(--portal-bg, var(--portal-card-bg-fallback))) center / cover no-repeat;
}

.portal-status {
  width: fit-content;
  margin-bottom: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-login-top h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
}

.portal-login-top p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

.portal-snippet-slot {
  padding: 24px;
}

.portal-snippet-slot > *:first-child {
  margin-top: 0;
}

.portal-snippet-slot input:not([type="checkbox"]):not([type="radio"]),
.portal-snippet-slot .tml-field {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(10,13,15,.12);
  border-radius: 8px;
  padding: 0 14px;
}

.portal-snippet-slot button,
.portal-snippet-slot input[type="submit"],
.portal-snippet-slot .button,
.portal-snippet-slot .dt-btn {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--portal-ink);
  color: #fff;
  font-weight: 900;
}

.portal-fallback {
  display: grid;
  gap: 14px;
}

.portal-fallback p {
  margin: 0;
  color: #676767;
  line-height: 1.6;
}

.portal-strip {
  padding: 70px 0;
  background: #f4f1ea;
}

.portal-strip-inner {
  display: grid;
  grid-template-columns: .78fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.portal-kicker {
  margin: 0 0 14px;
  color: #df9f05;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-strip h2 {
  margin: 0;
  max-width: 470px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
}

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

.portal-feature {
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(10,13,15,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 42px rgba(20,20,20,.06);
}

.portal-feature span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--portal-yellow);
  color: #101010;
  font-weight: 900;
}

.portal-feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.portal-feature p {
  margin: 0;
  color: #666;
  line-height: 1.65;
}

.portal-dashboard {
  padding: 70px 0;
  background: #0a0d0f;
  color: #fff;
}

.portal-dashboard-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
}

.portal-dark-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  box-shadow: 0 22px 60px rgba(0,0,0,.34);
}

.portal-dark-card h2,
.portal-dark-card h3 {
  margin-top: 0;
}

.portal-dark-card h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.portal-dark-card p,
.portal-step span {
  color: rgba(255,255,255,.66);
  line-height: 1.7;
}

.portal-meter {
  height: 11px;
  margin: 26px 0 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}

.portal-meter span {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--portal-yellow), #ffe29a);
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.portal-metric {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.portal-metric strong {
  display: block;
  color: var(--portal-yellow);
  font-size: 24px;
}

.portal-metric span {
  color: rgba(255,255,255,.64);
  font-size: 13px;
}

.portal-timeline {
  display: grid;
  gap: 18px;
}

.portal-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
}

.portal-step-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(248,185,26,.14);
  color: var(--portal-yellow);
  font-weight: 900;
}

.portal-step strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 1040px) {
  .portal-container {
    width: min(100% - 40px, 760px);
    margin: 0 auto;
  }

  .portal-hero {
    background:
      linear-gradient(180deg, rgba(10,13,15,.48), rgba(10,13,15,.62)),
      var(--portal-bg, var(--portal-bg-fallback)) center / cover no-repeat;
  }

  .portal-hero::before {
    display: none;
  }

  .portal-menu {
    display: none;
  }

  .portal-hero-inner,
  .portal-strip-inner,
  .portal-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(10,13,15,.40), rgba(10,13,15,.76)),
      var(--portal-bg, var(--portal-bg-fallback)) 54% center / cover no-repeat;
  }

  .portal-hero-inner {
    padding: 64px 0;
  }

  .portal-actions,
  .portal-features,
  .portal-metrics {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .portal-btn,
  .portal-quote {
    width: 100%;
  }

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

  .portal-topbar {
    height: auto;
  }
}
