:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-2: #e9e0d0;
  --ink: #1c1b19;
  --muted: #6c675f;
  --line: rgba(28, 27, 25, .2);
  --accent: #c34432;
  --accent-soft: rgba(195, 68, 50, .12);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255,255,255,.9), transparent 24rem),
    linear-gradient(120deg, var(--paper), #f8f5ef 46%, var(--paper-2));
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}
a { color: inherit; text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: .8rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 229, .84);
  backdrop-filter: blur(18px) saturate(1.2);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 650; letter-spacing: .04em; }
.brand-mark { position: relative; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; }
.brand-mark::before { inset: 5px; }
.brand-mark::after { width: 5px; height: 5px; right: -1px; top: 2px; border: 0; background: var(--accent); }
.head-actions { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); }
.head-actions a { text-decoration: none; font-size: .9rem; }
.language-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.38); }
.language-switch button { border: 0; border-radius: 999px; padding: .35rem .6rem; color: var(--muted); background: transparent; cursor: pointer; font-size: .82rem; letter-spacing: .08em; }
.language-switch button[aria-pressed="true"] { color: white; background: var(--ink); }
.lang-block[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(380px, 1.14fr);
  min-height: calc(100svh - 70px);
  overflow: hidden;
  border-inline: 1px solid var(--line);
  background: rgba(250,248,243,.54);
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem); }
.eyebrow { margin: 0 0 1.2rem; color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.product-hero h1 { margin: 0; font: 500 clamp(4.2rem, 10vw, 9rem)/.86 var(--serif); letter-spacing: -.065em; }
.tagline { max-width: 34rem; margin: 1.7rem 0 0; font-size: clamp(1.08rem, 2vw, 1.42rem); line-height: 1.5; }
.status { display: inline-flex; align-items: center; gap: .55rem; margin-top: 2rem; color: var(--muted); font-size: .86rem; letter-spacing: .08em; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f8d69; box-shadow: 0 0 0 5px rgba(63,141,105,.14); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.1rem; border: 1px solid var(--ink); text-decoration: none; font-size: .9rem; font-weight: 650; letter-spacing: .04em; transition: transform .25s ease, background .25s ease, color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--paper); background: var(--ink); }
.hero-art { position: relative; min-height: 540px; overflow: hidden; background: #d9d2c6; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255,255,255,.3); box-shadow: inset 0 0 90px rgba(20,15,10,.12); }
.product-hero:hover .hero-art > img { transform: scale(1.025); }
.art-note { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; padding: .5rem .7rem; color: #fff; background: rgba(20,20,20,.58); font-size: .65rem; letter-spacing: .15em; backdrop-filter: blur(8px); }
.orbit-lines { position: absolute; inset: 7%; z-index: 1; pointer-events: none; border: 1px dashed rgba(255,255,255,.55); border-radius: 50%; animation: orbit 24s linear infinite; }
.orbit-lines::before, .orbit-lines::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: white; box-shadow: 0 0 0 5px rgba(255,255,255,.2); }
.orbit-lines::before { top: 17%; left: 2%; }.orbit-lines::after { right: 5%; bottom: 13%; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); border-inline: 1px solid var(--line); }
.fact { min-height: 128px; padding: 1.4rem clamp(1rem, 3vw, 2.2rem); border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }.fact span { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }.fact strong { display: block; margin-top: .45rem; font: 500 clamp(1.15rem, 2vw, 1.55rem)/1.3 var(--serif); }
.story { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 8vw, 8rem); padding: clamp(4rem, 10vw, 9rem) clamp(1rem, 4vw, 4rem); border-inline: 1px solid var(--line); }
.story h2, .document h1 { margin: 0; font: 500 clamp(2.8rem, 6vw, 5rem)/.98 var(--serif); letter-spacing: -.04em; }
.story-copy { max-width: 44rem; }.story-copy p { margin: 0 0 1.2rem; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }.story-copy ul { padding-left: 1.2rem; }.story-copy li { margin-block: .65rem; }
.document-shell { width: min(940px, calc(100% - 2rem)); margin: 0 auto; }
.document { padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem); border-inline: 1px solid var(--line); background: rgba(255,255,255,.28); }
.document-lead { max-width: 44rem; margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.updated { color: var(--muted); font-size: .82rem; }
.doc-nav { display: flex; flex-wrap: wrap; gap: .65rem; margin: 2rem 0 3rem; }.doc-nav a { padding: .4rem .75rem; border: 1px solid var(--line); text-decoration: none; font-size: .78rem; }
.doc-section { max-width: 48rem; padding: 2rem 0; border-top: 1px solid var(--line); }.doc-section h2 { margin: 0 0 .85rem; font: 500 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--serif); }.doc-section h3 { margin: 1.5rem 0 .45rem; font-size: 1rem; }.doc-section p, .doc-section li { color: #34312d; }.doc-section ul { padding-left: 1.25rem; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem; border: 1px solid var(--line); background: rgba(255,255,255,.4); }.contact-card a { font-weight: 700; }
.site-foot { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem clamp(1rem,4vw,4rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }.site-foot nav { display: flex; flex-wrap: wrap; gap: 1rem; }.site-foot a { text-decoration: none; }

body[data-app="anvil"] { --paper: #ede9e1; --paper-2: #d9d4cc; --accent: #e34b34; }
body[data-app="anvil"] .hero-art { display: grid; place-items: center; padding: clamp(1.5rem,5vw,4rem); color: #eee9df; background: #191919; }
.terminal { width: min(620px, 94%); border: 1px solid #77716a; background: #20201f; box-shadow: 22px 24px 0 #df4b35; transform: rotate(-1deg); transition: transform .5s ease; }.product-hero:hover .terminal { transform: rotate(.4deg) translateY(-4px); }.terminal-bar { display:flex; gap:7px; padding: .8rem; border-bottom: 1px solid #55514d; }.terminal-bar i { width:9px; height:9px; border-radius:50%; background:#e34b34; }.terminal-bar i:nth-child(2){background:#d9a83e}.terminal-bar i:nth-child(3){background:#64a676}.terminal-body { padding: clamp(1.3rem,4vw,3rem); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.terminal-body small { color:#9c978e; }.terminal-body b { display:block; margin:.6rem 0; color:#fff; font-size:clamp(2.3rem,6vw,5.5rem); line-height:1; }.terminal-body code { color:#9ed7b2; }.tool-chips { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:2rem; }.tool-chips span { padding:.35rem .5rem; border:1px solid #494744; color:#bab6ae; font-size:.64rem; }
body[data-app="cella"] { --paper: #edf0ef; --paper-2: #d8dfdf; --accent: #174c9a; }
body[data-app="cella"] .hero-art > img { object-position: 54% center; }
body[data-app="wuxu"] { --paper: #eee7da; --paper-2: #d9c9b3; --accent: #8a3c2b; }
body[data-app="wuxu"] .hero-art > img { object-position: 55% center; }
body[data-app="beastveil"] { --paper: #e9dfcd; --paper-2: #cdbc9e; --accent: #9a321e; }
body[data-app="beastveil"] .hero-art { background: #17251d; }
body[data-app="beastveil"] .hero-art > img { object-position: 56% center; filter: saturate(.92) contrast(1.04); }
body[data-app="beastveil"] .orbit-lines { border-color: rgba(239, 197, 111, .48); animation-duration: 32s; }
body[data-app="beastveil"] .orbit-lines::before,
body[data-app="beastveil"] .orbit-lines::after { background: #efc56f; box-shadow: 0 0 0 5px rgba(239, 197, 111, .18), 0 0 24px rgba(166, 99, 233, .38); }

@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  body { font-size: 16px; }
  .site-head { min-height: 62px; padding-inline: 1rem; }.brand small { display: none; }.head-actions > a { display:none; }
  .product-hero { grid-template-columns: 1fr; min-height: auto; }.hero-copy { min-height: 52svh; padding-block: 4rem; }.hero-art { min-height: 55svh; }.product-hero h1 { font-size: clamp(4.1rem, 20vw, 7rem); }
  .facts { grid-template-columns: 1fr; }.fact { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }.fact:last-child { border-bottom:0; }
  .story { grid-template-columns: 1fr; }.site-foot { flex-direction:column; }
}
@media (max-width: 430px) { .hero-actions { display:grid; }.button { width:100%; }.document { padding-inline:1.15rem; }.product-hero h1 { font-size: 18vw; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }
