/* ============================================================
   PYRAXIS — Private, on-device business AI
   Vibrant enterprise site · navy canvas · multi-hue accents
   Clash Display / General Sans / JetBrains Mono
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f%5B%5D=clash-display@400,500,600,700&f%5B%5D=general-sans@400,500,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:      #070b15;
  --bg-1:    #0a0f1c;
  --bg-2:    #0e1424;
  --text:    #eef2f8;
  --muted:   #8e98ae;
  --faint:   #586176;
  --line:    rgba(255,255,255,0.085);
  --line-2:  rgba(255,255,255,0.04);

  /* tweakable primary */
  --accent-h: 130;
  --accent:     oklch(0.86 0.19 var(--accent-h));
  --accent-dim: oklch(0.86 0.19 var(--accent-h) / 0.14);
  --accent-glow:oklch(0.86 0.19 var(--accent-h) / 0.30);

  /* decorative palette */
  --c1: oklch(0.86 0.19 130);   /* lime */
  --c2: oklch(0.80 0.13 212);   /* cyan    */
  --c3: oklch(0.78 0.16 292);   /* violet  */
  --c4: oklch(0.84 0.14 66);    /* amber   */
  --c5: oklch(0.72 0.16 18);    /* rose    */
  --grad: linear-gradient(100deg, var(--c1), var(--c2) 52%, var(--c3));

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 72px);
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'General Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "ss01"; }
::selection { background: var(--accent); color: #04140d; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- ambient ---------- */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.7; }
.bg-grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 20%, transparent 72%); opacity: 0; transition: opacity 1.2s ease; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0; transition: opacity 1.6s ease; }
.bg-glow.one { top: -18%; right: -6%; width: 52vw; height: 52vh; background: radial-gradient(circle, oklch(0.81 0.15 162 / 0.22), transparent 64%); }
.bg-glow.two { bottom: 2%; left: -8%; width: 46vw; height: 48vh; background: radial-gradient(circle, oklch(0.78 0.16 292 / 0.20), transparent 66%); }
.bg-glow.three { top: 40%; left: 45%; width: 40vw; height: 42vh; background: radial-gradient(circle, oklch(0.80 0.13 212 / 0.16), transparent 66%); }
.bg-noise { position: absolute; inset: 0; opacity: 0.035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-bg="grid"] .bg-grid { opacity: 0.7; } [data-bg="grid"] .bg-glow { opacity: 1; }
[data-bg="mesh"] .bg-glow { opacity: 1; }
[data-bg="minimal"] .bg-grid { opacity: 0; } [data-bg="minimal"] .bg-glow { opacity: 0.5; } [data-bg="minimal"] #particles { opacity: 0.35; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
main { position: relative; z-index: 1; }
.section { padding-block: clamp(74px, 11vh, 138px); }
.section.tight { padding-block: clamp(54px, 8vh, 96px); }

.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); display: inline-block; }
.kicker { margin-bottom: 18px; }

h2.head { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(28px, 3.8vw, 50px); line-height: 1.04; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 52ch; margin-top: 20px; }

.sec-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: end; margin-bottom: 52px; }
.sec-head .sh-aside { color: var(--muted); font-size: 15.5px; justify-self: end; text-align: right; max-width: 38ch; }
@media (max-width: 760px){ .sec-head { grid-template-columns: 1fr; } .sec-head .sh-aside { justify-self: start; text-align: left; } }

