:root {
  color-scheme: light dark;
  --canvas: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #eef1f7;
  --ink: #111827;
  --muted: #5f6878;
  --line: #dce1ea;
  --header: rgba(246, 247, 251, 0.88);
  --accent: #5b50e6;
  --accent-strong: #4438ca;
  --accent-soft: #ebe9ff;
  --focus: #0066ff;
  --shadow: 0 24px 70px rgba(25, 34, 58, 0.12);
  --shadow-soft: 0 14px 38px rgba(25, 34, 58, 0.08);
  --radius-lg: 38px;
  --radius-md: 24px;
  --radius-sm: 14px;
  --shell: 1180px;
  --page-pad: clamp(20px, 4vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0d111b;
    --surface: #151b27;
    --surface-soft: #1d2533;
    --ink: #f6f8fc;
    --muted: #acb5c5;
    --line: #2d3747;
    --header: rgba(13, 17, 27, 0.88);
    --accent: #6657e8;
    --accent-strong: #b7b2ff;
    --accent-soft: #29254e;
    --focus: #7bb4ff;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.24);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 8px;
}

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

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.site-shell {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.5vw, 28px);
  font-size: 0.92rem;
  font-weight: 680;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 999px;
}

.eyebrow,
.app-kicker {
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-hero {
  min-height: min(780px, calc(100vh - 76px));
  padding-block: clamp(64px, 9vw, 118px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.hero-copy h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 7vw, 6.85rem);
  font-weight: 850;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 26%, transparent);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.text-link {
  color: var(--accent-strong);
  font-size: 0.94rem;
  font-weight: 750;
}

.hero-visual {
  min-height: 680px;
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 14% 4% 8%;
  z-index: -1;
  background: linear-gradient(145deg, #1f72e7, #6350e8 55%, #f08b63);
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.28;
}

.hero-shot {
  width: clamp(220px, 26vw, 310px);
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 33px;
  box-shadow: var(--shadow);
}

.hero-shot img {
  width: 100%;
  height: auto;
}

.hero-shot-currency {
  top: 0;
  left: 3%;
  transform: rotate(-5deg);
}

.hero-shot-hsk {
  right: 0;
  bottom: 0;
  z-index: 2;
  transform: rotate(5deg);
}

.anchor-alias {
  position: relative;
  top: -96px;
}

.apps-section {
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--surface-soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(48px, 7vw, 84px);
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.12rem;
}

.app-showcase {
  --card-accent: #1769e0;
  --card-soft: color-mix(in srgb, var(--card-accent) 17%, var(--surface));
  min-height: 620px;
  margin-bottom: clamp(34px, 5vw, 60px);
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hsk-card {
  --card-accent: #6d42e8;
  --card-soft: color-mix(in srgb, var(--card-accent) 17%, var(--surface));
}

.app-showcase .showcase-media {
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
}

.app-showcase .showcase-media::before {
  content: "";
  width: min(100%, 390px);
  aspect-ratio: 1;
  position: absolute;
  background: var(--card-soft);
  border-radius: 50%;
}

.app-showcase .showcase-media img {
  width: min(100%, 286px);
  position: relative;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hsk-card .showcase-media {
  order: 2;
}

.showcase-copy {
  max-width: 610px;
}

.showcase-copy .app-kicker {
  color: var(--card-accent);
}

.showcase-copy h3 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.showcase-lede {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.mini-features {
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.mini-features li {
  padding: 8px 12px;
  background: var(--card-soft);
  color: color-mix(in srgb, var(--card-accent) 76%, var(--ink));
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 720;
}

.app-showcase .button-primary {
  background: var(--card-accent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--card-accent) 25%, transparent);
}

.app-showcase .text-link {
  color: var(--card-accent);
}

.store-badge-placeholder {
  width: 174px;
  min-height: 56px;
  margin-top: 24px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--surface-soft) 75%, var(--surface));
  color: var(--muted);
  border: 1.5px dashed color-mix(in srgb, var(--muted) 50%, transparent);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.store-badge-placeholder small {
  font-size: 0.65rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-store-badge {
  width: 174px;
  margin-top: 24px;
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
  transition: transform 180ms ease, filter 180ms ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

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

.studio-section {
  padding-block: clamp(70px, 10vw, 130px);
}

.studio-card {
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 94px);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
}

.studio-card h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.5vw, 4.2rem);
}

.studio-card > div:last-child p {
  margin-bottom: 26px;
  color: color-mix(in srgb, var(--canvas) 76%, transparent);
  font-size: 1.08rem;
}

.studio-card .eyebrow {
  color: color-mix(in srgb, var(--canvas) 72%, var(--accent));
}

.studio-card .button-primary {
  background: var(--canvas);
  color: var(--ink);
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

/* Product pages */
.currency-theme {
  --accent: #1769e0;
  --accent-strong: #1054b5;
  --accent-soft: #e4efff;
}

.hsk-theme {
  --accent: #6d42e8;
  --accent-strong: #5831c6;
  --accent-soft: #eee8ff;
}

@media (prefers-color-scheme: dark) {
  .currency-theme {
    --accent: #2470d0;
    --accent-strong: #95c0ff;
    --accent-soft: #152c4e;
  }

  .hsk-theme {
    --accent: #7652df;
    --accent-strong: #c4b4ff;
    --accent-soft: #2c2350;
  }
}

.product-hero-wrap {
  position: relative;
  overflow: hidden;
}

.product-hero-wrap::before {
  content: "";
  width: 680px;
  height: 680px;
  position: absolute;
  top: -260px;
  right: -220px;
  z-index: -1;
  background: var(--accent-soft);
  border-radius: 50%;
  filter: blur(8px);
}

.product-hero {
  min-height: 730px;
  padding-block: clamp(56px, 8vw, 106px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  align-items: center;
  gap: clamp(42px, 7vw, 94px);
}

.product-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 7vw, 6.7rem);
  font-weight: 850;
}

.product-copy .hero-lede {
  max-width: 650px;
}

.product-copy .store-badge-placeholder,
.product-copy .app-store-badge {
  margin-top: 0;
}

.product-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.product-visual {
  min-height: 680px;
  position: relative;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 17% 5% 5%;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
}

.product-shot {
  width: clamp(230px, 25vw, 315px);
  position: absolute;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.product-shot:first-child {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
}

.product-shot:last-child {
  right: 0;
  bottom: 0;
  transform: rotate(5deg);
}

.product-stats {
  padding-bottom: clamp(64px, 8vw, 100px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  min-height: 126px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.stat strong {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-strong);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 0.93rem;
}

.content-section {
  padding-block: clamp(76px, 10vw, 132px);
}

.content-section.tint {
  background: var(--surface-soft);
}

.content-intro {
  max-width: 780px;
  margin-bottom: clamp(38px, 6vw, 66px);
}

.content-intro h2 {
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 5vw, 4.9rem);
}

.content-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.feature-card {
  min-height: 235px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feature-number {
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(42px, 8vw, 104px);
}

.split-feature-media {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 52px);
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
}

.split-feature-media img {
  width: min(100%, 340px);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.split-feature-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.split-feature-copy p,
.check-list {
  color: var(--muted);
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-weight: 900;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.gallery-heading .content-intro {
  margin-bottom: 0;
}

.gallery-note {
  max-width: 260px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.shot-grid {
  margin-top: clamp(36px, 6vw, 62px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
}

.shot-card {
  margin: 0;
}

.shot-card img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: clamp(18px, 2.6vw, 30px);
  box-shadow: var(--shadow-soft);
}

.shot-card figcaption {
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.closing-section {
  padding-block: clamp(70px, 9vw, 120px);
}

.closing-card {
  padding: clamp(34px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 7vw, 90px);
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
}

.closing-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.8vw, 4.6rem);
}

.closing-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.closing-card .store-badge-placeholder,
.closing-card .app-store-badge {
  margin: 0;
  justify-self: center;
}

.closing-card .store-badge-placeholder {
  background: var(--surface);
}

.disclaimer {
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 940px) {
  .home-hero,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }

  .hero-copy,
  .product-copy {
    text-align: center;
  }

  .hero-copy .hero-lede,
  .product-copy .hero-lede {
    margin-inline: auto;
  }

  .hero-copy .button-row,
  .product-actions {
    justify-content: center;
  }

  .hero-visual,
  .product-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .app-showcase,
  .split-feature {
    grid-template-columns: 1fr;
  }

  .app-showcase .showcase-media {
    min-height: 480px;
  }

  .hsk-card .showcase-media {
    order: 0;
  }

  .showcase-copy {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
  }

  .showcase-copy .button-row,
  .showcase-copy .mini-features {
    justify-content: center;
  }

  .showcase-copy .store-badge-placeholder,
  .showcase-copy .app-store-badge {
    margin-inline: auto;
  }

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

  .split-feature-copy {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 18px;
    --radius-lg: 28px;
  }

  html {
    scroll-padding-top: 118px;
  }

  .header-inner {
    min-height: 70px;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 10px;
  }

  .site-brand span {
    display: none;
  }

  .site-nav {
    flex: 1;
    gap: 14px;
  }

  .site-nav .nav-cta {
    min-height: 38px;
    padding-inline: 12px;
  }

  .home-hero,
  .product-hero {
    padding-top: 54px;
  }

  .hero-copy h1,
  .product-copy h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .hero-visual,
  .product-visual {
    min-height: 480px;
  }

  .hero-shot,
  .product-shot {
    width: min(57vw, 255px);
    border-radius: 24px;
  }

  .app-showcase {
    padding: 24px 20px 34px;
  }

  .app-showcase .showcase-media {
    min-height: 410px;
  }

  .app-showcase .showcase-media img {
    width: min(78%, 238px);
    border-radius: 22px;
  }

  .showcase-copy h3 {
    font-size: 2.75rem;
  }

  .studio-card,
  .closing-card {
    grid-template-columns: 1fr;
  }

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

  .stat {
    min-height: 100px;
  }

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

  .gallery-heading {
    align-items: start;
    flex-direction: column;
  }

  .gallery-note {
    max-width: none;
    margin: 0;
  }

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

  .closing-card {
    text-align: center;
  }

  .footer-inner {
    padding-block: 28px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .site-nav {
    font-size: 0.82rem;
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .button-row .button {
    width: 100%;
  }

  .hero-visual,
  .product-visual {
    min-height: 410px;
  }

  .app-showcase .showcase-media {
    min-height: 360px;
  }

  .shot-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 4px 2px 20px;
  }

  .shot-card {
    min-width: 78vw;
    scroll-snap-align: center;
  }
}

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