/* rNexa landing v2 - azure light theme over the shared tokens: type, pills, nav, reveals */
:root {
  --az: #0169cc;
  --az-rgb: 1, 105, 204;
  --hi-rgb: 46, 144, 255;
  --ink: #0b0c0f;
  --ink-2: #555a66;
  --ink-3: #6f7480;
  --line: rgba(11, 12, 15, 0.08);
  --line-2: rgba(11, 12, 15, 0.14);
  --surface: #f5f7fa;
  --track: #edf0f4;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --chip: #ffffff;
  --h1-fade: #3a4a66;
  --lift: 0 1px 2px rgba(11, 12, 15, 0.04), 0 20px 40px -32px rgba(11, 12, 15, 0.2);
  --fly: cubic-bezier(0.2, 0.7, 0.2, 1);
}
html[data-theme="dark"] {
  --az: #4aa5ff;
  --az-rgb: 47, 147, 255;
  --hi-rgb: 96, 176, 255;
  --ink: #f4f5f7;
  --ink-2: #a3a8b3;
  --ink-3: #7f848e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --surface: #101114;
  --track: #1a1c21;
  --card: #0d0e11;
  --glass: rgba(255, 255, 255, 0.045);
  --chip: #101216;
  --h1-fade: #8fa7cc;
  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px -32px rgba(0, 0, 0, 0.8);
}
body { overflow-x: hidden; }

/* Type: one family, set tight and calm */
.kicker { margin: 0; font-size: 14px; font-weight: 500; color: var(--az); }
.hero h1, .section h2, .closer h2 { font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.hero h1 { letter-spacing: -0.045em; }
.section { max-width: 1120px; margin: 0 auto; padding: 144px 24px 0; text-align: center; }
.section h2, .closer h2 { margin: 12px 0 0; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; }
.lede, .hero-sub { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: var(--ink-2); text-wrap: balance; }
.lede { max-width: 560px; margin: 16px auto 0; }

/* Pills */
.btn { height: 46px; padding: 0 22px; font-family: inherit; font-size: 15px; font-weight: 500; border: 0; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), filter 0.2s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid rgba(var(--hi-rgb), 0.9); outline-offset: 3px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
/* The one coloured control: azure lit from above, not a flat slab. */
.btn-accent {
  background: linear-gradient(180deg, #2a8dff, #0169cc 78%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 0 0 1px rgba(1, 60, 130, 0.35), 0 8px 18px -12px rgba(var(--az-rgb), 0.5);
}
.btn-accent:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(1, 60, 130, 0.35), 0 10px 22px -12px rgba(var(--az-rgb), 0.62); }
.btn-glass, .btn-line { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-glass:hover, .btn-line:hover { background: var(--glass); box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-light { background: var(--pill-bg); color: var(--pill-ink); }
.btn-light:hover { background: var(--pill-hover); }

/* Nav: clear over the hero, solid once the hero has gone */
.nav { color: var(--ink); }
img.mark { filter: brightness(0) invert(1); }
html:not([data-theme="dark"]) img.mark { filter: brightness(0); }
.nav-links { opacity: 1; color: var(--ink-2); }
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-signin:hover { opacity: 1; color: var(--ink); }

/* Surfaces change theme together, not one after another */
.tile, .demo, .win, .helpers li, .flow-side li, .price, .rq-card, .closer, .pay-btn { transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease); }

/* Reveal: content rises once as it comes into view */
.rise { animation: rise 0.9s var(--fly) both; animation-delay: calc(var(--i, 0) * 90ms); }
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--fly), transform 0.8s var(--fly); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .section { padding-top: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
