:root {
      --bg: #f6f3ea;
      --surface: #fffdf7;
      --surface-strong: #ffffff;
      --ink: #24312d;
      --muted: #68746f;
      --soft: #dfe8df;
      --line: rgba(61, 86, 76, 0.16);
      --accent: #3f7c68;
      --accent-strong: #285f51;
      --accent-soft: #dcece5;
      --warm: #f6c568;
      --rose: #f0a6a0;
      --blue: #8db7d7;
      --shadow: 0 24px 70px rgba(34, 54, 47, 0.14);
      --shadow-sm: 0 14px 36px rgba(34, 54, 47, 0.10);
      --radius: 24px;
      --radius-lg: 34px;
      --font: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    }



:root[data-theme="dark"] {
  --bg: #0f1715;
  --surface: #16211d;
  --surface-strong: #1c2a25;
  --ink: #e7f0ec;
  --muted: #a8bbb3;
  --soft: #2a3a34;
  --line: rgba(167, 197, 184, 0.22);
  --accent: #62a88e;
  --accent-strong: #8fc4b1;
  --accent-soft: #1f352d;
  --warm: #d3a75f;
  --rose: #c38b86;
  --blue: #7aa7ca;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-sm: 0 14px 36px rgba(0, 0, 0, 0.34);
}

.settings-pop {
  position: relative;
}

.settings-pop-card {
  position: absolute;
  right: 0;
  top: calc(100% + 32px);
  width: 260px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 12px;
  display: grid;
  gap: 6px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.26s ease, opacity 0.2s ease, transform 0.2s ease;
}

