/* ═══════════════════════════════════════════════════════
   WISER DIGITS — DESIGN SYSTEM
   Shared tokens, components, and responsive rules
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Brand */
  --primary: #134196;
  --pdark: #0d2d6b;
  --plight: #1e5bc6;
  --secondary: #fbc903;
  --slight: #fcd535;

  /* Surfaces */
  --surface-0: #ffffff;
  --surface-1: #f7f8fc;
  --surface-2: #f0f2fa;
  --surface-3: #e8ecf4;

  /* Legacy aliases (keep for backward compat) */
  --white: var(--surface-0);
  --offwhite: var(--surface-1);
  --navbg: #1e2340;
  --g200: #dde0ee;
  --g500: #7a83a8;
  --g800: #1e2340;

  /* Text */
  --text: #0f1428;
  --text-secondary: #7a83a8;
  --text-inverse: #ffffff;

  /* Header */
  --header-bg: var(--surface-2);
  --header-text: #0d2d6b;
  --header-text-muted: #134196;
  --header-border: rgba(19, 65, 150, .18);

  /* Footer */
  --footer-bg: #1e2340;

  /* Feedback */
  --success: #16a34a;
  --error: #dc2626;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 28px rgba(19, 65, 150, .12);
  --shadow-lg: 0 20px 50px rgba(19, 65, 150, .15);

  /* Transitions */
  --transition-fast: .2s ease;
  --transition-med: .35s ease;
  --transition-slow: .5s ease-out;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--surface-0);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--secondary);
  color: var(--pdark);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
}

/* ── KEYFRAMES ── */
@keyframes navDown {
  from {
    transform: translateY(-100%);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-11px)
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% center
  }

  100% {
    background-position: -200% center
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(-8px)
  }
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1
  }

  75% {
    transform: translateY(13px);
    opacity: 0
  }

  100% {
    transform: translateY(0);
    opacity: 0
  }
}

@keyframes particleF {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: .32
  }

  100% {
    transform: translate(var(--px, 20px), var(--py, -20px)) scale(1.6);
    opacity: .04
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(251, 201, 3, .35)
  }

  50% {
    box-shadow: 0 0 0 14px rgba(251, 201, 3, 0)
  }
}

@keyframes barRise {
  from {
    transform: scaleY(0)
  }

  to {
    transform: scaleY(1)
  }
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* ── REDUCED MOTION ── */
@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .rv,
  .rl,
  .rr {
    opacity: 1;
    transform: none;
  }
}

/* ── SCROLL REVEAL ── */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.rv.in {
  opacity: 1;
  transform: translateY(0);
}

.rl {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.rl.in {
  opacity: 1;
  transform: translateX(0);
}

.rr {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.rr.in {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════ */
#nav,
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  height: 70px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--header-border);
  animation: navDown .6s ease both;
  transition: background .3s;
}

nav.sticky-nav {
  position: sticky;
}

.nlogo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.nlogo img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.nlogo:hover img {
  transform: scale(1.05);
}

.nlogo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.nlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nlinks a {
  color: var(--header-text);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .02em;
  transition: color var(--transition-fast);
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nlinks a:hover {
  color: var(--primary);
}

.nlinks a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.nlinks a[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

/* Nav submenu icons */
.nsi {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 260px;
  background: var(--surface-0);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
  border: 1px solid var(--header-border);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: .85rem;
  color: var(--header-text);
  white-space: nowrap;
  border-radius: 0;
  transition: background .2s, color .2s;
}

.nav-submenu a:hover {
  background: rgba(19, 65, 150, .06);
  color: var(--primary);
}

.nav-submenu a:hover .nsi {
  stroke: var(--primary);
}

.nav-submenu a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.nav-submenu .nav-coming-soon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: .85rem;
  color: var(--g500);
  cursor: default;
  white-space: nowrap;
}

.nav-coming-soon .coming-badge {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: linear-gradient(135deg, var(--secondary), #f5a623);
  color: var(--pdark);
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1;
  margin-left: auto;
}

.mmenu .nsi {
  width: 18px;
  height: 18px;
}

.mmenu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.mmenu .mmenu-coming-soon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 32px;
  font-size: .95rem;
  color: var(--g500);
  cursor: default;
}

.mmenu-coming-soon .coming-badge {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: linear-gradient(135deg, var(--secondary), #f5a623);
  color: var(--pdark);
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1;
  margin-left: auto;
}

/* Login / CTA */
.nlogin {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--header-text) !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--header-border) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  transition: all var(--transition-fast) !important;
}

.nlogin:hover {
  border-color: var(--primary) !important;
  color: var(--pdark) !important;
  background: rgba(19, 65, 150, .06) !important;
}

.nlogin:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nlogin svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.ncta {
  display: inline-block;
  background: var(--secondary);
  color: var(--pdark) !important;
  font-weight: 700 !important;
  padding: 14px 38px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast) !important;
}

