:root {
  color-scheme: dark;
  --background: #171629;
  --surface: #23213d;
  --surface-soft: #2d2a4b;
  --border: #464164;
  --text: #f7f5ff;
  --muted: #c1bdd0;
  --accent: #9b8cff;
  --mint: #70d8b7;
  --gold: #f2bd5b;
  --paper: #f7f4ed;
  --ink: #20202b;
  --danger: #ffaaa4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

header {
  border-bottom: 1px solid var(--border);
  background: #19182d;
}

nav,
body:not(.home) main,
body:not(.home) footer {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
}

nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

a {
  color: #d5d0ff;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--text);
}

body:not(.home) main {
  padding: 54px 0 64px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 7vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 38px 0 8px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 24px 0 6px;
  font-size: 18px;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
}

ul,
ol {
  padding-left: 24px;
}

.updated {
  margin: 0 0 34px;
  color: #c8c0ff;
  font-weight: 700;
}

.notice {
  margin: 28px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.danger {
  color: var(--danger);
}

.button {
  display: inline-block;
  margin: 6px 0;
  padding: 11px 16px;
  color: #fff;
  background: #5142a5;
  border-radius: 7px;
  font-weight: 750;
  text-decoration: none;
}

body:not(.home) footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* Public homepage */

.home {
  background: var(--paper);
  color: var(--ink);
}

.home .site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  border-bottom-color: rgba(255, 255, 255, 0.25);
  background: rgba(16, 15, 27, 0.86);
}

.home nav,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.home .brand img {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.28);
}

.home main {
  padding: 0;
}

.hero {
  position: relative;
  min-height: min(780px, 88vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #171629;
}

.hero-background,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9);
}

.hero-shade {
  background: rgba(12, 11, 22, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 160px 0 82px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6e5a00;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6cc76;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 10vw, 112px);
  line-height: 0.95;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 28px;
  color: #eeeaf8;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.store-status {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 7px;
  background: #f7f4ed;
  color: #211f2e;
  font-weight: 800;
}

.text-link {
  color: #fff;
  font-weight: 750;
  text-underline-offset: 5px;
}

.intro-band,
.product-showcase,
.family-band,
.support-band {
  padding: 92px 0;
}

.intro-band {
  background: var(--paper);
}

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

.home h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

.home h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.home p {
  color: #5f5d69;
}

.section-heading > p:last-child,
.showcase-copy > p:last-child,
.family-layout > div > p {
  max-width: 680px;
  font-size: 19px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border-top: 1px solid #cbc6ba;
  border-bottom: 1px solid #cbc6ba;
}

.feature-grid article {
  min-width: 0;
  padding: 30px 28px 32px 0;
}

.feature-grid article + article {
  padding-left: 28px;
  border-left: 1px solid #cbc6ba;
}

.feature-number {
  color: #5142a5;
  font-weight: 850;
}

.product-showcase {
  background: #1b1a2d;
  color: var(--text);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 60px;
}

.product-showcase .eyebrow {
  color: #82dfc2;
}

.product-showcase p {
  color: #c7c3d2;
}

.screen-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
}

.screen-row figure {
  min-width: 0;
  margin: 0;
}

.screen-row figure:nth-child(2) {
  transform: translateY(28px);
}

.screen-row img,
.family-layout img {
  display: block;
  width: 100%;
  border: 1px solid #4b4665;
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
}

.screen-row figcaption {
  padding-top: 10px;
  color: #bcb6ce;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.family-band {
  background: #dff5ed;
}

.family-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: 80px;
}

.family-layout img {
  max-height: 620px;
  object-fit: cover;
  object-position: top;
  border-color: #69bca4;
}

.family-layout .button {
  margin-top: 14px;
  background: #146f5c;
}

.support-band {
  background: #f2bd5b;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 80px;
}

.support-links {
  border-top: 1px solid rgba(32, 32, 43, 0.35);
}

.support-links a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(32, 32, 43, 0.35);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.support-links a:hover {
  padding-left: 6px;
}

.home footer {
  background: #171629;
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 44px 0;
}

.footer-inner p {
  margin: 4px 0 0;
  color: #a9a5ba;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid #3e3a52;
  font-size: 13px;
}

@media (max-width: 820px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .feature-grid article + article {
    padding: 24px 0;
    border-left: 0;
  }

  .feature-grid article + article {
    border-top: 1px solid #cbc6ba;
  }

  .showcase-grid,
  .family-layout,
  .support-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .family-layout img {
    width: min(440px, 100%);
    justify-self: center;
  }
}

@media (max-width: 600px) {
  nav {
    min-height: 64px;
  }

  body:not(.home) nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .home .nav-links {
    gap: 14px;
    font-size: 14px;
  }

  .home .nav-links a:first-child {
    display: none;
  }

  body:not(.home) .nav-links {
    justify-content: flex-start;
  }

  body:not(.home) main {
    padding-top: 38px;
  }

  .hero {
    min-height: 740px;
  }

  .hero-background {
    object-position: 47% center;
  }

  .hero-content {
    padding-bottom: 62px;
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 78px);
  }

  .hero-copy {
    font-size: 19px;
  }

  .intro-band,
  .product-showcase,
  .family-band,
  .support-band {
    padding: 68px 0;
  }

  .home h2 {
    font-size: 38px;
  }

  .screen-row {
    width: min(100%, 420px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .screen-row figure:nth-child(2) {
    transform: translateY(16px);
  }

  .screen-row figcaption {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
