/* ============================================================
   傑創資訊 JustWin — AI 官網改版
   Design system: dark, futuristic, brand navy + orange
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --navy: #1a3a6b;
  --orange: #f0801f;

  /* default theme = Deep Navy */
  --bg: #070b16;
  --bg-2: #0a1020;
  --surface: #0f1830;
  --surface-2: #15213f;
  --line: rgba(150, 175, 230, 0.10);
  --line-2: rgba(150, 175, 230, 0.20);

  --ink: #eef2fb;
  --ink-2: #aebbd6;
  --ink-3: #6d7c9e;

  --accent: #f0801f;          /* primary accent (orange) */
  --accent-2: #4f86e8;        /* secondary accent (blue) */
  --accent-rgb: 240, 128, 31;
  --accent-2-rgb: 79, 134, 232;
  --glow: rgba(240, 128, 31, 0.5);

  --maxw: 1220px;
  --pad: clamp(20px, 5vw, 40px);
  --sect: clamp(84px, 11vw, 150px);
  --radius: 16px;

  --font-display: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  --font-body: 'Noto Sans TC', 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', 'Noto Sans TC', monospace;
}

/* ---------- Theme: Carbon (near-black) ---------- */
:root[data-theme="carbon"] {
  --bg: #08090c;
  --bg-2: #0c0e13;
  --surface: #14161d;
  --surface-2: #1b1e27;
  --line: rgba(200, 205, 220, 0.09);
  --line-2: rgba(200, 205, 220, 0.18);
  --ink: #f2f3f6;
  --ink-2: #b3b8c4;
  --ink-3: #71778a;
  --accent-2: #8a93a8;
}

/* ---------- Theme: Azure (blue-forward) ---------- */
:root[data-theme="azure"] {
  --bg: #050a17;
  --bg-2: #07101f;
  --surface: #0c1730;
  --surface-2: #122142;
  --line: rgba(120, 160, 255, 0.12);
  --line-2: rgba(120, 160, 255, 0.24);
  --ink: #eaf1ff;
  --ink-2: #a6bbe6;
  --ink-3: #647199;
  --accent: #38b6ff;
  --accent-rgb: 56, 182, 255;
  --accent-2: #f0801f;
  --accent-2-rgb: 240, 128, 31;
  --glow: rgba(56, 182, 255, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(var(--accent-rgb), 0.3); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
main { position: relative; z-index: 1; }
.section { padding: var(--sect) 0; position: relative; z-index: 1; background: color-mix(in srgb, var(--bg) 64%, transparent); }
.section--alt { background: color-mix(in srgb, var(--bg-2) 66%, transparent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head .sub {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1.12rem;
  line-height: 1.85;
  max-width: 640px;
  text-wrap: pretty;
}

.lead { color: var(--ink-2); font-size: 1.18rem; line-height: 1.85; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.3,.7,.4,1), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--accent);
  color: #0a0c12;
  box-shadow: 0 8px 30px -8px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--glow); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 22, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
  padding-top: 13px; padding-bottom: 13px;
}
:root[data-theme="carbon"] .nav.scrolled { background: rgba(8,9,12,0.78); }
:root[data-theme="azure"] .nav.scrolled { background: rgba(5,10,23,0.74); }

/* logo lockup */
.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark { display: flex; gap: 3px; }
.logo-mark span {
  width: 26px; height: 26px; border-radius: 5px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: #fff; line-height: 1;
}
.logo-mark .j { background: var(--navy); }
.logo-mark .w { background: var(--orange); }
:root[data-theme="azure"] .logo-mark .j { background: #1f4f8c; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; letter-spacing: 0.01em; }
.brand-text small { font-size: 0.62rem; letter-spacing: 0.22em; color: var(--ink-3); font-family: var(--font-mono); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.94rem; color: var(--ink-2); position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
}
.lang-toggle button {
  background: transparent; color: var(--ink-3); border: 0; padding: 7px 12px; transition: .2s;
}
.lang-toggle button.active { background: var(--accent); color: #0a0c12; font-weight: 700; }

.nav-toggle { display: none; background: transparent; border: 0; color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero::after { /* vignette + bottom fade */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 10%, transparent 40%, rgba(var(--accent-rgb),0.05) 100%),
    linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 70%, transparent) 99%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 940px; }
.hero-tagline {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px; display: flex; align-items: center; gap: 14px;
}
.hero-tagline .ln { width: 46px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 7.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero h1 .zh { font-family: var(--font-body); font-weight: 900; letter-spacing: 0.01em; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), #ffb56b 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="azure"] .hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), #9fe0ff 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 28px; max-width: 560px;
  font-size: 1.22rem; line-height: 1.8; color: var(--ink-2); text-wrap: pretty;
}
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 64px; display: flex; flex-wrap: wrap; gap: 14px 44px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat b {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em; color: var(--ink);
}
.hero-stat b em { color: var(--accent); font-style: normal; }
.hero-stat span { font-size: 0.82rem; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.05em; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .bar { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   AI FIVE-LAYER ARCHITECTURE
   ============================================================ */
.arch-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (max-width: 940px) { .arch-wrap { grid-template-columns: 1fr; } }

.arch-stack { display: flex; flex-direction: column; gap: 12px; }
.arch-layer {
  position: relative; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 18px;
  transition: border-color .3s, background .3s, transform .3s;
  overflow: hidden;
}
.arch-layer::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: 0; transition: opacity .3s;
}
.arch-layer:hover { transform: translateX(4px); border-color: var(--line-2); }
.arch-layer.active {
  background: var(--surface-2);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.25), 0 20px 50px -24px var(--glow);
}
.arch-layer.active::before { opacity: 1; }
.arch-idx {
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 9px; flex-shrink: 0;
  min-width: 42px; text-align: center; transition: .3s;
}
.arch-layer.active .arch-idx { color: var(--accent); border-color: rgba(var(--accent-rgb),0.5); }
.arch-meta { flex: 1; min-width: 0; }
.arch-meta h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; letter-spacing: -0.01em; }
.arch-meta .en { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.arch-own {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb),0.4); border-radius: 999px; padding: 4px 9px;
  background: rgba(var(--accent-rgb),0.08);
}

