/* DuBois — dubois.sg
   Brand font: DuBois uses "Rand". If you hold a licence, drop the woff2 files in
   assets/fonts/ and uncomment the @font-face rules below; Figtree is the fallback. */
/*
@font-face { font-family: "Rand"; src: url("assets/fonts/Rand-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rand"; src: url("assets/fonts/Rand-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
*/

:root {
  --bg: #0e0c09;
  --bg-2: #15120d;
  --bg-3: #1c1812;
  --line: rgba(217, 180, 106, 0.14);
  --line-strong: rgba(217, 180, 106, 0.3);
  --text: #f3eee4;
  --muted: #a69e8f;
  --gold: #d9b46a;
  --gold-hi: #f1d79c;
  --gold-lo: #9c7232;
  --font: "Rand", "Figtree", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  --wrap: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="zh-Hant"] body { line-height: 1.75; letter-spacing: .02em; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.02em; }
h1, h2 { text-wrap: balance; }
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3 { letter-spacing: 0.01em; }
p { margin: 0; }
em { font-style: normal; color: var(--gold); }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-primary { background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); color: #1a140a; }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-link { padding: 0 6px; color: var(--text); }
.btn-link:hover { color: var(--gold); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 12, 9, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-ivo { width: 54px; height: 27px; }
.brand-word { width: 66px; height: 33px; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lang button {
  background: none; border: 0; padding: 4px 2px; color: var(--muted); font: inherit; cursor: pointer;
  border-bottom: 1px solid transparent;
}
.lang button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--gold); }
.menu-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-open .menu-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  padding: 150px 0 0; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 520px at 78% 18%, rgba(241, 196, 110, 0.20), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(160, 104, 40, 0.18), transparent 60%),
    linear-gradient(180deg, #1d160c 0%, #120f0a 55%, var(--bg) 100%);
}
.hero-sky { position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; pointer-events: none; }
.ridge { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.ridge-1 path { fill: rgba(120, 82, 36, 0.20); }
.ridge-2 path { fill: rgba(14, 12, 9, 0.85); }
.ridge-2 { height: 80%; }

.hero-grid { padding-top: 48px; padding-bottom: 140px; }
.hero-copy { max-width: 820px; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow.center { justify-content: center; }
.rule { display: inline-block; width: 36px; height: 1px; background: var(--gold); opacity: .6; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; }
html[lang="zh-Hant"] .hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.25; }
.lead { margin-top: 26px; max-width: 620px; font-size: 18px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 38px; }

.hero-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 72px; border-top: 1px solid var(--line);
}
.hero-strip > div { padding: 24px 0; display: flex; gap: 14px; align-items: baseline; font-size: 15px; }
.hero-strip > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.idx { font-size: 12px; color: var(--gold); letter-spacing: .1em; }


/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; }
html[lang="zh-Hant"] .section h2 { line-height: 1.3; }
.section-lead { margin-top: 22px; font-size: 17px; color: var(--muted); max-width: 620px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature {
  padding: 40px 34px 44px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease);
}
.feature:hover { background: linear-gradient(180deg, rgba(217, 180, 106, .06), transparent); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); margin-bottom: 28px; color: var(--gold);
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 20px; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 15px; }

.audience { display: flex; align-items: center; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.audience-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.audience ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.audience li { padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 34px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: 46px; left: 74px; right: -20px; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.step:last-child::before { display: none; }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); font-size: 12px; margin-bottom: 26px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

.approach-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.approach-grid .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.p-num { font-size: 13px; color: var(--gold); padding-top: 4px; letter-spacing: .08em; }
.principle h3 { font-size: 20px; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 15px; }

.about {
  background:
    radial-gradient(700px 400px at 15% 50%, rgba(217, 180, 106, .10), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; }
.about-mark { display: grid; place-items: center; aspect-ratio: 1; max-width: 360px; width: 100%; margin: 0 auto; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.about-mark::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--line); }
.about-mark svg { width: 46%; height: 23%; color: var(--gold); filter: drop-shadow(0 0 30px rgba(217, 180, 106, .35)); }
@keyframes spin { to { transform: rotate(360deg); } }
.about .section-lead + .section-lead { margin-top: 14px; }
.text-link { display: inline-flex; gap: 8px; margin-top: 30px; color: var(--gold); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color .2s; }
.text-link:hover { border-color: var(--gold); }

.cta { text-align: center; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 320px at 50% 100%, rgba(217, 180, 106, .18), transparent 70%);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta .section-lead { margin: 22px auto 40px; }
.cta-mail { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Developers ---------- */
.dev-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.dev-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.dev-list li { padding-left: 18px; border-left: 1px solid var(--gold); }
.dev-list h3 { font-size: 17px; margin-bottom: 4px; }
.dev-list p { color: var(--muted); font-size: 14px; }
.code { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: #0a0907; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.code-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(217, 180, 106, .25); }
.code pre { margin: 0; padding: 22px 22px 18px; overflow-x: auto; font: 13px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #d8d1c4; }
.c-m { color: var(--gold); font-weight: 600; }
.c-k { color: #c9b48c; }
.c-s { color: #9fd3a8; }
.c-n { color: #f1d79c; }
.c-c { color: var(--muted); }
.code figcaption { padding: 0 22px 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: .7; }

/* ---------- Delivery ---------- */
.del-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.del-card { padding: 32px 30px 34px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); transition: border-color .3s var(--ease); }
.del-card:hover { border-color: var(--line-strong); }
.del-tag { display: inline-block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.del-card h3 { font-size: 22px; margin: 22px 0 10px; }
.del-card > p { color: var(--muted); font-size: 15px; }
.del-card ul { list-style: none; padding: 20px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.del-card li { position: relative; padding-left: 22px; font-size: 14px; }
.del-card li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }

.about-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-pills span { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 14px; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-disclaimer { margin-top: 40px; max-width: 760px; font-size: 12px; line-height: 1.7; color: var(--muted); opacity: .8; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::before { display: none; }
  .del-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .menu-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(14, 12, 9, .97); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; font-size: 17px;
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .menu-open .nav { opacity: 1; pointer-events: auto; transform: none; }
  .menu-open.site-header { background: rgba(14, 12, 9, .97); }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 120px; }
  .hero-grid { padding-top: 24px; padding-bottom: 96px; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .hero-strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .approach-grid, .about-grid, .dev-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-grid .section-head { position: static; }
  .about-mark { max-width: 220px; }
  .section { padding: 76px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .lead { font-size: 16px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .code pre { font-size: 12px; padding: 18px 16px; }
  .feature { padding: 32px 24px; }
  .hero-strip > div { font-size: 14px; }
  .hero-strip > div + div { padding-left: 14px; }
  .section-head { margin-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
