﻿/* ex-Cloud product landing page.
   Shared by zh.html and en.html; no external assets or fonts. */

:root {
  --ink: #0e1116;
  --body: #43495a;
  --muted: #6b7284;
  --line: #e5e8ef;
  --brand: #1b5fd9;
  --brand-600: #1550bd;
  --deep: #0a1f4d;
  --deep-2: #123a86;
  --soft: #f4f7fc;
  --white: #fff;
  --r-lg: 28px;
  --r-md: 18px;
  --shadow-lg: 0 30px 70px rgba(10, 25, 60, .22);
  --shadow-md: 0 14px 36px rgba(10, 25, 60, .10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--brand); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.nav.solid .brand, .nav.solid .links a { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 14px rgba(10, 25, 60, .25); }
.links { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.links a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.links a:hover { color: #fff; }
.nav.solid .links a:hover { color: var(--brand); }
.nav .lang {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 5px 13px; font-size: 13px;
}
.nav.solid .lang { border-color: var(--line); }
.nav .nav-cta {
  background: var(--white); color: var(--deep) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(10, 25, 60, .18);
}
.nav.solid .nav-cta { background: var(--brand); color: #fff !important; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 132px 0 96px;
  background:
    radial-gradient(1200px 600px at 78% -12%, rgba(58, 128, 255, .45), transparent 62%),
    radial-gradient(900px 520px at 8% 0%, rgba(37, 99, 235, .38), transparent 58%),
    linear-gradient(160deg, #081634 0%, #0d2a63 46%, #11418f 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  /* soft grid texture */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 78%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .92);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 4px rgba(110, 231, 168, .18); }

h1.hero-title {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.14;
  letter-spacing: -.025em;
  margin: 22px 0 18px;
  font-weight: 800;
}
h1.hero-title .accent {
  background: linear-gradient(92deg, #8ec5ff, #d6e6ff 55%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  font-size: clamp(16px, 1.35vw, 19px);
  color: rgba(255, 255, 255, .78);
  margin: 0 0 30px;
  max-width: 33em;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  padding: 15px 26px; border-radius: 14px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn.primary {
  background: #fff; color: var(--deep);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(0, 0, 0, .32); }
.btn.primary svg { flex: none; }
.btn.ghost {
  background: rgba(255, 255, 255, .1); color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.btn.ghost:hover { background: rgba(255, 255, 255, .18); }
.btn.blue { background: var(--brand); color: #fff; box-shadow: 0 14px 30px rgba(27, 95, 217, .34); }
.btn.blue:hover { background: var(--brand-600); transform: translateY(-2px); }
.btn[data-pending="true"] { position: relative; }

.hero .under { margin-top: 18px; font-size: 13.5px; color: rgba(255, 255, 255, .62); display: flex; gap: 16px; flex-wrap: wrap; }
.hero .under span { display: inline-flex; align-items: center; gap: 6px; }

/* phones */
.devices { position: relative; min-height: 640px; }
.phone {
  position: absolute;
  border-radius: 40px;
  padding: 11px;
  background: linear-gradient(180deg, #2a3140, #0c1018);
  box-shadow: var(--shadow-lg);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.phone.main { width: 296px; right: 18px; top: 0; transform: rotate(1.2deg); z-index: 2; }
.phone.back {
  width: 232px; left: 0; top: 118px;
  transform: rotate(-7deg);
  opacity: .95;
  filter: saturate(.92) brightness(.96);
  z-index: 1;
}

/* ---------- sections ---------- */
section { padding: 104px 0; }
section.tight { padding: 72px 0; }
.eyebrow {
  display: block;
  font-size: 13px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
h2.title {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2; letter-spacing: -.025em;
  margin: 0 0 14px; font-weight: 800;
}
p.lead { font-size: 17px; color: var(--body); margin: 0 0 8px; max-width: 44em; }

/* stats band */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: 46px;
}
.stat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }

/* feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}
.feature.reverse .copy { order: 2; }
.feature.reverse .shot { order: 1; }
.feature h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -.02em;
  margin: 0 0 12px;
  font-weight: 800;
}
.feature p { color: var(--body); font-size: 16.5px; margin: 0 0 18px; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; font-size: 15.5px; color: var(--body); }
.feature li svg { flex: none; margin-top: 5px; color: var(--brand); }

.shot {
  position: relative;
  justify-self: center;
}
.shot .frame {
  width: 264px;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(180deg, #1b2130, #0b0f17);
  box-shadow: var(--shadow-lg);
}
.shot .frame img { display: block; width: 100%; height: auto; border-radius: 29px; }
.shot .glow {
  position: absolute; inset: 6% -18% -6% -18%;
  background: radial-gradient(closest-side, rgba(27, 95, 217, .22), transparent 72%);
  filter: blur(10px);
  z-index: -1;
}

/* gallery */
.gallery-wrap {
  overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-wrap::-webkit-scrollbar { display: none; }
.gallery {
  display: flex; gap: 22px; padding: 8px 4px 20px;
  width: max-content;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery .frame {
  width: 236px; border-radius: 32px; padding: 9px;
  background: linear-gradient(180deg, #202634, #0b0f17);
  box-shadow: var(--shadow-md);
}
.gallery img { display: block; width: 100%; height: auto; border-radius: 24px; }
.gallery figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* dark band */
.band {
  background:
    radial-gradient(900px 460px at 85% 0%, rgba(58, 128, 255, .35), transparent 60%),
    linear-gradient(150deg, #081634, #10306c);
  color: #fff;
  border-radius: 0;
}
.band h2.title { color: #fff; }
.band p.lead { color: rgba(255, 255, 255, .76); }
.band .stats { margin-top: 40px; }
.band .stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.band .stat b { color: #fff; }
.band .stat span { color: rgba(255, 255, 255, .7); }

/* download cta */
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 64px 56px;
  background:
    radial-gradient(700px 320px at 88% 10%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, #1b5fd9, #0b2f7a);
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
}
.cta-box h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 0 0 12px; letter-spacing: -.025em; font-weight: 800; }
.cta-box p { color: rgba(255, 255, 255, .82); margin: 0 0 26px; font-size: 16.5px; }
.cta-box .meta { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 16px; }
.cta-icon { justify-self: center; width: 132px; height: 132px; border-radius: 34px; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }

/* tutorials compact */
.tutorials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.tlink {
  display: block; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  background: #fff;
}
.tlink:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tlink b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.tlink span { font-size: 13.5px; color: var(--muted); }

/* faq */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--body); font-size: 15.5px; max-width: 52em; }

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
  font-size: 13.5px; color: var(--muted);
}
footer .row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
footer .b { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
footer img { width: 26px; height: 26px; border-radius: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--brand); }

/* reveal on scroll */
/* Content stays visible by default; only JS-enabled pages animate it in. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* toast for the pending download */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #0e1116; color: #fff; padding: 13px 20px; border-radius: 12px;
  font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .devices { min-height: 520px; margin-top: 28px; }
  .phone.main { right: auto; left: 50%; margin-left: -150px; }
  .phone.back { left: 8%; }
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .feature.reverse .copy, .feature.reverse .shot { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 44px 32px; text-align: left; }
  .cta-icon { justify-self: start; }
  .tutorials { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .links a:not(.nav-cta):not(.lang) { display: none; }
  section { padding: 72px 0; }
  .stats, .tutorials { grid-template-columns: 1fr; }
  .hero { padding-top: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
