:root {
  --ink: #06141c;
  --ink-soft: #0b202a;
  --surface: #102833;
  --surface-light: #16333d;
  --ivory: #f4ecdf;
  --gold: #dfb36c;
  --gold-light: #f2d29a;
  --muted: #a9b8b8;
  --line: rgba(223, 179, 108, .28);
  --radius: 5px;
  --max: 1180px;
  --header-height: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--ink); color: var(--ivory); font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
body, button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
.page-width { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.icon::before { content: ""; display: block; width: 1em; height: 1em; background: center / contain no-repeat; }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-star::before { background-image: url("../icons/star.svg"); }
.icon-chat::before { background-image: url("../icons/chat.svg"); }
.icon-book::before { background-image: url("../icons/book.svg"); }
.icon-spark::before { background-image: url("../icons/spark.svg"); }
.icon-mask::before { background-image: url("../icons/mask.svg"); }
.icon-chevron::before { background-image: url("../icons/chevron.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-arrow::before { background-image: url("../icons/arrow.svg"); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--header-height); background: rgba(6, 20, 28, .94); border-bottom: 1px solid rgba(244, 236, 223, .12); }
.header-inner { width: min(var(--max), calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: max-content; color: var(--gold-light); font: 700 19px Georgia, "Times New Roman", serif; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a { display: block; padding: 9px 13px; color: #d6d2c9; font-size: 14px; white-space: nowrap; }
.nav-list a:hover { color: var(--gold-light); }
.nav-download, .primary-button, .download-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); font-weight: 700; }
.nav-download { min-width: 104px; padding: 9px 13px; background: var(--gold-light); color: #192027; font-size: 14px; }
.nav-download .icon { font-size: 15px; }
.menu-toggle { display: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; }
.menu-toggle .icon { color: var(--gold-light); font-size: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }

.hero { padding: calc(var(--header-height) + 76px) 0 64px; background: radial-gradient(circle at 78% 30%, rgba(57, 110, 124, .18), transparent 28%), var(--ink); }
.hero-grid { min-height: 525px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr); align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 13px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 1.15px; }
.hero h1 { margin: 0; color: var(--gold-light); font: 700 clamp(52px, 6vw, 82px)/1.05 Georgia, "Times New Roman", serif; }
.hero-lead { margin: 14px 0 24px; font-size: clamp(20px, 2vw, 25px); font-weight: 600; }
.primary-button { padding: 13px 25px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1a2025; }
.update-label { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.hero-visual { position: relative; min-height: 515px; display: flex; align-items: center; justify-content: flex-end; }
.device { margin: 0; width: 246px; padding: 10px; border: 10px solid #111820; border-radius: 32px; background: #111820; box-shadow: 0 24px 40px rgba(0, 0, 0, .35); }
.device img { width: 100%; height: auto; object-fit: contain; border-radius: 20px; }
.hero-device { width: 294px; margin-right: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hero-device img { border-radius: 0; }
.story-card { position: absolute; z-index: 2; left: 0; bottom: 28px; width: min(325px, 82%); padding: 19px; border: 1px solid rgba(223, 179, 108, .48); border-radius: var(--radius); background: rgba(246, 238, 226, .98); color: #1d2930; box-shadow: 0 16px 34px rgba(0, 0, 0, .3); }
.story-card h2 { margin: 0 0 10px; font-size: 17px; }
.story-card li { display: grid; grid-template-columns: 24px 1fr 13px; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid rgba(28, 47, 54, .12); }
.story-card li > .icon:first-child { color: #826442; font-size: 18px; }
.story-card strong, .story-card small { display: block; }
.story-card strong { font-size: 13px; }
.story-card small { color: #637279; font-size: 12px; }
.story-card li > .icon:last-child { color: #34454b; font-size: 12px; }
.story-card > a { display: block; margin-top: 11px; padding: 9px; background: var(--gold); color: #1c2529; text-align: center; font-weight: 700; font-size: 13px; }

.section { padding: 78px 0; }
.section-heading { margin-bottom: 34px; }
.section-heading h2 { margin: 0; color: var(--gold-light); font: 700 clamp(30px, 3.5vw, 45px)/1.2 Georgia, "Times New Roman", serif; }
.center-heading { text-align: center; }
.feature-section { background: #091a22; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .025); }
.feature-grid .icon { color: var(--gold); font-size: 31px; }
.feature-grid h3 { margin: 12px 0 5px; color: var(--gold-light); font-size: 17px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.screenshots-section { background: var(--ink); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.split-heading > p { max-width: 360px; margin: 0; color: var(--muted); text-align: right; }
.screenshot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.screenshot-grid figure { margin: 0; min-width: 0; }
.screenshot-image { display: grid; place-items: center; min-height: 332px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #0d2028; }
.screenshot-image img { width: 100%; max-width: 210px; height: auto; object-fit: contain; }
.screenshot-grid figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 2px; padding: 11px 2px; }
.screenshot-grid b { grid-row: span 2; color: var(--gold); font-size: 12px; }
.screenshot-grid strong { color: var(--gold-light); font-size: 14px; }
.screenshot-grid span { color: var(--muted); font-size: 12px; }

.story-section { background: #091a22; }
.story-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; align-items: stretch; }
.chat-preview, .choice-panel { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: #102833; }
.chat-head { display: flex; align-items: center; gap: 10px; }
.chat-head img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; }
.chat-head strong, .chat-head small { display: block; }
.chat-head strong { font-size: 14px; }
.chat-head small { color: var(--muted); font-size: 12px; }
.bubble { width: fit-content; max-width: 83%; padding: 10px 13px; border-radius: var(--radius); font-size: 13px; }
.incoming { margin: 18px 0; background: #203b45; }
.outgoing { margin: 0 0 18px auto; background: #ae874e; color: #142026; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-actions button, .choice { border: 1px solid var(--line); border-radius: var(--radius); background: transparent; }
.quick-actions button { padding: 7px 10px; color: var(--gold-light); font-size: 12px; }
.choice-panel h2 { margin: 0 0 12px; color: var(--gold-light); font-size: 28px; }
.choice-panel > p:not(.eyebrow) { margin: 0 0 18px; color: var(--muted); }
.choice { width: 100%; display: flex; align-items: center; gap: 9px; padding: 13px; color: var(--ivory); text-align: left; }
.choice + .choice { margin-top: 10px; }
.choice.active { border-color: var(--gold); background: rgba(223, 179, 108, .16); }
.choice .icon { color: var(--gold); }

.faq-section { background: var(--ink); }
.faq-list { width: min(850px, 100%); margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(244, 236, 223, .14); }
.faq-question, .official-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border: 0; background: transparent; color: var(--ivory); text-align: left; font-weight: 700; }
.faq-question .icon, .official-toggle .icon:last-child { color: var(--gold); font-size: 13px; transition: transform .2s ease; }
.faq-question[aria-expanded="true"] .icon, .official-toggle[aria-expanded="true"] .icon:last-child { transform: rotate(180deg); }
.faq-answer { padding: 0 0 17px; color: var(--muted); }
.faq-answer p { margin: 0; }
.official-section { padding: 0 0 70px; background: var(--ink); }
.official-toggle { padding: 17px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.official-toggle .icon:first-child { margin-right: -2px; color: var(--gold); }
.official-toggle .icon:first-child + * { margin-right: auto; }
.official-content { padding: 0 20px 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.official-content a { color: var(--gold-light); }

.reviews-section { background: #091a22; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-card { padding: 18px; border: 1px solid rgba(244, 236, 223, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .025); }
.review-meta { display: flex; align-items: center; gap: 9px; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #63503a; color: var(--gold-light); font-size: 13px; font-weight: 700; }
.stars { color: var(--gold-light); font-size: 13px; letter-spacing: 1px; }
.review-meta time { margin-left: auto; color: var(--muted); font-size: 11px; }
.review-card p { margin: 14px 0 0; color: #ccd0cb; font-size: 13px; }

.download-section { padding: 46px 0; background: #e8dfd2; color: #19252a; }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.download-inner .eyebrow { color: #846944; }
.download-inner h2 { margin: 0; font: 700 clamp(26px, 3vw, 38px)/1.2 Georgia, "Times New Roman", serif; }
.download-inner p:last-child { margin: 7px 0 0; color: #536168; }
.download-button { padding: 14px 25px; background: #0a2029; color: var(--gold-light); white-space: nowrap; }
.download-button .icon-download::before { background-image: url("../icons/download-light.svg"); }
.site-footer { padding: 46px 0 16px; background: #06141c; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 38px; }
.footer-brand { margin-bottom: 10px; }
.footer-grid h2 { margin: 0 0 9px; color: var(--gold-light); font-size: 14px; }
.footer-grid > div > a:not(.brand) { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.footer-grid p { max-width: 220px; margin: 0; color: var(--muted); font-size: 13px; }
.copyright { width: min(var(--max), calc(100% - 48px)); margin: 32px auto 0; padding-top: 15px; border-top: 1px solid rgba(244, 236, 223, .13); color: var(--muted); text-align: center; font-size: 12px; }

@media (max-width: 768px) {
  :root { --header-height: 58px; }
  .page-width, .header-inner { width: min(100% - 30px, var(--max)); }
  .site-header { background: #06141c; transform: translate3d(0, 0, 0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  .header-inner { gap: 8px; }
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .main-nav { flex: 0; order: 3; }
  .nav-download { order: 2; min-width: 0; margin-left: auto; padding: 8px 10px; font-size: 12px; touch-action: manipulation; transform: none; }
  .nav-download:active, .nav-download:hover { transform: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-list { position: fixed; z-index: 19; top: var(--header-height); left: 0; right: 0; display: none; padding: 12px 15px 18px; border-bottom: 1px solid var(--line); background: #0b202a; box-shadow: 0 14px 28px rgba(0, 0, 0, .28); }
  .nav-list.open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .nav-list a { padding: 10px 8px; border: 1px solid rgba(223, 179, 108, .18); border-radius: var(--radius); text-align: center; }
  .hero { padding: calc(var(--header-height) + 50px) 0 45px; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .hero h1 { font-size: 54px; }
  .hero-lead { font-size: 20px; }
  .hero-visual { min-height: 0; justify-content: center; }
  .hero-device { width: min(280px, 78vw); margin: 0; }
  .story-card { display: none; }
  .section { padding: 58px 0; }
  .section-heading { margin-bottom: 26px; }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 12px; text-align: left; }
  .feature-grid, .reviews-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .screenshot-image { min-height: 236px; padding: 6px; }
  .screenshot-image img { max-width: 145px; }
  .screenshot-grid figcaption { padding: 8px 1px; }
  .screenshot-grid span { display: none; }
  .story-layout { grid-template-columns: 1fr; gap: 16px; }
  .chat-preview, .choice-panel { padding: 20px; }
  .official-section { padding-bottom: 52px; }
  .download-inner { flex-direction: column; align-items: center; gap: 18px; text-align: center; }
  .download-inner > div { width: 100%; }
  .download-button { align-self: stretch; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; text-align: center; }
  .footer-grid > div:first-child { grid-column: 1 / -1; display: grid; justify-items: center; }
  .footer-grid p { max-width: 260px; }
  .copyright { width: min(100% - 30px, var(--max)); }
}

@media (max-width: 390px) {
  .brand span { display: none; }
  .hero h1 { font-size: 48px; }
  .screenshot-image { min-height: 217px; }
}
