/* ═══════════════════════════════════════════════════════════════
   RADIANT OPTIMIZER — SITE SHELL
   Shared chrome extracted from the homepage design system.
   Load on every public page (not admin) after fonts, before
   page-specific CSS. Pairs with css/nav-unified.css.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ro-blue: #1261ff;
  --ro-blue-deep: #073dc6;
  --ro-blue-dark: #061946;
  --ro-blue-ink: #07112a;
  --ro-ice: #dbe9ff;
  --ro-sky: #72a8ff;
  --ro-white: #ffffff;
  --ro-paper: #f6f8fe;
  --ro-paper-blue: #eaf1ff;
  --ro-ink: #0a1531;
  --ro-copy: #4d5b73;
  --ro-line: rgba(10, 34, 83, 0.12);
  --ro-dark-line: rgba(255, 255, 255, 0.13);
  --ro-display: "Plus Jakarta Sans", "Sora", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --ro-body: "Inter", "Manrope", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --ro-ui: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --ro-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ro-blue-lite: #6ba3ff;
  --ro-shine-hi: #f0f6ff;
  --ro-radius-sm: 14px;
  --ro-radius: 24px;
  --ro-radius-lg: 36px;
  --ro-radius-xl: 52px;
  --ro-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ro-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-height: 90px;
  --font-primary: var(--ro-ui);
  --font-body: var(--ro-body);
  --main: var(--ro-blue);
  --accent-bright: var(--ro-sky);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  background: var(--ro-paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ro-ink);
  background: var(--ro-paper);
  font-family: var(--ro-body);
  font-size: 16.5px;
  font-weight: 450;
  line-height: 1.7;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::selection, ::selection { color: #fff; background: var(--ro-blue); }
body, button, input, textarea, select { font-family: var(--ro-body); }
h1, h2, h3, h4, p, blockquote { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button, summary { -webkit-tap-highlight-color: transparent; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ro-sky);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--ro-blue);
  transform: translateY(-150%);
  transition: transform .2s ease;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.ro-shell {
  position: relative;
  width: min(1720px, calc(100% - 32px));
  margin-inline: auto;
}

.ro-section { position: relative; padding: clamp(72px, 8vw, 120px) 0; }

.ro-scroll-progress,
#progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  height: 3px;
  pointer-events: none;
  width: auto;
  background: transparent;
}
.ro-scroll-progress span,
#progress {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #fff, #8db9ff, var(--ro-blue));
  box-shadow: 0 0 14px rgba(114, 168, 255, .55);
}
#progress { width: 0; transition: width 0.08s linear; }

/* Brand lockup */
.ro-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.ro-brand-lockup { gap: 0; }
.ro-brand-lockup-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.nav-container .ro-brand-lockup-img {
  filter: brightness(1.28) contrast(1.14) saturate(1.35);
}
.footer .ro-brand-lockup-img {
  height: 42px;
  filter: none;
}

/* Nav height / scrolled chrome (works with nav-unified) */
.nav-container {
  height: var(--nav-height);
  transition: height .4s var(--ro-ease), background .4s ease !important;
}
.nav-container::before {
  opacity: 1 !important;
  background: linear-gradient(180deg, rgba(5, 16, 45, .82), rgba(5, 16, 45, .2) 72%, transparent) !important;
}
.nav-container.rnav-scrolled {
  height: 76px;
  background: rgba(5, 16, 45, .66);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-container .nav,
nav.nav {
  max-width: 1540px !important;
  height: 100%;
  padding: 14px 28px !important;
  gap: 22px !important;
}
.nav-container .nav-tab-container,
.nav-container .tab-container.nav-tab-container {
  padding: 5px !important;
  border-color: rgba(255,255,255,.11) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.065) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 40px rgba(0,0,0,.16) !important;
}
.nav-container .nav-tab {
  padding: 9px 13px !important;
  border-radius: 13px !important;
  color: rgba(255,255,255,.62) !important;
  font-family: var(--ro-body) !important;
  font-size: .73rem !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
}
.nav-container .nav-tab:hover { color: #fff !important; background: rgba(255,255,255,.075) !important; }
.nav-container .nav-tab.active {
  color: var(--ro-ink) !important;
  background: linear-gradient(180deg, #fff, #e8f0ff) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.2), inset 0 1px 0 #fff !important;
  font-weight: 700 !important;
}
.nav-container .nav-auth-btn,
.nav-container .nav-dashboard-btn {
  min-height: 42px;
  padding: 11px 16px !important;
  border-radius: 14px !important;
  font-family: var(--ro-body) !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
}
.nav-container .nav-login-btn {
  border-color: rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.055) !important;
  color: #fff !important;
}
.nav-container .nav-signup-btn,
.nav-container .nav-dashboard-btn {
  color: var(--ro-ink) !important;
  border-color: rgba(255,255,255,.72) !important;
  background: linear-gradient(180deg, #fff, #e7efff) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.18) !important;
}

/* Typography helpers */
.ro-overline,
.ro-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ro-blue);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}
.ro-kicker {
  gap: 10px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(18, 97, 255, 0.08);
  border: 1px solid rgba(18, 97, 255, 0.16);
}
.ro-kicker-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #85b2ff;
  box-shadow: 0 0 0 5px rgba(133,178,255,.11);
}

h1 em, h2 em {
  font-style: normal;
  font-weight: 800;
  color: #5b94ff;
}

