:root {
  font-family: 'Jost', ui-sans-serif, system-ui, sans-serif;
  color: #1e2132;
  background: #fdfcff;
  --surface: #ffffff;
  --surface-soft: #f9f7ff;
  --surface-alt: #f2f4f5;
  --border: #dfd7ed;
  --text-muted: #5a5a5a;
  --text-strong: #1e2132;
  --purple: #551ab1;
  --cyan: #6ec8ff;
  --panel-shadow: rgba(58, 53, 95, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: linear-gradient(180deg, #fdfcff 0%, #f6f4ff 100%);
  color: var(--text-strong);
}

button, a {
  font: inherit;
}

.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 28px 52px;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 0 !important;
  padding: 3em !important;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 65% 35%, rgba(142, 122, 172, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 18% 78%, rgba(110, 200, 255, 0.12) 0%, transparent 60%);
}

.hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 2rem;
  align-items: start;
}

.hero-content {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow,
.stylised-header {
  display: block;
  margin: 0 auto 14px;
  font-family: 'Jost', ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e7aac;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: transparent;
}

.hero-branding-row {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  margin-bottom: 1rem;
}

.hero-branding-title {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.hero-branding-accent {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--purple);
}

.hero-highlight {
  color: var(--purple);
  font-weight: 800;
}

.hero-desc-note {
  color: var(--purple);
  font-style: italic;
}

.hero-title {
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-title .accent {
  color: var(--purple);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
  max-width: 58ch;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0rem;
  padding-left: 28px;
  padding-right: 28px;
  position: sticky;
  top: 0;
  width: calc(100% + 56px);
  margin-left: -28px;
  margin-right: -28px;
  z-index: 30;
  transform-origin: top center;
  background: transparent;
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.page-header.shrink {
  transform: scale(0.85);
  padding: 0.75rem 0 0rem;
  box-shadow: none;
}

.page-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-strong);
}

.page-logo {
  width: 300px;
  height: 74px;
  object-fit: contain;
}

.page-brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.action-buttons {
  display: flex;
  gap: 0.85rem;
}

.login-note {
  font-size: 0.85rem;
  color: #7e7a97;
  letter-spacing: 0.02em;
  text-transform: none;
}

.btn {
  border: 1px solid #664b9124;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 600;
  background: linear-gradient(135deg, var(--purple), #8e7aac);
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(85, 26, 177, 0.18);
}

.btn-secondary {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid #664b9124;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  color: #6e6a82;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary,
.btn-outline,
.btn-ghost {
  background: linear-gradient(135deg, var(--purple), #8e7aac);
  color: #fff;
  border-color: transparent;
}

.portal-nav {
  margin: 2rem 0 1.5rem;
  position: relative;
  display: grid;
  justify-content: center;
  grid-auto-flow: column;
  gap: 15px;
  align-items: center;
}

.tab {
  border: 1px solid rgba(142, 122, 172, 0.24);
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  background: #fff;
  color: #3e366d;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tab.btn-secondary {
  border: 1px solid #664b9124;
  background: rgba(255, 255, 255, 0.76);
  color: #6e6a82;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tab.active {
  background: #fff;
  border-color: rgba(142, 122, 172, 0.45);
  color: var(--purple);
}

.tab:hover {
  border-color: rgba(142, 122, 172, 0.45);
}

.app-shell {
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 28px 80px var(--panel-shadow);
}

.app-shell iframe {
  width: 100%;
  min-height: 720px;
  border: none;
  display: block;
  background: #fff;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  justify-items: stretch;
}

.hero-side-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(68, 62, 138, 0.05);
}

.hero-side-card h2 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #2f2c4e;
}

.meta-list {
  display: grid;
  gap: 0.75rem;
  color: #554d7d;
}

.notice {
  background: linear-gradient(135deg, rgba(142, 122, 172, 0.08), rgba(110, 200, 255, 0.09));
  color: #2f2c4e;
}

.notice p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .portal-nav {
    justify-content: stretch;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 24px 18px 36px;
  }

  .hero {
    padding: 2.8rem 0 1.8rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7vw, 3rem);
  }

  .tab {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}
