:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-soft: #0d111b;
  --panel: #101620;
  --panel-light: #151c28;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f6fa;
  --muted: #8d98a8;
  --cyan: #55d7ff;
  --cyan-strong: #20bcf3;
  --violet: #9d7bff;
  --green: #42e59c;
  --max: 1180px;
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

#site-noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

#site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 11, 18, 0.78);
  backdrop-filter: blur(18px);
}

#main-nav {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#brand-link, #footer-brand { display: inline-flex; align-items: center; gap: 11px; }
#brand-mark, #footer-brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(85, 215, 255, 0.7);
  border-radius: 8px;
  transform: rotate(45deg);
  box-shadow: 0 0 24px rgba(85, 215, 255, 0.15);
}
#brand-mark-dot, #footer-brand-dot { position: absolute; inset: 8px; border-radius: 3px; background: var(--cyan); }
#brand-name, #footer-brand-name { font-size: 13px; font-weight: 700; letter-spacing: 0.19em; }

#nav-links { position: absolute; left: 50%; display: flex; align-items: center; gap: 34px; color: #a8b1bf; font-size: 14px; transform: translateX(-50%); }
#nav-links a { transition: color 180ms ease; }
#nav-links a:hover { color: #fff; }
#menu-toggle, #mobile-menu { display: none; }

#site-main { overflow: hidden; }
section { position: relative; }

#home {
  width: min(calc(100% - 48px), var(--max));
  min-height: 850px;
  margin: 0 auto;
  padding: 190px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#home::before {
  content: "";
  position: absolute;
  top: 95px;
  left: 50%;
  width: min(900px, 90vw);
  height: 580px;
  transform: translateX(-50%);
  background-image: linear-gradient(rgba(85, 215, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(85, 215, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle, black 10%, transparent 70%);
}

#hero-glow {
  position: absolute;
  top: 130px;
  left: 50%;
  width: 600px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(38, 174, 255, 0.12);
  filter: blur(120px);
}

