/* ProjectPBX by 4voice - base: reset, type, layout, buttons, reveal. v1's look. Tokens live in tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 6px; }
html.dialog-open, html.menu-open { overflow: hidden; }
dialog { color: inherit; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(1320px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(860px, 100% - 32px); margin-inline: auto; }
section { position: relative; scroll-margin-top: 80px; }
.sec { padding: 120px 0; }
.sec-tight { padding: 80px 0; }
.sec--flush-top { padding-top: 40px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* -- type -- */
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.025em; margin: 0; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
h4 { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); line-height: 1.6; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
code, kbd { font-family: var(--mono); font-size: .9em; }
kbd { padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text-2); font-size: 12px; font-weight: 500; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.grad {
  background: linear-gradient(100deg, #8fb0ff 0%, var(--blue) 35%, var(--gold) 75%, #ffd77a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .grad { background-image: linear-gradient(100deg, #1f49c2 0%, #2f5fe0 40%, #b86f00 90%); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .grad { background-image: linear-gradient(100deg, #1f49c2 0%, #2f5fe0 40%, #b86f00 90%); } }
.sec-head { max-width: 880px; margin: 0 auto 64px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.sec-head.left { margin-inline: 0; text-align: left; justify-items: start; }
.sec-head .more { margin-top: 4px; }
.prose { display: grid; gap: 16px; color: var(--text-2); max-width: 70ch; }
.prose h2, .prose h3 { color: var(--text); margin-top: 10px; }
.prose a, .link { color: var(--blue-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .link:hover { text-decoration-thickness: 2px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--blue-text); }
.link-more svg { width: 16px; height: 16px; transition: transform .2s; }
.link-more:hover svg { transform: translateX(3px); }

/* -- icons -- */
.i { width: 18px; height: 18px; }
.i--sm { width: 14px; height: 14px; }
.i--lg { width: 24px; height: 24px; }

/* -- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 14px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(180deg, var(--btn-1), var(--btn-2));
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-gold { background: linear-gradient(180deg, #ffcb52, var(--gold-2)); color: #1a1200; box-shadow: 0 10px 30px -8px var(--glow-gold); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* -- reveal on scroll: content is visible by default; only hidden while core.js has armed it (html.rv-on), with a CSS failsafe -- */
.rv { transition: opacity .9s cubic-bezier(.2, .7, .1, 1), transform .9s cubic-bezier(.2, .7, .1, 1); }
.rv-on .rv:not(.in) { opacity: 0; transform: translateY(26px); animation: rvSafe .01s 3.5s forwards; }
.rv-on .rv.in { opacity: 1; transform: none; }
@keyframes rvSafe { to { opacity: 1; transform: none; } }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }

@media (max-width: 760px) {
  .sec { padding: 84px 0; }
  .sec-tight { padding: 60px 0; }
  .sec-head { margin-bottom: 44px; }
  .hide-sm { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv-on .rv:not(.in) { opacity: 1; transform: none; animation: none; }
}
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html[data-motion="reduced"] .rv-on .rv:not(.in) { opacity: 1; transform: none; animation: none; }
