/* OffPrism — graphite, hairlines and one beam of dispersed light */
:root {
  --bg: #09090b;
  --bg-1: #0f0f12;
  --surface: #131316;
  --surface-2: #18181c;
  --inset: #0b0b0d;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #ededef;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --spectrum: linear-gradient(90deg, #ff6a6a, #ffb35c, #ffe76a, #70e6a8, #5cc6ff, #8a7dff, #d06bff);
  --radius: 16px;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #fff; color: #000; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 60px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 14px; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; font: 500 11.5px/1 var(--mono); }
.lang a { padding: 7px 8px; color: var(--text-3); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a.on { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font: 500 14px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .2s, transform .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #fafafa; color: #09090b; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 8px 30px -10px rgba(255, 255, 255, 0.5); }
.btn-secondary { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-3); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }

/* ---------- Type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--spectrum); }
h1, h2, h3 { letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-2); font-size: 17px; margin: 0; text-wrap: pretty; }
section { padding: 96px 0; position: relative; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; text-align: center; isolation: isolate; overflow-x: clip; }
.hero-grid {
  position: absolute; inset: 0 0 auto; height: 760px; z-index: -2;
  background-image: url("/assets/cubes.svg"); background-size: 56px 64px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 28%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 28%, #000 10%, transparent 72%);
  opacity: 0.6;
}
.hero-glow {
  position: absolute; z-index: -1; left: 50%; top: 0; width: min(820px, 100%); height: 460px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent 70%);
}
.prism-art { position: relative; width: min(640px, 100%); margin: 0 auto 26px; }
.prism-art svg { width: 100%; height: auto; overflow: visible; }
.prism-art .logo {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.22)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}
.beam-flow { stroke-dasharray: 2 26; animation: flow 2.4s linear infinite; }
.rays { animation: breathe 6s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -56; } }
@keyframes breathe { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .beam-flow, .rays { animation: none; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px 0 4px; margin-bottom: 26px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.02);
  color: var(--text-2); font-size: 13px; text-decoration: none; transition: border-color .15s, color .15s;
}
.pill:hover { border-color: var(--line-3); color: var(--text); }
.pill b { font: 500 11px/1 var(--mono); letter-spacing: 0.04em; color: var(--text); background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 6px 9px; }
.pill svg { width: 12px; height: 12px; color: var(--text-3); }
.hero h1 {
  font-size: clamp(44px, 7vw, 80px); line-height: 1; letter-spacing: -0.05em; margin: 0 0 20px;
  background: linear-gradient(180deg, #fff 20%, #a1a1aa 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 560px; margin: 0 auto 32px; color: var(--text-2); font-size: clamp(16px, 1.8vw, 18px); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-meta { margin-top: 18px; color: var(--text-3); font: 400 12px/1.5 var(--mono); letter-spacing: 0.02em; }

/* ---------- Showcase ---------- */
.showcase { position: relative; margin-top: 64px; }
.showcase .frame {
  position: relative; border-radius: 14px; padding: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 40%);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
}
.showcase .frame::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: var(--spectrum); opacity: 0.9; z-index: 1; }
.showcase-glow { position: absolute; left: 20%; right: 20%; top: -30px; height: 70px; background: var(--spectrum); filter: blur(70px); opacity: 0.2; z-index: -1; pointer-events: none; }
.showcase img { width: 100%; height: auto; border-radius: 9px; border: 1px solid var(--line-2); }

/* ---------- Accounts ---------- */
.acc-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 48px; align-items: center; }
.acc-list { display: grid; gap: 4px; margin-top: 34px; }
.acc-item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.acc-item:hover { background: var(--bg-1); border-color: var(--line); }
.acc-item .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.acc-item .ic svg { width: 19px; height: 19px; }
.acc-item h3 { margin: 2px 0 4px; font-size: 16px; letter-spacing: -0.02em; }
.acc-item p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.acc-note { margin: 18px 0 0 18px; color: var(--text-3); font-size: 13.5px; }

.shots { position: relative; padding: 0 0 70px 0; isolation: isolate; }
.shots::before { content: ""; position: absolute; left: 15%; right: 5%; top: -30px; height: 70px; background: var(--spectrum); filter: blur(80px); opacity: 0.14; z-index: -1; }
.shots img { display: block; border-radius: 8px; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.95); }
.shot-main { width: 84%; height: auto; margin-left: auto; }
.shot-over { position: absolute; left: 0; bottom: 0; width: 58%; height: auto; box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.6) !important; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 28px; background: var(--bg-1); transition: background .2s; }
.feature:hover { background: var(--surface); }
.feature .ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); margin-bottom: 18px; }
.feature .ic svg { width: 18px; height: 18px; }
.feature h3 { font-size: 15.5px; margin: 0 0 6px; letter-spacing: -0.015em; }
.feature p { color: var(--text-2); margin: 0; font-size: 14.5px; }

