@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+TC:wght@300;400;500;700;900&family=TASA+Explorer:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* ── Dark surfaces (Apple-style black) ── */
  --bg:          #000000;
  --bg-card:     #1d1d1f;
  --bg-card2:    #111111;

  /* ── Light surfaces (Apple-style) ── */
  --bg-light:    #FFFFFF;
  --bg-light2:   #F5F5F7;

  /* ── Accent (Apple blue) ── */
  --blue:        #0071E3;
  --blue-mid:    #0077ED;
  --blue-light:  #2997FF;

  /* ── Text on dark (Apple-style) ── */
  --white:       #F5F5F7;
  --gray:        #A1A1A6;
  --gray-dim:    #6E6E73;

  /* ── Text on light (Apple-style) ── */
  --ink:         #1D1D1F;
  --ink-mid:     #6E6E73;
  --ink-dim:     #A1A1A6;

  /* ── Borders ── */
  --border:       rgba(255,255,255,0.1);
  --border-light: rgba(0,0,0,0.08);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Inter','Noto Sans TC',sans-serif;
  background:var(--bg);
  color:var(--white);
  overflow-x:hidden;
}
a { text-decoration:none; color:inherit; }

/* ── NAV ── */
#main-nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(0,0,0,0.9);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  transition:border-color .3s;
}
#main-nav.scrolled { border-color:rgba(0,113,227,0.25); }
.nav-inner {
  max-width:1240px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 56px; height:68px;
}
.nav-logo { display:flex; align-items:center; flex-shrink:0; }
.nav-logo img { height:40px; width:auto; border-radius:6px; }
.nav-links { display:flex; gap:40px; align-items:center; }
.nav-links > a, .nav-dropdown > a {
  color:var(--gray); font-size:14px; font-weight:500;
  transition:color .2s; cursor:pointer;
}
.nav-links > a:hover, .nav-dropdown > a:hover { color:var(--white); }
.nav-right { display:flex; align-items:center; gap:16px; }
.lang-toggle {
  background:transparent; border:1px solid rgba(255,255,255,0.25);
  color:var(--gray); padding:6px 16px; border-radius:980px;
  font-size:12px; font-weight:400; cursor:pointer;
  transition:border-color .2s,color .2s; font-family:inherit;
}
.lang-toggle:hover { border-color:rgba(255,255,255,0.45); color:var(--white); }
.nav-cta {
  background:var(--blue); color:#fff;
  padding:8px 18px; border-radius:980px;
  font-size:14px; font-weight:400; transition:background .2s,opacity .2s;
}
.nav-cta:hover { background:var(--blue-mid); opacity:.9; }

/* Mega Menu */
.nav-dropdown { position:relative; }
.nav-dropdown > a { display:flex; align-items:center; gap:5px; }
.nav-dropdown > a::after { content:'⌄'; font-size:12px; opacity:.5; margin-top:1px; }
.mega-menu {
  display:none; position:absolute; top:calc(100% + 12px); left:-20px;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:16px; padding:24px; width:560px;
  box-shadow:0 16px 48px rgba(0,0,0,.35);
  grid-template-columns:1fr 1fr; gap:4px;
}
.nav-dropdown:hover .mega-menu { display:grid; }
.mega-item {
  display:flex; align-items:flex-start; gap:12px;
  padding:12px; border-radius:10px; transition:background .2s;
}
.mega-item:hover { background:rgba(255,255,255,.04); }
.mega-dot { width:8px; height:8px; border-radius:50%; margin-top:5px; flex-shrink:0; }
.mega-item-title { font-size:13px; font-weight:600; color:var(--white); margin-bottom:3px; }
.mega-item-desc { font-size:12px; color:var(--gray); line-height:1.5; }

/* ── HERO (dark, clean — no glow/grid) ── */
#hero {
  min-height:100vh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center; padding:130px 24px 100px;
  position:relative; overflow:hidden;
  background:linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}
