/* ===== Xone 官網樣式 ===== */
:root{
  --ink:#1c2033; --muted:#6b7391; --line:#e7ebf7;
  --bg:#ffffff; --bg-alt:#f6f8fe;
  --brand:#4f7cff; --brand2:#7b3ff2;
  --radius:18px; --shadow:0 18px 50px -24px rgba(43,53,110,.35);
  --maxw:1140px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--ink); background:var(--bg);
  font-family:"Segoe UI","PingFang TC","Microsoft JhengHei",system-ui,sans-serif;
  line-height:1.6; -webkit-font-smoothing:antialiased;
}
.container{max-width:var(--maxw); margin:0 auto; padding:0 24px}
a{color:inherit; text-decoration:none}
h1,h2,h3{line-height:1.2; margin:0}
code{background:#eef2ff; color:#4a4f9e; padding:1px 6px; border-radius:6px; font-size:.86em}

/* ---- 按鈕 ---- */
.btn{
  display:inline-flex; align-items:center; gap:6px; font-weight:600;
  padding:13px 24px; border-radius:999px; background:var(--brand); color:#fff;
  transition:transform .15s ease, box-shadow .15s ease; box-shadow:0 10px 24px -12px rgba(79,124,255,.8);
}
.btn:hover{transform:translateY(-2px)}
.btn--sm{padding:9px 18px; font-size:.9rem}
.btn--ghost{background:transparent; color:var(--brand); box-shadow:none; border:1.5px solid #cdd6f5}
.btn--light{background:#fff; color:var(--brand2); box-shadow:none}
.btn--ghost-light{background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.5)}

/* ---- 導覽 ---- */
.nav{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.85); backdrop-filter:blur(12px); border-bottom:1px solid var(--line)}
.nav__inner{display:flex; align-items:center; gap:28px; height:66px}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.2rem}
.brand__mark{width:30px; height:30px}
.nav__links{display:flex; gap:26px; margin-left:auto; font-size:.94rem; color:var(--muted); font-weight:500}
.nav__links a:hover{color:var(--brand)}

