/* Ulot website 2.0 — shared styles (all pages). Dark, centered and chat-first, with Ulot lavender. */
:root {
  /* dark, centered, chat-first (2026-11-10, after arrscale.com): near-black with a hint of violet, Ulot lavender accents */
  --bg: #121117;   /* page */
  --ink: #EEECF4;  /* text */
  --lime: rgba(167, 139, 250, 0.22);  /* soft lavender fill (kept name) */
  --lime-deep: oklch(0.523 0.257 284); /* violet-600: the brand purple */
  --violet-100: rgba(167, 139, 250, 0.14);
  --violet-300: oklch(0.8 0.11 288);
  --violet-700: oklch(0.472 0.228 286);
  --bg-2: #18161F; /* raised band */
  --purple: #A78BFA;
  --card: #1B1922; /* windows and cards */
  --card-2: #23202C;
  --muted: #9C97AC;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 22px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5vw, 56px);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); color-scheme: dark; font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); }
.display { font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin: 0; }
.h1 { font-size: clamp(44px, 7.4vw, 96px); }
.h2 { font-size: clamp(34px, 5vw, 64px); }
.h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 40ch; margin: 18px 0 0; }
.hl { color: var(--violet-300); text-decoration: underline; text-decoration-color: var(--lime-deep); text-decoration-thickness: 0.07em; text-underline-offset: 0.12em; }
.hl-purple { color: var(--purple); }
.muted { color: var(--muted); }
.tag { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink); }
.tag.soon { background: rgba(167, 139, 250, 0.18); color: #D9CCFF; }
.tag.sample { background: rgba(250, 214, 110, 0.16); color: #F5D77A; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: #F3F1F8; color: #121117; box-shadow: 0 6px 24px rgba(167, 139, 250, 0.18); }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 32px rgba(167, 139, 250, 0.3); }
.btn-lime { background: var(--lime-deep); color: #fff; box-shadow: 0 6px 18px rgba(91, 63, 224, 0.3); }
.btn-lime:hover { background: var(--violet-700); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.12); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid var(--lime-deep); padding-bottom: 2px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(18, 17, 23, 0.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: padding 0.3s var(--ease), border-color 0.3s; }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 76px; transition: height 0.3s var(--ease); }
.nav.compact { border-color: var(--line); }
.nav.compact .wrap { height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.04em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right .login { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: var(--card); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-right .login { display: none; }
  .nav-right { margin-left: auto; }
  .menu-btn { display: block; }
  .mobile-menu { display: block; max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); background: var(--bg); }
  .nav.open .mobile-menu { max-height: 360px; border-bottom: 1px solid var(--line); }
  .mobile-menu ul { list-style: none; margin: 0; padding: 8px var(--pad) 20px; display: grid; gap: 4px; }
  .mobile-menu a { display: block; padding: 12px 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
}

/* sections */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-dark { background: var(--bg-2); color: var(--ink); }

.section-alt { background: var(--bg-2); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* footer */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; font-weight: 500; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 56px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* simple page hero (inner pages) */
.page-hero { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .lede { max-width: 52ch; margin-left: auto; margin-right: auto; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
/* a product window (title bar with three dots), the main visual unit of the site */
.window { background: var(--card); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.05) inset; overflow: hidden; text-align: left; }
.window-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.window-bar .dots { display: inline-flex; gap: 7px; } .window-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.window-bar .tag { margin-left: auto; }
.center { text-align: center; } .center .lede { margin-left: auto; margin-right: auto; }
.card h3 { margin: 12px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* language switcher (EN / 繁 / 简) */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.lang a { text-decoration: none; font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 9px; border-radius: 999px; line-height: 1.2; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--violet-100); color: var(--ink); }
.mobile-menu .lang-row { padding-top: 10px; }
.mobile-menu .lang a { display: inline-block; font-size: 15px; padding: 6px 12px; }
@media (max-width: 860px) { .nav-right > .lang { display: none; } }

/* Chinese pages: CJK fonts after Geist, no tight Latin tracking, a little more line height */
:lang(zh) body, body:lang(zh) { font-family: Geist, "PingFang TC", "PingFang SC", "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif; }
:lang(zh) .display { letter-spacing: -0.01em; line-height: 1.18; }
:lang(zh) .lede, :lang(zh) .reading { line-height: 1.8; }
