*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg-pure: #030303; --bg-elevated: #0a0a0c;
  --bg-card: rgba(16, 18, 28, 0.72);
  --white: #ffffff; --white-strong: #ffffff;
  --gray: #c8c8d0; --gray-dim: #9a9aa5; --gray-faint: #32323c;
  --gold: #D4A843; --gold-light: #E8C860; --gold-dark: #B8922E;
  --gold-gradient: linear-gradient(135deg, #E8C860 0%, #D4A843 40%, #B8922E 70%, #D4A843 100%);
  --gold-border: rgba(212, 168, 67, 0.4);
  --sans: 'Inter', 'PingFang TC', 'Microsoft JhengHei', 'Microsoft YaHei', 'Noto Sans TC', system-ui, sans-serif;
  --heading: 'Syne', 'Inter', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
  --fs-hero: clamp(2.2rem, 7.2vw, 6.9rem);
  --fs-body: clamp(1rem, 1.15vw, 1.2rem);
  --fs-sm: clamp(0.9rem, 0.9vw, 1rem);
  --fs-xs: clamp(0.75rem, 0.8vw, 0.9rem);
}
html { scroll-behavior: auto; background: var(--bg-pure); }
body {
  background: var(--bg-pure);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: break-word;
}
::selection { background: var(--gold); color: var(--bg-pure); }
img { max-width: 100%; display: block; object-fit: cover; }
a, button { color: var(--gold); text-decoration: none; outline: none; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { line-break: strict; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
#webgl-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; opacity: 0.97; }
#mobile-ambient-canvas { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; opacity: 0; }

.preloader { position: fixed; inset: 0; z-index: 100000; background: radial-gradient(circle at 50% 35%, rgba(212,168,67,0.16), transparent 42%), linear-gradient(180deg, rgba(3,3,3,0.96) 0%, rgba(3,3,3,0.92) 100%); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; flex-direction: column; pointer-events: none; transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.preloader::before { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(212,168,67,0.12); opacity: 0.9; }
.preloader > * { position: relative; z-index: 1; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease; }
.preloader.is-hidden { opacity: 0; visibility: hidden; transform: scale(1.015); }
.preloader.is-hidden > * { opacity: 0; transform: translateY(-18px); }
.pre-counter { font-family: var(--heading); font-size: clamp(3.8rem, 9vw, 7rem); font-weight: 800; color: var(--gold); line-height: 1; text-shadow: 0 0 28px rgba(212,168,67,0.22); }
.pre-sub { font-size: var(--fs-xs); letter-spacing: 6px; text-transform: uppercase; color: var(--gray-dim); margin-top: 12px; text-align: center; padding: 0 20px; }
.pre-bar-wrap { width: min(240px, calc(100vw - 72px)); height: 1px; background: rgba(255,255,255,0.1); margin-top: 30px; position: relative; overflow: hidden; }
.pre-bar { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--gold-gradient); box-shadow: 0 0 24px rgba(212,168,67,0.45); }

.container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 60px); position: relative; z-index: 1; }
.label { font-size: 0.72rem; font-weight: 800; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.label::before { content: ''; width: 24px; height: 1.5px; background: var(--gold); }
.heading-xl { font-family: var(--heading); font-size: var(--fs-hero); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; color: var(--white-strong); }
.title-chunk { display: block; }
.copy-safe { line-break: strict; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.char-wrap { display: inline-block; }
.char { display: inline-block; opacity: 1; transform: none; will-change: transform, opacity; }
html.js-enhanced .char { opacity: 0; transform: translateY(30px); }
.text-gold { color: var(--gold); }
.text-gold .char { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; font-weight: 800; font-size: var(--fs-sm); letter-spacing: 2px; text-transform: uppercase; padding: 22px 48px; border-radius: 4px; transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border 0.3s; border: 1px solid transparent; text-align: center; }
.btn-primary { background: var(--gold-gradient); color: var(--bg-pure) !important; }
.btn-outline { border-color: var(--gray-dim); color: var(--white); }

nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 24px 0; transition: background 0.4s, padding 0.4s; }
nav.scrolled { background: rgba(3,3,3,0.92); backdrop-filter: blur(20px); padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; line-height: 1; }
.logo-main { font-weight: 900; font-size: 18px; letter-spacing: -0.3px; font-family: var(--heading); color: var(--white-strong); }
.logo-main .divider { color: var(--gold); margin: 0 4px; }
.logo-role { font-size: 10px; font-weight: 700; color: var(--gray-dim); font-family: var(--sans); letter-spacing: 1.8px; text-transform: uppercase; }
nav ul { display: flex; gap: 32px; list-style: none; align-items: center; transition: 0.3s; }
nav ul a { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); transition: color 0.3s; }
.nav-toggle { display: none; width: 30px; height: 20px; flex-direction: column; justify-content: space-between; z-index: 1001; }
.nav-toggle span { width: 100%; height: 2px; background: var(--white); transition: 0.3s; }

