:root {
  color-scheme: light;
  --ink: #201a2d;
  --muted: #5c546b;
  --purple: #5635dc;
  --purple-dark: #4326ba;
  --paper: #fff;
  --lavender: #f6f3ff;
  --line: #e5dff1;
  --display: 'PingFang HK', 'Noto Sans HK', 'Microsoft JhengHei UI', 'Microsoft JhengHei', system-ui, sans-serif;
  --latin: 'Segoe UI', Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--display); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; object-fit: cover; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
:focus-visible { outline: 3px solid #7455f5; outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }

.shell { width: min(100% - 6rem, 78rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7vw, 7.25rem); }
.skip { position: fixed; z-index: 2; inset: 0 auto auto 1rem; transform: translateY(-160%); padding: .65rem .9rem; border-radius: .5rem; background: white; }
.skip:focus { transform: translateY(.5rem); }

.site-header { background: var(--lavender); border-bottom: 1px solid #e9e2f8; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 4.875rem; align-items: center; gap: 1.5rem; }
.header-inner > .button { justify-self: end; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; font: 800 1.35rem/1 var(--latin); letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
.brand-hk { color: var(--purple); font-size: .83em; letter-spacing: -.05em; }
.brand-mark { position: relative; display: inline-block; flex: none; width: 2.15rem; height: 2.15rem; overflow: hidden; border-radius: .62rem; background: var(--purple); }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; width: .84rem; height: .45rem; border-left: 2px solid white; border-bottom: 2px solid white; border-bottom-left-radius: .2rem; transform: rotate(-47deg); }
.brand-mark::before { top: .58rem; left: .44rem; }
.brand-mark::after { top: .95rem; left: .83rem; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.6rem); align-items: center; font-size: .96rem; font-weight: 650; }
.nav a { padding: .65rem .25rem; text-decoration: none; }
.nav a:hover, .footer-link:hover { color: var(--purple); }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.125rem; padding: .64rem 1.2rem; border: 1px solid transparent; border-radius: .7rem; text-decoration: none; text-align: center; font-size: .95rem; font-weight: 750; line-height: 1.35; transition: background-color .16s, border-color .16s, color .16s; }
.button-small { min-height: 2.75rem; padding-inline: 1rem; }
.button-primary { background: var(--purple); color: white; }
.button-primary:hover { background: var(--purple-dark); }
.button-primary:active { background: #321b98; }
.button-secondary { border-color: #d9d0eb; color: var(--ink); background: #ffffff85; }
.button-secondary:hover { background: #f0eafa; border-color: #b9a8dc; }
.button-secondary:active { background: #e7def7; }

.hero { background: radial-gradient(ellipse at 83% 47%, #e6dbff, transparent 50%), var(--lavender); }
.hero-inner { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; column-gap: clamp(1.8rem, 4.8vw, 5rem); min-height: 34rem; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; gap: .58rem; align-items: center; color: var(--purple-dark); font-size: .875rem; font-weight: 800; letter-spacing: .08em; }
.eyebrow-line { width: 1.15rem; height: 2px; flex: none; background: currentColor; border-radius: 2px; }
.hero h1 { margin-block: 1.15rem 1.3rem; font-size: clamp(2.5rem, 4.45vw, 4.15rem); font-weight: 850; letter-spacing: -.075em; line-height: 1.16; }
.hero h1 span { color: var(--purple); }
.hero-description { max-width: 27rem; font-size: clamp(1.04rem, 1.55vw, 1.2rem); line-height: 1.8; color: var(--muted); text-wrap: pretty; }
.hero-actions, .card-actions, .brief-actions { display: flex; flex-wrap: wrap; gap: .66rem; }
.hero-actions { margin-top: 1.7rem; }

.featured { display: block; min-width: 0; color: var(--muted); text-decoration: none; border-radius: .9rem; }
.browser { overflow: hidden; border: 1px solid #daccf1; border-radius: .9rem; background: #fff; box-shadow: 0 1.5rem 4rem #422a7c23, 0 .3rem 1rem #3d265014; transition: box-shadow .2s ease; }
.featured:hover .browser { box-shadow: 0 1.65rem 4rem #422a7c3b, 0 .3rem 1rem #3d265020; }
.browser-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 2.25rem; padding-inline: .9rem; border-bottom: 1px solid #e7ddeb; }
.browser-dots { display: flex; gap: .25rem; }
.browser-dots i { width: .4rem; height: .4rem; border-radius: 50%; background: #dacee7; }
.browser-label { color: #6a5c78; font: 600 .75rem/1 var(--latin); }
.browser-page { position: relative; aspect-ratio: 1.58; isolation: isolate; background: #63321e; color: #fff6e9; }
.browser-page img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.browser-page::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #251309c7 0%, #2d170a59 55%, transparent 100%); }
.browser-content { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 5.5% 6.5% 9%; }
.mock-nav { display: flex; align-items: center; justify-content: space-between; font: 600 .74rem/1.2 var(--latin); }
.mock-nav b { font: 600 clamp(.9rem, 1.55vw, 1.3rem)/1 Georgia, serif; letter-spacing: -.04em; }
.mock-heading { display: grid; gap: .7rem; }
.mock-heading span { font: 800 .68rem/1.25 var(--latin); letter-spacing: .11em; text-transform: uppercase; }
.mock-heading strong { font: 400 clamp(2.2rem, 4.3vw, 4.05rem)/.94 Georgia, serif; letter-spacing: -.065em; }
.featured-caption { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .85rem; font-size: .875rem; }
.featured-caption strong { color: var(--purple-dark); text-decoration: underline; text-underline-offset: .22em; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.75rem; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.section h2 { margin-top: .65rem; font-size: clamp(2rem, 3.3vw, 3.25rem); font-weight: 850; letter-spacing: -.065em; }
.section-heading > p { max-width: 21rem; color: var(--muted); text-wrap: pretty; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.65rem); }
.template-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: white; }
.template-image { display: block; aspect-ratio: 1.69; overflow: hidden; background: #e7d7cb; }
.template-image--cafe { background: #b6785a; }
.template-image--services { background: #57484e; }
.template-image img { width: 100%; height: 100%; transition: transform .25s ease; }
.template-image:hover img { transform: scale(1.04); }
.template-content { display: flex; flex-direction: column; padding: clamp(1rem, 2vw, 1.55rem); }
.template-content .category { color: var(--purple-dark); font-size: .875rem; font-weight: 750; }
.template-content h3 { margin-block: .3rem .65rem; font: 750 clamp(1.35rem, 2vw, 1.75rem)/1.15 var(--latin); letter-spacing: -.04em; }
.template-content > p:not(.category) { color: var(--muted); margin-bottom: 1rem; }
.card-actions { margin-top: auto; gap: .3rem 1.35rem; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--purple-dark); font-size: .92rem; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: .24em; }
.text-link--muted { color: var(--muted); }
.text-link:hover { color: var(--purple); text-decoration-thickness: 2px; }

.services { background: #f7f4fc; border-block: 1px solid #efe9f8; }
.services-inner, .contact-inner { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 7vw, 7rem); }
.services-intro p:last-child { max-width: 24rem; margin-top: 1rem; color: var(--muted); }
.service-list div { display: grid; grid-template-columns: minmax(7rem, .43fr) 1fr; align-items: baseline; gap: .8rem; padding-block: 1.13rem; border-top: 1px solid #ded6eb; }
.service-list div:last-child { border-bottom: 1px solid #ded6eb; }
.service-list dt { font-size: 1.075rem; font-weight: 800; }
.service-list dd { color: var(--muted); }

.contact { color: white; background: radial-gradient(ellipse at 83% 5%, #3d2870, transparent 66%), #22193b; }
.contact-inner { align-items: start; }
.contact-copy { padding-top: clamp(0rem, 2vw, 1.65rem); }
.contact .eyebrow { color: #d4bfff; }
.contact-copy > p:not(.eyebrow) { max-width: 24rem; margin-top: 1.1rem; color: #e6ddf3; }
.direct-contact { display: grid; gap: .3rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.direct-contact a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; font-weight: 650; overflow-wrap: anywhere; text-decoration-color: #b9a4dc; text-underline-offset: .28em; }
.direct-contact a:hover { color: #d4bfff; }
.contact :focus-visible { outline-color: #c4aaff; }
.brief { display: grid; gap: 1rem; min-width: 0; padding: clamp(1.1rem, 3vw, 1.85rem); border: 1px solid #eee6fa; border-radius: 1.05rem; background: #fff; color: var(--ink); }
.brief :focus-visible { outline-color: var(--purple); }
.brief label { display: block; min-width: 0; font-size: .925rem; font-weight: 750; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.optional { color: var(--muted); font-size: .875rem; font-weight: 500; }
.brief input, .brief select, .brief textarea { display: block; width: 100%; min-height: 2.85rem; margin-top: .3rem; padding: .55rem .7rem; border: 1px solid #d7cfe4; border-radius: .48rem; background: #fbf9fe; color: var(--ink); font: 400 1rem/1.45 var(--display); }
.brief input:focus, .brief select:focus, .brief textarea:focus { border-color: var(--purple); }
.brief textarea { resize: vertical; }
.brief textarea::placeholder { color: #71697d; opacity: 1; }
.brief select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, #504467 50%), linear-gradient(135deg, #504467 50%, transparent 50%); background-size: .34rem .34rem; background-position: calc(100% - 1.15rem) center, calc(100% - .81rem) center; background-repeat: no-repeat; }
.brief-status { color: var(--muted); font-size: .875rem; }

.footer { background: #f8f6fc; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .7rem 1.35rem; flex-wrap: wrap; padding-block: 1.65rem; }
.footer-inner .wordmark { color: var(--ink); }
.footer-inner p { font-size: .875rem; }
.footer-link { font-size: .9rem; font-weight: 650; text-underline-offset: .22em; }

@media (max-width: 65rem) {
  .shell { width: min(100% - 3.5rem, 78rem); }
  .hero-inner { min-height: auto; }
}

@media (max-width: 51rem) {
  .hero-inner { grid-template-columns: 1fr; row-gap: 2.2rem; }
  .hero h1 { font-size: clamp(2.45rem, 7vw, 3.9rem); }
  .featured { width: min(100%, 35rem); }
  .mock-heading strong { font-size: clamp(2.45rem, 7vw, 3.9rem); }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-inner, .contact-inner { grid-template-columns: 1fr; }
  .contact-copy { padding: 0; }
}

@media (max-width: 36rem) {
  .shell { width: calc(100% - 2.25rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: .6rem; min-height: 4.3rem; }
  .nav { display: none; }
  .wordmark { font-size: 1.22rem; }
  .brand-mark { width: 2.05rem; height: 2.05rem; }
  .hero-inner { padding-block: 2.7rem 2.6rem; }
  .hero h1 { font-size: clamp(1.95rem, 8.3vw, 2.95rem); }
  .hero-actions { margin-top: 1.3rem; }
  .mock-heading strong { font-size: clamp(1.8rem, 8.7vw, 2.85rem); }
  .section-heading { display: grid; align-items: start; gap: .7rem; }
  .template-grid { grid-template-columns: 1fr; }
  .service-list div { grid-template-columns: 1fr; gap: .28rem; }
  .field-pair { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .browser, .template-image img { transition: none; }
  .template-image:hover img { transform: none; }
}
