:root {
  --bg: #07101f;
  --bg-2: #0b1730;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f6f8ff;
  --muted: #aeb9d8;
  --muted-2: #7f8cb3;
  --blue: #45a3ff;
  --cyan: #39f0ff;
  --purple: #9a63ff;
  --gold: #ffd36a;
  --green: #4cf5a5;
  --danger: #ff6b8a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(57, 240, 255, .22), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(154, 99, 255, .25), transparent 30%),
    radial-gradient(circle at 50% 88%, rgba(69, 163, 255, .16), transparent 42%),
    linear-gradient(135deg, #050916 0%, #08142a 48%, #07101f 100%);
  z-index: -4;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.88), transparent 85%);
  pointer-events: none;
  z-index: -3;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}
.orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(52px);
  opacity: .35;
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 9s ease-in-out infinite alternate;
}
.orb.one { top: 10%; left: -160px; background: var(--cyan); }
.orb.two { bottom: 12%; right: -170px; background: var(--purple); animation-delay: 1.2s; }
@keyframes floatOrb { to { transform: translate3d(80px, -45px, 0) scale(1.08); } }

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(57, 240, 255, .17), transparent 34%),
    linear-gradient(135deg, #040712, #07152a);
  transition: opacity .8s ease, visibility .8s ease;
}
.welcome-screen.hide { opacity: 0; visibility: hidden; }
.welcome-card {
  text-align: center;
  padding: 42px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: welcomeIn .85s cubic-bezier(.2,.8,.2,1) both;
}
.welcome-logo {
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  font-weight: 950;
  letter-spacing: .18em;
  line-height: 1;
  background: linear-gradient(90deg, var(--cyan), #fff, var(--purple));
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(57,240,255,.32));
}
.welcome-sub { margin-top: 16px; color: var(--muted); letter-spacing: .22em; font-size: .9rem; }
.loader { width: min(270px, 62vw); height: 4px; margin: 30px auto 0; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.14); }
.loader span { display: block; width: 100%; height: 100%; transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--purple)); animation: loading 1.7s ease forwards; }
@keyframes loading { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes welcomeIn { from { opacity: 0; transform: scale(.9) translateY(24px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.11);
  background: rgba(5, 9, 22, .68);
  backdrop-filter: blur(20px);
}
.nav {
  max-width: var(--max);
  margin: auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .08em; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #06111e;
  font-weight: 950;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 26px rgba(57, 240, 255, .42), inset 0 1px 0 rgba(255,255,255,.65);
}
.nav-links { display: flex; gap: 22px; align-items: center; color: var(--muted); font-size: .95rem; }
.nav-links a { transition: .22s ease; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-shadow: 0 0 14px rgba(57,240,255,.45); }
.nav-cta { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(57,240,255,.38); color: var(--cyan) !important; background: rgba(57,240,255,.08); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; border-radius: 14px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 99px; }
.mobile-menu { display: none; border-top: 1px solid rgba(255,255,255,.1); padding: 12px 22px 18px; background: rgba(5,9,22,.9); }
.mobile-menu a { display: block; padding: 12px 0; color: var(--muted); }
.mobile-menu.open { display: block; }

.container { max-width: var(--max); margin: auto; padding: 0 22px; }
.section { padding: 96px 0; }
.page-hero { padding: 150px 0 70px; }
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  padding: 142px 22px 76px;
  max-width: var(--max);
  margin: auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--cyan);
  border: 1px solid rgba(57,240,255,.36);
  background: rgba(57,240,255,.08);
  font-size: .92rem;
  margin-bottom: 22px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(1.8); opacity: .35; } }
.h1, h1 { font-size: clamp(3.05rem, 7vw, 6.7rem); line-height: 1.03; letter-spacing: -.065em; margin-bottom: 26px; }
.h2, h2 { font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.13; letter-spacing: -.04em; margin-bottom: 18px; }
.h3, h3 { line-height: 1.3; }
.gradient-text { background: linear-gradient(90deg, #fff, var(--cyan) 48%, var(--purple)); -webkit-background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.14rem; max-width: 760px; }
.hero .lead { margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 18px 46px rgba(69,163,255,.28); border-color: rgba(255,255,255,.22); }
.btn.ghost { color: var(--cyan); border-color: rgba(57,240,255,.32); background: rgba(57,240,255,.07); }
.btn:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(57,240,255,.18); }

.hero-stage { min-height: 560px; perspective: 1200px; display: grid; place-items: center; }
.scene-card {
  width: min(100%, 470px);
  padding: 28px;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform .15s ease;
  backdrop-filter: blur(22px);
  position: relative;
}
.scene-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(57,240,255,.45), transparent 32%, rgba(154,99,255,.38));
  z-index: -1;
  opacity: .65;
}
.browser-dots { display: flex; gap: 8px; margin-bottom: 22px; }
.browser-dots i { width: 12px; height: 12px; border-radius: 99px; background: rgba(255,255,255,.32); }
.dashboard-tile { padding: 20px; border: 1px solid rgba(255,255,255,.13); background: rgba(0,0,0,.18); border-radius: 22px; margin-bottom: 16px; transform: translateZ(34px); }
.dashboard-tile small { color: var(--cyan); letter-spacing: .14em; font-weight: 900; }
.dashboard-tile h3 { margin: 8px 0 6px; font-size: 1.34rem; }
.dashboard-tile p { color: var(--muted); font-size: .94rem; }
.progress { height: 10px; margin-top: 16px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.floating-badge {
  position: absolute;
  right: -26px;
  top: 74px;
  padding: 13px 16px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(7, 16, 31, .76);
  box-shadow: 0 22px 56px rgba(0,0,0,.38);
  color: var(--gold);
  font-weight: 900;
  transform: translateZ(90px);
}

.section-head { margin-bottom: 42px; max-width: 780px; }
.section-tag { color: var(--cyan); letter-spacing: .18em; font-size: .84rem; font-weight: 950; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform .28s ease, background .28s ease, border-color .28s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -50% -20%;
  height: 130px;
  background: radial-gradient(circle, rgba(57,240,255,.18), transparent 62%);
  opacity: 0;
  transition: .28s ease;
}
.card:hover { transform: translateY(-8px); background: var(--surface-strong); border-color: rgba(57,240,255,.35); }
.card:hover::after { opacity: 1; }
.card-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px; font-size: 1.55rem; background: linear-gradient(135deg, rgba(57,240,255,.16), rgba(154,99,255,.18)); border: 1px solid rgba(255,255,255,.14); }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p, .muted { color: var(--muted); }
.card ul { margin-top: 14px; padding-left: 20px; color: var(--muted); }
.card li { margin: 7px 0; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.metric { padding: 22px; border-radius: 22px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); }
.metric b { display: block; font-size: 2rem; line-height: 1; color: #fff; }
.metric span { color: var(--muted); font-size: .92rem; }

.panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(69,163,255,.14), rgba(154,99,255,.12)), rgba(255,255,255,.065);
  padding: 42px;
  box-shadow: var(--shadow);
}
.timeline { display: grid; gap: 18px; }
.timeline-item { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start; padding: 22px; border-radius: 24px; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.12); }
.timeline-num { color: var(--gold); font-weight: 950; letter-spacing: .1em; }

