:root {
  --ink: #0a0a0a;
  --muted: #6c6c70;
  --line: #e6e6e8;
  --paper: #ffffff;
  --soft: #f5f5f7;
  --accent: #ffe900;
  --radius-lg: 36px;
  --radius-md: 24px;
  --content: 1180px;
  color-scheme: light;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans", "Yu Gothic", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font: inherit;
}

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

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

button {
  color: inherit;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
  background: color-mix(in srgb, white 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

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

.site-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.site-nav a {
  color: #38383a;
  font-size: 14px;
}

.site-nav > [data-lang-panel] {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-picker select {
  min-width: 126px;
  padding: 8px 34px 8px 13px;
  border: 1px solid #d8d8dc;
  border-radius: 999px;
  background: #f4f4f6;
  color: #1d1d1f;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}

.language-picker::after {
  position: absolute;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #5d5d62;
  border-bottom: 1.5px solid #5d5d62;
  content: "";
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}

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

.hero {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  background: #fff;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 4vw;
  display: flex;
  align-items: center;
  gap: clamp(48px, 8vw, 126px);
  transform: translateY(-50%);
}

.hero-icon-shell {
  width: clamp(150px, 12.5vw, 240px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d5d5d5;
  border-radius: 25%;
  background: #fff;
}

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

.hero-message {
  display: grid;
  align-items: start;
}

.hero-message > [data-lang-panel] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(30px, 2.1vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.app-store-note {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: #222;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 540;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-mask {
  position: absolute;
  z-index: 2;
  top: 5.2%;
  right: 29.5%;
  width: min(11.8vw, 226px);
  height: 87%;
  object-fit: contain;
}

.hero-portrait {
  position: absolute;
  top: 0;
  right: 0;
  width: 25.8%;
  height: 100%;
  object-fit: cover;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 50%;
  width: 28px;
  height: 44px;
  border: 1px solid #bcbcc0;
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 99px;
  background: #222;
  transform: translateX(-50%);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.35; }
  50% { transform: translate(-50%, 10px); opacity: 1; }
}

.section {
  padding: clamp(80px, 10vw, 150px) clamp(22px, 5vw, 80px);
}

.section-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.section-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #56565a;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.7;
}

.showcase {
  color: #fff;
  background: #080808;
}

.showcase .section-kicker {
  color: #a8a8ad;
}

.showcase .section-lead {
  color: #c2c2c7;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin-top: 70px;
  align-items: start;
}

.screenshot-card {
  margin: 0;
  background: transparent;
}

.screenshot-card:nth-child(even) {
  margin-top: 48px;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45));
}

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

.feature-card {
  min-height: 260px;
  padding: clamp(28px, 3vw, 42px);
  border-radius: var(--radius-md);
  background: var(--soft);
}

.feature-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #161616;
  background: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.feature-card h3 {
  margin: 50px 0 12px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(34px, 5vw, 68px);
  border-radius: var(--radius-lg);
  background: #0a0a0a;
  color: white;
}

.cta-panel h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

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

.site-footer {
  padding: 34px clamp(22px, 5vw, 80px) 44px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

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

.document-main {
  padding: 150px 22px 100px;
  background: #f7f7f8;
}

.document {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.document-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.document h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.document .updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.document section {
  padding-top: 34px;
}

.document h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.document h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.document p,
.document li {
  color: #48484c;
  font-size: 16px;
  line-height: 1.75;
}

.document ul,
.document ol {
  padding-left: 22px;
}

.document a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: 98px;
}

.error-document {
  text-align: center;
}

.error-document > picture img {
  margin: 0 auto 28px;
  border-radius: 22px;
}

.error-document .button {
  margin-top: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.error-document .button:hover {
  background: #262628;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.faq-list details {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafafa;
}

.faq-list summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 650;
}

.faq-list details p {
  margin: 0 0 20px;
}

[data-lang-panel][hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #007aff;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 980px;
  }

  .hero-copy {
    top: 28%;
    left: 8vw;
    right: 8vw;
    align-items: center;
    gap: 34px;
  }

  .hero h1 {
    max-width: 420px;
  }

  .hero-mask {
    top: 46%;
    right: 46%;
    width: 124px;
    height: 47%;
  }

  .hero-portrait {
    top: 46%;
    width: 44%;
    height: 54%;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    height: 66px;
    padding: 0 16px;
  }

  .language-picker select {
    min-width: 116px;
    max-width: 42vw;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-copy {
    top: 19%;
    left: 22px;
    right: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-icon-shell {
    width: 112px;
  }

  .hero h1 {
    max-width: 320px;
    padding: 0;
    font-size: 32px;
    line-height: 1.22;
  }
  .app-store-note {
    font-size: 15px;
  }

  .hero-mask {
    z-index: 4;
    top: 48%;
    right: auto;
    left: 24px;
    width: 96px;
    height: 43%;
  }

  .hero-portrait {
    top: 45%;
    width: 74%;
    height: 55%;
    border-top-left-radius: 36px;
  }

  .scroll-cue {
    display: none;
  }

  .screenshots {
    display: flex;
    margin-inline: -22px;
    padding: 0 22px 18px;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .screenshot-card,
  .screenshot-card:nth-child(even) {
    flex: 0 0 76vw;
    margin-top: 0;
    scroll-snap-align: center;
  }

  .cta-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .document-main {
    padding: 100px 12px 60px;
  }

  .document {
    border-radius: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
