:root {
  --forest: #23463a;
  --forest-deep: #17342c;
  --paper: #f7f2e8;
  --paper-light: #fffdf8;
  --ink: #24352f;
  --muted: #687770;
  --violet: #7664c9;
  --gold: #c79842;
  --line: rgba(35, 70, 58, 0.17);
  --shadow: 0 24px 65px rgba(38, 57, 48, 0.13);
  --radius-lg: 34px;
  color-scheme: light;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 28px; }

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 8% 13%, rgba(118, 100, 201, 0.08), transparent 21rem), linear-gradient(180deg, var(--paper-light) 0, var(--paper) 48%, #efe9dc 100%);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

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

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 15px; color: white; background: var(--forest); border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 45px; aspect-ratio: 1; display: grid; place-items: center; color: #fff; background: var(--forest); border-radius: 50% 50% 50% 15%; transform: rotate(-10deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand-mark span { font: 800 18px/1 Georgia, serif; transform: rotate(10deg); }
.header-logo { width: 56px; height: 56px; object-fit: cover; border-radius: 15px; box-shadow: 0 6px 18px rgba(31,47,41,.14); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font: 700 17px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .015em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
.header-link { padding: 11px 0; color: var(--forest); font-size: 14px; font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--forest); }
.header-link span { display: inline-block; margin-left: 7px; transition: transform .2s ease; }
.header-link:hover span { transform: translateY(3px); }

.hero { min-height: 650px; position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr); align-items: center; gap: clamp(50px, 8vw, 120px); padding: 90px 4% 110px; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: 26%; bottom: 22px; width: 46%; height: 110px; border-bottom: 2px dashed rgba(35,70,58,.2); border-radius: 0 0 50% 50%; transform: rotate(-4deg); pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { width: 250px; height: 250px; right: 2%; top: 7%; background: rgba(118,100,201,.08); }
.hero-glow-two { width: 170px; height: 170px; left: 38%; bottom: 5%; background: rgba(199,152,66,.09); }

.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 12px; color: var(--forest); font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow > span { width: 25px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; color: var(--forest-deep); font: 600 clamp(58px, 7.4vw, 104px)/.82 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
h1 em { color: var(--violet); font-weight: 400; }
.hero-lead { max-width: 585px; margin-bottom: 37px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); font-weight: 600; line-height: 1.85; }
.app-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; }
.app-shortcuts a { min-height: 50px; padding: 7px 15px 7px 8px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 7px 18px rgba(43,63,55,.06); font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.app-shortcuts a:hover, .app-shortcuts a:focus-visible { transform: translateY(-3px); border-color: rgba(118,100,201,.5); background: #fff; }
.app-shortcuts img { width: 35px; height: 35px; object-fit: cover; border-radius: 50%; }

.hero-note { position: relative; z-index: 1; width: min(100%, 330px); justify-self: end; padding: 42px 38px 38px; background: #fffaf0; border: 1px solid rgba(132,104,53,.2); box-shadow: 8px 12px 0 rgba(35,70,58,.08), var(--shadow); transform: rotate(2.5deg); }
.pin { position: absolute; top: 17px; left: 50%; width: 12px; height: 12px; background: var(--violet); border: 3px solid #dcd4ff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.note-kicker { color: var(--gold); font: 800 10px/1 sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.note-title { margin: 18px 0; color: var(--forest-deep); font: 700 27px/1.55 Georgia, "Microsoft JhengHei", serif; }
.note-rule { width: 42px; height: 2px; margin: 22px 0; background: var(--gold); }
.hero-note > p:last-of-type { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.9; }
.leaf-stamp { position: absolute; right: 28px; bottom: 17px; color: rgba(118,100,201,.22); font-size: 27px; }

.intro { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; padding: 105px 4% 55px; border-top: 1px solid var(--line); }
.intro h2, .coming-soon h2 { margin-bottom: 0; color: var(--forest-deep); font: 600 clamp(38px, 5vw, 63px)/1.13 Georgia, "Microsoft JhengHei", serif; letter-spacing: -.04em; }
.section-copy { max-width: 420px; margin-bottom: 5px; color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.9; }
.app-list { padding: 105px 4% 0; border-top: 1px solid var(--line); }

.app-card { --theme: #477cb7; display: grid; grid-template-columns: 1.3fr .9fr; min-height: 390px; margin: 30px 0 74px; background: rgba(255,255,255,.76); border: 1px solid rgba(35,70,58,.12); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 30px; }
.theme-amber { --theme: #c1843e; }
.theme-violet { --theme: #8b2ad6; }
.app-card-reverse { grid-template-columns: .9fr 1.3fr; }
.app-card-reverse .app-visual { order: 2; }
.app-visual { position: relative; min-height: 340px; overflow: hidden; }
.app-visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); pointer-events: none; }
.app-visual > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.25,1); }
.app-card:hover .app-visual > img { transform: scale(1.025); }
.app-number { position: absolute; left: 24px; top: 22px; width: 48px; height: 48px; display: grid; place-items: center; color: var(--forest-deep); background: rgba(255,253,248,.9); border: 1px solid rgba(35,70,58,.15); border-radius: 50%; backdrop-filter: blur(8px); font: 700 13px/1 Georgia, serif; }
.app-content { padding: clamp(36px, 5vw, 66px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.app-title-row { display: flex; align-items: center; gap: 17px; margin-bottom: 25px; }
.app-icon { width: 62px; height: 62px; object-fit: cover; border-radius: 17px; box-shadow: 0 8px 24px rgba(31,47,41,.15); }
.app-type { margin-bottom: 7px; color: var(--theme); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.app-content h3 { margin: 0; color: var(--forest-deep); font: 700 clamp(25px, 3vw, 34px)/1.2 Georgia, "Microsoft JhengHei", serif; }
.app-content > p { margin-bottom: 30px; color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.95; }

.primary-button { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; color: #fff; background: var(--forest); border: 1px solid var(--forest); border-radius: 999px; font-size: 13px; font-weight: 900; text-decoration: none; transition: transform .22s ease, background .22s ease, box-shadow .22s ease; }
a.primary-button:hover, a.primary-button:focus-visible { transform: translateY(-2px); background: var(--forest-deep); box-shadow: 0 9px 22px rgba(31,62,52,.2); }
.primary-button span { font-size: 17px; }
.primary-button.is-disabled { color: var(--forest); background: transparent; border-color: var(--line); cursor: default; }

.coming-soon { position: relative; margin: 115px 4% 70px; padding: clamp(48px, 8vw, 85px); color: white; background: var(--forest); border-radius: var(--radius-lg); overflow: hidden; }
.coming-soon .eyebrow, .coming-soon h2 { color: white; }
.coming-soon h2 { max-width: 580px; margin-bottom: 22px; }
.coming-soon > p:last-child { max-width: 570px; margin-bottom: 0; color: rgba(255,255,255,.7); font-size: 16px; font-weight: 600; line-height: 1.9; }
.coming-orbit { position: absolute; right: -20px; top: 50%; width: 290px; height: 290px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; transform: translateY(-50%); }
.coming-orbit::before, .coming-orbit::after { content: ""; position: absolute; inset: 42px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.coming-orbit::after { inset: 92px; }
.coming-orbit span { position: absolute; top: 42px; left: 41px; width: 12px; height: 12px; background: #d6b268; border-radius: 50%; box-shadow: 0 0 22px #d6b268; }

footer { min-height: 150px; padding: 35px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
footer p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
footer p:last-child { grid-column: 3; justify-self: end; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.hero-note.reveal { transform: rotate(2.5deg) translateY(22px); }
.hero-note.reveal.is-visible { transform: rotate(2.5deg); }
:focus-visible { outline: 3px solid rgba(118,100,201,.45); outline-offset: 4px; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 55px; padding-block: 75px 90px; }
  .hero-copy { max-width: 700px; }
  .hero-note { justify-self: start; margin-left: 10%; }
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .app-card, .app-card-reverse { grid-template-columns: 1fr; }
  .app-card-reverse .app-visual { order: 0; }
  .app-visual { min-height: auto; aspect-ratio: 1024 / 500; }
  .coming-orbit { opacity: .55; right: -120px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p:last-child { grid-column: 2; }
}

@media (max-width: 580px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 82px; }
  .header-link { font-size: 12px; }
  .brand-copy strong { font-size: 14px; }
  .brand-mark { width: 39px; }
  .header-logo { width: 45px; height: 45px; border-radius: 12px; }
  .hero { padding: 60px 2px 75px; }
  h1 { font-size: clamp(51px, 16.7vw, 76px); }
  .hero-lead { font-size: 16px; }
  .app-shortcuts { display: grid; grid-template-columns: 1fr; }
  .app-shortcuts a { width: max-content; max-width: 100%; }
  .hero-note { width: calc(100% - 20px); margin-left: 10px; padding: 40px 30px 34px; }
  .hero::after { display: none; }
  .app-list { padding: 75px 2px 0; }
  .app-card { margin-bottom: 34px; border-radius: 24px; }
  .app-content { padding: 32px 25px 36px; }
  .app-title-row { align-items: flex-start; }
  .app-icon { width: 54px; height: 54px; border-radius: 14px; }
  .app-content h3 { font-size: 25px; }
  .primary-button { width: 100%; }
  .coming-soon { margin: 75px 2px 45px; padding: 48px 28px; border-radius: 24px; }
  .coming-orbit { display: none; }
  footer { min-height: 125px; grid-template-columns: 1fr; }
  footer p:last-child { grid-column: 1; justify-self: start; }
  .footer-brand { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-note.reveal { transform: rotate(2.5deg); }
}