/* detail panel */
.arch-detail {
  position: sticky; top: 110px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: clamp(28px, 4vw, 42px);
  min-height: 420px;
}
.arch-detail .d-idx { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; letter-spacing: 0.2em; }
.arch-detail h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 14px 0 6px; letter-spacing: -0.02em; }
.arch-detail .d-en { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.arch-detail .d-desc { margin: 22px 0 26px; color: var(--ink-2); line-height: 1.85; }
.arch-detail .d-list { display: flex; flex-wrap: wrap; gap: 10px; }
.arch-detail .d-list span {
  font-size: 0.86rem; color: var(--ink); padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.02);
}
.arch-detail .d-list span::before { content: "▹ "; color: var(--accent); }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 32px 28px 30px; overflow: hidden;
  transition: transform .3s cubic-bezier(.3,.7,.4,1), border-color .3s, background .3s;
}
.svc-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb),0.10), transparent 60%);
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.svc-card:hover::after { opacity: 1; }
.svc-ico {
  width: 52px; height: 52px; border-radius: 13px;
  border: 1px solid var(--line-2); background: rgba(var(--accent-rgb),0.06);
  display: grid; place-items: center; margin-bottom: 24px; color: var(--accent);
}
.svc-ico svg { width: 26px; height: 26px; }
.svc-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.01em; }
.svc-card .en { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 5px 0 16px; }
.svc-card p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.8; position: relative; z-index: 1; }
.svc-num { position: absolute; top: 24px; right: 26px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); }

/* ============================================================
   B300 SUPERCOMPUTE
   ============================================================ */
.b300 { position: relative; overflow: hidden; }
.b300-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
@media (max-width: 940px) { .b300-grid { grid-template-columns: 1fr; } }
.b300-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 38px; }
.b300-stat { background: var(--surface); padding: 26px 24px; }
.b300-stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem,3.4vw,2.6rem); letter-spacing: -0.02em; color: var(--ink); }
.b300-stat b em { color: var(--accent); font-style: normal; }
.b300-stat span { font-size: 0.84rem; color: var(--ink-3); margin-top: 4px; display: block; }

.spec-list { display: flex; flex-direction: column; gap: 0; margin-top: 30px; }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-row:first-child { border-top: 1px solid var(--line); }
.spec-row .k { color: var(--ink-2); font-size: 0.96rem; }
.spec-row .v { font-family: var(--font-mono); font-size: 0.92rem; color: var(--ink); text-align: right; }
.spec-row .v em { color: var(--accent); font-style: normal; }