.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
@media (max-width: 920px){ .split2 { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 15px var(--gut); transition: background .4s ease, border-color .4s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7,11,21,0.74); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand .mark { width: 21px; height: 21px; position: relative; display: inline-block; }
.brand .mark::before { content: ""; position: absolute; inset: 0; background: var(--grad); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.cta { color: #04140d; background: var(--accent); padding: 9px 17px; border-radius: 8px; font-weight: 500; transition: box-shadow .3s, transform .25s; }
.nav-links a.cta:hover { box-shadow: 0 8px 24px -10px var(--accent-glow); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; padding: 13px 24px; border-radius: 9px; transition: all .3s var(--ease); cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #04140d; }
.btn-primary:hover { box-shadow: 0 12px 30px -12px var(--accent-glow); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 3D containers ---------- */
[data-obj3d] { position: relative; width: 100%; aspect-ratio: 1 / 1; min-height: 360px; }
[data-obj3d] canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(74px, 11vh, 130px); }
.hero h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.0; font-size: clamp(40px, 5vw, 74px); text-wrap: balance; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.4vw, 20px); max-width: 50ch; }
.hero-actions { margin-top: 34px; display: flex; gap: 13px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted); border: 1px solid var(--line); padding: 7px 14px; border-radius: 8px; margin-bottom: 26px; background: var(--bg-1); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent-glow); }
.trust { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; gap: clamp(22px, 4vw, 48px); flex-wrap: wrap; }
.trust .ti .n { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1; }
.trust .ti:nth-child(1) .n { color: var(--c1); } .trust .ti:nth-child(2) .n { color: var(--c2); } .trust .ti:nth-child(3) .n { color: var(--c3); }
.trust .ti .l { margin-top: 7px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); max-width: 16ch; }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: rgba(10,15,28,0.6); overflow: hidden; position: relative; z-index: 1; }
.ticker .strip-track { display: flex; width: max-content; padding: 15px 0; white-space: nowrap; animation: tickx 34s linear infinite; }
.ticker:hover .strip-track { animation-play-state: paused; }
.ticker .strip-item { display: inline-flex; align-items: center; gap: 38px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); padding-right: 38px; }
.ticker .strip-item::before { content: "◆"; font-size: 8px; color: var(--accent); }
.ticker .strip-item:nth-child(3n)::before { color: var(--c2); } .ticker .strip-item:nth-child(3n+1)::before { color: var(--c3); }
@keyframes tickx { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .ticker .strip-track { animation: none; } }

