:root {
  --bg: #0a0e14;
  --bg-alt: #0f1520;
  --surface: #131a26;
  --border: #22303f;
  --text: #eaf1f7;
  --text-dim: #9fb1c1;
  --accent: #3fd6ff;
  --accent-2: #7c5cff;
  --radius: 14px;
  --max-w: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 20, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  display: block;
  height: 42px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.cta-link {
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent) !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 20% 20%, rgba(63,214,255,0.18), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(124,92,255,0.18), transparent 45%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 20ch;
}
.hero-sub {
  margin-top: 1.5rem;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 1.08rem;
}
.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #04101a;
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.hero-stats {
  margin-top: 3.5rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stats span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-label {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  max-width: 24ch;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card, .feature, .price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3, .feature h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p, .feature p { color: var(--text-dim); font-size: 0.95rem; }
.card-num {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feature-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.steps li span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101a;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.arch-features { align-items: start; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.check-list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table th, .table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.table th {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table td { color: var(--text-dim); }
.table tr:last-child td { border-bottom: none; }
.table-wide { display: block; overflow-x: auto; white-space: nowrap; }

.pricing-grid .price-card { text-align: center; }
.price-card h3 { font-size: 1rem; color: var(--text-dim); margin-bottom: 1rem; }
.price-card .price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.price-card .price span { font-size: 0.85rem; font-weight: 400; color: var(--text-dim); }
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(63,214,255,0.08), var(--surface));
}
.price-desc { color: var(--text-dim); font-size: 0.88rem; }

.market-note {
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.timeline-item {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.timeline-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 4.5rem;
}
.timeline-content h3 { margin-bottom: 0.4rem; }
.timeline-content p { color: var(--text-dim); font-size: 0.95rem; }

.section-cta { text-align: center; }
.cta-inner h2 { margin: 0 auto 0.75rem; max-width: 28ch; }
.cta-inner p { color: var(--text-dim); max-width: 44ch; margin: 0 auto 2rem; }

.video-embed {
  position: relative;
  width: 100%;
  max-width: 840px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-alt);
}
.gallery-item figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.product-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.product-media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, rgba(63,214,255,0.12), rgba(124,92,255,0.12));
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body { padding: 1.75rem; }
.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.product-body h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.product-body p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.1rem; }
.product-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.product-link::after { content: " →"; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--accent); }
.contact-icon { font-size: 1.6rem; }
.contact-card h3 { font-size: 0.95rem; color: var(--text-dim); font-weight: 600; }
.contact-card span { font-size: 1rem; font-weight: 600; word-break: break-word; }

.breadcrumb {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--accent); }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.product-hero-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(63,214,255,0.14), rgba(124,92,255,0.14));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}
.product-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Light theme */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --bg-alt: #eef2f7;
    --surface: #ffffff;
    --border: #dde4ec;
    --text: #101826;
    --text-dim: #56657a;
  }
  .nav { background: rgba(247, 249, 252, 0.8); }
  .btn-primary { color: #ffffff; }
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .product-grid, .contact-grid, .product-hero, .gallery { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 3.5rem; }
}