.hero-glow { display:none; }
.hero-grid { display:none; }
.hero-content { position:relative; z-index:1; }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(0,113,227,.12); border:1px solid rgba(59,130,246,.2);
  border-radius:999px; padding:7px 20px; margin-bottom:32px;
  font-size:11px; font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase; color:var(--blue-light);
}
.hero-badge-dot {
  width:6px; height:6px; border-radius:50%;
  background:var(--blue-light); animation:pulse 2.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
#hero h1 {
  font-family:'TASA Explorer','Inter','Noto Sans TC',sans-serif;
  font-size:clamp(40px,6.5vw,88px); font-weight:900;
  line-height:1.03; letter-spacing:-3px;
  max-width:900px; margin:0 auto 28px;
  color:#ffffff;
}
#hero h1 em {
  font-style:normal;
  background:linear-gradient(90deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
#hero p.lead {
  font-size:18px; color:#a1a1a6;
  line-height:1.75; max-width:520px; margin:0 auto 48px;
}
.hero-btns { display:flex; gap:16px; justify-content:center; }
.btn-primary {
  background:var(--blue); color:#fff; border:none;
  padding:12px 22px; border-radius:980px;
  font-size:17px; font-weight:400; cursor:pointer;
  transition:background .2s,opacity .2s;
  display:inline-block; letter-spacing:0;
}
.btn-primary:hover { background:var(--blue-mid); opacity:.9; }
.btn-ghost {
  background:transparent; color:var(--white);
  border:1.5px solid rgba(255,255,255,0.35);
  padding:12px 22px; border-radius:980px;
  font-size:17px; font-weight:400;
  transition:border-color .2s,background .2s;
  display:inline-block;
}
.btn-ghost:hover { border-color:rgba(255,255,255,.6); background:rgba(255,255,255,.06); }
.hero-kpis {
  display:flex; align-items:center; gap:0; margin-top:72px;
  justify-content:center; flex-wrap:wrap;
}
.kpi-item { padding:0 32px; text-align:center; }
.kpi-divider { width:1px; height:48px; background:var(--border); }
.kpi-num { font-size:28px; font-weight:800; letter-spacing:-1px; }
.kpi-label { font-size:12px; color:var(--gray); margin-top:4px; }

/* ── SECTION COMMONS ── */
section { padding:100px 56px; }
.inner { max-width:1240px; margin:0 auto; }

/* Default tags/titles (on dark) */
.s-tag {
  display:inline-block; font-size:11px; font-weight:700;
  letter-spacing:2px; text-transform:uppercase;
  color:var(--blue-light); margin-bottom:16px;
}
.s-title {
  font-family:'TASA Explorer','Inter','Noto Sans TC',sans-serif;
  font-size:clamp(24px,3.5vw,44px); font-weight:800;
  letter-spacing:-1.5px; line-height:1.14;
  margin-bottom:14px; max-width:700px;
}
.s-sub {
  font-size:16px; color:var(--gray);
  line-height:1.7; max-width:540px; margin-bottom:52px;
}

/* Override tags/titles on light-bg sections */
#threats .s-tag, #products .s-tag, #how .s-tag, #solutions .s-tag {
  color:var(--blue);
}
#threats .s-title, #products .s-title, #how .s-title, #solutions .s-title {
  color:var(--ink);
}
#threats .s-sub, #products .s-sub, #how .s-sub, #solutions .s-sub {
  color:var(--ink-mid);
}

/* ── WHY NOW / THREATS (Light) ── */
#threats {
  background:var(--bg-light);
  border-top:1px solid var(--border-light);
  border-bottom:1px solid var(--border-light);
}
.threats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:40px; }
.threat-card {
  background:var(--bg-light); border:1px solid var(--border-light);
  border-radius:16px; padding:32px 28px;
  position:relative; transition:border-color .3s,box-shadow .3s;
  color:var(--ink);
}
.threat-card:hover {
  border-color:rgba(0,113,227,.2);
  box-shadow:0 4px 24px rgba(15,23,42,.06);
}
.threat-icon { font-size:28px; margin-bottom:16px; }
.threat-card h3 { font-size:16px; font-weight:700; margin-bottom:12px; color:var(--ink); }
.threat-card p { font-size:13px; color:var(--ink-mid); line-height:1.7; }
.threats-banner {
  background:var(--ink); border-radius:16px;
  padding:32px 40px; text-align:center;
  font-size:22px; font-weight:800; letter-spacing:-0.5px;
  color:var(--white);
}
.threats-banner em { font-style:normal; color:var(--blue-light); }