/* ---------- product mockups ---------- */
.mock { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7); }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.mock-bar .dots { display: flex; gap: 6px; } .mock-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3242; display: block; }
.mock-bar .dots i:nth-child(1){ background: var(--c5); } .mock-bar .dots i:nth-child(2){ background: var(--c4); } .mock-bar .dots i:nth-child(3){ background: var(--c1); }
.mock-title { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lock-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--accent); border: 1px solid var(--accent-dim); background: var(--accent-dim); padding: 4px 10px; border-radius: 100px; }
.lock-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; } 50%{ opacity: .4; } }
.mock-body { padding: 22px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 15px; background: var(--bg-1); }
.kpi .kl { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.kpi .kv { font-family: var(--font-display); font-weight: 600; font-size: 27px; letter-spacing: -0.02em; margin-top: 7px; display: block; }
.kpi:nth-child(1) .kv { color: var(--c1); } .kpi:nth-child(2) .kv { color: var(--c2); }
.kpi .kd { font-family: var(--font-mono); font-size: 11px; margin-top: 4px; display: inline-block; color: var(--c1); }
.chart { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--bg-1); }
.chart-h { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .bar .col { width: 100%; height: 0; border-radius: 5px 5px 0 0; transition: height 1.1s var(--ease); background: linear-gradient(180deg, var(--c1), transparent); }
.bars .bar:nth-child(3n+2) .col { background: linear-gradient(180deg, var(--c2), transparent); }
.bars .bar:nth-child(3n) .col { background: linear-gradient(180deg, var(--c3), transparent); }
.bars .bar .bl { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }

.lock-panel .lock-toggle { display: flex; align-items: center; gap: 14px; border: 1px solid var(--accent-dim); background: var(--accent-dim); border-radius: 11px; padding: 16px; margin-bottom: 16px; }
.lock-toggle .switch { width: 46px; height: 26px; border-radius: 100px; background: var(--accent); position: relative; flex-shrink: 0; box-shadow: 0 0 16px -2px var(--accent-glow); }
.lock-toggle .switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #04140d; }
.lock-toggle .lt-txt b { font-family: var(--font-display); font-weight: 500; font-size: 16px; display: block; }
.lock-toggle .lt-txt span { color: var(--muted); font-size: 13px; }
.audit { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.aud-row { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.aud-row:last-child { border-bottom: 0; }
.aud-row .ar-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.aud-row .ar-dot.ok { background: var(--c1); box-shadow: 0 0 8px var(--accent-glow); }
.aud-row .ar-dot.blk { background: #3a4254; }
.aud-row .ar-tag { margin-left: auto; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line); }
.aud-row .ar-tag.ok { color: var(--c1); border-color: var(--accent-dim); } .aud-row .ar-tag.blk { color: var(--faint); }

/* ---------- card grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gcard { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; transition: transform .35s var(--ease), border-color .35s, background .35s; display: flex; flex-direction: column; min-height: 200px; position: relative; overflow: hidden; }
.gcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--co, var(--c1)); opacity: 0; transition: opacity .35s; }
.gcard:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.16); background: var(--bg-2); }
.gcard:hover::before { opacity: 1; }
.gcard .gi { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; margin-bottom: 18px; transition: border-color .3s, background .3s; }
.gcard .gi svg { width: 18px; height: 18px; }
.gcard:nth-child(6n+1) { --co: var(--c1); } .gcard:nth-child(6n+1) .gi { color: var(--c1); }
.gcard:nth-child(6n+2) { --co: var(--c2); } .gcard:nth-child(6n+2) .gi { color: var(--c2); }
.gcard:nth-child(6n+3) { --co: var(--c3); } .gcard:nth-child(6n+3) .gi { color: var(--c3); }
.gcard:nth-child(6n+4) { --co: var(--c4); } .gcard:nth-child(6n+4) .gi { color: var(--c4); }
.gcard:nth-child(6n+5) { --co: var(--c5); } .gcard:nth-child(6n+5) .gi { color: var(--c5); }
.gcard:nth-child(6n+6) { --co: var(--c2); } .gcard:nth-child(6n+6) .gi { color: var(--c2); }
.gcard:hover .gi { border-color: currentColor; }
.gcard h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.gcard p { color: var(--muted); font-size: 14.5px; margin-top: 9px; }
.gcard .tag { margin-top: auto; padding-top: 16px; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
.gcard .idx { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--co, var(--c1)); margin-bottom: 12px; }
@media (max-width: 900px){ .grid-3 { grid-template-columns: 1fr; } }

/* feature mini-list */
.flist { display: flex; flex-direction: column; gap: 2px; }
.flrow { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); transition: padding-left .3s var(--ease); }
.flrow:first-child { border-top: 0; }
.flrow:hover { padding-left: 8px; }
.flrow .fi { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; } .flrow .fi svg { width: 17px; height: 17px; }
.flrow:nth-child(5n+1) .fi { color: var(--c1); } .flrow:nth-child(5n+2) .fi { color: var(--c2); } .flrow:nth-child(5n+3) .fi { color: var(--c3); } .flrow:nth-child(5n+4) .fi { color: var(--c4); } .flrow:nth-child(5n) .fi { color: var(--c5); }
.flrow h3 { font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.flrow p { color: var(--muted); font-size: 14px; margin-top: 3px; }

/* security points */
.points { display: flex; flex-direction: column; gap: 4px; }
.point { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; }
.point:last-child { border-bottom: 0; }
.point .pi { margin-top: 2px; } .point .pi svg { width: 19px; height: 19px; }
.point:nth-child(1) .pi { color: var(--c1); } .point:nth-child(2) .pi { color: var(--c2); } .point:nth-child(3) .pi { color: var(--c3); } .point:nth-child(4) .pi { color: var(--c4); }
.point h3 { font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.point p { color: var(--muted); font-size: 14px; margin-top: 5px; }

/* steps */
.steps-v { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; }
.steps-v .sv { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.steps-v .sv:first-child { border-top: 0; }
.steps-v .sv .sn { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1; }
.steps-v .sv:nth-child(1) .sn { color: var(--c1); } .steps-v .sv:nth-child(2) .sn { color: var(--c2); } .steps-v .sv:nth-child(3) .sn { color: var(--c3); }
.steps-v .sv h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.steps-v .sv p { color: var(--muted); font-size: 14.5px; margin-top: 7px; }

/* ---------- compare table ---------- */
.cmp { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-1); max-width: 940px; margin-inline: auto; }
.cmp table { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp thead th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); background: var(--bg-2); }
.cmp thead th.us { color: var(--accent); }
.cmp tbody td:first-child { color: var(--text); }
.cmp td.no { color: var(--faint); } .cmp td.yes { color: var(--text); }
.cmp td .mk { font-family: var(--font-mono); margin-right: 9px; font-weight: 500; }
.cmp td.no .mk { color: var(--c5); } .cmp td.yes .mk { color: var(--c1); }
.cmp col.uscol { background: oklch(0.81 0.15 var(--accent-h) / 0.05); }
.cmp tr:last-child td { border-bottom: 0; }
@media (max-width: 620px){ .cmp th, .cmp td { padding: 12px 13px; font-size: 13px; } }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); padding: 30px 26px; display: flex; flex-direction: column; transition: border-color .35s, transform .35s var(--ease); }
.plan:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.16); }
.plan.feat { border-color: transparent; background: linear-gradient(180deg, oklch(0.81 0.15 162 / 0.12), oklch(0.78 0.16 292 / 0.06) 60%, var(--bg-1)); position: relative; }
.plan.feat::before { content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan .pname { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); }
.plan.feat .pname { color: var(--c1); }
.plan .price { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; margin-top: 14px; line-height: 1; }
.plan .price small { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.plan .pdesc { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.plan ul { list-style: none; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li.plan-inherit { color: var(--text); font-weight: 500; padding-left: 0; }
.plan li.plan-inherit::before { display: none; }
.plan li { font-size: 14px; color: var(--muted); padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 6px; border-left: 1.5px solid var(--c1); border-bottom: 1.5px solid var(--c1); transform: rotate(-45deg); }
.plan .btn { justify-content: center; width: 100%; }
.plan:not(.feat) .btn { background: var(--bg-2); color: var(--text); }
.plan:not(.feat) .btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; transform: none; }
@media (max-width: 980px){ .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- Demo video ---------- */
.demo-frame { max-width: 940px; margin: 10px auto 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-1); box-shadow: 0 40px 90px -40px rgba(0,0,0,0.7); position: relative; }
.demo-frame::before { content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2; }
.demo-frame video { display: block; width: 100%; height: auto; background: #000; }

/* ---------- CTA ---------- */
.cta-band { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); padding: clamp(46px, 7vw, 84px); text-align: center; position: relative; overflow: hidden; }
.cta-band [data-obj3d] { position: absolute; right: -3%; top: 50%; transform: translateY(-50%); width: 340px; aspect-ratio: 1/1; min-height: 0; opacity: 0.55; pointer-events: none; }
.cta-band .cta-inner { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -0.03em; line-height: 1.02; }
.cta-band h2 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band p { color: var(--muted); margin-top: 18px; font-size: 18px; }
.cta-band .btn { margin-top: 32px; }
@media (max-width: 760px){ .cta-band [data-obj3d] { display: none; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 54px 38px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand .brand { font-size: 23px; margin-bottom: 15px; }
.foot-brand p { color: var(--muted); max-width: 30ch; font-size: 14.5px; }
.foot-social-row { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.foot-social { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: 11px; color: var(--muted); border: 1px solid var(--line); transition: color .25s, border-color .25s, transform .25s; }
.foot-social:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.foot-ph { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 11px; color: var(--muted); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .25s, border-color .25s, transform .25s; }
.foot-ph:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.foot-ph svg { flex: none; }
.foot-pys { display: inline-flex; align-items: center; height: 42px; border-radius: 11px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.foot-pys img { height: 42px; width: auto; display: block; }
.foot-pys:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.foot-ph-up { display: inline-flex; align-items: center; gap: 3px; padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 15px; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .25s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ [data-reveal] { opacity: 1; transform: none; transition: none; } .lock-pill .dot { animation: none; } }

/* ---------- nav mobile ---------- */
@media (max-width: 920px){
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--bg-1); border-left: 1px solid var(--line); flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; transform: translateX(100%); transition: transform .4s var(--ease); }
  .nav.open .nav-links { transform: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; z-index: 60; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s; }
  .nav.open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2){ opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   RESOURCE CENTER (/resources) — inherits site tokens + chrome
   ============================================================ */
.rc-main { max-width: var(--maxw); margin: 0 auto; padding: 116px var(--gut) 40px; }
.rc-hero { text-align: center; max-width: 720px; margin: 0 auto 8px; }
.rc-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.rc-hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-hero .lead { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); margin-top: 16px; line-height: 1.6; }

/* search (visual now; wired to Confluence search in phase 2) */
.rc-search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 26px auto 0; padding: 0 16px; height: 52px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.rc-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.rc-search svg { flex: none; color: var(--faint); }
.rc-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-family: var(--font-body); font-size: 15px; }
.rc-search input::placeholder { color: var(--faint); }

/* category grid */
.rc-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; margin-top: 52px; }
.rc-cat { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; background: linear-gradient(180deg, var(--bg-1), var(--bg)); border: 1px solid var(--line); text-decoration: none; transition: transform .28s var(--ease), border-color .28s, box-shadow .28s; }
.rc-cat:hover { transform: translateY(-4px); border-color: color-mix(in oklch, var(--co) 55%, var(--line)); box-shadow: 0 18px 46px -22px var(--co); }
.rc-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--co); background: color-mix(in oklch, var(--co) 16%, transparent); border: 1px solid color-mix(in oklch, var(--co) 30%, transparent); }
.rc-cat h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text); letter-spacing: -0.01em; }
.rc-cat p { color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.rc-cat .rc-meta { font-size: 13px; font-weight: 600; color: var(--co); display: inline-flex; align-items: center; gap: 6px; }
.rc-cat .rc-meta .arr { transition: transform .28s var(--ease); }
.rc-cat:hover .rc-meta .arr { transform: translateX(4px); }

/* contact strip */
.rc-help { margin-top: 44px; padding: 30px; border-radius: 16px; text-align: center; background: var(--accent-dim); border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent); }
.rc-help h4 { font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.rc-help p { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }

/* breadcrumb */
.rc-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.rc-crumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.rc-crumb a:hover { color: var(--accent); }
.rc-crumb .sep { color: var(--faint); }
.rc-crumb .cur { color: var(--text); }

/* category + article two-column layout */
.rc-layout { display: grid; grid-template-columns: 232px 1fr; gap: 40px; align-items: start; }
.rc-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.rc-side .rc-side-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 0 12px 8px; }
.rc-side a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.rc-side a:hover { background: var(--bg-2); color: var(--text); }
.rc-side a.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.rc-side a .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--co, var(--faint)); }