.settings-pop:hover .settings-pop-card,
.settings-pop:focus-within .settings-pop-card {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.settings-select {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

:root[data-theme="dark"] .settings-select {
  background: rgba(17, 27, 24, 0.85);
}


:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 4%, rgba(211, 167, 95, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(122, 167, 202, 0.18), transparent 30rem),
    linear-gradient(180deg, #0e1513 0%, var(--bg) 46%, #111b18 100%);
}

:root[data-theme="dark"] .nav {
  border-bottom-color: rgba(143, 196, 177, 0.22);
  background: rgba(15, 23, 21, 0.84);
}

:root[data-theme="dark"] .page-loader {
  background: rgba(15, 23, 21, 0.94);
}

:root[data-theme="dark"] .onboard-overlay {
  background: rgba(8, 12, 11, 0.6);
}

:root[data-theme="dark"] .onboard-quiz {
  background: rgba(20, 31, 27, 0.76);
}

:root[data-theme="dark"] .onboard-chip,
:root[data-theme="dark"] .onboard-choice-card {
  background: rgba(17, 27, 24, 0.85);
}

:root[data-theme="dark"] .onboard-choice-card.active {
  background: linear-gradient(135deg, rgba(31, 45, 40, 0.98), rgba(35, 46, 32, 0.82));
}

:root[data-theme="dark"] .choice-radio {
  background: rgba(17, 27, 24, 0.95);
}

:root[data-theme="dark"] .onboard-choice-card.active .choice-radio {
  box-shadow: inset 0 0 0 4px #17221f;
}

:root[data-theme="dark"] .import-preview-item {
  background: rgba(17, 27, 24, 0.85);
  border-color: rgba(255,255,255,0.08);
}

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

    html {
      scroll-behavior: smooth;
    }

    body {
      min-height: 100vh;
      font-family: var(--font);
      color: var(--ink);
      background:
        radial-gradient(circle at 8% 4%, rgba(246, 197, 104, 0.36), transparent 28rem),
        radial-gradient(circle at 92% 12%, rgba(141, 183, 215, 0.32), transparent 30rem),
        linear-gradient(180deg, #fbf7ef 0%, var(--bg) 46%, #eef5ef 100%);
      -webkit-font-smoothing: antialiased;
    }

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

    button {
      font: inherit;
    }

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

    .nav {
      position: sticky;
      top: 0;
      z-index: 30;
      border-bottom: 1px solid rgba(63, 124, 104, 0.12);
      background: rgba(255, 253, 247, 0.82);
      backdrop-filter: blur(18px);
    }

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

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 780;
      letter-spacing: -0.04em;
      font-size: 20px;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 15px;
      display: grid;
      place-items: center;
      color: #fff;
      background: linear-gradient(135deg, var(--accent), #74ad8f);
      box-shadow: 0 12px 24px rgba(63, 124, 104, 0.24);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
    }

    .nav-links a {
      color: inherit;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .nav-links a:hover {
      color: var(--accent-strong);
    }

    .nav-links a.active {
      color: var(--accent-strong);
      font-weight: 760;
      position: relative;
    }

    .nav-links a.active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -8px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--accent), #74ad8f);
    }

    .onboard-overlay {
      position: fixed;
      inset: 0;
      z-index: 120;
      background: rgba(12, 20, 17, 0.45);
      backdrop-filter: blur(6px);
      display: grid;
      place-items: center;
      padding: 20px;
    }

    .onboard-card {
      width: min(760px, 100%);
      max-height: min(86vh, 860px);
      overflow: auto;
      position: relative;
      border-radius: 24px;
      border: 1px solid var(--line);
      background: var(--surface-strong);
      box-shadow: var(--shadow);
      padding: 24px;
    }

    .settings-success {
      position: absolute;
      inset: 0;
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      border-radius: 24px;
      background: var(--surface-strong);
      animation: successReveal 0.35s ease;
    }

    .settings-success__check {
      font-size: 64px;
      animation: checkPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .settings-success__text {
      font-size: 24px;
      font-weight: 780;
      letter-spacing: -0.03em;
      color: var(--accent-strong);
    }

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

    @keyframes checkPop {
      0% { transform: scale(0) rotate(-30deg); opacity: 0; }
      60% { transform: scale(1.25) rotate(5deg); }
      100% { transform: scale(1) rotate(0deg); opacity: 1; }
    }

    :root[data-theme="dark"] .settings-success {
      background: var(--surface-strong);
    }

    .onboard-card h3 {
      font-size: 26px;
      letter-spacing: -0.03em;
    }

    .onboard-subtitle {
      margin-top: 8px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .onboard-label {
      display: block;
      margin-top: 18px;
      margin-bottom: 10px;
      font-size: 14px;
      font-weight: 700;
    }

    .onboard-hsk-grid,
    .onboard-interest-grid,
    .onboard-q-answers {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .onboard-quiz {
      margin-top: 12px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255,255,255,0.44);
    }

    .onboard-quiz-title {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 10px;
      color: var(--accent-strong);
    }

    .onboard-q-item + .onboard-q-item {
      margin-top: 12px;
    }

    .onboard-q-item p {
      font-size: 13px;
      margin-bottom: 8px;
      color: var(--ink);
    }

    .onboard-chip {
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.7);
      color: var(--ink);
      cursor: pointer;
      font-size: 12px;
      font-weight: 700;
    }

    .onboard-chip.small {
      min-height: 30px;
      font-size: 11px;
      padding: 0 10px;
    }

    .onboard-chip.active {
      color: #fff;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      border-color: transparent;
    }

    .onboard-error {
      margin-top: 12px;
      color: #cc4b4b;
      font-size: 13px;
      font-weight: 700;
    }

    .onboard-actions {
      margin-top: 16px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .onboard-choice-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 18px;
    }

    .onboard-choice-card {
      min-height: 72px;
      padding: 14px 16px 14px 46px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.74);
      color: var(--ink);
      text-align: left;
      cursor: pointer;
      font-weight: 760;
      box-shadow: var(--shadow-soft);
      position: relative;
      overflow: hidden;
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, min-height .28s ease, opacity .2s ease;
    }

    .onboard-choice-card:hover {
      transform: translateY(-1px);
      border-color: rgba(74, 124, 111, 0.36);
      box-shadow: var(--shadow-card);
    }

    .onboard-choice-card.active {
      border-color: rgba(74, 124, 111, 0.58);
      background: linear-gradient(135deg, rgba(232, 242, 239, 0.95), rgba(255, 250, 240, 0.78));
      box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.12);
    }

    .onboard-choice-card.compact {
      min-height: 54px;
      opacity: .78;
    }

    .onboard-choice-card strong {
      display: block;
      line-height: 1.35;
    }

    .onboard-choice-card span:not(.choice-radio) {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
      font-weight: 650;
      transition: max-height .24s ease, opacity .18s ease, margin .18s ease;
    }

    .onboard-choice-grid.has-selection .onboard-choice-card.compact span:not(.choice-radio) {
      max-height: 0;
      opacity: 0;
      margin-top: 0;
    }

    .choice-radio {
      position: absolute;
      left: 16px;
      top: 18px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid rgba(74, 124, 111, 0.35);
      background: rgba(255,255,255,0.8);
    }

    .onboard-choice-card.active .choice-radio {
      border-color: var(--accent);
      box-shadow: inset 0 0 0 4px #fff;
      background: var(--accent);
    }

    .onboard-profile-panel {
      margin-top: 18px;
      overflow: hidden;
    }

    .onboard-expand-enter-active,
    .onboard-expand-leave-active {
      transition: opacity .26s ease, transform .26s ease, max-height .34s ease;
      max-height: 720px;
    }

    .onboard-expand-enter-from,
    .onboard-expand-leave-to {
      opacity: 0;
      transform: translateY(-8px);
      max-height: 0;
    }

    .settings-user-id {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(74, 124, 111, 0.08);
      border: 1px solid rgba(74, 124, 111, 0.14);
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .settings-user-id span {
      display: block;
      margin-bottom: 4px;
      font-weight: 700;
    }

    .settings-user-id strong {
      display: block;
      color: var(--ink);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 11px;
      word-break: break-all;
    }

    .settings-transfer-hint {
      margin: 4px 0 10px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }

    .settings-transfer-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .settings-transfer-message {
      margin-top: 12px;
      color: var(--accent);
      font-size: 13px;
      font-weight: 760;
    }

    .import-preview-card {
      max-width: 440px;
      width: 92%;
    }

    .import-preview-desc {
      color: var(--muted);
      font-size: 14px;
      margin: 6px 0 18px;
      line-height: 1.6;
    }

    .import-preview-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 20px;
    }

    .import-preview-item {
      background: var(--card-bg, rgba(0,0,0,.04));
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .import-preview-item--full {
      grid-column: 1 / -1;
    }

    .import-preview-label {
      font-size: 12px;
      color: var(--muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .import-preview-value {
      font-size: 15px;
      font-weight: 700;
      color: var(--fg);
      line-height: 1.4;
    }

    .btn-danger {
      border: 1px solid rgba(145, 52, 52, 0.28);
      background: #8f3838;
      color: #fff;
      box-shadow: 0 8px 20px rgba(111, 37, 37, 0.12);
    }

    .btn-danger:hover:not(:disabled) {
      background: #7e3030;
      transform: translateY(-1px);
    }

    .btn:disabled {
      opacity: .52;
      cursor: not-allowed;
      transform: none;
    }

    .settings-reset-card {
      margin-top: 12px;
      padding: 16px;
      border-radius: 18px;
      color: #f9eeee;
      background: linear-gradient(135deg, #743232, #5d2828);
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 16px 34px rgba(92, 34, 34, 0.26);
      overflow: hidden;
      position: relative;
    }

    .settings-reset-card::after {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
      transform: translateX(-100%);
      pointer-events: none;
    }

    .settings-reset-card.is-clearing::after {
      opacity: 1;
      animation: resetSweep 1.1s ease-in-out infinite;
    }

    @keyframes resetSweep {
      to { transform: translateX(100%); }
    }

    .settings-reset-card__title {
      font-size: 15px;
      font-weight: 800;
    }

    .settings-reset-card p {
      margin-top: 8px;
      color: rgba(255,255,255,0.82);
      font-size: 12px;
      line-height: 1.65;
    }

    .settings-reset-card__label {
      display: block;
      margin-top: 12px;
      font-size: 12px;
      font-weight: 750;
      color: rgba(255,255,255,0.9);
    }

    .settings-reset-input {
      margin-top: 8px;
      width: 100%;
      min-height: 40px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.1);
      color: #fff;
      padding: 0 12px;
      outline: none;
    }

    .settings-reset-input::placeholder {
      color: rgba(255,255,255,0.52);
    }

    .settings-reset-actions {
      margin-top: 12px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .settings-reset-clearing {
      font-weight: 800;
    }

    .reset-card-enter-active,
    .reset-card-leave-active {
      transition: opacity .28s ease, transform .28s ease, max-height .32s ease;
      max-height: 360px;
    }

    .reset-card-enter-from,
    .reset-card-leave-to {
      opacity: 0;
      transform: translateY(-8px);
      max-height: 0;
    }

    .visually-hidden-file {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .welcome-lang-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 22px;
    }

    .welcome-lang-btn {
      min-height: 72px;
      border-radius: 20px;
      border: 2px solid var(--line);
      background: rgba(255,255,255,0.7);
      color: var(--ink);
      cursor: pointer;
      font-size: 22px;
      font-weight: 780;
      letter-spacing: -0.03em;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .welcome-lang-btn:hover {
      border-color: var(--accent);
      box-shadow: 0 8px 28px rgba(63, 124, 104, 0.14);
      transform: translateY(-2px);
    }

    :root[data-theme="dark"] .welcome-lang-btn {
      background: rgba(17, 27, 24, 0.85);
    }

    .page-loader {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: rgba(255, 253, 247, 0.94);
      backdrop-filter: blur(6px);
      transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .page-loader.is-hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .page-loader__spinner {
      width: 30px;
      height: 30px;
      border: 3px solid rgba(63, 124, 104, 0.2);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.85s linear infinite;
    }

    .page-loader__text {
      font-size: 13px;
      color: var(--muted);
      font-weight: 600;
      letter-spacing: 0.01em;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 44px;
      padding: 0 18px;
      border: 1px solid transparent;
      border-radius: 999px;
      cursor: pointer;
      font-weight: 700;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      white-space: nowrap;
    }

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

    .btn-primary {
      color: #fff;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      box-shadow: 0 16px 32px rgba(63, 124, 104, 0.24);
    }

    .btn-secondary {
      color: var(--accent-strong);
      border-color: var(--line);
      background: rgba(255, 255, 255, 0.66);
    }

    .hero {
      padding: 74px 0 64px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
      gap: 56px;
      align-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      color: var(--accent-strong);
      background: rgba(220, 236, 229, 0.78);
      font-size: 13px;
      font-weight: 760;
    }

    h1 {
      margin-top: 22px;
      font-size: clamp(42px, 6.6vw, 82px);
      line-height: 0.96;
      letter-spacing: -0.075em;
      max-width: 720px;
    }

    .hero-copy {
      margin-top: 26px;
      max-width: 640px;
      color: var(--muted);
      font-size: 18px;
      line-height: 1.8;
    }

    .hero-actions {
      margin-top: 34px;
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
    }

    .trust-row {
      margin-top: 34px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      max-width: 680px;
    }

    .trust-card {
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.52);
    }

    .trust-card strong {
      display: block;
      margin-bottom: 4px;
      font-size: 22px;
      letter-spacing: -0.04em;
    }

    .trust-card span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .phone-shell {
      position: relative;
      width: min(100%, 440px);
      margin-left: auto;
      padding: 14px;
      border: 1px solid rgba(255, 255, 255, 0.74);
      border-radius: 44px;
      background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.48));
      box-shadow: var(--shadow);
    }

    .phone-shell::before,
    .phone-shell::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      filter: blur(2px);
      z-index: -1;
    }

    .phone-shell::before {
      width: 170px;
      height: 170px;
      top: -34px;
      right: -28px;
      background: rgba(246, 197, 104, 0.52);
    }

    .phone-shell::after {
      width: 130px;
      height: 130px;
      left: -42px;
      bottom: 28px;
      background: rgba(141, 183, 215, 0.42);
    }

    .app-preview {
      min-height: 672px;
      border-radius: 34px;
      overflow: hidden;
      background: #fff;
      box-shadow: inset 0 0 0 1px rgba(36, 49, 45, 0.08);
      display: flex;
      flex-direction: column;
    }

    .preview-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 18px 20px;
      border-bottom: 1px solid rgba(36, 49, 45, 0.08);
    }

    .preview-status {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .online-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #58c69c;
      box-shadow: 0 0 0 5px rgba(88, 198, 156, 0.14);
    }

    .preview-body {
      padding: 18px;
      display: grid;
      gap: 12px;
      background: linear-gradient(180deg, #fffdf8, #f7fbf7);
      flex: 1;
    }

    .mini-card {
      display: grid;
      grid-template-columns: 52px 1fr auto;
      align-items: center;
      gap: 12px;
      padding: 14px;
      border: 1px solid rgba(36, 49, 45, 0.09);
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.9);
      box-shadow: 0 10px 28px rgba(36, 49, 45, 0.06);
    }

    .mini-card.is-recommended {
      border-color: var(--accent);
      box-shadow: 0 14px 30px rgba(63, 124, 104, 0.16);
    }

    .mini-avatar {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 25px;
    }

    .mini-card h3 {
      font-size: 15px;
      letter-spacing: -0.02em;
    }

    .mini-card p {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }

    .mini-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .mini-tags span {
      padding: 4px 8px;
      border-radius: 999px;
      background: #f1f5ef;
      color: #61706a;
      font-size: 11px;
      font-weight: 700;
    }

    .arrow {
      color: var(--accent);
      font-size: 20px;
    }

    .chat-sample {
      margin-top: 8px;
      padding: 18px;
      border-radius: 24px;
      background: #eef6f1;
    }

    .bubble {
      width: fit-content;
      max-width: 86%;
      padding: 12px 14px;
      border-radius: 17px;
      color: #34433e;
      background: #fff;
      font-size: 13px;
      line-height: 1.55;
      box-shadow: 0 8px 18px rgba(36, 49, 45, 0.08);
    }

    .bubble.user {
      margin: 12px 0 0 auto;
      color: #fff;
      background: var(--accent);
    }

    section {
      padding: 78px 0;
    }

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

    .section-head.center {
      margin-inline: auto;
      text-align: center;
    }

    .kicker {
      margin-bottom: 12px;
      color: var(--accent-strong);
      font-size: 13px;
      font-weight: 820;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    h2 {
      font-size: clamp(30px, 4vw, 50px);
      line-height: 1.06;
      letter-spacing: -0.055em;
    }

    .section-desc {
      margin-top: 16px;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.75;
    }

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

    .feature-card,
    .scenario-card,
    .step-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.68);
      box-shadow: var(--shadow-sm);
    }

    .feature-card {
      padding: 24px;
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                  box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                  border-color 0.35s ease;
    }

    .feature-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 48px rgba(34, 54, 47, 0.12);
      border-color: var(--accent);
    }

    .feature-icon {
      width: 52px;
      height: 52px;
      margin-bottom: 18px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background: var(--accent-soft);
      font-size: 25px;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                  background 0.3s ease;
    }

    .feature-card:hover .feature-icon {
      transform: scale(1.08);
      background: #cfe4d8;
    }

    .feature-card h3,
    .scenario-card h3,
    .step-card h3 {
      font-size: 18px;
      letter-spacing: -0.025em;
    }

    .feature-card p,
    .scenario-card p,
    .step-card p {
      margin-top: 10px;
      color: var(--muted);
      line-height: 1.7;
      font-size: 14px;
    }

    .experience {
      border-block: 1px solid rgba(63, 124, 104, 0.12);
      background: rgba(255, 255, 255, 0.42);
    }

    .experience-grid {
      display: grid;
      grid-template-columns: 0.82fr 1.18fr;
      gap: 28px;
      align-items: stretch;
    }

    .scenario-list {
      display: grid;
      gap: 14px;
    }

    .scenario-card {
      padding: 22px;
    }

    .scenario-card.active,
    .scenario-card:hover {
      color: #fff;
      background: linear-gradient(135deg, var(--accent), #709b7a);
      border-color: transparent;
      cursor: pointer;
    }

    .scenario-card.active p,
    .scenario-card:hover p {
      color: rgba(255,255,255,0.82);
    }

    .demo-panel {
      padding: 28px;
      border: 1px solid rgba(255,255,255,0.7);
      border-radius: var(--radius-lg);
      background:
        linear-gradient(135deg, rgba(255,255,255,0.88), rgba(246,250,246,0.72)),
        radial-gradient(circle at 80% 10%, rgba(246,197,104,0.38), transparent 18rem);
      box-shadow: var(--shadow);
    }

    .demo-window {
      height: 100%;
      min-height: 430px;
      border-radius: 26px;
      overflow: hidden;
      background: #fff;
      display: flex;
      flex-direction: column;
      box-shadow: inset 0 0 0 1px rgba(36, 49, 45, 0.08);
    }

    .demo-toolbar {
      padding: 16px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(36, 49, 45, 0.08);
      font-weight: 760;
    }

    .demo-content {
      flex: 1;
      padding: 22px;
      background: #f7fbf8;
      display: flex;
      flex-direction: column;
      gap: 14px;
      position: relative;
    }

    .demo-bubbles {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .demo-bubble-enter-active,
    .demo-bubble-leave-active {
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .demo-bubble-enter-from {
      opacity: 0;
      transform: translateY(16px);
    }

    .demo-bubble-leave-to {
      opacity: 0;
      transform: translateY(-12px);
    }

    .demo-bubble-enter-active { transition-delay: 0.05s; }

    .demo-input {
      margin-top: auto;
      padding: 14px 16px;
      border: 1px solid rgba(63, 124, 104, 0.16);
      border-radius: 16px;
      color: var(--muted);
      background: #fff;
      font-size: 14px;
    }

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

    .step-card {
      padding: 26px;
      position: relative;
      overflow: hidden;
    }

    .step-num {
      margin-bottom: 32px;
      color: rgba(63, 124, 104, 0.18);
      font-size: 58px;
      line-height: 1;
      font-weight: 880;
      letter-spacing: -0.08em;
    }

    .cta {
      padding-bottom: 90px;
    }

    .cta-card {
      position: relative;
      overflow: hidden;
      padding: 54px;
      border-radius: 38px;
      color: #fff;
      background:
        radial-gradient(circle at 8% 16%, rgba(246,197,104,0.42), transparent 20rem),
        linear-gradient(135deg, #245f51, #3f7c68 54%, #7cab85);
      box-shadow: var(--shadow);
    }

    .cta-card::after {
      content: "";
      position: absolute;
      width: 260px;
      height: 260px;
      right: -72px;
      bottom: -96px;
      border-radius: 50%;
      background: rgba(255,255,255,0.14);
    }

    .cta-card h2 {
      max-width: 720px;
    }

    .cta-card p {
      margin-top: 16px;
      max-width: 660px;
      color: rgba(255,255,255,0.82);
      font-size: 17px;
      line-height: 1.75;
    }

    .cta-actions {
      margin-top: 28px;
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
    }

    .cta .btn-primary {
      color: var(--accent-strong);
      background: #fff;
      box-shadow: none;
    }

    .cta .btn-secondary {
      color: #fff;
      border-color: rgba(255,255,255,0.28);
      background: rgba(255,255,255,0.12);
    }

    .footer {
      padding: 28px 0 42px;
      color: var(--muted);
      font-size: 13px;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      border-top: 1px solid rgba(63, 124, 104, 0.14);
      padding-top: 24px;
    }

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

      .phone-shell {
        margin: 0 auto;
      }

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

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

      .nav-inner {
        min-height: 64px;
      }

      .nav-links {
        display: none;
      }

      .brand {
        font-size: 17px;
      }

      .brand-mark {
        width: 38px;
        height: 38px;
      }

      .nav-actions .btn-secondary {
        display: none;
      }

      .welcome-lang-grid,
      .onboard-choice-grid {
        grid-template-columns: 1fr;
      }

      .icon-toggle {
        min-width: 34px;
        padding: 0 10px;
      }

      .hero {
        padding: 48px 0 44px;
      }

      .hero-grid {
        gap: 34px;
      }

      h1 {
        font-size: clamp(40px, 14vw, 58px);
      }

      .hero-copy,
      .section-desc,
      .cta-card p {
        font-size: 16px;
      }

      .trust-row,
      .feature-grid,
      .steps-grid {
        grid-template-columns: 1fr;
      }

      .app-preview {
        min-height: 610px;
      }

      section {
        padding: 58px 0;
      }

      .demo-panel,
      .cta-card {
        padding: 24px;
        border-radius: 28px;
      }

      .footer-inner {
        flex-direction: column;
      }
    }
