/* WiseVision 慧識科技 — landing page */
:root {
  --bg: #080d18;
  --bg-2: #0c1322;
  --panel: #111a2c;
  --panel-2: #16213a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef2f8;
  --muted: #a3afc4;
  --dim: #74819a;
  --gold: #f4bb3a;
  --gold-2: #ffd774;
  --teal: #35d6a8;
  --radius: 16px;
  --font: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.75; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 2.5rem); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 780px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; max-width: 900px; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.45rem); font-weight: 800; margin-bottom: 18px; }
.section-intro { color: var(--muted); font-size: 1.06rem; }
.fine { color: var(--dim); font-size: 0.86rem; margin-top: 22px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 0.98rem; border: 1.5px solid transparent; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #1a1405; box-shadow: 0 10px 30px rgba(244, 187, 58, 0.25); }
.btn-primary:hover { background: var(--gold-2); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(8, 13, 24, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(8, 13, 24, 0.92); }
.nav-wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 13px; border-radius: 8px; font-size: 0.94rem; font-weight: 500; color: var(--muted); transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.main-nav .nav-cta { color: var(--gold); border: 1px solid rgba(244, 187, 58, 0.45); margin-left: 8px; }
.main-nav .nav-cta:hover { background: var(--gold); color: #1a1405; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { font: inherit; font-size: 0.86rem; font-weight: 600; background: none; border: 1px solid var(--line); color: var(--dim); border-radius: 999px; padding: 6px 12px; cursor: pointer; display: flex; gap: 5px; }
.lang-toggle:hover { border-color: rgba(255, 255, 255, 0.3); }
.lang-opt.active { color: var(--gold); }
.nav-burger { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* hero */
.hero { position: relative; padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
    radial-gradient(900px 520px at 82% 8%, rgba(244, 187, 58, 0.16), transparent 62%),
    radial-gradient(760px 520px at 8% 92%, rgba(53, 214, 168, 0.12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); }
.hero-inner { position: relative; max-width: 940px; margin-left: max(1.25rem, calc((100% - 1160px) / 2)); }
.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 900; line-height: 1.2; }
h1 em { font-style: normal; color: var(--gold); }
.lead { margin-top: 26px; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 760px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.pillars { position: relative; margin-top: clamp(48px, 6vw, 76px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: rgba(17, 26, 44, 0.72); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.pillar:hover { border-color: var(--gold); transform: translateY(-2px); }
.pillar .no { font-size: 0.86rem; font-weight: 800; color: var(--gold); letter-spacing: 0.08em; }
.pillar h3 { font-size: 1.08rem; font-weight: 700; flex: 1; }
.pillar .arrow { color: var(--dim); }

/* philosophy */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-copy p + p { margin-top: 18px; }
.about-copy > p:not(.section-label) { color: var(--muted); font-size: 1.04rem; }
.vals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.val, .card { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.val h3, .card h3 { font-size: 1.1rem; font-weight: 700; margin: 16px 0 8px; }
.val p, .card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(244, 187, 58, 0.12); color: var(--gold); }
.ico svg { width: 24px; height: 24px; }

/* solutions */
.sol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.sol + .sol { margin-top: 26px; }
.sol.flip .sol-copy { order: 2; }
.sol-tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 10px; }
.sol h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 800; }
.sol-lead { margin-top: 12px; color: var(--muted); font-size: 1.03rem; }
.feat { margin-top: 20px; display: grid; gap: 11px; }
.feat li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.feat li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.feat b { color: var(--text); }
.sol-media { position: relative; display: grid; }
.sol-media.n2 .shot:first-child { width: 86%; }
.sol-media.n2 .shot:last-child { width: 62%; justify-self: end; margin-top: -24%; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }

/* blurred screenshots */
.shot { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: #0b1220; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: blur(2px) saturate(0.92); transform: scale(1.04); user-select: none; -webkit-user-drag: none; pointer-events: none; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 13, 24, 0) 45%, rgba(8, 13, 24, 0.82)); }
.shot.clear img { filter: none; transform: none; }
.shot.clear::after { background: linear-gradient(180deg, rgba(8, 13, 24, 0) 78%, rgba(8, 13, 24, 0.85)); }
.shot figcaption { position: absolute; left: 12px; bottom: 9px; right: 12px; z-index: 1; font-size: 0.76rem; font-weight: 600; color: rgba(255, 255, 255, 0.82); letter-spacing: 0.02em; }

/* case */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metric { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.metric strong { display: block; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric.gold { border-color: rgba(244, 187, 58, 0.5); }
.metric.gold strong { color: var(--gold); }
.metric.teal strong { color: var(--teal); }
.metric p { margin-top: 12px; color: var(--text); font-size: 0.98rem; line-height: 1.55; }
.metric small { color: var(--dim); font-size: 0.84rem; }
.gallery { margin-top: 26px; display: grid; grid-template-columns: 1.25fr 1.25fr 0.62fr 1.25fr; gap: 14px; }
.gallery .shot { aspect-ratio: 4 / 3; }
.gallery .shot img { position: absolute; inset: 0; }
.gallery .shot.tall { aspect-ratio: auto; }

/* showcase */
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.showcase .shot { aspect-ratio: 16 / 10; cursor: zoom-in; transition: border-color .2s, transform .2s; }
.showcase .shot:hover { border-color: var(--gold); transform: translateY(-2px); }
.showcase .shot img { position: absolute; inset: 0; }
.showcase .shot.clear::after { background: linear-gradient(180deg, rgba(8, 13, 24, 0) 52%, rgba(8, 13, 24, 0.92)); }
.showcase .shot figcaption { font-size: 0.86rem; line-height: 1.45; bottom: 12px; left: 14px; right: 14px; }
@media (max-width: 980px) { .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .showcase { grid-template-columns: minmax(0, 1fr); } }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 4vh 4vw; background: rgba(4, 7, 14, 0.92); cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); }
.lightbox p { color: var(--muted); font-size: 0.95rem; text-align: center; }

/* strengths */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(244, 187, 58, 0.5); transform: translateY(-2px); }

/* awards */
.awards { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.awards > div { position: sticky; top: calc(var(--nav-h) + 28px); }
.awards-list { display: grid; gap: 12px; }
.awards-list li { display: flex; gap: 20px; align-items: baseline; padding: 20px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.awards-list .yr { font-size: 1.15rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; flex: none; }
.awards-list strong { display: block; font-size: 1.02rem; }
.awards-list div span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.92rem; }

/* contact + footer */
.section-contact { background: radial-gradient(700px 380px at 50% 0%, rgba(244, 187, 58, 0.16), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); text-align: center; }
.contact-inner { max-width: 720px; }
.contact-inner .btn { margin-top: 32px; }
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.site-footer img { height: 36px; width: auto; margin-bottom: 10px; }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--gold); }

/* reveal (only when JS + IntersectionObserver are available) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* responsive */
@media (max-width: 980px) {
  .about, .awards, .sol { grid-template-columns: minmax(0, 1fr); }
  .awards > div { position: static; }
  .sol.flip .sol-copy { order: 0; }
  .cards, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .shot.tall { aspect-ratio: 4 / 3; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .main-nav { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 1.25rem 18px; background: rgba(8, 13, 24, 0.98); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 8px; font-size: 1rem; }
  .main-nav .nav-cta { margin: 10px 0 0; text-align: center; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 600px) {
      .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .awards-list li { gap: 14px; padding: 16px 18px; }
}