/* ---- Hero ---- */
.hero{padding:74px 0 64px; background:radial-gradient(1200px 500px at 80% -10%, #eef2ff 0%, transparent 60%)}
.hero__inner{display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center}
.pill{display:inline-block; background:#eef2ff; color:var(--brand); font-weight:600; font-size:.82rem; padding:6px 14px; border-radius:999px; margin-bottom:20px}
.hero h1{font-size:2.9rem; font-weight:800; letter-spacing:-.5px}
.hl{background:linear-gradient(120deg,var(--brand),var(--brand2)); -webkit-background-clip:text; background-clip:text; color:transparent}
.lede{color:var(--muted); font-size:1.08rem; margin:22px 0 30px; max-width:36em}
.lede b{color:var(--ink)}
.hero__cta{display:flex; gap:14px; flex-wrap:wrap}
.hero__stats{display:flex; gap:34px; margin-top:38px}
.hero__stats div{display:flex; flex-direction:column}
.hero__stats b{font-size:1.7rem; color:var(--brand2); font-weight:800}
.hero__stats span{color:var(--muted); font-size:.85rem}
.hero__art{display:flex; justify-content:center}
.art{width:100%; max-width:480px; filter:drop-shadow(0 30px 50px rgba(79,124,255,.18))}

/* ---- 區塊 ---- */
.section{padding:82px 0}
.section--alt{background:var(--bg-alt)}
.section__head{max-width:680px; margin:0 auto 48px; text-align:center}
.eyebrow{color:var(--brand); font-weight:700; font-size:.82rem; letter-spacing:1.5px; text-transform:uppercase}
.section__head h2{font-size:2.1rem; font-weight:800; margin:12px 0 14px; letter-spacing:-.4px}
.section__head p{color:var(--muted); font-size:1.04rem}

/* ---- 卡片格線 ---- */
.grid{display:grid; gap:24px}
.grid--3{grid-template-columns:repeat(3,1fr)}
.card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:28px; box-shadow:var(--shadow)}
.card--product{transition:transform .18s ease, border-color .18s ease}
.card--product:hover{transform:translateY(-4px); border-color:#cdd6f5}
.card__icon{width:48px; height:48px; border-radius:13px; display:grid; place-items:center; color:var(--c); background:color-mix(in srgb,var(--c) 12%, #fff); margin-bottom:16px}
.card__icon svg{width:26px; height:26px}
.card--product h3{font-size:1.18rem; margin-bottom:8px}
.card--product p{color:var(--muted); font-size:.96rem; margin:0 0 14px}
.ticks{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px}
.ticks li{position:relative; padding-left:24px; font-size:.9rem; color:#414a68}
.ticks li::before{content:""; position:absolute; left:0; top:7px; width:14px; height:14px; border-radius:50%;
  background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}

/* ---- 流程示意 ---- */
.flow{display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; margin-bottom:44px; padding:30px}
.flow__step{display:flex; flex-direction:column; align-items:center; text-align:center; min-width:130px}
.flow__num{--c:#9aa6cf; width:38px; height:38px; border-radius:50%; background:var(--c); color:#fff; display:grid; place-items:center; font-weight:800; margin-bottom:10px}
.flow__step b{font-size:.98rem}
.flow__step small{color:var(--muted); font-size:.82rem}
.flow__arrow{width:40px; height:24px; flex:none}

/* ---- 情境卡 ---- */
.scenarios .card--case{display:flex; flex-direction:column}
.case__tag{display:inline-block; align-self:flex-start; background:#eef2ff; color:var(--brand); font-size:.78rem; font-weight:700; padding:5px 12px; border-radius:999px; margin-bottom:14px}
.card--case h3{font-size:1.14rem; margin-bottom:10px}
.card--case p{color:var(--muted); font-size:.95rem; margin:0 0 16px}
.case__lines{margin-top:auto; font-size:.82rem; font-weight:700; color:var(--brand2); letter-spacing:.5px}

/* ---- 架構 ---- */
.arch{display:grid; grid-template-columns:1.4fr 1fr; gap:30px; align-items:center; padding:34px}
.arch__svg{width:100%}
.arch__notes{display:flex; flex-direction:column; gap:16px}
.note{border-left:3px solid var(--brand); padding-left:14px}
.note b{display:block; margin-bottom:2px}
.note span{color:var(--muted); font-size:.9rem}

/* ---- 特色 ---- */
.feature{padding:6px 4px}
.feature__ic{font-size:1.7rem; margin-bottom:10px}
.feature h3{font-size:1.08rem; margin-bottom:6px}
.feature p{color:var(--muted); font-size:.94rem; margin:0}

/* ---- CTA ---- */
.cta{padding:80px 0; background:linear-gradient(120deg,var(--brand),var(--brand2)); color:#fff; text-align:center}
.cta__inner h2{font-size:2rem; font-weight:800; margin-bottom:12px}
.cta__inner p{opacity:.92; margin:0 auto 28px; max-width:34em}
.cta__actions{display:flex; gap:14px; justify-content:center; flex-wrap:wrap}
.cta__mail{margin-top:22px; font-size:.92rem; opacity:.9}
.cta__mail a{color:#fff; font-weight:700; text-decoration:underline}

/* ---- Footer ---- */
.footer{padding:28px 0; border-top:1px solid var(--line); color:var(--muted); font-size:.88rem}
.footer__inner{display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px}
.footer__lines{font-weight:600; letter-spacing:1px}

/* ---- 產品卡「了解更多」 ---- */
.card__more{display:inline-block; margin-top:16px; font-weight:700; font-size:.92rem; color:var(--brand)}
.card--product .card__more{color:var(--c,var(--brand))}
.card__more:hover{text-decoration:underline}

/* ---- 子頁 Hero ---- */
.sub-hero{padding:56px 0 60px; background:
  radial-gradient(1000px 420px at 85% -20%, color-mix(in srgb,var(--accent) 16%, transparent) 0%, transparent 60%)}
.crumb{display:inline-block; color:var(--muted); font-weight:600; font-size:.9rem; margin-bottom:18px}
.crumb:hover{color:var(--accent)}
.sub-hero h1{font-size:2.6rem; font-weight:800; letter-spacing:-.5px; margin-top:14px}
.sub-hero .lede{max-width:44em}

/* ---- 捲動淡入 ---- */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease}
.reveal--in{opacity:1; transform:none}

/* ---- 深色模式 ---- */
@media (prefers-color-scheme:dark){
  :root{
    --ink:#e9edfb; --muted:#9aa3c4; --line:#242a44;
    --bg:#0e1122; --bg-alt:#141830;
    --shadow:0 18px 50px -24px rgba(0,0,0,.7);
  }
  body{background:var(--bg)}
  .nav{background:rgba(14,17,34,.82); border-bottom-color:var(--line)}
  code{background:#1d2340; color:#a9b4ff}
  .card{background:#161b34; border-color:var(--line)}
  .pill,.eyebrow~*,.case__tag,.card__icon{}
  .pill,.case__tag{background:#1c2340; color:#8ea6ff}
  .hero{background:radial-gradient(1200px 500px at 80% -10%, #17203f 0%, transparent 60%)}
  .art rect[fill^="url(#card)"],.art [fill="#fff"]{}
  .btn--ghost{border-color:#33406e; color:#8ea6ff}
  .arch__svg .b{fill:#161b34}
  .arch__svg .t{fill:#e9edfb}
}

/* ---- RWD ---- */
@media (max-width:900px){
  .hero__inner{grid-template-columns:1fr; text-align:center}
  .hero__cta,.hero__stats{justify-content:center}
  .lede{margin-left:auto; margin-right:auto}
  .hero h1{font-size:2.3rem}
  .grid--3{grid-template-columns:1fr}
  .arch{grid-template-columns:1fr}
  .nav__links{display:none}
}
