/* Global cursor spotlight (driven by --mx/--my from main.js) */
.card, .flow-item, .stat, .cs, .quote, .os, .contact-card { position: relative; overflow: hidden; }
.card::after, .flow-item::after, .stat::after, .cs::after, .quote::after, .os::after, .contact-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px 220px at var(--mx, 50%) var(--my, 50%), rgba(99,130,255,.08), rgba(139,92,246,.03) 45%, transparent 70%); }
.card:hover::after, .flow-item:hover::after, .stat:hover::after, .cs:hover::after, .quote:hover::after, .os:hover::after, .contact-card:hover::after { opacity: 1; }
.flow-item, .cs, .quote { transition: border-color .25s; }
.flow-item:hover, .cs:hover, .quote:hover { border-color: rgba(99,130,255,.4); }

/* Contact sales */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.contact-steps { display: grid; gap: 14px; }
.cs { display: flex; gap: 20px; align-items: flex-start; padding: 24px 26px; border-radius: 18px; border: 1px solid var(--rule); background: var(--bg2); }
.cs b { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--accent2); padding-top: 3px; }
.cs h4 { font-size: 17px; }
.cs p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.contact-card { border: 1px solid transparent; border-radius: 22px; padding: 36px 34px; display: flex; flex-direction: column; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box; box-shadow: 0 30px 80px rgba(109,92,255,.2); }
.contact-card h3 { font-size: 24px; }
.contact-card > p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.contact-card ul { list-style: none; margin: 24px 0 30px; display: grid; gap: 12px; font-size: 14.5px; flex: 1; }
.contact-card li { display: flex; gap: 10px; align-items: flex-start; }
.contact-card li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(34,211,238,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.contact-card .btn { justify-content: center; width: 100%; }
.contact-sub { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.contact-sub:hover { color: var(--ink); }

/* Contact Sales dialog */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4,5,10,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; max-width: 440px; padding: 36px 32px 28px; border-radius: 22px; text-align: center; border: 1px solid transparent; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box; box-shadow: 0 30px 80px rgba(109,92,255,.3); animation: modalIn .25s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-box h3 { font-size: 22px; }
.modal-box > p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.modal-x { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.sm-mail { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 16px; padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid var(--rule); background: rgba(255,255,255,.04); font-family: var(--mono); font-size: 15px; }
.sm-mail button { flex: none; min-width: 72px; padding: 7px 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--ink); font: inherit; font-family: var(--font); font-size: 13px; cursor: pointer; transition: background .2s; }
.sm-mail button:hover { background: rgba(255,255,255,.18); }
.sm-mail .t-done { display: none; }
.sm-mail button.copied { background: rgba(34,211,238,.2); color: #22d3ee; }
.sm-mail button.copied .t-copy { display: none; }
.sm-mail button.copied .t-done { display: inline; }
.modal-box .btn { width: 100%; justify-content: center; }
.modal-box .sm-hint { margin-top: 16px; font-size: 12.5px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.quote { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; }
.quote p { font-size: 15px; color: #cfd3e3; }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 15px; }
.who b { display: block; font-size: 14px; }
.who span { font-size: 12.5px; color: var(--muted); }
.stars { color: #fbbf24; font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }

/* Download */
.download { border-radius: 28px; padding: 70px 40px; text-align: center; position: relative; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(700px 300px at 50% -10%, rgba(79,110,255,.14), transparent 70%),
    linear-gradient(180deg, #0f1222 0%, #0b0d18 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.download::before { display: none; }
.download h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.download > p { color: var(--muted); font-size: 18px; margin-bottom: 40px; }
.os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); gap: 18px; justify-content: center; }
.os { text-align: left; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s, transform .25s, background .25s; }
.os:hover { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.18); transform: translateY(-3px); }
.os.detected { border-color: rgba(34,211,238,.45); }
.os-head { display: flex; align-items: center; gap: 14px; }
.os-head svg { width: 34px; height: 34px; }
.os-head b { font-size: 18px; display: block; }
.os-head span { font-size: 13px; color: var(--muted); }
.os .row { display: flex; gap: 10px; flex-wrap: wrap; }
.os .row { margin-top: auto; }
.os .row .btn { flex: 1; justify-content: center; padding: 10px 14px; font-size: 14px; white-space: nowrap; gap: 8px; }
.os .row .btn small { font-size: 11.5px; opacity: .7; font-weight: 400; }
.ver { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 28px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule); padding: 22px 4px; }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--accent2); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }

/* Brand slogan */
.slogan { padding: 90px 0 70px; text-align: center; position: relative; }
.slogan::before { content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 60px; background: linear-gradient(transparent, var(--accent)); }
.slogan-word { display: flex; justify-content: center; gap: clamp(8px, 2vw, 22px); font-weight: 700; font-size: clamp(48px, 10vw, 120px); line-height: 1; letter-spacing: 0; }
.slogan-word span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slogan-en { margin-top: 22px; font-family: var(--mono); font-size: clamp(14px, 1.8vw, 18px); color: var(--muted); letter-spacing: .04em; }
.slogan-en b { color: var(--accent2); font-weight: 400; }
.slogan-cn { margin-top: 18px; font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; letter-spacing: .32em; text-indent: .32em; }
html[lang="en"] .motto-cn, html[lang="en"] .slogan-cn { display: none; }
.slogan-by { margin-top: 14px; font-size: 13px; color: var(--muted); letter-spacing: .06em; }

/* Footer */
footer.site { border-top: 1px solid var(--rule); padding: 60px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.foot-grid p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.foot-grid h5 { font-size: 14px; margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.foot-grid a:hover { color: var(--ink); }
.copy { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: rgba(7,8,13,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .nav.menu-open { background: rgba(7,8,13,.96); }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.span-2, .card.span-3, .card.span-4 { grid-column: span 2; }
  .flow, .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .contact { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .bento, .flow { grid-template-columns: 1fr; }
  .card.span-2, .card.span-3, .card.span-4 { grid-column: span 1; }
  .quotes { grid-template-columns: 1fr; }
  .os-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  section.block { padding: 80px 0; }
  .download { padding: 50px 20px; }
}
/* Language switcher */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: background .2s; }
.lang-btn:hover, .lang.open .lang-btn { background: rgba(255,255,255,.08); }
.lang-btn svg { width: 16px; height: 16px; flex: none; }
.lang-btn .caret { width: 12px; height: 12px; opacity: .7; transition: transform .2s; }
.lang.open .caret { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 140px; padding: 6px; background: var(--bg2); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.5); display: none; flex-direction: column; gap: 2px; z-index: 60; }
.lang.open .lang-menu { display: flex; }
.lang-menu button { text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.lang-menu button:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.lang-menu button.on { color: var(--ink); background: rgba(109,92,255,.18); }
html.i18n-wait body { visibility: hidden; }
@media (max-width: 640px) {
  .nav-cta { gap: 8px; }
  .lang-btn { padding: 0 10px; }
  .nav-cta .btn-primary { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Nav: current page marker + room for 7 links */
.nav-links { gap: 26px; }
.nav-links a[aria-current="page"] { color: var(--ink); position: relative; }
.nav-links a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--grad); }

/* Hamburger menu from 1200px down so the longer nav never wraps */
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: rgba(7,8,13,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav.menu-open { background: rgba(7,8,13,.96); }
}
