:root {
  --bg: #090d12;
  --surface: #131b23;
  --surface-strong: #17222c;
  --text: #f7f8f6;
  --muted: #b3bdc3;
  --teal: #56c4bb;
  --teal-bright: #72ddd3;
  --coral: #ff8176;
  --border: rgba(255, 255, 255, 0.12);
  --shell: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 9%, rgba(86, 196, 187, 0.18), transparent 30rem),
    radial-gradient(circle at 8% 42%, rgba(255, 129, 118, 0.1), transparent 28rem),
    var(--bg);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  color: #061817;
  background: var(--teal-bright);
  border-radius: 10px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.identity-header,
.identity-footer,
.identity-hero,
.identity-section,
.download-panel {
  width: min(calc(100% - 56px), var(--shell));
  margin-inline: auto;
}

.identity-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.brand-link strong {
  color: var(--teal-bright);
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.header-link {
  padding: 11px 16px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.header-link:hover,
.header-link:focus-visible {
  color: #061817;
  background: var(--teal-bright);
  border-color: var(--teal-bright);
}

.identity-hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding-block: clamp(72px, 9vw, 126px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--teal-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow--coral {
  color: var(--coral);
}

.identity-hero h1 {
  max-width: 760px;
  font-size: clamp(3.8rem, 7.2vw, 7.2rem);
}

.identity-hero h1 span {
  color: var(--teal-bright);
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-action {
  min-width: 176px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 20px;
  color: var(--text);
  background: rgba(19, 27, 35, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 13px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.store-action:hover,
.store-action:focus-visible {
  transform: translateY(-2px);
  background: var(--surface-strong);
  border-color: var(--teal);
}

.store-action small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-action strong {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.verification-note {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.verification-note strong {
  color: var(--text);
  font-weight: 700;
}

.lesson-preview {
  position: relative;
  width: min(100%, 350px);
  margin: 0 auto;
  padding: 12px;
  background: linear-gradient(145deg, #26313b, #0b1117 58%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 42px;
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.52),
    0 0 70px rgba(86, 196, 187, 0.12);
  transform: rotate(2.5deg);
}

.lesson-preview::before {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 50%;
  width: 34%;
  height: 24px;
  content: "";
  background: #05080b;
  border-radius: 999px;
  transform: translateX(-50%);
}

.lesson-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 740 / 1600;
  object-fit: cover;
  border-radius: 32px;
}

.lesson-preview figcaption {
  position: absolute;
  right: -28px;
  bottom: 74px;
  width: 210px;
  padding: 14px 16px;
  color: #071817;
  background: var(--teal-bright);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  transform: rotate(-2.5deg);
}

.identity-section {
  padding-block: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 810px;
  margin-bottom: 48px;
}

.section-heading h2,
.download-panel h2 {
  font-size: clamp(2.7rem, 5vw, 5.4rem);
}

.section-heading > p:last-child,
.download-panel > div > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.identity-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.identity-grid > div,
.feature-grid article {
  min-width: 0;
  padding: 24px;
  background: linear-gradient(145deg, rgba(23, 34, 44, 0.92), rgba(12, 18, 24, 0.92));
  border: 1px solid var(--border);
  border-radius: 18px;
}

.identity-grid dt,
.feature-grid article > span {
  margin-bottom: 9px;
  color: var(--teal-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-grid dd {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.feature-grid article:nth-child(even) > span {
  color: var(--coral);
}

.feature-grid h3 {
  font-size: 1.25rem;
  line-height: 1.1;
}

.feature-grid p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-panel {
  margin-block: 24px 110px;
  padding: clamp(32px, 6vw, 72px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  background:
    linear-gradient(135deg, rgba(86, 196, 187, 0.19), rgba(255, 129, 118, 0.08)),
    var(--surface);
  border: 1px solid rgba(114, 221, 211, 0.25);
  border-radius: 28px;
}

.download-panel > div:first-child {
  max-width: 670px;
}

.store-action--light {
  background: rgba(9, 13, 18, 0.76);
}

.identity-footer {
  min-height: 120px;
  padding-block: 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--border);
}

.identity-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.identity-footer nav a,
.identity-footer > p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.identity-footer nav a:hover,
.identity-footer nav a:focus-visible {
  color: var(--teal-bright);
}

.identity-footer > p {
  margin: 0;
}

@media (max-width: 900px) {
  .identity-hero {
    grid-template-columns: 1fr;
  }

  .lesson-preview {
    width: min(76vw, 330px);
  }

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

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .identity-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 620px) {
  .identity-header,
  .identity-footer,
  .identity-hero,
  .identity-section,
  .download-panel {
    width: min(calc(100% - 32px), var(--shell));
  }

  .identity-header {
    min-height: 70px;
  }

  .header-link {
    padding: 9px 12px;
    font-size: 0.74rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-wordmark {
    font-size: 0.95rem;
  }

  .identity-hero {
    min-height: auto;
    padding-block: 64px 92px;
  }

  .identity-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .store-actions,
  .store-action {
    width: 100%;
  }

  .lesson-preview figcaption {
    right: -10px;
    width: 180px;
  }

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

  .identity-grid > div,
  .feature-grid article {
    padding: 20px;
  }

  .download-panel {
    margin-bottom: 76px;
    border-radius: 22px;
  }

  .identity-footer nav {
    gap: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
