:root {
  --navy: #0b2239;
  --navy-mid: #123354;
  --blue: #2563eb;
  --blue-bright: #38bdf8;
  --emerald: #059669;
  --amber: #d97706;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 34, 57, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand-link:hover { text-decoration: none; }
.brand-logo { font-size: 22px; font-weight: 900; letter-spacing: 0.6px; color: #fff; }
.brand-sub { font-size: 12.5px; color: #93c5fd; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: #e2e8f0; font-size: 14px; font-weight: 600; transition: color .15s; }
.nav-links a:hover { color: #38bdf8; text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45); }
.btn-outline-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); }
.btn-line { background: #06c755; color: #fff; box-shadow: 0 6px 16px rgba(6, 199, 85, 0.3); }
.btn-line:hover { background: #05b34c; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(circle at 80% 25%, #164e7a 0%, #0b2239 58%, #071626 100%);
  color: #fff;
  padding: 52px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 36px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #7dd3fc;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.3px;
}
.hero p.lead {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-metric .m-val { font-size: 20px; font-weight: 900; color: #38bdf8; }
.hero-metric .m-lbl { font-size: 11.5px; color: #94a3b8; }
.hero-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-visual img { width: 100%; }

/* ===== Sections ===== */
.section { padding: 68px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
}
.section-head h2 { margin: 0 0 10px; font-size: clamp(23px, 2.8vw, 31px); color: var(--navy); }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== Architecture Showcase ===== */
.arch-frame {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  cursor: zoom-in;
}
.arch-frame img { border-radius: 10px; width: 100%; }
.arch-caption { text-align: center; font-size: 12.5px; color: #64748b; margin-top: 10px; }

.stage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.stage-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: 12px;
  padding: 18px 20px;
}
.stage-card.s1 { border-top-color: var(--emerald); }
.stage-card.s3 { border-top-color: var(--navy); }
.stage-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.stage-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--navy);
}
.stage-card.s1 .pill { background: #ecfdf5; color: #065f46; }
.stage-card.s2 .pill { background: #eff6ff; color: #1d4ed8; }
.stage-card.s3 .pill { background: #f1f5f9; color: #0f172a; }

/* ===== Grids & Cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.feature-icon.green { background: #ecfdf5; color: var(--emerald); }
.feature-icon.amber { background: #fffbeb; color: var(--amber); }
.feature-card h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--navy); }
.feature-card p { margin: 0; font-size: 13.8px; color: var(--muted); }

/* ===== Roadmap ===== */
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
}
.step-card h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--navy); }
.step-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ===== Contact ===== */
.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}
.contact-info {
  background: linear-gradient(160deg, #0b2239 0%, #143d66 100%);
  color: #fff;
  padding: 34px 30px;
}
.contact-info h3 { margin: 0 0 8px; font-size: 22px; }
.contact-info p.sub { margin: 0 0 24px; color: #cbd5e1; font-size: 14px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; }
.contact-list .c-lbl { color: #93c5fd; font-size: 12px; display: block; font-weight: 700; }
.contact-list a { color: #fff; font-weight: 700; }
.contact-form-wrap { padding: 34px 32px; }
.contact-form-wrap h3 { margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.contact-form-wrap p { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }
.c-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.c-field { display: flex; flex-direction: column; gap: 5px; }
.c-field.full { grid-column: 1 / -1; }
.c-field label { font-size: 12.5px; font-weight: 700; color: #334155; }
.c-field input, .c-field select, .c-field textarea {
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.c-field input:focus, .c-field select:focus, .c-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.form-status { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 700; display: none; }
.form-status.ok { display: block; background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.err { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== Footer & Lightbox ===== */
.footer {
  background: #071626;
  color: #94a3b8;
  padding: 28px 0;
  font-size: 13px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer a { color: #7dd3fc; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 22, 38, 0.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 24px 64px rgba(0,0,0,0.6); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .stage-strip, .grid-3, .grid-4, .contact-box { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .c-form-grid { grid-template-columns: 1fr; }
  .hero { padding: 34px 0 44px; }
  .section { padding: 48px 0; }
}
@media print {
  .navbar, .no-print { display: none !important; }
  body { background: #fff; }
}
