:root {
  --ink: #0b0b0b;
  --paper: #f5f1e9;
  --paper-light: #fbfaf7;
  --muted: #686159;
  --line: rgba(11, 11, 11, 0.14);
  --rust: #963b2b;
  --rust-dark: #76291f;
  --green: #7cc43a;
  --page: min(1120px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper-light);
  font-family: Arial, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body, button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { color: var(--rust); font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.install-container { width: var(--page); margin-inline: auto; }

.install-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  padding: 10px 12px 10px 16px;
  border-radius: 24px;
  color: #fff;
  background: #050505;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.brand-lockup .brand-mark { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.brand-type { display: grid; gap: 3px; line-height: 1; }
.brand-type strong { font-size: 20px; font-weight: 900; letter-spacing: 0.01em; }
.brand-type small { color: #aaa; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; }
.install-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; font-size: 14px; font-weight: 800; }
.install-nav a { transition: color 0.2s ease, background-color 0.2s ease; }
.install-nav a:hover { color: #e6aa90; }
.install-nav .language-link { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.22); }
.install-nav .nav-cta { padding: 14px 18px; border-radius: 999px; color: #fff; background: var(--rust); }
.install-nav .nav-cta:hover { color: #fff; background: var(--rust-dark); }
.install-menu-toggle { display: none; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: #635b53; font-size: 12px; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 3px; border-radius: 999px; background: var(--rust); }

.install-hero { padding: 148px 0 82px; background: radial-gradient(circle at 82% 12%, rgba(150,59,43,.14), transparent 26%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(48px, 7vw, 92px); }
.hero-copy h1 { margin: 0 0 24px; font-size: clamp(56px, 6.1vw, 82px); line-height: .96; letter-spacing: -.07em; }
.hero-lede { max-width: 570px; margin: 0 0 30px; color: #4f4943; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.install-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 900; text-align: center; }
.button-primary { color: #fff; background: var(--rust); }
.button-primary:hover { background: var(--rust-dark); }
.button-secondary { border-color: #b7afa5; background: rgba(255,255,255,.55); }
.button-secondary:hover { border-color: var(--rust); }
.hero-points { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; color: #585149; font-size: 14px; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--rust); font-size: 12px; font-weight: 900; }

.hero-product-visual { position: relative; min-height: 510px; }
.host-preview { position: absolute; top: 25px; left: 0; width: 91%; padding: 12px; border-radius: 28px; background: #111; box-shadow: 0 28px 55px rgba(30, 20, 12, .23); }
.host-preview img { width: 100%; height: auto; border-radius: 18px; }
.phone-preview { position: absolute; right: 1%; bottom: 0; width: 27%; padding: 7px; overflow: hidden; border: 3px solid #171717; border-radius: 28px; background: #090909; box-shadow: 0 22px 40px rgba(0,0,0,.34); }
.phone-preview::before { content: ""; position: absolute; z-index: 2; top: 10px; left: 50%; width: 34%; height: 7px; border-radius: 999px; background: #191919; transform: translateX(-50%); }
.phone-preview img { width: 100%; height: auto; border-radius: 21px; }
.connected-badge { position: absolute; left: 5%; bottom: 8px; display: flex; align-items: center; gap: 9px; margin: 0; padding: 11px 15px; border-radius: 999px; color: #fff; background: rgba(5,5,5,.92); box-shadow: 0 12px 30px rgba(0,0,0,.24); font-size: 13px; font-weight: 900; }
.connected-badge span { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(124,196,58,.18); }

.steps-section { padding: 94px 0; background: var(--paper-light); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: end; gap: 60px; margin-bottom: 46px; }
.section-heading h2, .help-card h2, .contact-card h2 { margin: 0; font-size: clamp(42px, 4.8vw, 64px); line-height: 1.01; letter-spacing: -.055em; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.install-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.install-step-card { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 12px 32px rgba(47,34,21,.06); }
.install-step-card > picture, .pc-image-wrap, .app-image-wrap { display: block; height: 300px; overflow: hidden; background: #e9e2d8; }
.install-step-card > picture img, .pc-image-wrap > picture img { width: 100%; height: 100%; object-fit: cover; }
.pc-image-wrap { position: relative; background: #050505; }
.host-ui-inset { position: absolute; right: 7%; bottom: 7%; width: 54%; height: auto; border: 4px solid #151515; border-radius: 9px; box-shadow: 0 12px 22px rgba(0,0,0,.38); }
.app-image-wrap { position: relative; display: grid; place-items: center; background: linear-gradient(145deg, #d5b78f, #8c3a2b); }
.app-image-wrap img { position: absolute; top: 50%; left: 50%; width: auto; max-width: 72%; height: 88%; object-fit: contain; transform: translate(-50%, -50%); box-sizing: border-box; padding: 5px; border: 3px solid #111; border-radius: 22px; background: #090909; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.step-copy { padding: 28px; }
.step-copy > span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 22px; border-radius: 50%; color: #fff; background: var(--rust); font-size: 13px; font-weight: 900; }
.step-copy h3 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.035em; }
.step-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.62; }
.handoff-note { margin-top: 20px; padding: 20px 24px; border-radius: 16px; color: #e7e2da; background: #111; font-size: 15px; line-height: 1.6; }
.handoff-note strong { color: #fff; }

.help-section { padding: 88px 0; background: #eae2d7; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.help-card { padding: 42px; border: 1px solid rgba(11,11,11,.12); border-radius: 28px; background: #fffdf9; }
.help-card h2 { margin-bottom: 32px; font-size: clamp(36px, 4vw, 50px); }
.compact-list, .recovery-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.compact-list li { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.compact-list li span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #fff; background: var(--rust); font-size: 12px; font-weight: 900; }
.help-card-dark { color: #fff; background: #111; }
.help-card-dark .eyebrow { color: #bcb5ad; }
.recovery-steps { counter-reset: recovery; }
.recovery-steps li { position: relative; display: grid; gap: 5px; padding: 16px 0 16px 46px; border-top: 1px solid rgba(255,255,255,.16); counter-increment: recovery; }
.recovery-steps li::before { content: counter(recovery, decimal-leading-zero); position: absolute; top: 18px; left: 0; color: #dc8d73; font-size: 12px; font-weight: 900; }
.recovery-steps strong { font-size: 17px; }
.recovery-steps span { color: #bdb7b0; font-size: 14px; line-height: 1.5; }

.contact-section { padding: 78px 0; background: var(--rust); }
.contact-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: 70px; color: #fff; }
.contact-card .eyebrow { color: #ead5cd; }
.contact-card .eyebrow span { background: #fff; }
.contact-copy > p:last-child { max-width: 620px; margin: 24px 0 0; color: #f1dcd5; font-size: 17px; line-height: 1.65; }
.contact-actions { display: grid; gap: 12px; }
.contact-actions .install-button { width: 100%; }
.play-badge-link { display: inline-flex; justify-content: center; padding: 12px; border-radius: 18px; background: #fff; }
.play-badge-link img { width: auto; height: 52px; }
.button-light { color: #111; background: #fff; }
.button-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.button-outline:hover { background: rgba(255,255,255,.1); }
.contact-text-link { justify-self: center; padding: 9px 4px 4px; border-bottom: 1px solid rgba(255,255,255,.55); font-weight: 900; }

.install-footer { padding: 70px 0 24px; color: #fff; background: #050505; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: 70px; }
.footer-lockup { margin-bottom: 20px; }
.footer-grid p { max-width: 36ch; margin: 0; color: #aaa49d; line-height: 1.65; }
.footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 13px; }
.footer-grid > div:not(:first-child) > strong { margin-bottom: 7px; color: #88817a; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.copyright { width: var(--page); margin: 52px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #69645e; font-size: 12px; }

.has-js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.75,.2,1); }
.has-js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (max-width: 959.98px) {
  :root { --page: min(100% - 40px, 760px); }
  .install-menu-toggle { display: grid; gap: 6px; margin-left: auto; padding: 10px 6px; border: 0; background: none; }
  .install-menu-toggle i { display: block; width: 30px; height: 2px; background: #fff; transition: transform .2s ease; }
  .install-menu-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .install-menu-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .install-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border-radius: 20px; background: #070707; box-shadow: 0 20px 38px rgba(0,0,0,.28); }
  .install-nav.is-open { display: flex; }
  .install-nav a { padding: 14px 13px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .install-nav .language-link { padding-left: 13px; border-left: 0; }
  .install-nav .nav-cta { margin-top: 8px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 680px; }
  .hero-product-visual { width: min(100%, 680px); min-height: 470px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .install-step-grid { grid-template-columns: 1fr; }
  .install-step-card { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); }
  .install-step-card > picture, .pc-image-wrap, .app-image-wrap { height: 320px; min-height: 0; }
  .help-grid, .contact-card { grid-template-columns: 1fr; }
  .contact-card { gap: 36px; }
  .contact-actions { max-width: 420px; }
}

@media (max-width: 639.98px) {
  :root { --page: calc(100% - 32px); }
  .install-header { top: 10px; width: calc(100% - 20px); min-height: 66px; padding: 8px 12px; border-radius: 20px; }
  .brand-lockup { gap: 9px; }
  .brand-lockup .brand-mark { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
  .brand-type strong { font-size: 17px; }
  .brand-type small { font-size: 9px; }
  .install-hero { padding: 112px 0 58px; }
  .hero-grid { gap: 38px; }
  .hero-copy h1 { margin-bottom: 18px; font-size: clamp(44px, 13.5vw, 56px); line-height: 1; }
  .hero-lede { font-size: 17px; line-height: 1.56; }
  .hero-actions { display: grid; }
  .hero-actions .install-button { width: 100%; }
  .hero-points { margin-top: 22px; font-size: 13px; }
  .hero-product-visual { min-height: 316px; }
  .host-preview { top: 0; width: 94%; padding: 7px; border-radius: 20px; }
  .host-preview img { border-radius: 13px; }
  .phone-preview { right: 0; width: 28%; padding: 4px; border-width: 2px; border-radius: 19px; }
  .phone-preview img { border-radius: 15px; }
  .phone-preview::before { top: 6px; height: 4px; }
  .connected-badge { left: 3%; bottom: 2px; padding: 9px 12px; font-size: 11px; }
  .connected-badge span { width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(124,196,58,.18); }
  .steps-section, .help-section { padding: 64px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .contact-card h2 { font-size: 36px; line-height: 1.06; }
  .section-heading > p { font-size: 16px; }
  .install-step-card { display: block; border-radius: 22px; }
  .install-step-card > picture, .pc-image-wrap, .app-image-wrap { height: 280px; min-height: 0; }
  .step-copy { padding: 24px; }
  .step-copy > span { margin-bottom: 17px; }
  .step-copy h3 { font-size: 23px; }
  .handoff-note { padding: 18px; }
  .help-grid { gap: 14px; }
  .help-card { padding: 28px 22px; border-radius: 22px; }
  .help-card h2 { margin-bottom: 24px; font-size: 34px; }
  .contact-section { padding: 58px 0; }
  .contact-card { gap: 30px; }
  .contact-copy > p:last-child { font-size: 16px; }
  .play-badge-link img { height: 46px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .install-footer { padding-top: 56px; }
  .copyright { margin-top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .has-js [data-reveal] { opacity: 1; transform: none; }
}
