:root {
  --page-dark: #110e1b;
  --page-panel: #221c36;
  --page-panel-soft: #30284c;
  --page-line: rgba(88, 72, 139, .48);
  --page-text: #f7f7f7;
  --page-muted: #b6bdcc;
  --page-link: #00eda6;
  --page-yellow: #ffe114;
  --page-radius: 1.5rem;
  --page-width: min(82.5rem, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-dark);
  color: var(--page-muted);
  font-family: Sora, ui-sans-serif, system-ui, sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 74% 4rem, rgba(205, 63, 226, .22), transparent 28rem),
    radial-gradient(circle at 16% 16rem, rgba(0, 237, 166, .08), transparent 24rem),
    var(--page-dark);
}

a {
  color: inherit;
}

.template-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(48, 40, 76, .84);
  backdrop-filter: blur(18px);
}

.template-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: var(--page-width);
  min-height: 4rem;
  margin: 0 auto;
}

.template-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.template-logo img:first-child {
  width: 2.5rem;
  height: 2.5rem;
}

.template-logo img:last-child {
  width: 4.25rem;
  height: auto;
}

.template-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.template-nav a,
.template-login-link {
  color: #c1b3db;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}

.template-nav a:hover,
.template-login-link:hover {
  color: var(--page-text);
}

.template-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.template-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: #4c426b;
  color: var(--page-text);
}

.template-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--page-link);
  color: var(--page-dark);
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}

.template-page {
  display: grid;
  gap: 1.5rem;
  width: var(--page-width);
  margin: 0 auto;
  padding: 2rem 0 7rem;
}

.template-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  gap: 2rem;
  align-items: stretch;
}

.template-hero__copy,
.template-panel {
  border-radius: var(--page-radius);
  background: var(--page-panel);
  box-shadow: inset 0 0 0 1px var(--page-line);
}

.template-hero__copy {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  min-height: 26rem;
  padding: 2rem;
}

.template-eyebrow {
  width: fit-content;
  border-radius: 999px;
  padding: .35rem .75rem;
  background: rgba(255, 225, 20, .12);
  color: var(--page-yellow);
  font-size: .75rem;
  font-weight: 800;
}

.template-hero h1 {
  margin: 0;
  color: var(--page-text);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.template-hero p,
.template-section p,
.template-card p,
.template-form-note {
  margin: 0;
  color: var(--page-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.template-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

.template-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #4c426b;
  color: var(--page-text);
  font-weight: 800;
  text-decoration: none;
}

.template-hero__media {
  display: grid;
  place-items: center;
  min-height: 26rem;
  overflow: hidden;
  border-radius: var(--page-radius);
  background:
    linear-gradient(135deg, rgba(235, 2, 226, .72), rgba(39, 151, 255, .76)),
    var(--page-panel-soft);
}

.template-hero__media img {
  width: min(80%, 20rem);
  height: auto;
  filter: drop-shadow(0 1.5rem 2rem rgba(17, 14, 27, .34));
}

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

.template-article {
  display: grid;
  gap: 2rem;
  width: min(54rem, 100%);
  margin: 0 auto;
  padding: 0;
}

.template-article__header,
.template-article__body,
.template-article section {
  display: grid;
  gap: 1.25rem;
}

.template-article h1 {
  margin: 0;
  color: var(--page-text);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.template-article h2 {
  margin: 0;
  color: var(--page-text);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.template-article h3 {
  margin: 0;
  color: var(--page-text);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}

.template-article p {
  margin: 0;
  color: var(--page-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.template-article section {
  padding-top: 0;
}

.template-article ul,
.template-article ol {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding-left: 3rem;
  color: var(--page-muted);
}

.template-article li {
  padding-left: .25rem;
  font-size: 1rem;
  line-height: 1.6;
}

.template-article a {
  color: var(--page-link);
  font-weight: 800;
  text-decoration: none;
}

.template-article table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 1rem;
  color: var(--page-muted);
  background: var(--page-panel);
  box-shadow: inset 0 0 0 1px var(--page-line);
}

.template-article th,
.template-article td {
  padding: 1rem;
  border-top: 1px solid var(--page-line);
  text-align: left;
  vertical-align: top;
}

.template-article th {
  color: var(--page-text);
  font-weight: 800;
  background: var(--page-panel-soft);
}

.template-card,
.template-panel,
.template-form {
  padding: 1.5rem;
}

.template-card {
  display: grid;
  gap: .75rem;
  min-height: 12rem;
  border-radius: 1rem;
  background: var(--page-panel);
  box-shadow: inset 0 0 0 1px var(--page-line);
}

.template-card h2,
.template-section h2,
.template-form h2 {
  margin: 0;
  color: var(--page-text);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.template-section {
  display: grid;
  gap: 1rem;
}

.template-list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-list li {
  display: flex;
  gap: .75rem;
  color: var(--page-text);
}

.template-list li::before {
  content: "";
  flex: 0 0 .5rem;
  width: .5rem;
  height: .5rem;
  margin-top: .55rem;
  border-radius: 999px;
  background: var(--page-link);
}

.template-form {
  display: grid;
  gap: 1rem;
  border-radius: var(--page-radius);
  background: var(--page-panel);
  box-shadow: inset 0 0 0 1px var(--page-line);
}

.template-field {
  display: grid;
  gap: .5rem;
}

.template-field label {
  color: var(--page-text);
  font-size: .875rem;
  font-weight: 800;
}

.template-field input {
  min-height: 3rem;
  width: 100%;
  border: 0;
  border-radius: 1rem;
  padding: 0 1rem;
  outline: 0;
  background: #443a70;
  color: var(--page-text);
  font: inherit;
}

.template-field input::placeholder {
  color: #c1b3db;
}

.template-footer {
  border-top: 1px solid var(--page-line);
  padding: 1.5rem 0 0;
  color: var(--page-muted);
  font-size: .875rem;
  text-align: center;
}

.template-bottom-menu {
  display: none;
}

@media (max-width: 1023px) {
  .template-header__inner {
    grid-template-columns: auto 1fr;
  }

  .template-nav,
  .template-actions {
    display: none;
  }

  .template-hero,
  .template-grid {
    grid-template-columns: 1fr;
  }

  .template-hero__copy,
  .template-hero__media {
    min-height: auto;
  }

  .template-hero__media {
    padding: 2rem 0;
  }

  .template-bottom-menu {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    gap: .5rem;
    padding: .5rem .75rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(48, 40, 76, .92);
    backdrop-filter: blur(18px);
  }

  .template-bottom-auth,
  .template-bottom-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }

  .template-bottom-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border-radius: 999px;
    background: #4c426b;
    color: var(--page-text);
    font-size: .875rem;
    font-weight: 800;
    text-decoration: none;
  }

  .template-bottom-menu a:last-child,
  .template-bottom-auth a:last-child {
    background: var(--page-link);
    color: var(--page-dark);
  }
}
