@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/bricolage-grotesque-vietnamese-opsz-normal.woff2") format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304,
    U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  --bg: #f5f6fc;
  --card: #fff;
  --fg: #151732;
  --muted: #565b7a;
  --line: #e0e3f0;
  --line-strong: #767b9a;
  --brand: #5a3fe0;
  --brand-hover: #4730c2;
  --on-brand: #fff;
  --focus: #5a3fe0;
  --shadow-brand: 0 6px 16px rgb(90 63 224 / 0.3);

  --wash: #ece9ff;
  --stage-accent: #5a3fe0;
  --band-bg: #3b2aa8;
  --band-fg: #fff;
  --band-muted: #ddd8ff;
  --band-numeral: #b6abff;
  --note-bg: #fcebd4;
  --note-fg: #5e2c03;
  --device: #151732;
  --shadow-phone: 0 24px 48px rgb(21 23 50 / 0.28), 0 0 0 1px rgb(255 255 255 / 0.16);

  --gutter: 1rem;
  --overlap: 6rem;
  --section-space: clamp(3.5rem, 8vw, 6.5rem);
  --radius-panel: 1.5rem;
  --radius-tile: 1rem;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c18;
    --card: #151731;
    --fg: #e8e9f8;
    --muted: #a1a5c6;
    --line: #2a2d4d;
    --line-strong: #7377a3;
    --brand: #a899ff;
    --brand-hover: #c2b8ff;
    --on-brand: #130b3d;
    --focus: #a899ff;
    --shadow-brand: 0 6px 18px rgb(124 92 255 / 0.35);

    --wash: #1a1840;
    --stage-accent: #3b2aa8;
    --band-bg: #2a2080;
    --band-muted: #d6d0ff;
    --note-bg: #3d2a10;
    --note-fg: #fbe3bd;
    --device: #2a2d4d;
    --shadow-phone: 0 24px 48px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.16);
  }
}

@media (min-width: 56rem) {
  :root {
    --overlap: 9rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Bricolage Grotesque Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:lang(zh-HK) {
  font-family:
    "Bricolage Grotesque Variable", "PingFang HK", "Noto Sans HK", "Noto Sans CJK HK", "Microsoft JhengHei", system-ui,
    sans-serif;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.band :focus-visible {
  outline-color: var(--band-fg);
}

.wrap {
  width: min(100% - var(--gutter) * 2, 72rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: var(--gutter);
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-tile);
  background: var(--card);
  color: var(--fg);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--gutter);
}

.hero {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  background: var(--wash);
}

.hero-fill {
  min-height: 100svh;
}

.hero-fill .hero-copy {
  padding-block: clamp(2rem, 8vw, 5rem);
}

.top {
  display: flex;
  align-items: center;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  border-radius: 0.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding-top: 1.5rem;
}

.hero-title {
  font-size: clamp(2.75rem, 2rem + 4vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-note {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--brand);
  box-shadow: var(--shadow-brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s;
}

.button:hover {
  background: var(--brand-hover);
}

.phone {
  --w: 15rem;

  width: var(--w);
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.14);
  background: var(--device);
  box-shadow: var(--shadow-phone);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--w) * 0.112);
}

.hero-phones {
  --front-w: min(56vw, 15rem);

  position: relative;
  width: min(100%, calc(var(--front-w) * 1.62));
  height: calc(var(--front-w) * 2.22 + 2.5rem);
  margin: 0 auto calc(var(--overlap) * -1);
}

.hero-caption {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.phone-front {
  --w: var(--front-w);

  position: absolute;
  top: 2.5rem;
  right: 0;
}

.phone-back {
  --w: calc(var(--front-w) * 0.86);

  position: absolute;
  top: 5rem;
  left: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .phone-front,
  .phone-back {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .phone-back {
    animation-delay: 0.1s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }
}

.band {
  background: var(--band-bg);
  color: var(--band-fg);
}

.band-grid {
  padding-block: calc(var(--overlap) + 0.5rem) var(--section-space);
}

.steps {
  display: grid;
  gap: 2rem 3rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.steps li {
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.28);
  counter-increment: step;
}

.steps li::before {
  display: block;
  color: var(--band-numeral);
  content: counter(step);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.steps h3 {
  margin-top: 0.75rem;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--band-muted);
}

.feature,
.managers {
  padding-block: var(--section-space);
}

.feature-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.feature-copy p {
  max-width: 34rem;
  font-size: 1.125rem;
}

.feature-copy h2 {
  margin-bottom: 1.25rem;
}

.feature-copy .note {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-tile);
  background: var(--note-bg);
  color: var(--note-fg);
  font-size: 1rem;
}

.stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(26rem, 60vw, 34rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--wash);
}

.stage-dark {
  background: var(--stage-accent);
}

.phone-stage {
  --w: clamp(14rem, 36vw, 17rem);

  flex: none;
}

.facts {
  padding-bottom: var(--section-space);
}

.facts-grid {
  display: grid;
  gap: 2rem 3rem;
}

.facts-grid li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.facts-grid p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.languages {
  padding-block: var(--section-space);
  background: var(--wash);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.language {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.phone-language {
  --w: clamp(6.5rem, 26vw, 15rem);
}

.language figcaption {
  display: grid;
  gap: 0.25rem;
}

.language-word {
  font-size: clamp(1.05rem, 0.6rem + 2.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.language-stop {
  color: var(--muted);
  font-size: clamp(0.875rem, 0.5rem + 1.6vw, 1.25rem);
  font-weight: 600;
}

.language-name {
  color: var(--muted);
  font-size: 0.875rem;
}

.checks {
  max-width: 34rem;
  margin-top: 1.5rem;
}

.checks li {
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 1.125rem;
}

.contact {
  padding-block: clamp(4rem, 10vw, 7rem);
}

.contact p {
  margin-top: 1rem;
  color: var(--band-muted);
  font-size: 1.125rem;
}

.contact .contact-mail {
  margin-top: 1.5rem;
}

.contact-mail a {
  color: var(--band-fg);
  font-size: clamp(1.6rem, 0.7rem + 5.2vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}

.footer {
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
    align-items: center;
    padding-block: 2rem 3.5rem;
  }

  .hero-phones {
    --front-w: 17rem;
  }

  .band-grid {
    padding-block: 5rem var(--section-space);
  }

  .band-title,
  .steps {
    max-width: 55%;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
  }

  .feature-flip .stage {
    order: -1;
  }

  .phone-language {
    --w: 15rem;
  }
}