.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 10vh; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, rgba(232,200,96,0.2) 0%, rgba(120,156,210,0.12) 30%, rgba(3,3,3,0) 68%); }
.hero-content { max-width: 900px; position: relative; z-index: 3; }
.hero-bg-img { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: 0.4; filter: grayscale(0.22) contrast(1.05); mix-blend-mode: normal; }
.hero-bg-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(3,3,3,0.68) 0%, rgba(3,3,3,0.14) 52%, rgba(3,3,3,0.58) 100%), linear-gradient(to bottom, rgba(3,3,3,0.02) 56%, rgba(3,3,3,0.88) 100%); }
.hero-title { max-width: 12ch; }
.hero-title-line { display: block; }
.hero-title-pre, .hero-title-flow { display: inline; }
.hero-title-flow { white-space: nowrap; }
.hero-subtitle { font-size: var(--fs-body); color: var(--gray); max-width: 680px; margin-top: 38px; line-height: 1.95; font-weight: 350; }
.hero-subtitle strong { color: var(--white-strong); font-weight: 700; }
.industry-focus { color: var(--gold-light); font-weight: 700; }
.hero-buttons { display: flex; gap: 20px; margin-top: 50px; flex-wrap: wrap; }
.scroll-indicator { position: absolute; bottom: 46px; right: clamp(24px, 5vw, 60px); display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0.45; z-index: 3; }
.scroll-indicator span { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; font-weight: 800; }
.scroll-line { width: 1px; height: 60px; background: var(--gray-faint); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: var(--gold); animation: scroll 2s ease-in-out infinite; }
@keyframes scroll { 0%, 100% { transform: translateY(-100%); } 50% { transform: translateY(200%); } }

.reveal { opacity: 1; transform: none; }
html.js-enhanced .reveal { opacity: 0; transform: translateY(40px); }

@media (max-width: 900px) {
  nav ul { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--bg-pure); flex-direction: column; justify-content: center; gap: 40px; }
  nav ul.active { right: 0; }
  .nav-toggle { display: flex; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  #webgl-canvas { display: none; }
  #mobile-ambient-canvas { display: block; opacity: 0.94; }
}
.save-data #mobile-ambient-canvas,
.reduced-motion #mobile-ambient-canvas { display: none !important; opacity: 0 !important; }
@media (max-width: 768px) {
  nav { padding: 16px 0; }
  .logo-main { font-size: 16px; }
  .logo-role { font-size: 9px; letter-spacing: 1.2px; }
  .hero-bg-img img { opacity: 0.48; filter: grayscale(0.14) contrast(1.08); }
  .hero { min-height: 86vh; padding-top: 12vh; }
  .hero-content { max-width: 100%; }
  .hero-title { max-width: 100%; }
  .hero-title .hero-title-line,
  .hero-title .hero-title-pre,
  .hero-title .hero-title-flow { display: block; }
  .hero-title .hero-title-flow { margin-top: 0.06em; }
  .hero-title .hero-title-bottom { margin-top: 0.08em; }
  .hero-subtitle { margin-top: 26px; max-width: 100%; line-height: 1.8; }
  .hero-buttons { margin-top: 34px; gap: 12px; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .btn { padding: 16px 20px; font-size: 0.84rem; }
  .scroll-indicator { display: none; }
}
@supports (height: 100svh) {
  .hero { min-height: 100svh; }
}
@supports (height: 100dvh) {
  .hero { min-height: 100dvh; }
}