.ncta:hover {
  background: var(--slight) !important;
  transform: translateY(-2px);
}

.ncta:focus-visible {
  outline: 2px solid var(--pdark);
  outline-offset: 2px;
}

/* Hamburger */
.hbg {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hbg span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--header-text);
  border-radius: 2px;
  transition: all .3s;
}

.hbg.op span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hbg.op span:nth-child(2) {
  opacity: 0;
}

.hbg.op span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mmenu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--header-bg);
  padding: 20px 5%;
  border-bottom: 3px solid var(--secondary);
  flex-direction: column;
  gap: 4px;
}

.mmenu.op {
  display: flex;
}

.mmenu a {
  color: var(--header-text);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--header-border);
}

.mmenu a:last-child {
  border: none;
}

.mmenu a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mmenu-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--g500);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 4px;
  padding: 0;
}

.mmenu-sub {
  padding-left: 20px !important;
  font-size: .92rem !important;
}

.mlogin {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--header-text) !important;
}

.mlogin svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mcta {
  background: var(--secondary) !important;
  color: var(--pdark) !important;
  font-weight: 700 !important;
  text-align: center;
  padding: 14px !important;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn-gold {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .97rem;
  color: var(--pdark);
  background: linear-gradient(90deg, var(--secondary), var(--slight), var(--secondary));
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  /* box-shadow: 0 4px 22px rgba(251, 201, 3, .4); */
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(251, 201, 3, .55);
  animation: none;
  background: var(--slight);
}

.btn-gold:focus-visible {
  outline: 2px solid var(--pdark);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .97rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .35);
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

.btn-outline:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-outline-dark {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .97rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .35);
  transition: all var(--transition-fast);
}

.btn-outline-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

/* ══════════════════════════════════════
   SECTION BASE
   ══════════════════════════════════════ */
section {
  padding: 86px 5%;
}

.si {
  max-width: 1200px;
  margin: 0 auto;
}

.stag {
  display: inline-block;
  background: rgba(19, 65, 150, .09);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 13px;
  border: 1px solid rgba(19, 65, 150, .14);
}

.stitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.1vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--pdark);
  margin-bottom: 13px;
}

.stitle span {
  color: var(--primary);
}

.ssub {
  color: var(--g500);
  font-size: .95rem;
  line-height: 1.72;
  max-width: 560px;
}

.ctr {
  text-align: center;
}

.ctr .ssub {
  margin: 0 auto;
}

/* ══════════════════════════════════════
   ROLE PAGE COMPONENTS
   ══════════════════════════════════════ */

/* Hero */
.page-hero {
  background: linear-gradient(135deg, var(--pdark), var(--primary));
  padding: 100px 5% 70px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero .hero-glow {
  position: absolute;
  right: -100px;
  top: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 201, 3, .12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 12px;
  animation: fadeUp .6s .1s both;
}

.page-hero h1 span {
  color: var(--secondary);
}

.page-hero p {
  opacity: .9;
  font-size: 1.05rem;
  animation: fadeUp .6s .2s both;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
  animation: fadeUp .5s both;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .65);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.breadcrumb a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, .5);
  outline-offset: 2px;
}

.breadcrumb span.sep {
  color: rgba(255, 255, 255, .3);
}

/* Intro */
.page-main {
  padding: 60px 5% 80px;
  max-width: 960px;
  margin: 0 auto;
}

.role-intro {
  text-align: center;
  margin-bottom: 56px;
}

.role-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--pdark);
  margin-bottom: 12px;
}

.role-intro p {
  font-size: 1.05rem;
  color: var(--g500);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.72;
}

/* Feature grid */
.role-features {
  margin-bottom: 56px;
}

.role-features h3 {
  font-size: 1.15rem;
  color: var(--pdark);
  margin-bottom: 24px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-item {
  background: var(--surface-1);
  border: 1px solid var(--g200);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.feature-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--plight));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-med);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(19, 65, 150, .2);
  background: var(--surface-0);
}