.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.tab-btn { cursor: pointer; color: var(--muted); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); border-radius: 999px; padding: 10px 16px; }
.tab-btn.active { color: #07101f; background: linear-gradient(135deg, var(--cyan), var(--gold)); font-weight: 900; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.accordion { display: grid; gap: 14px; }
.acc-item { border-radius: 20px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); overflow: hidden; }
.acc-question { width: 100%; border: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; font-weight: 900; }
.acc-answer { display: none; padding: 0 22px 22px; color: var(--muted); }
.acc-item.open .acc-answer { display: block; }

.cta-panel { text-align: center; padding: 74px 26px; border-radius: 40px; border: 1px solid rgba(255,255,255,.18); background: radial-gradient(circle at 50% 0%, rgba(57,240,255,.22), transparent 38%), linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045)); box-shadow: var(--shadow); }
.cta-panel p { max-width: 720px; margin: 0 auto 28px; color: var(--muted); }
.form { display: grid; gap: 16px; }
.input, textarea { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.2); color: #fff; outline: none; }
textarea { min-height: 150px; resize: vertical; }
.input:focus, textarea:focus { border-color: rgba(57,240,255,.55); box-shadow: 0 0 0 4px rgba(57,240,255,.08); }
.notice { padding: 14px 16px; border-radius: 16px; color: var(--muted); background: rgba(57,240,255,.07); border: 1px solid rgba(57,240,255,.18); }

.footer { margin-top: 60px; border-top: 1px solid rgba(255,255,255,.1); padding: 38px 22px; color: var(--muted); text-align: center; font-size: .92rem; }
.reveal { opacity: 0; transform: translateY(28px); transition: .75s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 132px; }
  .hero-stage { min-height: 480px; }
  .grid-3, .grid-2, .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 70px 0; }
  .page-hero { padding: 130px 0 48px; }
  .h1, h1 { font-size: clamp(2.55rem, 14vw, 4.1rem); }
  .grid-3, .grid-2, .metrics { grid-template-columns: 1fr; }
  .panel { padding: 26px; border-radius: 28px; }
  .timeline-item { grid-template-columns: 1fr; }
  .floating-badge { right: 12px; top: -22px; }
  .scene-card { padding: 22px; border-radius: 28px; }
  .hero-stage { min-height: 430px; }
  .actions .btn { width: 100%; }
}

/* === Patch: controlled professional hero titles, no overflow === */
.h1,
h1 {
  max-width: 100%;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

h1 .title-line,
.h1 .title-line {
  display: block;
  max-width: 100%;
}

.hero h1,
.hero .h1 {
  font-size: clamp(3.2rem, 6.1vw, 5.9rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.page-hero h1,
.page-hero .h1 {
  font-size: clamp(2.65rem, 5.2vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.hero,
.page-hero,
.container {
  overflow-x: clip;
}

@media (max-width: 980px) {
  .hero h1,
  .hero .h1 {
    font-size: clamp(2.5rem, 8.2vw, 4.5rem);
  }

  .page-hero h1,
  .page-hero .h1 {
    font-size: clamp(2.15rem, 7.2vw, 3.8rem);
  }
}

@media (max-width: 680px) {
  .hero h1,
  .hero .h1,
  .page-hero h1,
  .page-hero .h1 {
    font-size: clamp(2rem, 9.5vw, 3.1rem);
    line-height: 1.14;
    letter-spacing: -0.052em;
    word-break: keep-all;
  }

  .lead {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .hero h1,
  .hero .h1,
  .page-hero h1,
  .page-hero .h1 {
    font-size: clamp(1.72rem, 9vw, 2.45rem);
    letter-spacing: -0.045em;
  }
}
