:root {
  --bg: #f3f5fb;
  --bg-glow-a: #d7e7ff;
  --bg-glow-b: #d7fff2;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-muted: #f5f7fb;
  --ink: #101726;
  --muted: #647089;
  --line: rgba(16, 23, 38, 0.1);
  --line-strong: rgba(16, 23, 38, 0.16);
  --brand: #157efb;
  --brand-strong: #0e6adc;
  --brand-soft: rgba(21, 126, 251, 0.1);
  --accent: #19c79a;
  --shadow-lg: 0 28px 80px rgba(19, 43, 81, 0.12);
  --shadow-md: 0 18px 42px rgba(19, 43, 81, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(820px 520px at 0% 0%, var(--bg-glow-a), transparent 58%),
    radial-gradient(700px 420px at 100% 0%, var(--bg-glow-b), transparent 54%),
    var(--bg);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 0.9rem;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.9rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  padding: 0.68rem 0.92rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.top-nav a:hover,
.top-nav a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px var(--line);
}

main {
  padding: 0 0 3rem;
}

.hero-section {
  padding: 2.2rem 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 1.4rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--brand-strong);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
 h2,
 h3 {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-text,
.section-intro,
.muted,
.download-note,
.legal-card-long p,
.legal-card-long li,
.faq-list p,
.info-card li,
.info-card p {
  color: var(--muted);
}

.hero-text {
  font-size: 1.12rem;
  max-width: 36rem;
  margin: 1rem 0 1.25rem;
}

.hero-actions,
.cta-band-actions,
.section-heading-actions,
.download-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  cursor: pointer;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand) 52%, #4ca7ff);
  box-shadow: 0 12px 28px rgba(21, 126, 251, 0.28);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.is-disabled,
.button[aria-disabled="true"] {
  pointer-events: none;
  background: #dfe5f1;
  color: #7e8797;
  box-shadow: none;
}

.button-wide {
  min-width: 16rem;
}

.text-link {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
  font-weight: 600;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 0.57rem;
  left: 0;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.download-panel {
  padding: 1.35rem;
}

.download-panel-body {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.qr-shell {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #edf3ff);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-stack {
  min-height: 43rem;
  position: relative;
  overflow: hidden;
}

.phone-card {
  position: absolute;
  margin: 0;
  aspect-ratio: 1320 / 2868;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #0d1321;
  box-shadow: var(--shadow-lg);
}

.phone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-card-main {
  width: min(300px, 46vw);
  inset: 1rem auto auto 1.2rem;
}

.phone-card-offset-a {
  width: min(180px, 28vw);
  top: 1rem;
  right: 0.35rem;
  transform: rotate(7deg);
}

.phone-card-offset-b {
  width: min(175px, 26vw);
  bottom: 0.4rem;
  right: 1.8rem;
  transform: rotate(-7deg);
}

.section-block {
  margin-top: 3.2rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-heading .section-intro,
.section-heading-actions .section-intro {
  max-width: 34rem;
  margin: 0;
}

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

.showcase-card {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.showcase-copy {
  order: 2;
}

.showcase-copy p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.showcase-media {
  order: 1;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdff, #eef4ff);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 1rem 1rem 0;
}

.showcase-card img {
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  max-height: 28rem;
  object-fit: cover;
  object-position: top;
}

.trending-preview {
  padding: 1rem;
}

.trending-grid,
.trending-page-grid {
  display: grid;
  gap: 0.9rem;
}

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

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

.trending-card,
.catalog-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  min-height: 100%;
}

.trending-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.9rem;
}

.catalog-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.trending-cover,
.catalog-cover {
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--line);
}

.trending-cover {
  aspect-ratio: 0.75;
}

.catalog-cover {
  aspect-ratio: 0.72;
}

.trending-cover img,
.catalog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-title,
.catalog-title {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.trending-meta,
.catalog-meta,
.catalog-platforms {
  color: var(--muted);
}

.trending-platforms,
.catalog-platforms {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.trending-footer,
.trending-page-footer,
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.panel-header {
  margin-top: 0;
  margin-bottom: 1rem;
}

.cta-band {
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-layout {
  padding: 1.4rem 0 3rem;
}

.page-hero,
.legal-card-long,
.faq-panel,
.trending-page-panel {
  padding: 1.4rem;
}

.page-hero {
  margin-bottom: 1rem;
}

.page-hero-tight h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

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

.info-card {
  padding: 1.2rem;
}

.info-card ul,
.legal-card-long ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.legal-card-long h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.55rem;
}

.faq-list details {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 700;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--brand);
}

.faq-list details[open] summary::after {
  content: "-";
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin: 0 0 0.3rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

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

.footer-links a:hover {
  color: var(--ink);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #eef2f8 0%, #f8fbff 50%, #eef2f8 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.trending-skeleton {
  min-height: 9.5rem;
  border-radius: 22px;
}

.error-state {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--line-strong);
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (max-width: 1080px) {
  .hero-section,
  .screens-grid,
  .support-grid-extended,
  .trending-grid,
  .trending-page-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 2rem;
  }

  .cta-band {
    display: grid;
  }

  .phone-stack {
    min-height: 32rem;
  }

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

@media (max-width: 760px) {
  :root {
    --container: min(1180px, calc(100% - 1rem));
  }

  .site-header,
  .section-heading,
  .trending-footer,
  .trending-page-footer,
  .panel-header,
  .site-footer {
    display: grid;
  }

  .top-nav {
    gap: 0.3rem;
  }

  .top-nav a {
    padding: 0.6rem 0.82rem;
  }

  .hero-section {
    padding-top: 1.2rem;
  }

  .download-panel-body,
  .trending-card,
  .catalog-card {
    grid-template-columns: 1fr;
  }

  .qr-shell {
    width: 100%;
    max-width: 220px;
  }

  .phone-stack {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    overflow: visible;
  }

  .phone-card {
    position: static;
    width: 100%;
    transform: none;
  }

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

  .button,
  .button-wide {
    width: 100%;
    min-width: 0;
  }
}