/* ── PRODUCTS (Light gray) ── */
#products { background:var(--bg-light2); }
.products-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.product-card {
  background:var(--bg-light); border:1px solid var(--border-light);
  border-radius:20px; padding:32px; cursor:pointer;
  transition:box-shadow .3s,transform .3s,border-color .3s; display:block;
  color:var(--ink);
}
.product-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 32px rgba(15,23,42,.08);
  border-color:rgba(0,113,227,.2);
}
.prod-card-icon {
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px; border:1px solid;
}
.prod-card-badge {
  font-size:10px; font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase; margin-bottom:10px;
}
.product-card h3 { font-size:17px; font-weight:800; margin-bottom:10px; line-height:1.3; color:var(--ink); }
.product-card p { font-size:13px; color:var(--ink-mid); line-height:1.7; }
.prod-card-link { font-size:12px; font-weight:400; margin-top:20px; display:inline-block; color:#0066cc; }

/* ── HOW IT WORKS (Light) ── */
#how { background:var(--bg-light); }
.steps-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:0; position:relative; margin-top:8px;
}
.steps-grid::before {
  content:''; position:absolute;
  top:26px; left:calc(12.5% + 26px); right:calc(12.5% + 26px); height:1px;
  background:linear-gradient(90deg,rgba(0,113,227,.15),rgba(0,113,227,.4),rgba(0,113,227,.15));
}
.step { text-align:center; padding:0 20px; }
.step-num {
  width:52px; height:52px; border-radius:50%;
  background:var(--bg-light2); border:2px solid rgba(0,113,227,.3);
  display:flex; align-items:center; justify-content:center;
  font-size:17px; font-weight:800; color:var(--blue);
  margin:0 auto 22px; position:relative; z-index:1;
}
.step h3 { font-size:15px; font-weight:700; margin-bottom:10px; color:var(--ink); }
.step p { font-size:13px; color:var(--ink-mid); line-height:1.7; }

/* ── METRICS (Dark) ── */
#metrics {
  background:var(--bg);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.metrics-inner { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.metrics-left p { font-size:16px; color:var(--gray); line-height:1.7; margin-top:16px; max-width:420px; }
.metrics-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.metric-box {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:14px; padding:28px;
}
.metric-num {
  font-family:'TASA Explorer','Inter',sans-serif;
  font-size:40px; font-weight:900; letter-spacing:-1.5px;
  color:var(--white); margin-bottom:6px;
}
.metric-label { font-size:13px; color:var(--gray); }

/* ── SOLUTIONS (Light gray) ── */
#solutions { background:var(--bg-light2); }
.solutions-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.solution-card {
  background:var(--bg-light); border:1px solid var(--border-light);
  border-radius:20px; padding:36px 32px;
  transition:box-shadow .3s,border-color .3s;
  color:var(--ink);
}
.solution-card:hover {
  border-color:rgba(0,113,227,.2);
  box-shadow:0 8px 32px rgba(15,23,42,.08);
}
.solution-icon {
  width:52px; height:52px; border-radius:14px;
  background:rgba(0,113,227,.08); border:1px solid rgba(0,113,227,.15);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px; color:var(--blue);
}
.solution-card h3 { font-size:18px; font-weight:800; margin-bottom:12px; color:var(--ink); }
.solution-pain { font-size:13px; color:#0066cc; font-weight:600; margin-bottom:12px; }
.solution-card p { font-size:13px; color:var(--ink-mid); line-height:1.7; margin-bottom:20px; }
.solution-link { font-size:13px; font-weight:400; color:#0066cc; }

/* ── PARTNERS (Dark) ── */
#partners {
  padding:80px 0; text-align:center;
  background:var(--bg);
  border-top:1px solid var(--border); overflow:hidden;
}
.partners-label {
  font-size:12px; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; color:var(--gray-dim); margin-bottom:44px;
}
.marquee-wrap {
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,black 10%,black 90%,transparent);
  mask-image:linear-gradient(90deg,transparent,black 10%,black 90%,transparent);
}
.marquee-track {
  display:flex; align-items:center; gap:64px;
  width:max-content; animation:marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state:paused; }
.marquee-slide { flex-shrink:0; opacity:.65; transition:opacity .25s; }
.marquee-slide:hover { opacity:1; }
.marquee-slide img { height:28px; width:auto; object-fit:contain; display:block; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── CTA STRIP (Dark, clean) ── */
#cta-strip {
  padding:130px 56px; text-align:center;
  position:relative; overflow:hidden;
  background:var(--bg-card2);
  border-top:1px solid var(--border);
}
.cta-glow { display:none; }
.cta-grid { display:none; }
.cta-inner { position:relative; z-index:1; }
#cta-strip h2 {
  font-size:clamp(28px,4.5vw,56px); font-weight:900;
  letter-spacing:-2px; line-height:1.1; max-width:640px;
  margin:0 auto 20px;
}
#cta-strip p {
  font-size:17px; color:var(--gray); max-width:440px;
  margin:0 auto 44px; line-height:1.65;
}
.cta-btns { display:flex; gap:16px; justify-content:center; }

