/* DENARSOFT — design tokens */
:root {
  --bg: #060a14;
  --bg-2: #0a1020;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(160, 185, 255, .14);
  --line-strong: rgba(160, 185, 255, .26);
  --text: #f1f5fc;
  --muted: #a9b5cc;
  --faint: #7f8ca6;
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --violet: #8b5cf6;
  --violet-soft: #c4b5fd;
  --green: #34d399;
  --radius: 14px;
  --radius-sm: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 20px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-soft); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(34, 211, 238, .3); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: #04101a; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #04101a; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 10, 20, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 58px; height: 29px; }
.wordmark { font-weight: 600; font-size: .95rem; letter-spacing: .32em; padding-left: .1em; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; }

@media (max-width: 759px) {
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); cursor: pointer; }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background .2s ease; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .js .site-nav:not([data-open]) { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
}

/* ---------- shared bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-soft); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.22rem); }
.small { font-size: .88rem; color: var(--faint); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.btn:hover { background: var(--surface-2); border-color: rgba(160, 185, 255, .45); color: #fff; }
.btn-primary { background: linear-gradient(135deg, var(--cyan), #38bdf8 55%, #7c8cf8); border-color: transparent; color: #031018; }
.btn-primary:hover { background: linear-gradient(135deg, #5eead4, #38bdf8 50%, #a78bfa); color: #031018; border-color: transparent; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 9px; border-radius: 999px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; border: 1px solid; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--green); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); }
.status-beta { color: var(--cyan-soft); border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .08); }
.status-dev { color: var(--violet-soft); border-color: rgba(167, 139, 250, .4); background: rgba(139, 92, 246, .1); }
.status-concept { color: var(--muted); border-color: var(--line-strong); border-style: dashed; background: transparent; }
.status-concept::before { background: transparent; border: 1px solid currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 112px) 0 clamp(48px, 8vw, 96px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 55% at 85% 10%, rgba(34, 211, 238, .16), transparent 70%),
  radial-gradient(50% 50% at 95% 70%, rgba(139, 92, 246, .16), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image:
  linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  -webkit-mask-image: radial-gradient(80% 90% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(80% 90% at 70% 30%, #000 20%, transparent 75%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 7.4vw, 4.4rem); margin: 20px 0 22px; letter-spacing: -.035em; font-weight: 680; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--cyan-soft), #a5b4fc 60%, var(--violet-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 34em; margin-bottom: 32px; }
.hero-visual { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .mark { position: absolute; left: 50%; top: 50%; width: 52%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 28px rgba(34, 211, 238, .35)); }
.ring-a { transform-origin: 250px 250px; animation: spin 90s linear infinite; }
.ring-b { transform-origin: 250px 250px; animation: spin 140s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* ---------- at a glance ---------- */
.glance { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(var(--bg-2), var(--bg)); }
.glance dl { display: grid; margin: 0; }
.glance .cell { padding: 22px 0; border-bottom: 1px solid var(--line); }
.glance .cell:last-child { border-bottom: 0; }
.glance dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.glance dd { margin: 0; color: var(--text); font-size: .98rem; }
.glance dd a { color: var(--cyan-soft); }
@media (min-width: 760px) {
  .glance dl { grid-template-columns: repeat(4, 1fr); }
  .glance .cell { padding: 28px 24px; border-bottom: 0; border-left: 1px solid var(--line); }
  .glance .cell:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- cards ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-2), var(--surface) 55%); transition: border-color .2s ease, transform .2s ease; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .5), transparent); opacity: .6; border-radius: var(--radius) var(--radius) 0 0; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card .more { margin-top: auto; padding-top: 6px; color: var(--cyan-soft); font-weight: 600; font-size: .95rem; }