.rc-cathead h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.rc-cathead p { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 60ch; line-height: 1.6; }

/* article rows in a category */
.rc-artlist { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.rc-art { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line); text-decoration: none; transition: transform .22s var(--ease), border-color .22s; }
.rc-art:hover { transform: translateX(3px); border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); }
.rc-art .rc-art-ico { color: var(--faint); flex: none; }
.rc-art b { color: var(--text); font-size: 15px; font-weight: 600; }
.rc-art span { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.rc-art .arr { margin-left: auto; color: var(--faint); flex: none; }
.rc-empty { padding: 28px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; text-align: center; }

/* article prose — Confluence body maps into these */
.rc-article { max-width: 760px; }
.rc-article h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.rc-article .rc-updated { color: var(--faint); font-size: 13px; margin-top: 12px; }
.rc-prose { margin-top: 28px; color: var(--text); font-size: 16px; line-height: 1.72; }
.rc-prose > * + * { margin-top: 18px; }
.rc-prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; margin-top: 40px; padding-top: 4px; }
.rc-prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-top: 30px; }
.rc-prose p, .rc-prose li { color: #cdd5e3; }
.rc-prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in oklch, var(--accent) 40%, transparent); }
.rc-prose ul, .rc-prose ol { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.rc-prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.rc-prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; }
.rc-prose pre code { background: none; border: 0; padding: 0; }
.rc-prose img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.rc-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rc-prose th, .rc-prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); }
.rc-prose th { background: var(--bg-2); font-weight: 600; }
/* Confluence info/note panels → on-brand callout */
.rc-prose .rc-panel { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--bg-1); color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {
  .rc-layout { grid-template-columns: 1fr; gap: 24px; }
  .rc-side { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .rc-side .rc-side-h { display: none; }
  .rc-side a { white-space: nowrap; }
}

/* Resource Center — inline emoji icons (real SVGs replacing Confluence emoji) */
.rc-prose .rc-emoji { display: inline-flex; align-items: center; justify-content: center; vertical-align: -0.17em; margin-right: 2px; }
.rc-prose .rc-emoji svg { width: 1.2em; height: 1.2em; color: var(--accent); }
/* larger, standalone when it's the sole content of a table cell (OS picker / hardware rows) */
.rc-prose td > .rc-emoji:only-child svg, .rc-prose th > .rc-emoji:only-child svg { width: 1.9em; height: 1.9em; }

/* Resource Center — FAQ accordions (question headings become dropdowns) */
.rc-prose .rc-acc { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); margin-top: 12px; overflow: hidden; transition: border-color .2s; }
.rc-prose .rc-acc[open] { border-color: color-mix(in oklch, var(--accent) 40%, var(--line)); }
.rc-prose .rc-acc summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--text); transition: color .2s; }
.rc-prose .rc-acc summary::-webkit-details-marker { display: none; }
.rc-prose .rc-acc summary::before { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(-45deg); transition: transform .25s var(--ease), border-color .2s; }
.rc-prose .rc-acc[open] summary::before { transform: rotate(45deg); border-color: var(--accent); }
.rc-prose .rc-acc summary:hover { color: var(--accent); }
.rc-prose .rc-acc[open] summary { color: var(--accent); }
.rc-prose .rc-acc-body { padding: 0 18px 18px 39px; }
.rc-prose .rc-acc-body > :first-child { margin-top: 2px; }

/* Resource Center — search results dropdown */
.rc-search-wrap { position: relative; max-width: 520px; margin: 26px auto 0; }
.rc-search-wrap .rc-search { margin: 0; }
.rc-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0,0,0,.7); }
.rc-results a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); text-decoration: none; transition: background .15s; }
.rc-results a:last-child { border-bottom: 0; }
.rc-results a:hover { background: var(--bg-1); }
.rc-results a b { color: var(--text); font-size: 14px; font-weight: 600; }
.rc-results a span { color: var(--muted); font-size: 12px; }
.rc-noresult { padding: 14px 16px; color: var(--muted); font-size: 13px; }

/* brand logos keep their own colour (Apple neutral-white, Windows its blue) — not the accent */
.rc-prose .rc-emoji.rc-brand svg { color: #eaeef5; }