.feature-item:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--plight));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(19, 65, 150, .22);
  transition: transform var(--transition-med);
  color: #fff;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item:hover .feature-icon {
  transform: scale(1.08) rotate(-3deg);
}

.feature-item h4 {
  font-size: .95rem;
  color: var(--pdark);
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-item p {
  font-size: .88rem;
  line-height: 1.65;
  margin: 0;
  color: var(--text-secondary);
}

/* Onboarding timeline */
.onboarding-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--g200);
}

.onboarding-section>h3 {
  font-size: 1.15rem;
  color: var(--pdark);
  margin-bottom: 28px;
  font-weight: 700;
  text-align: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  z-index: 0;
}

.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 4px solid var(--surface-1);
  box-shadow: 0 6px 20px rgba(19, 65, 150, .25);
  transition: all var(--transition-med);
}

.timeline-step:hover .timeline-num {
  background: var(--secondary);
  color: var(--pdark);
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(251, 201, 3, .35);
}

.timeline-step h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--pdark);
  margin-bottom: 6px;
}

.timeline-step p {
  font-size: .82rem;
  color: var(--g500);
  line-height: 1.6;
}

/* Role CTA */
.role-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--pdark), var(--primary) 55%, #1a5cc8);
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}

.role-cta::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 201, 3, .1) 0%, transparent 65%);
  pointer-events: none;
}

.role-cta h3 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.role-cta p {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  font-size: .95rem;
}

.role-cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
footer {
  background: var(--footer-bg);
  /* padding: 58px 5% 26px; */
  padding: 26px 5% 26px;
  color: rgba(255, 255, 255, .52);
}

.fgridf {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 42px;
  margin-bottom: 42px;
}

.fbrand .flogo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

.fbrand .flogo-box img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

.fbrand p {
  font-size: .82rem;
  line-height: 1.7;
  max-width: 275px;
}

.fsoc {
  display: flex;
  gap: 10px;
  /* margin-top: 16px; */
}

.fsoc a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .55);
  font-size: .82rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.fsoc a:hover {
  background: var(--secondary);
  color: var(--pdark);
}

.fsoc a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.fcol h5 {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.fcol a {
  display: block;
  color: rgba(255, 255, 255, .5);
  font-size: .81rem;
  margin-bottom: 9px;
  transition: color var(--transition-fast);
}

.fcol a:hover {
  color: var(--secondary);
}

.fcol a:focus-visible {
  outline: 1px solid var(--secondary);
  outline-offset: 2px;
}

.fbot {
  /* border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fbot p {
  font-size: .77rem;
}

.yl {
  color: var(--secondary);
}

/* ══════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════ */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(19, 65, 150, .35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s, background var(--transition-fast), box-shadow var(--transition-fast);
  pointer-events: none;
}

#scrollTop.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#scrollTop:hover {
  background: var(--secondary);
  color: var(--pdark);
  box-shadow: 0 8px 32px rgba(251, 201, 3, .45);
  transform: translateY(-3px);
}

#scrollTop:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

#scrollTop svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══════════════════════════════════════
   ROLE PAGE — HERO GRID (image + text)
   ══════════════════════════════════════ */
.role-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.role-hero-text {
  position: relative;
  z-index: 2;
}

.role-hero-visual {
  position: relative;
  z-index: 1;
  animation: fadeUp .8s .3s both;
}

.role-hero-visual .mockup-wrap {
  animation: float 7s 1s ease-in-out infinite;
}

.role-hero-visual .mockup-frame {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

.role-hero-visual .mockup-bar {
  background: var(--primary);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-hero-visual .mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.role-hero-visual .mockup-dot.r {
  background: #ff5f57;
}

.role-hero-visual .mockup-dot.y {
  background: #ffbd2e;
}

.role-hero-visual .mockup-dot.g {
  background: #28c940;
}

.role-hero-visual .mockup-frame img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* ══════════════════════════════════════
   ROLE PAGE — STATS BAND
   ══════════════════════════════════════ */
.role-stats {
  background: linear-gradient(135deg, var(--pdark), var(--primary) 55%, #1a5cc8);
  padding: 64px 5%;
  position: relative;
  overflow: hidden;
  margin: 56px 0;
  border-radius: var(--radius-lg);
}

.role-stats::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -50%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 201, 3, .16) 0%, transparent 70%);
  pointer-events: none;
}

.role-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.role-stat {
  text-align: center;
}

.role-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
}

