:root {
  --bg: #f7f5ef;
  --bg-soft: #fbfbfa;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text: #161616;
  --muted: #5f6670;
  --accent: #c78b2f;
  --accent-2: #e0a84d;
  --dark-pill: #1b1b1b;
  --border: rgba(17, 17, 17, 0.07);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.10);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max-width: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(235, 179, 74, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(112, 194, 255, 0.12), transparent 24%),
    linear-gradient(135deg, #f6f1e7 0%, #fcfcfb 46%, #edf4f7 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: clamp(16px, 2vw, 28px);
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.32;
  pointer-events: none;
}

.bg-orb--one {
  width: 280px;
  height: 280px;
  top: -40px;
  left: -40px;
  background: rgba(231, 173, 61, 0.30);
}

.bg-orb--two {
  width: 340px;
  height: 340px;
  top: 20px;
  right: -80px;
  background: rgba(92, 184, 255, 0.20);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.16), transparent 70%);
  pointer-events: none;
}

.hero,
.portal-section,
.info-strip,
.site-footer {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    90deg,
    rgba(243, 236, 224, 0.94) 0%,
    rgba(237, 244, 247, 0.94) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero__eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.hero__title {
  margin: 0 auto 18px;
  max-width: 1050px;
  font-size: clamp(2rem, 5.2vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero__title span {
  display: inline-block;
}

.hero__subtitle {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 14px 28px rgba(199, 139, 47, 0.22);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.hero__stats {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.stat-card strong {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.96rem;
}

.portal-section {
  margin-top: clamp(20px, 3vw, 34px);
}

.section-heading {
  text-align: center;
  margin-bottom: 26px;
}

.section-heading__kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.section-heading__title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 900;
}

.section-heading__text {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 320px;
  padding: 24px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(211, 170, 90, 0.24),
    rgba(255, 255, 255, 0.42),
    rgba(103, 171, 212, 0.14)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(199, 139, 47, 0.22);
}

.portal-card--featured {
  background: rgba(255, 255, 255, 0.95);
}

.portal-card__top {
  min-width: 0;
}

.portal-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 9px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #121212, #2f2f2f);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.portal-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 24px rgba(199, 139, 47, 0.20);
}

.info-strip {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.05);
  box-shadow: var(--shadow);
}

.info-strip__content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.info-strip__kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.info-strip h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.info-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.site-footer {
  padding: 18px 12px 6px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Large desktop */
@media (min-width: 1500px) {
  :root {
    --max-width: 1560px;
  }
}

/* Tablet / laptop */
@media (max-width: 1100px) {
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .page-shell {
    padding: 10px;
  }

  .hero {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .hero__title {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .hero__subtitle {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .hero__actions {
    margin-top: 18px;
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .portal-section {
    margin-top: 14px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading__title {
    font-size: 1.5rem;
  }

  .section-heading__text {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portal-card {
    min-height: 0;
    padding: 18px 14px 16px;
    border-radius: 20px;
  }

  .portal-card__badge {
    margin-bottom: 12px;
    padding: 8px 11px;
    font-size: 10px;
  }

  .portal-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .portal-card p {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .portal-card__button {
    min-height: 46px;
    margin-top: 16px;
    border-radius: 14px;
    padding: 12px 14px;
  }

  .info-strip {
    margin-top: 16px;
    padding: 20px 14px;
    border-radius: 20px;
  }

  .info-strip h2 {
    font-size: 1.45rem;
  }

  .info-strip p {
    font-size: 0.95rem;
    line-height: 1.62;
  }
}

/* Very small mobile */
@media (max-width: 380px) {
  .hero {
    padding: 18px 12px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__subtitle {
    font-size: 0.92rem;
  }

  .portal-card {
    padding: 16px 12px 14px;
  }

  .portal-card h3 {
    font-size: 1.24rem;
  }

  .portal-card p {
    font-size: 0.92rem;
  }
}

.portal-card {
  opacity: 0;
  transform: translateY(22px);
}

.portal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}