:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(13, 25, 46, 0.92);
  --panel-border: rgba(120, 170, 255, 0.12);
  --text: #f3f8ff;
  --muted: #9db3d7;
  --accent: #39f0b3;
  --accent-soft: rgba(57, 240, 179, 0.16);
  --warning: #ffd166;
  --danger: #ff6b6b;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(24, 108, 94, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(33, 96, 193, 0.2), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #050a15 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow-x: hidden;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 90%);
  pointer-events: none;
}

.site-header,
.section,
.site-footer,
.download-layout {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin-top: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark__badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(8, 217, 152, 0.22), rgba(45, 155, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-mark__text {
  display: grid;
  gap: 2px;
}

.brand-mark__text strong,
.site-nav a,
.button,
h1,
h2,
h3,
summary {
  font-family: "Space Grotesk", sans-serif;
}

.brand-mark__text span:last-child,
.caption,
.hero__lede,
.section-heading p,
.feature-card p,
.workflow-step p,
.security-card p,
.callout-actions p,
.release-notes {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  font-size: 0.96rem;
}

.section {
  position: relative;
  padding: 88px 0;
}

.section--hero {
  padding-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero__content h1,
.portal-card h1 {
  margin: 0 0 20px;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero__lede {
  max-width: 56ch;
  font-size: 1.08rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.hero__actions,
.callout-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), #48c7ff);
  color: #021019;
  font-weight: 700;
}

.button--secondary,
.button--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.hero__stats div,
.feature-card,
.workflow-step,
.security-card,
.portal-card,
.faq-list details,
.preview-card,
.notice {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero__stats div {
  padding: 20px;
}

.hero__stats dt,
.hero__stats dd,
.release-meta span,
.release-meta strong,
.entitlement-list dt,
.entitlement-list dd {
  margin: 0;
}

.hero__stats dt,
.release-meta span,
.entitlement-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__stats dd,
.release-meta strong,
.entitlement-list dd {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.panel-glow {
  position: relative;
}

.panel-glow::after {
  content: "";
  position: absolute;
  inset: auto 12% -18% 12%;
  height: 140px;
  background: radial-gradient(circle, rgba(57, 240, 179, 0.24), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}

.preview-frame {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(9, 17, 31, 0.98), rgba(8, 16, 27, 0.94));
}

.preview-frame__top,
.preview-footer,
.portal-card__header,
.release-meta,
.workflow-grid,
.feature-grid,
.security-grid,
.faq-list,
.portal-grid {
  display: grid;
}

.preview-frame__top {
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.status-pill--live {
  background: rgba(57, 240, 179, 0.14);
  color: var(--accent);
}

.status-inline {
  color: var(--muted);
  font-size: 0.95rem;
}

.preview-frame__grid,
.feature-grid,
.security-grid,
.portal-grid {
  display: grid;
  gap: 18px;
}

.preview-frame__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 18px;
}

.preview-card {
  padding: 22px;
}

.preview-card--accent {
  background: linear-gradient(180deg, rgba(14, 31, 40, 0.94), rgba(11, 23, 35, 0.94));
}

.preview-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.preview-footer {
  grid-auto-flow: column;
  justify-content: start;
  gap: 12px;
}

.preview-footer span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(57, 240, 179, 0.08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.section-heading p {
  margin: 0;
  line-height: 1.7;
}

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

.feature-card,
.security-card,
.workflow-step,
.portal-card,
.faq-list details {
  padding: 26px;
}

.feature-card h3,
.security-card h3,
.workflow-step h3,
.portal-card h2,
.preview-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.feature-card p,
.security-card p,
.workflow-step p {
  margin: 0;
  line-height: 1.7;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workflow-step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.security-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section--callout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: center;
}

.faq-list {
  gap: 14px;
}

.faq-list details summary {
  cursor: pointer;
  font-size: 1.05rem;
  list-style: none;
}

.faq-list details summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 14px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.download-layout {
  padding: 72px 0 88px;
}

.portal-card--release {
  margin-bottom: 24px;
}

.portal-card__header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.release-meta,
.entitlement-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.release-notes {
  margin: 18px 0 0;
  max-width: 72ch;
  line-height: 1.7;
}

.auth-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 18px;
  cursor: pointer;
}

.auth-tab--active {
  background: var(--accent-soft);
  color: var(--text);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form input {
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.auth-form input:focus {
  outline: 2px solid rgba(57, 240, 179, 0.24);
  outline-offset: 2px;
}

.caption {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.caption--status {
  min-height: 24px;
}

.entitlement-list {
  margin: 0;
}

.entitlement-list div {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notice {
  margin-top: 20px;
  padding: 18px 20px;
  line-height: 1.6;
}

.notice--neutral {
  background: rgba(255, 255, 255, 0.04);
}

.notice--success {
  background: rgba(57, 240, 179, 0.11);
  color: #bcffe7;
}

.notice--danger {
  background: rgba(255, 107, 107, 0.13);
  color: #ffd1d1;
}

.notice--warning {
  background: rgba(255, 209, 102, 0.14);
  color: #ffefbf;
}

@media (max-width: 1040px) {
  .site-header,
  .site-footer {
    border-radius: 24px;
  }

  .section--hero,
  .section--callout,
  .feature-grid,
  .workflow-grid,
  .security-grid,
  .portal-grid,
  .release-meta,
  .entitlement-list {
    grid-template-columns: 1fr;
  }

  .preview-frame__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    margin-top: 0;
    border-radius: 0 0 24px 24px;
    width: 100%;
    padding: 18px 16px;
  }

  .site-nav {
    display: none;
  }

  .section,
  .download-layout {
    padding: 64px 0;
  }

  .hero__content h1,
  .portal-card h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 36px;
  }
}
