:root {
  --ink: #233144;
  --ink-2: #46566b;
  --muted: #6d7b8d;
  --cyan: #14bfc6;
  --cyan-deep: #0b767c;
  --cyan-soft: #e1f5ee;
  --magenta: #ed4398;
  --violet: #514fbd;
  --night: #101724;
  --night-soft: #1d2736;
  --paper: #ffffff;
  --page: #f7fafc;
  --tint: #eef4fa;
  --line: #dde5ef;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.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;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 100;
  padding: 10px 16px; background: var(--night); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan-deep); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand__mark { width: 40px; height: 40px; }
.brand__wordmark { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--cyan-deep); }
.nav-links a[aria-current] { font-weight: 600; }
.nav-links a[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; border-radius: 2px; background: var(--cyan);
}

.site-header__actions { display: flex; align-items: center; gap: 16px; }
/* Language picker: globe icon button with a click-to-open menu */
.lang-picker { position: relative; flex: 0 0 auto; }
.lang-picker__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 11px; border: 1px solid var(--line);
  background: #fff; border-radius: 9px; cursor: pointer;
  color: var(--ink-2); transition: border-color .2s, color .2s;
}
.lang-picker__btn:hover,
.lang-picker__btn[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan-deep); }
.lang-picker__icon { width: 18px; height: 18px; flex: 0 0 auto; }
.lang-picker__current { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.lang-picker__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 172px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(16, 23, 36, .14);
}
.lang-picker__menu[hidden] { display: none; }
.lang-picker__item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-2); font-size: 13px;
  text-align: left; cursor: pointer;
}
.lang-picker__item:hover { background: var(--tint); }
.lang-picker__item.is-active { color: var(--cyan-deep); font-weight: 600; }
.lang-picker__check { visibility: hidden; color: var(--cyan-deep); }
.lang-picker__item.is-active .lang-picker__check { visibility: visible; }

.menu-toggle { display: none; width: 38px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 3px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: #102330; box-shadow: 0 4px 14px rgba(20, 191, 198, .22); }
.btn-primary:hover:not(:disabled) { background: var(--cyan-deep); color: #fff; }
.btn-primary[aria-current] {
  background: var(--cyan-deep); color: #fff;
  box-shadow: 0 0 0 3px rgba(20, 191, 198, .24), 0 4px 14px rgba(20, 191, 198, .22);
}
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan-deep); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* Hero */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; background: var(--paper); }
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 64px; align-items: center; }
.eyebrow {
  margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--cyan-deep);
}
.hero__title { margin: 0; }
.hero__wordmark { width: min(100%, 400px); height: auto; margin-bottom: 20px; }
.hero__slogan {
  display: block; font-size: clamp(21px, 2.5vw, 31px); line-height: 1.35;
  font-weight: 650; letter-spacing: -.015em; color: var(--ink);
}
.hero__pronounce {
  margin: 16px 0 0; padding-left: 12px; border-left: 2px solid var(--magenta);
  font-size: 13px; color: var(--muted);
}
.hero__desc { margin: 24px 0 0; font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

.hero__visual { position: relative; padding-bottom: 26px; }
.app-preview {
  position: relative; z-index: 1; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(16, 23, 36, .09); overflow: hidden;
}
.app-preview__bar {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px;
  background: var(--tint); border-bottom: 1px solid var(--line);
}
.app-preview__dots { display: flex; gap: 5px; }
.app-preview__dots i { width: 8px; height: 8px; border-radius: 50%; background: #c6d2e0; }
.app-preview__dots i:first-child { background: var(--magenta); }
.app-preview__dots i:nth-child(2) { background: var(--cyan); }
.app-preview__name { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.app-preview__body { padding: 22px; }
.app-preview__goal {
  margin: 0 0 20px; padding: 12px 14px; border-radius: 10px;
  background: var(--cyan-soft); color: var(--ink); font-size: 14px;
}
.app-preview__label { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.app-preview__steps { list-style: none; margin: 0 0 20px; padding: 0; }
.app-preview__steps li { position: relative; padding-left: 20px; font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.app-preview__steps li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--cyan); }
.app-preview__files { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 12px; color: var(--ink);
}
.file-chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); }
.file-chip:last-child::before { background: var(--cyan); }
.app-preview__caption { padding: 0 22px 16px; font-size: 11px; color: var(--muted); }
.hero__arc {
  position: absolute; left: 8%; right: 4%; bottom: 0; height: 34px;
  border-bottom: 4px solid transparent; border-radius: 0 0 50% 50%;
  border-image: linear-gradient(90deg, var(--violet), var(--cyan), #4fd1a5) 1;
  opacity: .85;
}

/* Sections */
.section { padding: 88px 0; }
.section--tint { background: var(--page); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { margin: 0; font-size: clamp(27px, 3.4vw, 40px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
.section__title--sm { font-size: clamp(22px, 2.4vw, 28px); }
.section__sub { margin: 16px 0 0; font-size: 17px; color: var(--ink-2); max-width: 680px; }

.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__text p { margin: 0 0 16px; color: var(--ink-2); }
.about__text .lead { font-size: 18px; line-height: 1.7; color: var(--ink); }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.card {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 12px 30px rgba(16, 23, 36, .07); }
.card__index { display: block; font-size: 12px; font-weight: 700; color: var(--magenta); margin-bottom: 18px; letter-spacing: .1em; }
.card h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.4; }
.card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* Worked example */
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.example-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.example-card__label { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-deep); }
.example-card__goal { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--cyan-soft); font-size: 14px; }
.example-card__steps { list-style: none; margin: 0; padding: 0; counter-reset: example; }
.example-card__steps li { counter-increment: example; position: relative; padding-left: 28px; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.example-card__steps li::before {
  content: counter(example); position: absolute; left: 0; top: 5px;
  width: 19px; height: 19px; border-radius: 5px; background: var(--cyan-soft);
  color: var(--cyan-deep); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.example-card__hint { margin: 18px 0 0; font-size: 12px; color: var(--muted); }

/* Use cases */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.uc-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.uc-card h3 { margin: 0 0 8px; font-size: 16px; }
.uc-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.uc-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); max-width: 820px; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.trust-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.trust-card h3 { margin: 0 0 10px; font-size: 17px; }
.trust-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 48px 0 0; padding: 0; }
.step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -24px; width: 24px; height: 2px;
  background: var(--cyan); opacity: .6;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--cyan-soft); color: var(--cyan-deep);
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Download */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.dl-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.dl-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; background: var(--cyan-soft); color: var(--cyan-deep); margin-bottom: 18px; }
.dl-card h3 { margin: 0 0 4px; font-size: 18px; }
.dl-card__meta { margin: 0 0 14px; font-size: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dl-card__note { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); min-height: 46px; }
.dl-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--cyan-soft); color: var(--cyan-deep); }
.dl-badge.is-planned { background: #f0f2f6; color: var(--muted); }
.dl-badge.is-available { background: var(--cyan); color: #102330; }
.dl-card__action { margin-top: 20px; }
.dl-card__action .btn { width: 100%; }
.download__config-note { margin: 26px 0 0; font-size: 13px; color: var(--muted); }
.download__actions { margin-top: 24px; }

/* Inner page hero */
.page-hero { padding: 64px 0 56px; background: var(--tint); border-bottom: 1px solid var(--line); }
.page-hero__title { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; letter-spacing: -.02em; }
.page-hero__sub { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); max-width: 720px; }


/* Info */

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info-text { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.info-subtitle { margin: 28px 0 12px; font-size: 15px; }
.check-list { list-style: none; margin: 12px 0 0; padding: 0; }
.check-list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--ink-2); line-height: 2; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 7px; height: 7px; border-radius: 2px; background: var(--cyan); }