/* ---------- principles ---------- */
.principles { display: grid; gap: 0; counter-reset: p; border-top: 1px solid var(--line); }
.principles li { counter-increment: p; display: grid; grid-template-columns: 52px 1fr; gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); color: var(--cyan-soft); font-size: .85rem; padding-top: 4px; grid-row: span 2; }
.principles h3 { font-size: 1.15rem; }
.principles p { color: var(--muted); max-width: 52em; }
@media (min-width: 860px) {
  .principles { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}

/* ---------- evidence ---------- */
.evidence { display: grid; gap: 14px; }
@media (min-width: 760px) { .evidence { grid-template-columns: repeat(2, 1fr); } }
.evidence li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.evidence svg { width: 22px; height: 22px; margin-top: 3px; color: var(--cyan); }
.evidence strong { display: block; font-weight: 600; margin-bottom: 2px; }
.evidence span { color: var(--muted); font-size: .95rem; }

/* ---------- cta band ---------- */
.band { border: 1px solid var(--line-strong); border-radius: 20px; padding: clamp(28px, 5vw, 52px); background:
  radial-gradient(80% 140% at 100% 0, rgba(139, 92, 246, .18), transparent 60%),
  radial-gradient(70% 140% at 0 100%, rgba(34, 211, 238, .14), transparent 60%), var(--bg-2);
  display: grid; gap: 24px; align-items: center; }
.band h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.band p { color: var(--muted); margin-top: 10px; max-width: 36em; }
@media (min-width: 820px) { .band { grid-template-columns: 1fr auto; } }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(44px, 8vw, 92px) 0 clamp(28px, 5vw, 48px); position: relative; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 90% 0, rgba(34, 211, 238, .1), transparent 65%); }
.page-head h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); margin: 18px 0 18px; letter-spacing: -.03em; }
.page-head .lead { max-width: 40em; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose ul { margin: 1em 0; display: grid; gap: .6em; }
.prose ul li { position: relative; padding-left: 1.4em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--cyan); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .9em; color: var(--text); background: var(--surface-2); padding: .1em .4em; border-radius: 4px; }

.legend { display: grid; gap: 10px; margin-top: 28px; }
.legend li { display: flex; gap: 14px; align-items: baseline; color: var(--muted); font-size: .94rem; }
.legend .status { flex: 0 0 150px; width: 150px; justify-content: flex-start; }
@media (max-width: 559px) { .legend li { flex-direction: column; gap: 6px; } .legend .status { flex: 0 0 auto; width: auto; } }

/* product detail */
.product { display: grid; gap: 28px; padding: clamp(28px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 50%); position: relative; scroll-margin-top: 90px; }
.product + .product { margin-top: 20px; }
.product-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 14px 0 10px; }
.product-head .tag { color: var(--muted); max-width: 30em; }
.facts { display: grid; gap: 22px 36px; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-soft); margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--muted); }
.facts dd strong { color: var(--text); font-weight: 600; }
.facts ul { display: grid; gap: .5em; }
.facts li { position: relative; padding-left: 1.2em; }
.facts li::before { content: ""; position: absolute; left: 0; top: .78em; width: 7px; height: 1px; background: var(--cyan); }
@media (min-width: 900px) {
  .product { grid-template-columns: 320px 1fr; gap: 44px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts .wide { grid-column: 1 / -1; }
}
.product.muted-card { background: var(--surface); }
.note { margin-top: 28px; padding: 16px 20px; border-left: 2px solid var(--violet); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-size: .95rem; }

/* contact */
.contact-card { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-card { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.mailbox { padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line-strong); border-radius: 20px; background: radial-gradient(90% 120% at 100% 0, rgba(34, 211, 238, .12), transparent 60%), var(--bg-2); }
.mailbox .label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.mailbox .addr { display: block; margin: 10px 0 22px; font-size: clamp(1.3rem, 4.4vw, 1.9rem); font-weight: 600; letter-spacing: -.01em; color: var(--text); text-decoration: none; word-break: break-word; }
.mailbox .addr:hover { color: var(--cyan-soft); }
.copy-status { min-height: 1.4em; margin-top: 12px; font-size: .9rem; color: var(--green); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: clamp(56px, 9vw, 110px); }
.site-footer .foot { display: grid; gap: 36px; padding: 48px 0 32px; }
.site-footer .foot-brand p { margin-top: 14px; color: var(--muted); }
.site-footer .foot-brand .small { max-width: 34em; }
.foot-h { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin: 0 0 12px; letter-spacing: .12em; }
.site-footer ul + .foot-h { margin-top: 24px; }
.site-footer li { color: var(--muted); padding: 3px 0; }
.site-footer li a { color: var(--muted); text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer li a:hover { color: var(--text); text-decoration: underline; }
.legal { padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
@media (min-width: 820px) { .site-footer .foot { grid-template-columns: 1.6fr 1fr 1fr; } }

/* 404 */
.nf { min-height: 56vh; display: grid; place-content: center; text-align: center; gap: 18px; padding: 60px 0; }
.nf .code { font-family: var(--mono); color: var(--cyan-soft); letter-spacing: .2em; }
.nf .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .status, .btn, .card, .product { border: 1px solid CanvasText; }
}

/* utilities (no inline styles, so a strict CSP can be used) */
.no-rule { border-top: 0 !important; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 22px; }
.mt-lg { margin-top: 36px; }
button.btn { font-family: inherit; cursor: pointer; }
