@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #172033;
  --muted: #5b6578;
  --paper: #f7fbff;
  --surface: #ffffff;
  --line: #dce5f2;
  --blue: #4361ee;
  --coral: #ff6b59;
  --mint: #24c58a;
  --gold: #ffc857;
  --deep: #111827;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.16);
  --soft-shadow: 0 12px 28px rgba(23, 32, 51, 0.1);
  --radius: 8px;
  --section-space: clamp(64px, 8vw, 112px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    linear-gradient(180deg, rgba(67, 97, 238, 0.08), transparent 520px),
    var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

:focus-visible {
  outline: 3px solid rgba(67, 97, 238, 0.38);
  outline-offset: 4px;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4rem);
}

h3 {
  font-size: 1.35rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(220, 229, 242, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 251, 255, 0.9);
  border-bottom: 1px solid rgba(220, 229, 242, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 0 rgba(23, 32, 51, 0);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-nav.is-scrolled {
  background: rgba(247, 251, 255, 0.96);
  border-bottom-color: rgba(197, 209, 226, 0.9);
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.08);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  transition: color 180ms ease, transform 180ms ease;
}

.brand-logo img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  color: var(--blue);
}

.brand-logo:hover img,
.brand-logo:focus-visible img {
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.16);
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  border-color: rgba(67, 97, 238, 0.34);
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(100svh - 148px);
  overflow: hidden;
  isolation: isolate;
}

.hero-art,
.hero-art img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.012);
  animation: heroDrift 1400ms ease-out both;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.9) 38%, rgba(247, 251, 255, 0.36) 72%, rgba(247, 251, 255, 0.12) 100%),
    linear-gradient(180deg, transparent 82%, var(--paper) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 148px);
  padding: clamp(48px, 7vw, 96px) 0;
}

.hero-copy {
  width: min(610px, 100%);
}

