/* Sozo site — one design system for every page.
   Ember on near-black, the dragon mark's own palette. */
:root {
  --bg: #08080b;
  --bg-2: #0e0d11;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.075);
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);
  --text: #f4ece7;
  --muted: #a39690;
  --ember: #ff6a2c;
  --ember-2: #ffb07a;
  --peach: #ffd9c2;
  --grad: linear-gradient(135deg, #ff8a4c, #ffc79e);
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, "InterVariable", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
  line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--ember-2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: .12em .42em; border-radius: 6px; }
pre { background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.grad-text { background: linear-gradient(180deg, #fff 10%, var(--peach) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ember-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- ground ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-glow { position: absolute; inset: -20% -10% auto -10%; height: 120vh;
  background: radial-gradient(55% 50% at 25% 30%, rgba(255,86,32,.2), rgba(255,60,20,.05) 45%, transparent 70%),
              radial-gradient(40% 40% at 88% 8%, rgba(255,160,90,.08), transparent 70%);
  transform: translate3d(0, calc(var(--scroll, 0) * -0.15px), 0); }
.bg-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 40% 15%, #000 15%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 40% 15%, #000 15%, transparent 72%); }
#embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 50; transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0)); background: var(--grad); box-shadow: 0 0 12px rgba(255,120,60,.7); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: padding .3s; }
.nav.scrolled { background: rgba(8,8,11,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav.scrolled .nav-in { padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.brand:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { color: #cfc3bd; padding: 8px 12px; border-radius: 10px; font-size: .93rem; font-weight: 550; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: var(--surface-2); }
.nav-links .nav-dl { color: #1b0a05; background: var(--grad); margin-left: 6px; font-weight: 750; }
.nav-links .nav-dl:hover { color: #1b0a05; background: var(--grad); filter: brightness(1.08); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: #fff; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 10px; background: rgba(14,13,17,.96); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 16px;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease); }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-dl { margin: 6px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; border-radius: 16px; padding: 14px 20px; font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { color: #1b0a05; background: var(--grad); box-shadow: 0 10px 40px -10px rgba(255,110,50,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-primary:hover { color: #1b0a05; box-shadow: 0 18px 50px -10px rgba(255,110,50,.95), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { color: #fff; border: 1px solid var(--line-2); background: var(--surface); }
.btn-ghost:hover { color: #fff; background: var(--surface-2); }
.btn-ico { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.btn-ico svg { width: 26px; height: 26px; }
.btn-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-text strong { font-size: 1.05rem; }
.btn-text small { font-weight: 600; opacity: .72; font-size: .8rem; }
.pill { display: inline-block; color: #1b0a05; background: var(--grad); padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: #cfc3bd; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); }
.chip.is-you { border-color: rgba(255,138,76,.6); color: #fff; background: rgba(255,138,76,.12); }
.eyebrow { margin: 0 0 12px; color: var(--ember-2); font-size: .76rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }

/* ---------- sections ---------- */
.section { padding: 96px 0 0; }
.section-head { max-width: 720px; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 820; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 1.08rem; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }
.load-in { opacity: 0; transform: translateY(18px); animation: loadIn .9s var(--ease) forwards; animation-delay: calc(.3s + var(--d, 0) * 80ms); }
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* ---------- phone frame ---------- */
.phone { position: relative; width: 100%; aspect-ratio: 9 / 20; border-radius: 13% / 6%; padding: 3.2%; background: #0d0d10;
  border: 1.5px solid rgba(255,200,160,.32); box-shadow: 0 50px 90px -40px rgba(0,0,0,.95), 0 0 70px -25px rgba(255,100,40,.4), inset 0 0 0 1px rgba(255,255,255,.04); }
.phone::after { content: ""; position: absolute; top: 2.6%; left: 50%; width: 26%; height: 2.4%; transform: translateX(-50%); background: #000; border-radius: 999px; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 10.5% / 4.8%; overflow: hidden; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .6s ease, transform .9s var(--ease); }
.phone .screen img:not(.on) { opacity: 0; transform: scale(1.04); }
.phone .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.08), transparent 35%); pointer-events: none; }

/* ---------- cards ---------- */
.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.9); transition: border-color .3s, transform .4s var(--ease); }
.card:hover { border-color: var(--line-2); }
.card::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--tint, rgba(255,120,60,.16)), transparent 70%); pointer-events: none; }

/* ---------- FAQ / help ---------- */
.acc { display: grid; gap: 10px; }
.acc details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2px 20px; transition: border-color .2s, background .2s; }
.acc details[open] { background: var(--surface-2); border-color: var(--line-2); }
.acc summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.4rem; line-height: 1; transition: transform .25s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); color: var(--ember-2); }
.acc details > :not(summary) { color: #d0c4be; margin: 0 0 16px; }

/* ---------- community ---------- */
.comm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 800px) { .comm { grid-template-columns: repeat(2, 1fr); } }
.comm-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; color: #fff;
  border: 1px solid var(--line); background: var(--surface); transition: transform .3s var(--ease), border-color .2s, background .2s; }
.comm-card:hover { color: #fff; transform: translateY(-4px); background: var(--surface-2); }
.comm-card svg { width: 28px; height: 28px; flex: none; }
.comm-card b { display: block; }
.comm-card small { color: var(--muted); }
.comm-card.tg svg { color: #2ca5e0; } .comm-card.tg:hover { border-color: #2ca5e0; }
.comm-card.dc svg { color: #5865f2; } .comm-card.dc:hover { border-color: #5865f2; }
.comm-card.gh:hover { border-color: #fff; }
.comm-card.bm svg { color: #ffdd00; } .comm-card.bm:hover { border-color: #ffdd00; }
@media (max-width: 420px) { .comm-card { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: 64px 24px; border-radius: 28px; border: 1px solid rgba(255,140,80,.28);
  background: radial-gradient(80% 120% at 50% 0%, rgba(255,110,50,.22), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.cta img.mark { width: 120px; height: 120px; margin: -10px auto 8px; display: block; }
.cta h2 { margin: 0 0 10px; }
.cta p { color: #d0c4be; margin: 0 auto 26px; max-width: 46ch; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- footer ---------- */
.foot { margin-top: 110px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255,90,30,.04)); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #d6cac4; font-size: .93rem; }
.foot a:hover { color: #fff; }
.foot .about p { color: var(--muted); font-size: .9rem; margin: 12px 0 0; max-width: 34ch; }
.foot-bottom { max-width: var(--maxw); margin: 0 auto; padding: 18px 20px 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .84rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ---------- prose (privacy, terms) ---------- */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-top: 56px; }
.doc-toc { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.doc-toc h4 { margin: 0 0 10px; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: #b8aca6; font-size: .86rem; line-height: 1.35; }
.doc-toc a:hover { color: #fff; }
.doc-toc a.active { color: #fff; border-left-color: var(--ember); }
.prose { max-width: 740px; min-width: 0; }
.prose h1 { margin: 0 0 8px; font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1.05; }
.prose .updated { color: var(--muted); margin: 0 0 30px; }
.prose h2 { margin: 48px 0 12px; font-size: 1.45rem; letter-spacing: -.02em; scroll-margin-top: 90px; }
.prose h3 { margin: 28px 0 8px; font-size: 1.1rem; }
.prose p, .prose li { color: #d6cac4; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose strong { color: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: #fff; background: var(--surface); }
.prose blockquote { margin: 16px 0; padding: 14px 18px; border-left: 3px solid var(--ember); background: var(--surface); border-radius: 0 12px 12px 0; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .doc-toc { position: static; max-height: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .load-in { opacity: 1; transform: none; }
}
[data-needs] { display: none; }
[data-needs].ready { display: inline; }