.page-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.legal .page-actions { margin-top: 36px; }

/* Legal pages */
.legal-section { padding-top: 64px; }
.legal { max-width: 860px; }
.legal-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal-block h2 { margin: 0 0 10px; font-size: 19px; }
.legal-block p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.legal-list { margin: 12px 0 0; padding-left: 22px; }
.legal-list li { font-size: 15px; color: var(--ink-2); line-height: 1.8; margin-bottom: 6px; }
.legal-list li:last-child { margin-bottom: 0; }
.legal-list li::marker { color: var(--cyan-deep); }

/* 404 */
.notfound { padding: 100px 0 120px; }
.notfound__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.notfound__mark { width: min(100%, 280px); height: auto; }
.notfound__code { margin: 24px 0 0; font-size: 56px; font-weight: 700; letter-spacing: .08em; color: var(--cyan-deep); }
.notfound .page-actions { justify-content: center; margin-top: 28px; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq__item summary { padding: 18px 0; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 20px; font-weight: 400; color: var(--cyan-deep); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--night); color: #dbe4f0; padding: 54px 0 46px; }
.site-footer__inner { display: grid; grid-template-columns: .9fr 2.1fr; gap: 40px 56px; }
.site-footer__brand img { height: 28px; width: auto; margin-bottom: 14px; }
.site-footer__brand p { margin: 0; font-size: 15px; color: #e9f1fc; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 13px; }
.site-footer__col h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9aa9bd; }
.site-footer__col a { color: #dbe4f0; }
.site-footer__col a:hover, .site-footer__col a[aria-current] { color: var(--cyan); }
.site-footer__col a[aria-current] { font-weight: 600; }
.site-footer__meta { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; font-size: 13px; color: #9aa9bd; }
.site-footer__meta p { margin: 0 0 6px; }
.site-footer__copy { margin-top: 14px !important; color: #6f829c; }
.site-footer::before {
  content: ""; display: block; height: 3px; margin-bottom: 0;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--magenta) 18%, var(--cyan) 18%, var(--cyan) 82%, var(--violet) 82%);
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 560px; }
  .about__grid, .faq__grid { grid-template-columns: 1fr; gap: 28px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .example-grid, .uc-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
    box-shadow: 0 12px 24px rgba(16, 23, 36, .08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current]::after { display: none; }
  .nav-links a[aria-current] { border-left: 3px solid var(--cyan); padding-left: 9px; background: rgba(20, 191, 198, .07); }
  .menu-toggle { display: block; }
  .site-header__inner { gap: 12px; }
  .site-header__actions { margin-left: auto; gap: 10px; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 72px; }
  .steps { grid-template-columns: 1fr; gap: 14px; margin-top: 34px; }
  .step:not(:last-child)::after { display: none; }
  .dl-grid, .example-grid, .uc-grid, .trust-grid { grid-template-columns: 1fr; }
  .dl-card__note { min-height: 0; }
  .page-hero { padding: 48px 0 40px; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .btn-sm { display: inline-flex; min-height: 32px; padding: 0 10px; font-size: 12px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__wordmark { height: 24px; }
  .lang-picker__btn { padding: 0 9px; }
  .lang-picker__current { display: none; }
  .hero__actions .btn { width: 100%; }
  .section__title { font-size: 27px; }
  .site-footer__cols { grid-template-columns: 1fr; }
  .page-actions .btn { width: 100%; }
  .notfound__code { font-size: 44px; }
}

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