.hero-logo {
  width: clamp(110px, 14vw, 164px);
  aspect-ratio: 1;
  height: auto;
  margin-bottom: 24px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-logo:hover {
  box-shadow: 0 24px 58px rgba(23, 32, 51, 0.2);
  transform: translateY(-2px) scale(1.015);
}

.eyebrow {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-description {
  width: min(560px, 100%);
  margin: 24px 0 28px;
  color: #344054;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  width: 192px;
  min-height: 57px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.store-badge:hover,
.store-badge:focus-visible {
  filter: drop-shadow(0 12px 20px rgba(23, 32, 51, 0.22));
  transform: translateY(-2px);
}

.release-band {
  background:
    linear-gradient(90deg, rgba(67, 97, 238, 0.24), transparent 34%),
    var(--deep);
  color: var(--surface);
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.release-grid div {
  min-height: 104px;
  padding: 24px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.release-grid div:last-child {
  border-right: 0;
}

.release-grid strong,
.release-grid span {
  display: block;
}

.release-grid strong {
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.release-grid span {
  color: rgba(255, 255, 255, 0.7);
}

.showcase-section,
.audience-section,
.screenshots-section,
.features-section,
.faq-section,
.download-section,
.articles-section,
.article-list-section,
.article-body-section {
  padding: var(--section-space) 0;
}

.faq-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.faq-list {
  max-width: 760px;
}

.faq-item + .faq-item {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.faq-item p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.82);
}

.showcase-section {
  background:
    linear-gradient(180deg, var(--paper), rgba(255, 255, 255, 0.72));
}

.audience-section {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.78fr);
  align-items: start;
  gap: clamp(36px, 7vw, 82px);
}

.audience-copy p:not(.eyebrow) {
  margin-top: 22px;
  font-size: 1.08rem;
}

.audience-list {
  display: grid;
  gap: 16px;
}

.audience-list div {
  padding: 22px 24px;
  background: #f7fbff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.audience-list div:hover {
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.audience-list div:nth-child(2) {
  border-left-color: var(--blue);
}

.audience-list div:nth-child(3) {
  border-left-color: var(--mint);
}

.audience-list strong,
.audience-list span {
  display: block;
}

.audience-list strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.05rem;
}

.audience-list span {
  color: var(--muted);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 84px);
}

.showcase-copy p:not(.eyebrow),
.download-copy p:not(.eyebrow) {
  margin-top: 22px;
  font-size: 1.08rem;
}

.showcase-media {
  aspect-ratio: 1672 / 941;
  box-shadow: var(--shadow);
}

.showcase-media img,
.download-art img {
  transition: transform 360ms ease;
}

.showcase-media:hover img,
.download-art:hover img {
  transform: scale(1.025);
}

.showcase-media::after,
.download-art::after,
.screenshot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 36px;
}

.section-heading h2 {
  max-width: 680px;
}

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

.screenshot-card {
  aspect-ratio: 1672 / 941;
  appearance: none;
  padding: 0;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.screenshot-card img {
  transition: transform 260ms ease;
}

.screenshot-card:hover {
  border-color: rgba(67, 97, 238, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.screenshot-card:hover img {
  transform: scale(1.035);
}

.screenshot-card:focus-visible {
  outline: 3px solid rgba(67, 97, 238, 0.42);
  outline-offset: 4px;
}

.features-section {
  background:
    linear-gradient(135deg, rgba(36, 197, 138, 0.12), transparent 38%),
    #edf7f3;
  border-block: 1px solid var(--line);
}

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

.feature-card {
  min-height: 300px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  border-color: rgba(67, 97, 238, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  background: #fff4d8;
  border: 1px solid rgba(255, 200, 87, 0.7);
  border-radius: 50%;
  color: #8a5a00;
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-card:nth-child(2) .feature-mark {
  background: #e8edff;
  border-color: rgba(67, 97, 238, 0.28);
  color: var(--blue);
}

.feature-card:nth-child(3) .feature-mark {
  background: #def8ed;
  border-color: rgba(36, 197, 138, 0.34);
  color: #087a53;
}

.feature-card h3 {
  margin-bottom: 14px;
}

.download-section {
  background:
    linear-gradient(180deg, var(--surface), rgba(247, 251, 255, 0.88));
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: clamp(36px, 8vw, 96px);
}

.download-copy .store-badge {
  margin-top: 26px;
}

.featured-badge {
  display: block;
  width: min(var(--featured-badge-width, 244px), 100%);
  margin-top: 18px;
  opacity: 0.88;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.launch-llama-badge {
  --featured-badge-width: 200px;
}

.featured-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.featured-badge:hover,
.featured-badge:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 10px 18px rgba(23, 32, 51, 0.16));
  transform: translateY(-2px);
}

.download-art {
  aspect-ratio: 941 / 1672;
  box-shadow: var(--shadow);
}

.download-art img {
  object-position: center top;
}

.download-art-plain img {
  display: block;
  width: min(420px, 100%);
  height: auto;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.articles-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.article-list-section {
  background:
    linear-gradient(180deg, var(--paper), rgba(255, 255, 255, 0.82));
}

.article-index-section {
  padding-top: clamp(48px, 7vw, 84px);
}

.article-index-section h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

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

.article-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  border-color: rgba(67, 97, 238, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.article-card h3 {
  margin-bottom: 14px;
}

.article-card p {
  margin-bottom: 24px;
}

.article-card span {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.article-hero {
  padding: clamp(56px, 8vw, 104px) 0;
  background:
    linear-gradient(90deg, rgba(67, 97, 238, 0.12), transparent 46%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.article-hero--text {
  padding-block: clamp(46px, 7vw, 84px);
}

.article-hero-text {
  max-width: 880px;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.article-hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.article-lede {
  max-width: 720px;
  color: #344054;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.article-hero-art {
  aspect-ratio: 941 / 1672;
  box-shadow: var(--shadow);
}

.article-figure {
  margin: 34px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-body-section {
  background: var(--paper);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 320px);
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
}

.article-content {
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.article-content h2 {
  margin-top: 38px;
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-content p,
.article-content li {
  color: rgba(15, 23, 42, 0.82);
  font-size: 1.04rem;
}

.article-content p + p {
  margin-top: 16px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
  padding-left: 22px;
}

.article-content a {
  color: var(--blue);
  font-weight: 800;
}

.article-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.article-panel,
.inline-cta {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.article-panel h2,
.inline-cta h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.article-panel p,
.inline-cta p {
  margin-bottom: 18px;
}

.article-panel ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.article-panel a {
  color: var(--blue);
  font-weight: 800;
}

.inline-cta {
  margin: 34px 0;
  background:
    linear-gradient(135deg, rgba(255, 200, 87, 0.24), transparent 46%),
    #f9fbff;
}

.text-link-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--surface) !important;
  background: var(--blue);
  border-radius: var(--radius);
  font-weight: 800;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.text-link-cta:hover,
.text-link-cta:focus-visible {
  box-shadow: 0 12px 22px rgba(67, 97, 238, 0.28);
  transform: translateY(-2px);
}

.legal-content {
  width: min(900px, 100%);
  margin: clamp(32px, 6vw, 72px) auto;
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.legal-content h1,
.legal-content h2 {
  margin-bottom: 30px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-content strong {
  display: block;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--blue);
  font-size: 1.15rem;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 15px;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--muted);
}

.legal-content a {
  color: var(--blue);
  font-weight: 700;
}

footer {
  padding: 34px 0;
  background: var(--deep);
  color: var(--surface);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(17, 24, 39, 0.84);
  backdrop-filter: blur(14px);
  opacity: 0;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  animation: lightboxIn 180ms ease forwards;
}

.lightbox.is-closing {
  animation: lightboxOut 160ms ease forwards;
}

.lightbox-frame {
  width: min(1180px, 100%);
  margin: 0;
  transform: translateY(8px) scale(0.985);
  transition: transform 180ms ease;
}

.lightbox.is-open .lightbox-frame {
  transform: translateY(0) scale(1);
}

.lightbox-frame img {
  display: block;
  width: 100%;
  max-height: calc(100svh - 140px);
  object-fit: contain;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.lightbox-frame figcaption {
  margin-top: 14px;
  color: var(--surface);
  font-weight: 800;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.lightbox-close span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.lightbox-close span:first-child {
  transform: rotate(45deg);
}

.lightbox-close span:last-child {
  transform: rotate(-45deg);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: translateY(-1px);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

footer p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--surface);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.fade-in {
  animation: fadeIn 520ms ease forwards;
}

.fade-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.fade-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1.012);
  }
}

@keyframes lightboxIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lightboxOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .release-grid,
  .audience-grid,
  .showcase-grid,
  .features-grid,
  .download-grid,
  .article-hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .release-grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .release-grid div:last-child {
    border-bottom: 0;
  }

  .download-art {
    max-height: 720px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 13px 12px;
  }

  .nav-links a::after {
    bottom: 6px;
    left: 12px;
    right: auto;
    width: 28px;
    transform-origin: left;
  }

  .brand-logo span {
    display: none;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.96) 0%, rgba(247, 251, 255, 0.86) 42%, rgba(247, 251, 255, 0.18) 74%, var(--paper) 100%);
  }

  .hero-art img {
    object-position: center bottom;
  }

  .hero-container {
    align-items: flex-start;
    padding-top: 34px;
    padding-bottom: 88px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-logo {
    width: 104px;
    border-radius: 22px;
  }

  .store-badge {
    width: 176px;
  }

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

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

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .feature-card {
    min-height: 0;
  }

  .footer-grid,
  .footer-links,
  .social-links {
    display: grid;
    justify-content: stretch;
  }

  .social-links {
    grid-template-columns: repeat(3, 42px);
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-art img {
    animation: none !important;
    transform: none !important;
  }
}