/* rack visual */
.rack {
  position: relative; aspect-ratio: 4/5; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg-2)); padding: 22px; overflow: hidden;
}
.rack-units { display: grid; grid-template-rows: repeat(14, 1fr); gap: 5px; height: 100%; }
.rack-u {
  border: 1px solid var(--line-2); border-radius: 4px; background: rgba(255,255,255,0.02);
  display: flex; align-items: center; padding: 0 9px; gap: 6px; position: relative; overflow: hidden;
}
.rack-u .leds { display: flex; gap: 4px; margin-left: auto; }
.rack-u .leds i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); opacity: .5; }
.rack-u.on .leds i { background: var(--accent); opacity: 1; box-shadow: 0 0 7px var(--glow); animation: blink 2.4s infinite; }
.rack-u .bars { display: flex; gap: 3px; }
.rack-u .bars i { width: 14px; height: 8px; border-radius: 1px; background: linear-gradient(90deg, var(--accent-2), transparent); opacity: .55; }
@keyframes blink { 0%,100%{opacity:1;} 45%{opacity:.25;} }
.rack-label { position: absolute; bottom: 14px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }

/* ============================================================
   INTEGRATION (existing strength)
   ============================================================ */
.intg-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px,6vw,80px); align-items: start; }
@media (max-width: 900px){ .intg-grid { grid-template-columns: 1fr; } }
.intg-values { display: flex; gap: 12px; margin: 28px 0 0; flex-wrap: wrap; }
.intg-values .v { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 999px; }
.intg-values .v em { color: var(--accent); font-style: normal; }
.cap-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
@media (max-width: 480px){ .cap-grid { grid-template-columns: 1fr; } }
.cap {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border-color .25s, background .25s, transform .25s;
}
.cap:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cap .c-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; color: var(--accent-2); background: rgba(var(--accent-2-rgb),0.08); border: 1px solid var(--line-2); }
.cap .c-ico svg { width: 18px; height: 18px; }
.cap b { font-weight: 600; font-size: 0.98rem; display: block; }
.cap span { font-size: 0.74rem; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ============================================================
   CLOUD EXCHANGE
   ============================================================ */
.cx { position: relative; }
.cx-diagram {
  position: relative; margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: clamp(32px,5vw,56px); overflow: hidden;
}
.cx-core {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  margin: 0 auto 40px; width: fit-content; padding: 22px 34px;
  border: 1px solid rgba(var(--accent-rgb),0.4); border-radius: 16px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(var(--accent-rgb),0.14), transparent);
  box-shadow: 0 0 60px -20px var(--glow);
}
.cx-core b { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.cx-core span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.cx-clouds { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cx-cloud {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 26px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; min-width: 156px; height: 76px; transition: .3s;
}
.cx-cloud:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.55); }
.cx-logo { max-height: 40px; max-width: 124px; width: auto; height: auto; object-fit: contain; display: block; }
.cx-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 38px; }

/* ============================================================
   B300 PLANS
   ============================================================ */
