/* Relay home page — style extracted from the reference homepage inline <style>
   plus the minimal baseline rules (body / header bar / footer / faq) the home
   DOM depends on, so the page renders faithfully regardless of the shared
   stylesheet generation. Local fonts only: Manrope/Figtree stacks with CJK
   fallbacks, no remote font requests. */

/* ---------- root variables (inline style block + baseline deps) ---------- */
:root {
  --bg: #0b0a0c;
  --ink: #f3f3f5;
  --muted: #9096a0;
  --hot: #ff8a44;
  --mute: #9a9ea6;
  --faint: #7f848d;
  --link: #f3f3f5;
  --line-soft: #17161b;
  --hair: rgba(255, 255, 255, .08);
  --hair2: rgba(255, 255, 255, .16);
  --hm-cut: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  --hm-cut-sm: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  --sans: Manrope, Figtree, -apple-system, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base (baseline deps) ---------- */
html { color-scheme: dark; background: var(--bg); }
body {
  margin: 0;
  background: #121114;
  color: var(--ink);
  font: 400 14px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; }
* { font-synthesis-weight: none; font-synthesis: none; }
h1, h2, h3 { font-family: var(--sans); font-weight: 400; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.sheet {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0;
  background: var(--bg);
}
main > section { border: 0; }

/* ---------- header (baseline bar + home-only see-through variant) ---------- */
header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
body > header .wrap {
  max-width: none; margin-inline: 0;
  padding: 0 clamp(16px, 2.2vw, 28px);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 26px);
  height: 57px;
}
body > header .nav { margin-left: auto; }
.logo { font-family: var(--sans); font-weight: 400; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo span { color: inherit; }
.mark-svg { display: block; }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a { white-space: nowrap; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  padding: 7px 12px;
  border-radius: 0;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current] { color: var(--ink); }
.nav a.cta {
  margin-left: 10px;
}

/* Home only: the bar is see-through, and the hero runs up under it so the river shows behind. */
body > header { background: rgba(11, 10, 12, .35); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); border-bottom-color: rgba(255, 255, 255, .06); }
header .nav a.cta { background: #fff; color: #0d0c0f; font: 600 13px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; border-radius: 0; padding: 10px 16px; clip-path: var(--hm-cut-sm); }
header .nav a.cta:hover { background: #e9ebef; color: #0d0c0f; filter: none; }

/* ---------- molten lettering (hero em) ---------- */
.hm em {
  font-style: normal;
  background: radial-gradient(120% 60% at 30% 18%, #fff6a8 0%, transparent 45%), linear-gradient(180deg, #fff27a 8%, #ffd21c 30%, #ffa514 46%, #ff6a0c 62%, #e23205 82%, #a81400 100%);
  background-size: 200% 100%, 100% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em;
  filter: drop-shadow(0 .03em 0 #c22a00) drop-shadow(0 .03em 0 #7e1200) drop-shadow(0 .04em .02em #3a0600) drop-shadow(0 0 .14em rgba(255, 80, 0, .55)) drop-shadow(0 0 .4em rgba(255, 40, 0, .3));
  animation: hm-drift 6s ease-in-out infinite alternate, hm-breathe 3.6s ease-in-out infinite;
}
@keyframes hm-drift { to { background-position: 100% 0, 0 0; } }
@keyframes hm-breathe { 50% { filter: drop-shadow(0 .03em 0 #c22a00) drop-shadow(0 .03em 0 #7e1200) drop-shadow(0 .04em .02em #3a0600) drop-shadow(0 0 .2em rgba(255, 90, 0, .75)) drop-shadow(0 0 .6em rgba(255, 50, 0, .45)); } }

/* ---------- buttons: white cut-corner primary / grey ghost ---------- */
.hm-btn { display: inline-grid; place-items: center; height: 52px; padding: 0 38px; clip-path: var(--hm-cut); font: 600 14px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.hm-btn:hover { text-decoration: none; }
.hm-btn.white { background: #fff; color: #0d0c0f; }
.hm-btn.white:hover { background: #e9ebef; color: #0d0c0f; }
.hm-btn.ghost { background: rgba(255, 255, 255, .05); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair2); }
.hm-btn.ghost:hover { background: rgba(255, 255, 255, .1); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

/* ---------- hero ---------- */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; margin-top: -58px; padding-top: 58px; min-height: max(620px, min(100vh, 940px)); background: #0d0c0f; border-radius: 0 0 22px 22px; }
.hm-river { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hm-pool { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 46% at 50% 42%, rgba(11, 10, 12, .78), rgba(11, 10, 12, .35) 60%, transparent 85%); }
.hm-copy { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px clamp(20px, 6vw, 110px) 60px; }
.hm-copy h1 { margin: 0; font-size: clamp(40px, 5.4vw, 77px); line-height: 1.1; letter-spacing: -0.045em; color: var(--ink); }
.hm-sub { margin: 26px 0 0; width: 100%; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: #b4b7be; }
.hm-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hm-makers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 44px; font-size: 13.5px; }
.hm-maker { display: inline-flex; align-items: center; gap: 9px; color: var(--faint); text-decoration: none; transition: color .2s; }
.hm-maker:hover { color: var(--ink); text-decoration: none; }
.hm-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair); background: rgba(11, 10, 12, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hm-fig { padding: 22px 28px; border-left: 1px solid var(--hair); }
.hm-fig:first-child { border-left: 0; }
.hm-fig b { display: block; font-weight: 400; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); }
.hm-fig span { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); }
/* entrance motion only — never hidden before it runs, so no-JS stays fully visible */
.hm-rise { animation: hm-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hm-rise.d1 { animation-delay: .08s; } .hm-rise.d2 { animation-delay: .18s; } .hm-rise.d3 { animation-delay: .3s; } .hm-rise.d4 { animation-delay: .45s; }
@keyframes hm-rise { from { transform: translateY(10px); } to { transform: none; } }

/* ---------- sections ---------- */
.hm-sec { max-width: 1240px; margin: 0 auto; padding: clamp(90px, 10vw, 140px) clamp(16px, 4vw, 48px) 0; }
.hm-head { text-align: center; }
.hm-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.04em; line-height: 1.06; color: var(--ink); }

/* ---------- four feature panels ---------- */
.hm-feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.hm-fc { position: relative; overflow: hidden; border-radius: 18px; padding: clamp(26px, 3vw, 40px); min-height: 300px; background: radial-gradient(90% 60% at 100% 0%, rgba(255, 98, 24, .07), transparent 70%), linear-gradient(180deg, #141317, #0e0d11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.hm-fc::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 140, 60, .8), transparent); }
.hm-fc svg.ico { display: block; width: 56px; height: 56px; filter: drop-shadow(0 6px 18px rgba(255, 80, 20, .16)); }
.hm-fc h3 { margin: 24px 0 0; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); }
.hm-fc p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--mute); }
.hm-fc .hm-l { margin: 26px 0 12px; font-size: 13.5px; color: #c9ccd2; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; font-size: 13.5px; color: #c9ccd2; background: rgba(11, 10, 12, .75); box-shadow: inset 0 0 0 1px var(--hair2); text-decoration: none; transition: color .2s, box-shadow .2s; }
.hm-chip:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); text-decoration: none; }

/* ---------- model table ---------- */
.hm-line-base { margin: 20px auto 0; text-align: center; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: #b4b7be; }
.hm-line code { font-family: var(--mono); font-size: .92em; color: var(--ink); overflow-wrap: anywhere; }
.hm-line table { width: 100%; margin-top: 44px; border-collapse: collapse; text-align: left; font-size: 15px; }
.hm-line th { padding: 0 16px 12px; font-weight: 400; color: var(--mute); border-bottom: 1px solid var(--hair2); }
.hm-line td { padding: 16px; color: #b4b7be; border-bottom: 1px solid var(--hair); }
.hm-line td a { color: var(--ink); }
.hm-line td a:hover { color: var(--hot); text-decoration: none; }
.hm-line td code { color: var(--mute); }

/* ---------- FAQ ---------- */
.hm-faq .faq { margin: 44px 0 0; }
.hm-faq .faq-item { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.hm-faq .faq-item:last-child { border-bottom: 0; }
.hm-faq .faq-item h3 { font-size: 18px; color: var(--ink); margin: 0 0 6px; }
.hm-faq .faq-item p { font-size: 16px; color: #b4b7be; line-height: 1.7; margin: 0; }

/* ---------- close CTA ---------- */
.hm-close { position: relative; overflow: hidden; margin: clamp(90px, 10vw, 140px) 10px 0; padding: clamp(80px, 9vw, 120px) clamp(20px, 5vw, 60px) clamp(110px, 12vw, 160px); border-radius: 22px; text-align: center;
  background: radial-gradient(70% 90% at 50% 125%, rgba(255, 96, 24, .5), rgba(200, 40, 0, .16) 45%, transparent 72%), linear-gradient(180deg, #0f0e11, #120d0e); box-shadow: inset 0 0 0 1px var(--hair); }
.hm-close::after { content: ""; position: absolute; left: 0; right: 0; bottom: 34px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 150, 70, .2) 10%, #ffc07a 50%, rgba(255, 150, 70, .2) 90%, transparent); box-shadow: 0 0 24px 6px rgba(255, 100, 20, .45); }
.hm-close h2 { margin: 0; font-size: clamp(32px, 4vw, 58px); letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); }
.hm-close p { margin: 18px 0 0; font-size: 16.5px; color: #b9bcc3; }
.hm-close .hm-ctas { margin-top: 34px; }

/* ---------- footer (baseline extraction, no trust badges) ---------- */
.foot-spacer { height: 0; pointer-events: none; }
.ed-foot {
  background: #141317;
  border: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 0;
  border-radius: clamp(24px, 3.5vw, 44px) clamp(24px, 3.5vw, 44px) 0 0;
  padding: clamp(44px, 6vw, 72px) 0 clamp(26px, 3vw, 38px);
}
.ed-foot .wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(24px, 5vw, 64px); }
.foot-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: clamp(34px, 4vw, 48px); margin-bottom: clamp(34px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.foot-brand .logo { color: var(--ink); }
.foot-brand p { margin: 12px 0 0; max-width: 44ch; font-size: 14px; line-height: 1.6; color: var(--faint); }
.foot-brand p.foot-what { margin-top: 6px; font-size: 12.5px; }
.foot-cta {
  display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(40,38,44,.9), rgba(20,19,22,.94)); color: #fff; font-size: 14.5px; font-weight: 400;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .2s, box-shadow .2s;
}
.ed-foot a.foot-cta:hover { color: #fff; text-decoration: none; background: linear-gradient(180deg, rgba(50,48,54,.92), rgba(26,25,28,.95)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.foot-about {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(24px, 4vw, 56px);
  margin: 0 0 clamp(40px, 5vw, 56px);
}
.foot-about p { margin: 0; font-size: 14.5px; line-height: 1.7; color: #9a9ea6; max-width: 62ch; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(34px, 4vw, 52px) clamp(24px, 3vw, 44px); }
.foot-col h3 { font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .02em; color: var(--ink); margin: 0 0 12px; }
.foot-col a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--muted); }
.foot-col a:hover { color: var(--ink); text-decoration: none; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(34px, 5vw, 60px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13px; color: var(--faint); }
.foot-legal a { color: var(--faint); }
.foot-legal a:hover { color: var(--ink); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hm em { animation: none; }
  .hm-rise { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hm-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-fig:nth-child(3) { border-left: 0; }
  .hm-fig:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .hm-copy h1 br { display: none; }
  .hm-feat { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hm-line-opt { display: none; }
  .hm-line th, .hm-line td { padding-left: 0; padding-right: 12px; }
  .hm-copy { padding: 56px 16px 44px; }
  .hm-copy h1 { font-size: 38px; }
  .hm-btn { padding: 0 26px; }
  .hm-fig { padding: 18px 16px; }
  .hm-close { margin: 90px 0 0; border-radius: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .foot-about { grid-template-columns: minmax(0, 1fr); }
}