/* ---------- Compare ---------- */
.compare-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-1); }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); background: rgba(255, 255, 255, 0.015); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 140px; }
.compare thead th.us { color: var(--text); }
.compare tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
.y, .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; }
.y { background: #fafafa; color: #09090b; }
.n { color: var(--text-3); }
.y svg, .n svg { width: 12px; height: 12px; }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.platform {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--line); background: var(--bg-1); transition: border-color .2s, background .2s;
}
.platform:hover { border-color: var(--line-2); background: var(--surface); }
.platform svg { width: 22px; height: 22px; flex: none; }
.platform strong { display: block; font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.platform span { color: var(--text-3); font-size: 12.5px; }

/* ---------- CTA ---------- */
.cta { position: relative; text-align: center; padding: 72px 24px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(100% 120% at 50% 0%, #17171b, var(--bg-1) 60%); isolation: isolate; }
.cta::before { content: ""; position: absolute; left: 25%; right: 25%; top: 0; height: 1px; background: var(--spectrum); }
.cta::after { content: ""; position: absolute; left: 30%; right: 30%; top: -40px; height: 80px; background: var(--spectrum); filter: blur(70px); opacity: 0.25; z-index: -1; }
.cta p { color: var(--text-2); margin: 0 auto 28px; max-width: 460px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 72px 0 24px; position: relative; isolation: isolate; }
.page-hero .hero-grid { height: 360px; mask-image: radial-gradient(ellipse 55% 90% at 30% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 55% 90% at 30% 0%, #000 0%, transparent 70%); }
.page-hero h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.045em; margin: 0 0 12px; }
.page-hero p { color: var(--text-2); font-size: 16.5px; margin: 0; }
.page-hero p a { color: var(--text); }
.page-body { padding: 32px 0 96px; }

.dl-main {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 22px 24px; border-radius: 16px; margin-bottom: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, #17171b, var(--bg-1));
}
.dl-main[hidden] { display: none; }
.dl-main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--spectrum); }
.dl-main .os-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.dl-main .os-icon svg { width: 24px; height: 24px; }
.dl-main h2 { font-size: 20px; margin: 0 0 2px; letter-spacing: -0.02em; }
.dl-main p { margin: 0; color: var(--text-2); font-size: 14px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dl-card { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); scroll-margin-top: 80px; }
.dl-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dl-card header svg { width: 20px; height: 20px; }
.dl-card h3 { margin: 0; font-size: 15.5px; letter-spacing: -0.015em; }
.dl-card header span { margin-left: auto; color: var(--text-3); font: 400 12px/1 var(--mono); }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.files a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); transition: background .15s, border-color .15s;
}
.files a:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); }
.files a svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.files small { margin-left: auto; color: var(--text-3); font: 400 12px/1 var(--mono); }
h2.sub { font-size: 20px; margin: 56px 0 6px; letter-spacing: -0.02em; }
.muted { color: var(--text-2); margin: 0; }
.muted a { text-underline-offset: 3px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.step { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-1); }
.step h3 { margin: 0 0 6px; font-size: 14.5px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; }
code { font: 400 12.5px/1.6 var(--mono); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; word-break: break-word; }

.news-list { display: grid; }
.news-item {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item time { color: var(--text-3); font: 400 12.5px/1.6 var(--mono); }
.news-item h3 { font-size: 19px; margin: 0 0 4px; letter-spacing: -0.02em; }
.news-item p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.news-item .arrow { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s, color .2s; align-self: center; }
.news-item:hover .arrow { transform: translateX(3px); color: var(--text); }
.post h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -0.045em; margin: 0 0 14px; }
.post .meta { display: flex; gap: 12px; align-items: center; color: var(--text-3); font: 400 12.5px/1 var(--mono); margin-bottom: 36px; }
.post .meta .tag { color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 9px; }
.post h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.02em; }
.post p, .post li { color: var(--text-2); }
.post li { margin-bottom: 8px; }
.post strong { color: var(--text); font-weight: 600; }
.post a:not(.btn):not(.back) { text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.post .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); text-decoration: none; font-size: 14px; margin-bottom: 28px; }
.back:hover { color: var(--text); }

.center-page { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 72px 20px; }
.center-page img { width: 84px; height: 84px; margin: 0 auto 24px; filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.2)); }
.center-page h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.045em; margin: 0 0 10px; }
.center-page p { color: var(--text-2); margin: 0 0 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--text-3); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--text); font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; margin: 4px 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { margin: 12px 0 0; max-width: 340px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .acc-grid { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  section { padding: 72px 0; }
  .hero { padding-top: 48px; }
  .prism-art .logo { width: 68px; height: 68px; }
  .showcase { margin-top: 44px; }
  .showcase .frame { padding: 4px; }
  .features, .platforms, .dl-grid { grid-template-columns: 1fr; }
  .dl-main { grid-template-columns: auto 1fr; }
  .dl-main .btn { grid-column: 1 / -1; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .news-item .arrow { display: none; }
  .compare th, .compare td { padding: 12px; font-size: 13.5px; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: 64px; }
}