.plan-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 900px){ .plan-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 480px){ .plan-grid { grid-template-columns: 1fr;} }
.plan {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 26px 22px; transition: .3s; position: relative;
}
.plan:hover { border-color: var(--line-2); transform: translateY(-4px); }
.plan.feat { border-color: rgba(var(--accent-rgb),0.45); background: var(--surface-2); box-shadow: 0 24px 60px -30px var(--glow); }
.plan .tier { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.plan .qty { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; letter-spacing: -0.01em; margin: 8px 0 2px; line-height: 1.1; }
.plan .qty em { display: block; color: var(--accent); font-style: normal; font-size: 0.72rem; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.plan ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.plan li { font-size: 0.86rem; color: var(--ink-2); display: flex; gap: 9px; align-items: baseline; line-height: 1.5; }
.plan li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
.plan-note { margin-top: 26px; text-align: center; color: var(--ink-3); font-size: 0.92rem; }
.plan-note em { color: var(--accent); font-style: normal; }

/* ============================================================
   CASES
   ============================================================ */
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 860px){ .case-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 540px){ .case-grid { grid-template-columns: 1fr;} }
.case {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 0; overflow: hidden; transition: .3s; display: flex; flex-direction: column;
}
.case:hover { border-color: var(--line-2); transform: translateY(-5px); }
.case { cursor: pointer; }
.case-vis { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--bg-2); }
.case-vis .cvis { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.case-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .5s cubic-bezier(.3,.7,.4,1); }
.case:hover .case-img { transform: scale(1.05); }
.case-vis .zoom { position: absolute; bottom: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 9px; background: rgba(7,11,22,.72); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); opacity: 0; transform: translateY(4px); transition: .25s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.case-vis .zoom svg { width: 15px; height: 15px; }
.case:hover .zoom { opacity: 1; transform: none; }
.case-vis .tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; border: 1px solid rgba(var(--accent-rgb),0.4); padding: 4px 9px; border-radius: 999px; background: rgba(7,11,22,0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 4vw; background: rgba(4,7,14,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox.open { display: flex; animation: lbfade .25s ease; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 90px rgba(0,0,0,.6); border: 1px solid var(--line-2); }
.lightbox .lb-close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); color: #fff; font-size: 20px; transition: .2s; }
.lightbox .lb-close:hover { background: rgba(255,255,255,.16); }
.lightbox .lb-cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--ink-2); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; }
.case-body { padding: 22px 22px 26px; }
.case-body h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; }
.case-body p { color: var(--ink-3); font-size: 0.86rem; margin-top: 8px; font-family: var(--font-mono); letter-spacing: 0.03em; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
@media (max-width: 880px){ .about-grid { grid-template-columns: 1fr; } }
.about-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(28px,4vw,40px); }
.about-card .row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.about-card .row:last-child { border-bottom: 0; }
.about-card .row .k { color: var(--ink-3); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; }
.about-card .row .v { color: var(--ink); text-align: right; font-size: 0.96rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px,6vw,80px); }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 26px; }
.ci-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-item .ci-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb),0.06); }
.ci-item .ci-ico svg { width: 19px; height: 19px; }
.ci-item .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ci-item .v { font-size: 1.02rem; color: var(--ink); margin-top: 3px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.field label em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 14px 16px; color: var(--ink); font-family: var(--font-body); font-size: 1rem;
  transition: border-color .2s, background .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.form .submit-row { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-msg { font-size: 0.9rem; color: var(--accent); font-family: var(--font-mono); opacity: 0; transition: opacity .3s; }
.form-msg.show { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: color-mix(in srgb, var(--bg-2) 76%, transparent); position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer h5 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--ink-2); font-size: 0.92rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-brand p { color: var(--ink-3); font-size: 0.9rem; line-height: 1.8; margin-top: 18px; max-width: 280px; }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 0.82rem; font-family: var(--font-mono); letter-spacing: 0.03em; }

/* ============================================================
   Reveal animation
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .reveal.d1 { transition-delay: .08s; }
  html.js .reveal.d2 { transition-delay: .16s; }
  html.js .reveal.d3 { transition-delay: .24s; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column; align-items: flex-start;
    background: var(--bg-2); border-left: 1px solid var(--line); padding: 100px 36px; gap: 26px; transform: translateX(100%); transition: transform .35s cubic-bezier(.3,.7,.4,1); z-index: 90; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; z-index: 95; }
  .hero-stats { gap: 18px 28px; }
}

/* lang visibility handled by JS swapping text; keep both fonts crisp */
[data-en-active] .zh-only { display: none; }

/* brand logo image */
.brand-logo { height: 40px; width: auto; display: block; background: #fff; border-radius: 9px; padding: 5px 7px; box-shadow: 0 2px 12px rgba(0,0,0,.28); }
.nav.scrolled .brand-logo { height: 36px; }
.footer .brand-logo { height: 38px; }

/* ===== Winning the Future (new venture) ===== */
.synergy { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; margin-bottom: 36px; }
@media (max-width: 760px) { .synergy { grid-template-columns: 1fr; } .syn-op { transform: rotate(90deg); padding: 4px 0; } }
.syn-term { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; justify-content: center; text-align: center; }
.syn-term b { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.syn-term span { color: var(--ink-3); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .05em; }
.syn-term.feat { border-color: rgba(var(--accent-rgb),.5); background: var(--surface-2); box-shadow: 0 24px 60px -30px var(--glow); }
.syn-term.feat b em { color: var(--accent); font-style: normal; }
.syn-op { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--accent); }
.future-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 820px) { .future-pillars { grid-template-columns: 1fr; } }
.fp { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px 26px; transition: border-color .3s, transform .3s; }
.fp:hover { border-color: var(--line-2); transform: translateY(-4px); }
.fp-k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.fp h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; margin: 12px 0 10px; letter-spacing: -.01em; }
.fp p { color: var(--ink-2); font-size: .96rem; line-height: 1.8; }

/* infinity symbol emphasis */
.syn-term.feat b em { font-size: 2.6rem; line-height: 1; display: inline-block; }