/* ── FOOTER (Dark) ── */
footer { border-top:1px solid var(--border); background:var(--bg); }
.footer-top {
  max-width:1240px; margin:0 auto;
  padding:64px 56px 48px;
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px;
}
.footer-logo-img-tag {
  height:48px; width:auto; border-radius:6px;
  display:block; margin-bottom:14px;
}
.footer-desc { font-size:13px; color:var(--gray); line-height:1.75; max-width:260px; margin-bottom:24px; }
.footer-contact a { display:block; font-size:12px; color:var(--gray-dim); margin-bottom:8px; transition:color .2s; }
.footer-contact a:hover { color:var(--white); }
.footer-col h4 {
  font-size:11px; font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase; color:var(--gray-dim); margin-bottom:18px;
}
.footer-col a { display:block; font-size:13px; color:var(--gray); margin-bottom:10px; transition:color .2s; }
.footer-col a:hover { color:var(--white); }
.footer-bottom {
  border-top:1px solid var(--border); padding:22px 56px;
  display:flex; justify-content:space-between; align-items:center;
  max-width:100%;
}
.footer-copy { font-size:12px; color:var(--gray-dim); }
.footer-legal { display:flex; gap:24px; }
.footer-legal a { font-size:12px; color:var(--gray-dim); transition:color .2s; }
.footer-legal a:hover { color:var(--white); }

/* ── RESPONSIVE ── */
@media (max-width:1024px) {
  .nav-inner { padding:0 32px; }
  .nav-links { gap:24px; }
  section { padding:80px 32px; }
  .products-grid { grid-template-columns:repeat(2,1fr); }
  .steps-grid { grid-template-columns:repeat(2,1fr); gap:32px; }
  .steps-grid::before { display:none; }
  .metrics-inner { grid-template-columns:1fr; gap:40px; }
  .footer-top { grid-template-columns:1fr 1fr; gap:32px; }
}
@media (max-width:768px) {
  .nav-links { display:none; }
  .nav-inner { padding:0 24px; }
  section { padding:64px 24px; }
  #hero { padding:100px 24px 64px; }
  #hero h1 { letter-spacing:-1.5px; }
  .hero-kpis { gap:0; }
  .kpi-item { padding:0 16px; }
  .kpi-divider { display:none; }
  .hero-btns { flex-direction:column; align-items:center; }
  .threats-grid { grid-template-columns:1fr; }
  .products-grid { grid-template-columns:1fr; }
  .steps-grid { grid-template-columns:1fr; gap:32px; }
  .solutions-grid { grid-template-columns:1fr; }
  .threats-banner { font-size:16px; padding:24px; }
  .footer-top { grid-template-columns:1fr; gap:32px; padding:40px 24px; }
  .footer-bottom { padding:20px 24px; flex-direction:column; gap:12px; text-align:center; }
  #cta-strip { padding:80px 24px; }
  .cta-btns { flex-direction:column; align-items:center; }
}