.eyebrow { color: #a4afbd; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; }
#hero-eyebrow { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
#hero-status-dot, #contact-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }

#hero-title {
  position: relative;
  max-width: 950px;
  margin: 0;
  font-size: clamp(60px, 8.5vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

#hero-title-accent, #contact-title-accent {
  color: transparent;
  background: linear-gradient(100deg, #eaf8ff 10%, var(--cyan) 48%, #a890ff 88%);
  background-clip: text;
  -webkit-background-clip: text;
}

#hero-description { position: relative; max-width: 650px; margin: 34px auto 0; color: var(--muted); font-size: 18px; line-height: 1.85; }

.button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #061018; background: linear-gradient(135deg, #91eaff, var(--cyan)); box-shadow: 0 12px 45px rgba(85, 215, 255, 0.17); }
.button-primary:hover { box-shadow: 0 15px 54px rgba(85, 215, 255, 0.28); }

#hero-note { position: relative; margin-top: 94px; display: flex; flex-direction: column; align-items: center; gap: 15px; color: #657080; font-size: 11px; letter-spacing: 0.13em; }
#hero-note-line { width: 1px; height: 42px; background: linear-gradient(var(--cyan), transparent); }

#services, #product, #process, #contact, #site-footer { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
#services, #product, #process { padding: 125px 0; }
#services::before, #product::before, #process::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }

.section-heading { display: grid; grid-template-columns: 0.8fr 1.4fr 1fr; gap: 42px; align-items: start; margin-bottom: 62px; }
.section-heading .eyebrow { padding-top: 12px; }
.section-heading .eyebrow span { color: var(--cyan); margin-right: 10px; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.13; letter-spacing: -0.045em; }
.section-heading > p { margin: 9px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }

#service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-card { position: relative; min-height: 390px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); overflow: hidden; transition: transform 220ms ease, border-color 220ms ease; }
.service-card::after { content: ""; position: absolute; inset: auto -90px -110px auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(85, 215, 255, 0.06); filter: blur(25px); }
.service-card:hover { transform: translateY(-5px); border-color: rgba(85, 215, 255, 0.28); }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(85, 215, 255, 0.22); border-radius: 13px; color: var(--cyan); background: rgba(85, 215, 255, 0.06); font-size: 23px; }
.service-number { position: absolute; top: 27px; right: 26px; color: #536070; font-size: 11px; letter-spacing: 0.15em; }
.service-card h3 { margin: 62px 0 15px; font-size: 21px; letter-spacing: -0.025em; }
.service-card p { min-height: 130px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.tag-list span { padding: 6px 9px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; color: #8793a2; background: rgba(0, 0, 0, 0.16); font-size: 10px; letter-spacing: 0.06em; }

#product-heading { grid-template-columns: 0.8fr 2.4fr; }
#product-card { padding: 12px; display: grid; grid-template-columns: 1.25fr 0.9fr; border: 1px solid var(--line); border-radius: 22px; background: #0d121b; box-shadow: 0 32px 90px rgba(0, 0, 0, 0.3); }
#product-visual { position: relative; min-height: 580px; border-radius: 15px; overflow: hidden; background: #080c14; }
#product-picture, #product-image { width: 100%; height: 100%; }
#product-image { object-fit: contain; object-position: center; }
#product-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, rgba(8, 12, 20, 0.32)); pointer-events: none; }
#product-badge { position: absolute; top: 20px; right: 20px; z-index: 1; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; color: #dce6f1; background: rgba(7, 10, 16, 0.75); backdrop-filter: blur(10px); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
#product-content { padding: 42px 36px 32px; display: flex; flex-direction: column; }
#product-name-row { display: flex; align-items: center; gap: 16px; }
#product-logo { width: 52px; height: 52px; padding: 13px 10px; border-radius: 13px; display: flex; flex-direction: column; gap: 5px; background: linear-gradient(135deg, var(--cyan), #6f69ff); box-shadow: 0 10px 32px rgba(85, 215, 255, 0.17); }
#product-logo span { height: 4px; border-radius: 5px; background: #07111b; }
#product-logo-line-one { width: 75%; }
#product-logo-line-two { width: 100%; }
#product-logo-line-three { width: 55%; }
#product-category { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: 0.13em; }
#product-name { margin: 5px 0 0; font-size: 22px; letter-spacing: -0.03em; }
#product-description { margin: 29px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
#product-features { margin: 28px 0; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 15px; list-style: none; color: #bdc6d1; font-size: 13px; line-height: 1.6; }
#product-features span { display: inline-grid; width: 19px; height: 19px; margin-right: 8px; place-items: center; border-radius: 50%; color: #07130e; background: var(--green); font-size: 10px; font-weight: 800; }
#product-purchase { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
#product-price-label { color: #677385; font-size: 10px; letter-spacing: 0.13em; }
#product-price { margin-top: 2px; font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.06em; }
#product-price-currency { margin-right: 3px; color: #8d98a8; font-size: 15px; font-weight: 500; letter-spacing: 0; }
#product-purchase-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.button-disabled { min-height: 44px; color: #6e7887; border-color: var(--line); background: #151a23; cursor: not-allowed; }
.button-disabled:hover { transform: none; }
#product-inquiry-link { color: var(--cyan); font-size: 11px; font-weight: 600; }
#product-payment-note { display: flex; align-items: center; gap: 7px; margin: 20px 0 0; color: #606c7b; font-size: 10px; line-height: 1.6; }
#product-payment-dot { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: #f2bd55; }

#process-heading { grid-template-columns: 0.8fr 2.4fr; }
#process-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-item { min-height: 150px; display: grid; grid-template-columns: 0.8fr 2.4fr; align-items: center; border-bottom: 1px solid var(--line); transition: background 180ms ease; }
.process-item:hover { background: linear-gradient(90deg, rgba(85, 215, 255, 0.035), transparent); }
.process-item > span { color: var(--cyan); font-size: 11px; letter-spacing: 0.14em; }
.process-item > div { display: grid; grid-template-columns: 0.9fr 1.5fr; align-items: center; gap: 40px; }
.process-item h3 { margin: 0; font-size: 26px; letter-spacing: -0.025em; }
.process-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

#contact { min-height: 640px; padding: 120px 0; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 80px; align-items: center; }
#contact::before { content: ""; position: absolute; inset: 0 calc((100vw - 100%) / -2); z-index: -2; border-top: 1px solid var(--line); background: linear-gradient(145deg, #0b1019, #080b12 75%); }
#contact-glow { position: absolute; left: -15vw; bottom: -260px; z-index: -1; width: 700px; height: 600px; border-radius: 50%; background: rgba(60, 177, 255, 0.12); filter: blur(130px); }
#contact-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 27px; color: #7f8c9c; }
#contact-status-dot { background: var(--green); box-shadow: 0 0 14px var(--green); }
#contact-title { margin: 0; font-size: clamp(52px, 7vw, 84px); line-height: 1.04; letter-spacing: -0.06em; }
#contact-description { max-width: 610px; margin: 28px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
#contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button-line { color: #04140c; background: linear-gradient(135deg, #75f0b4, var(--green)); box-shadow: 0 12px 45px rgba(66, 229, 156, 0.2); }
.button-line:hover { box-shadow: 0 15px 54px rgba(66, 229, 156, 0.3); }
.button-email { border-color: var(--line); color: #b8c2cf; background: rgba(255, 255, 255, 0.035); }
.button-email:hover { border-color: rgba(255, 255, 255, 0.25); }

#line-qr-card { justify-self: end; width: 340px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.035); transition: transform 200ms ease, border-color 200ms ease; }
#line-qr-card:hover { transform: translateY(-5px); border-color: rgba(66, 229, 156, 0.35); }
#line-qr-frame { width: 100%; aspect-ratio: 1 / 1; padding: 14px; border-radius: 13px; display: grid; place-items: center; overflow: hidden; background: #fff; }
#line-qr-image { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
#line-qr-copy { padding: 18px 4px 3px; display: grid; gap: 4px; }
#line-qr-label { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 0.13em; }
#line-qr-title { margin-top: 4px; font-size: 16px; }
#line-qr-hint { color: #6e7988; font-size: 11px; }

#site-footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
#footer-brand-mark { width: 23px; height: 23px; border-radius: 6px; }
#footer-brand-dot { inset: 7px; }
#footer-brand-name { font-size: 11px; }
#footer-tagline, #footer-copyright { margin: 0; color: #566171; font-size: 11px; }
#footer-copyright { justify-self: end; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .service-card, #line-qr-card { transition: none; }
}

@media (max-width: 1050px) {
  #service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 345px; }
  .service-card p { min-height: 84px; }
}

@media (max-width: 900px) {
  #nav-links { display: none; }
  #menu-toggle { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: white; background: transparent; }
  #menu-toggle span { width: 17px; height: 1px; background: currentColor; transition: transform 180ms ease; }
  #menu-toggle[aria-expanded="true"] #menu-line-top { transform: translateY(3.5px) rotate(45deg); }
  #menu-toggle[aria-expanded="true"] #menu-line-bottom { transform: translateY(-3.5px) rotate(-45deg); }
  #mobile-menu { padding: 10px 24px 20px; border-top: 1px solid var(--line); flex-direction: column; gap: 6px; background: rgba(8, 11, 18, 0.96); }
  #mobile-menu:not([hidden]) { display: flex; }
  #mobile-menu a { padding: 12px; border-radius: 8px; color: #aeb8c5; font-size: 14px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading .eyebrow { padding-top: 0; }
  .section-heading > p { max-width: 600px; }
  #service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 330px; }
  #product-heading, #process-heading { grid-template-columns: 1fr; }
  #product-card { grid-template-columns: 1fr; }
  #product-visual { min-height: 450px; }
  #product-content { min-height: 530px; }
  #contact { grid-template-columns: 1fr; }
  #line-qr-card { justify-self: start; }
}

@media (max-width: 620px) {
  #main-nav, #home, #services, #product, #process, #contact, #site-footer { width: min(calc(100% - 32px), var(--max)); }
  #main-nav { height: 68px; }
  #brand-name { font-size: 11px; }
  #home { min-height: 760px; padding: 150px 0 90px; }
  #hero-title { font-size: clamp(52px, 17vw, 72px); }
  #hero-description { margin-top: 28px; font-size: 15px; line-height: 1.8; }
  #hero-note { margin-top: 72px; }
  #services, #product, #process { padding: 90px 0; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2 { font-size: 40px; }
  .service-card { min-height: 350px; padding: 26px; }
  #product-card { padding: 7px; }
  #product-visual { min-height: 290px; }
  #product-content { min-height: 0; padding: 30px 20px 24px; }
  #product-name { font-size: 19px; }
  #product-purchase { align-items: flex-start; flex-direction: column; }
  #product-purchase-actions { width: 100%; align-items: stretch; }
  #product-purchase-actions .button { width: 100%; }
  #product-inquiry-link { text-align: center; }
  .process-item { padding: 28px 0; grid-template-columns: 44px 1fr; }
  .process-item > div { grid-template-columns: 1fr; gap: 9px; }
  #contact { min-height: 0; padding: 90px 0; gap: 50px; }
  #contact-title { font-size: 52px; }
  #contact-actions { flex-direction: column; }
  #contact-actions .button { width: 100%; }
  #line-qr-card { width: 100%; }
  #site-footer { padding: 48px 0; grid-template-columns: 1fr; gap: 18px; }
  #footer-copyright { justify-self: start; }
}