.role-stat-suf {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
}

.role-stat-label {
  color: rgba(255, 255, 255, .65);
  font-size: .82rem;
  margin-top: 6px;
  line-height: 1.45;
}

/* ══════════════════════════════════════
   ROLE PAGE — TESTIMONIAL QUOTE
   ══════════════════════════════════════ */
.role-testimonial {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin: 56px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--g200);
}

.role-testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.role-testimonial .qt-mark {
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: .7;
  color: var(--secondary);
  opacity: .3;
  margin-bottom: 4px;
}

.role-testimonial blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pdark);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.role-testimonial cite {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
}

.role-testimonial .qt-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--plight));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.role-testimonial .qt-name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--pdark);
}

.role-testimonial .qt-role {
  font-size: .76rem;
  color: var(--g500);
}

/* ══════════════════════════════════════
   ROLE PAGE — FLOATING DECORATIVE SHAPES
   ══════════════════════════════════════ */
@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0) rotate(0deg)
  }

  50% {
    transform: translateY(-18px) rotate(6deg)
  }
}

@keyframes floatMed {

  0%,
  100% {
    transform: translateY(0) rotate(0deg)
  }

  50% {
    transform: translateY(-12px) rotate(-4deg)
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

@keyframes scalePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .12
  }

  50% {
    transform: scale(1.15);
    opacity: .2
  }
}

.deco-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco-circle {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 201, 3, .15), transparent 70%);
}

.deco-ring {
  border-radius: 50%;
  border: 2px solid rgba(19, 65, 150, .08);
}

.deco-cross {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 0h2v20H9zM0 9h20v2H0z' fill='%23134196' fill-opacity='.06'/%3E%3C/svg%3E") no-repeat;
}

.deco-dots {
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23134196' fill-opacity='.05'%3E%3Ccircle cx='4' cy='4' r='3'/%3E%3Ccircle cx='24' cy='4' r='3'/%3E%3Ccircle cx='44' cy='4' r='3'/%3E%3Ccircle cx='64' cy='4' r='3'/%3E%3Ccircle cx='4' cy='24' r='3'/%3E%3Ccircle cx='24' cy='24' r='3'/%3E%3Ccircle cx='44' cy='24' r='3'/%3E%3Ccircle cx='64' cy='24' r='3'/%3E%3Ccircle cx='4' cy='44' r='3'/%3E%3Ccircle cx='24' cy='44' r='3'/%3E%3Ccircle cx='44' cy='44' r='3'/%3E%3Ccircle cx='64' cy='44' r='3'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

/* Feature section decoration */
.role-features {
  position: relative;
}

.feature-section-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   ROLE PAGE — DASHBOARD PREVIEW SECTION
   ══════════════════════════════════════ */
.role-dashboard-preview {
  margin: 48px 0;
  text-align: center;
  position: relative;
}

.role-dashboard-preview .dash-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--g500);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.role-dashboard-preview .dash-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--g200);
  position: relative;
}

.role-dashboard-preview .dash-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.role-dashboard-preview .dash-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, .5) 100%);
  pointer-events: none;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media(max-width:1100px) {
  .fgridf {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .role-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .role-hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .role-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media(max-width:900px) {
  .fgridf {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline::before {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .role-testimonial {
    padding: 36px 24px;
  }
}

@media(max-width:768px) {

  #nav,
  nav.site-nav {
    padding: 0 18px;
    height: 64px;
  }

  .nlinks {
    display: none;
  }

  .hbg {
    display: flex;
  }

  .mmenu {
    top: 64px;
  }

  section {
    padding: 58px 18px;
  }

  .page-hero {
    padding: 88px 18px 56px;
  }

  .page-main {
    padding: 40px 18px 60px;
  }

  .fgridf {
    grid-template-columns: 1fr;
  }

  .fbot {
    flex-direction: column;
    text-align: center;
  }

  .role-cta {
    padding: 40px 20px;
    border-radius: var(--radius-md);
  }

  .role-cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .role-cta-btns a {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .role-stats {
    padding: 48px 18px;
    margin: 36px 0;
    border-radius: var(--radius-md);
  }

  .role-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .role-hero-visual .mockup-wrap {
    animation: none;
  }
}

@media(max-width:480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .role-stats-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .role-testimonial {
    padding: 28px 18px;
  }
}