/* Buttons */
.ro-button {
  position: relative;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-size: .91rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .32s var(--ro-ease), box-shadow .32s ease, background .32s ease, border-color .32s ease;
  cursor: pointer;
  text-decoration: none;
}
.ro-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.26) 47%, transparent 73%);
  transform: translateX(-130%);
  transition: transform .7s var(--ro-ease);
}
.ro-button > * { position: relative; z-index: 1; }
.ro-button svg { width: 19px; height: 19px; transition: transform .3s var(--ro-ease); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ro-button:hover { transform: translateY(-3px); }
.ro-button:hover::before { transform: translateX(130%); }
.ro-button:hover svg { transform: translateX(3px); }
.ro-button:active { transform: translateY(-1px) scale(.985); }
.ro-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.ro-button:disabled:hover { transform: none; }
.ro-button:disabled::before { display: none; }

.ro-button-primary {
  color: #fff;
  background: linear-gradient(145deg, #2974ff, #0b4ee7 65%, #073bbf);
  border-color: rgba(163,195,255,.42);
  box-shadow: 0 18px 42px rgba(0,55,190,.32), inset 0 1px 0 rgba(255,255,255,.28);
}
.ro-button-primary:hover { box-shadow: 0 22px 52px rgba(0,55,190,.42), inset 0 1px 0 rgba(255,255,255,.34); }

.ro-button-glass {
  color: var(--ro-ink);
  border-color: rgba(10,35,85,.13);
  background: rgba(255,255,255,.63);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 34px rgba(12,42,101,.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.ro-button-white { color: var(--ro-blue-deep); background: #fff; border-color: rgba(255,255,255,.7); box-shadow: 0 18px 42px rgba(0,31,120,.22), inset 0 -2px 0 rgba(9,69,197,.08); }
.ro-button-outline-light { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.ro-button-quiet { min-height: 48px; color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.055); }
.ro-button-full { width: 100%; }

/* Atmosphere layers — same as homepage hero */
.ro-hero-atmosphere,
.ro-page-hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ro-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .58;
}
.ro-ambient-one {
  top: -22%;
  right: -9%;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(41,116,255,.32), rgba(41,116,255,.05) 50%, transparent 70%);
  animation: roBreathe 9s ease-in-out infinite;
}
.ro-ambient-two {
  bottom: -40%;
  left: -22%;
  width: 54vw;
  height: 54vw;
  background: radial-gradient(circle, rgba(90,143,255,.16), transparent 68%);
  animation: roBreathe 12s ease-in-out -3s infinite reverse;
}
.ro-logo-road {
  position: absolute;
  width: 1150px;
  height: 420px;
  border: 1px solid rgba(185,211,255,.15);
  border-radius: 210px;
  transform: rotate(-17deg);
}
.ro-logo-road::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: inherit;
}
.ro-logo-road-a { top: -230px; left: -290px; }
.ro-logo-road-b { right: -530px; bottom: -230px; transform: rotate(-17deg) scale(.8); }
.ro-grain {
  position: absolute;
  inset: 0;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

@keyframes roBreathe {
  0%, 100% { transform: scale(1); opacity: .58; }
  50% { transform: scale(1.06); opacity: .72; }
}
@keyframes roPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(133,178,255,.11); }
  50% { box-shadow: 0 0 0 9px rgba(133,178,255,.04); }
}

/* Page hero — identical paint to homepage .ro-hero */
.ro-page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 56px) 0 88px;
  color: #fff;
  background:
    radial-gradient(circle at 70% 38%, rgba(31,105,255,.24), transparent 34%),
    linear-gradient(145deg, #07132e 0%, #071c4d 52%, #061a45 100%);
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.ro-page-hero .ro-shell { position: relative; z-index: 2; }
.ro-page-hero .ro-kicker {
  margin: 0 auto 22px;
  color: rgba(219, 233, 255, .72);
  letter-spacing: .15em;
  background: transparent;
  border: 0;
  padding: 0;
}
.ro-page-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--ro-display);
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}
.ro-page-hero h1 em {
  font-style: normal;
  font-weight: 800;
  color: #7eb0ff;
}
.ro-page-hero > .ro-shell > p,
.ro-page-hero .ro-page-lede {
  max-width: 560px;
  margin: 22px auto 0;
  color: rgba(232, 240, 255, .65);
  font-size: clamp(1rem, 1.23vw, 1.15rem);
  line-height: 1.8;
}

/* Soft fade into paper content (matches home section flow) */
.ro-page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--ro-paper));
  pointer-events: none;
  z-index: 1;
}


/* Footer (home match) */
.footer {
  margin: 0;
  padding: 78px 0 0;
  color: #fff;
  background: #061126;
  border: 0;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 70px;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 70px;
}
.ro-footer-brand p {
  max-width: 320px;
  margin: 24px 0 0;
  color: rgba(224, 235, 255, .4);
  font-size: .78rem;
  line-height: 1.7;
}
.footer .nav-title {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .72);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-family: var(--ro-ui);
}
.footer .nav-links { display: flex; flex-direction: column; gap: 12px; }
.footer .nav-link {
  width: fit-content;
  color: rgba(224, 235, 255, .4);
  font-size: .72rem;
  transition: color .25s, transform .25s;
  font-family: var(--ro-body);
}
.footer .nav-link:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 36px;
}
.footer .copyright {
  max-width: 900px;
  margin: 0;
  color: rgba(224, 235, 255, .27);
  font-size: .59rem;
  line-height: 1.7;
}
.bottom-content > span {
  color: rgba(224, 235, 255, .32);
  font-size: .58rem;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  :root { --nav-height: 78px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 48px 26px; }
  .ro-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ro-shell, .footer-content, .bottom-content { width: min(100% - 28px, 680px); }
  .footer-content { grid-template-columns: 1fr; }
  .ro-footer-brand { grid-column: auto; }
  .bottom-content { flex-direction: column; align-items: flex-start; }
  .nav-container .nav { padding-inline: 14px !important; }
  .ro-brand-lockup-img { height: 40px; }
}
