/* ============================================================
   AshwiniSysTech — Sovereign Cyber SaaS Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* Shared tokens (non-theme) */
:root {
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw:      1200px;
  --danger:    #ff5d6c;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

/* Dark theme — default when light is not active */
html:not([data-theme="light"]),
[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #030712;
  --bg-1:      #080d1c;
  --bg-2:      #111827;
  --bg-3:      #1f2937;
  --panel:     #111827;
  --card:      rgba(255,255,255,0.025);
  --card-2:    rgba(255,255,255,0.04);
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);

  --text:      #F9FAFB;
  --text-soft: #E5E7EB;
  --muted:     #9CA3AF;
  --faint:     #6B7280;

  --saffron:   #F97316;
  --saffron-2: #F59E0B;
  --saffron-dim: rgba(249,115,22,0.12);
  --emerald:   #10B981;
  --emerald-2: #059669;
  --emerald-dim: rgba(16,185,129,0.12);
  --indigo:    #60A5FA;
  --indigo-dim: rgba(96,165,250,0.12);
  --violet:    #A78BFA;
  --violet-dim: rgba(167,139,250,0.12);
  --warn:      #FBBF24;
  --ok:        var(--emerald);

  --shadow:    0 24px 60px -28px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(249,115,22,0.22);
  --nav-bg: rgba(3,7,18,0.92);
  --nav-bg-scrolled: rgba(3,7,18,0.97);
  --overlay: rgba(3,5,12,0.72);
  --hover-surface: rgba(255,255,255,0.07);
  --grid-line: rgba(249,115,22,0.035);
  --chart-track: rgba(255,255,255,0.07);
  --ph-stripe: rgba(255,255,255,0.012);
  --on-accent: #fff;

  --grad-saffron: linear-gradient(135deg, #F97316 0%, #F59E0B 100%);
  --grad-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --grad-hero-text: linear-gradient(135deg, #F97316, #FBBF24, #10B981);
  --grad-hero: radial-gradient(1200px 600px at 70% -10%, rgba(249,115,22,0.14), transparent 60%),
               radial-gradient(900px 500px at 10% 10%, rgba(16,185,129,0.10), transparent 55%);
}

/* Light theme — ashwinisystech.com */
[data-theme="light"] {
  color-scheme: light;

  --bg:        #F8FAFC;
  --bg-1:      #F1F5F9;
  --bg-2:      #E2E8F0;
  --bg-3:      #CBD5E1;
  --panel:     #F1F5F9;
  --card:      #ffffff;
  --card-2:    #ffffff;
  --line:      rgba(0,0,0,0.08);
  --line-2:    rgba(0,0,0,0.12);

  --text:      #0F172A;
  --text-soft: #1E293B;
  --muted:     #475569;
  --faint:     #94A3B8;

  --saffron:   #EA580C;
  --saffron-2: #F59E0B;
  --saffron-dim: rgba(234,88,12,0.10);
  --emerald:   #059669;
  --emerald-2: #047857;
  --emerald-dim: rgba(5,150,105,0.10);
  --indigo:    #2563EB;
  --indigo-dim: rgba(37,99,235,0.10);
  --violet:    #7C3AED;
  --violet-dim: rgba(124,58,237,0.10);
  --warn:      #D97706;
  --ok:        var(--emerald);

  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-glow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(234,88,12,0.12);
  --nav-bg: rgba(248,250,252,0.95);
  --nav-bg-scrolled: rgba(248,250,252,0.98);
  --overlay: rgba(15,23,42,0.45);
  --hover-surface: rgba(0,0,0,0.04);
  --grid-line: rgba(234,88,12,0.06);
  --chart-track: rgba(0,0,0,0.08);
  --ph-stripe: rgba(0,0,0,0.03);
  --on-accent: #fff;

  --grad-saffron: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%);
  --grad-emerald: linear-gradient(135deg, #059669 0%, #047857 100%);
  --grad-hero-text: linear-gradient(135deg, #EA580C, #FBBF24, #059669);
  --grad-hero: radial-gradient(1200px 600px at 70% -10%, rgba(234,88,12,0.10), transparent 60%),
               radial-gradient(900px 500px at 10% 10%, rgba(5,150,105,0.08), transparent 55%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark light; transition: background-color 0.3s ease, color 0.3s ease; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(900px 700px at 50% -5%, #000 0%, transparent 75%);
          mask-image: radial-gradient(900px 700px at 50% -5%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}
[data-theme="light"] body::before { opacity: 0.35; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--saffron); color: var(--on-accent); }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.section { padding: 110px 0; position: relative; z-index: 1; }
.section--tight { padding: 72px 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--saffron); display: inline-block; }
.eyebrow--emerald { color: var(--emerald); }
.eyebrow--emerald::before { background: var(--emerald); }
.eyebrow--saffron { color: var(--saffron); }
.eyebrow--saffron::before { background: var(--saffron); }

.display { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
.h-xl { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.h-lg { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.h-md { font-size: 1.32rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-soft); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.grad-text { background: var(--grad-hero-text); background-size: 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 3s linear infinite; }
.grad-text--saffron { background: var(--grad-saffron); background-size: 100%; animation: none; -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text--emerald { background: var(--grad-emerald); background-size: 100%; animation: none; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes shimmer { to { background-position: 200% center; } }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: all .22s cubic-bezier(.2,.7,.3,1);
  font-family: var(--font-body); white-space: nowrap; cursor: pointer; position: relative;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad-saffron); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(249,115,22,0.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(249,115,22,0.55); }
.btn-ghost { background: var(--card-2); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--hover-surface); border-color: var(--saffron); transform: translateY(-2px); }
.btn-saffron { background: var(--grad-saffron); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(249,115,22,0.45); }
.btn-emerald { background: var(--grad-emerald); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(16,185,129,0.45); }
.btn-emerald:hover { transform: translateY(-2px); }
.btn-saffron:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 15px; font-size: 0.85rem; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; position: relative;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, background .3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-2); }
[data-theme="light"] .card { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
[data-theme="light"] .card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card--glow:hover { box-shadow: var(--shadow-glow); border-color: color-mix(in srgb, var(--saffron) 35%, transparent); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text-soft);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.chip--emerald { background: var(--emerald-dim); border-color: color-mix(in srgb, var(--emerald) 30%, transparent); color: var(--emerald); }
.chip--saffron { background: var(--saffron-dim); border-color: color-mix(in srgb, var(--saffron) 30%, transparent); color: var(--saffron); }
.chip--indigo  { background: var(--indigo-dim); border-color: color-mix(in srgb, var(--indigo) 30%, transparent); color: var(--indigo); }
.chip--violet  { background: var(--violet-dim); border-color: color-mix(in srgb, var(--violet) 30%, transparent); color: var(--violet); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-dim); }

/* icon tile */
.itile {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--emerald-dim); border: 1px solid color-mix(in srgb, var(--emerald) 25%, transparent); color: var(--emerald);
  flex: 0 0 auto;
}
.itile svg { width: 24px; height: 24px; }
.itile--saffron { background: var(--saffron-dim); border-color: color-mix(in srgb, var(--saffron) 25%, transparent); color: var(--saffron); }
.itile--indigo { background: var(--indigo-dim); border-color: color-mix(in srgb, var(--indigo) 25%, transparent); color: var(--indigo); }
.itile--violet { background: var(--violet-dim); border-color: color-mix(in srgb, var(--violet) 25%, transparent); color: var(--violet); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: var(--nav-bg); border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
  overflow: visible;
}
.nav.scrolled { border-bottom-color: var(--line); background: var(--nav-bg-scrolled); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; overflow: visible; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand .logomark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand b { color: var(--saffron); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; overflow: visible; }
.nav-links a, .nav-trigger {
  padding: 9px 14px; border-radius: 10px; font-size: 0.92rem; color: var(--text-soft);
  font-weight: 500; transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-links a:hover, .nav-trigger:hover { color: var(--text); background: var(--card-2); }
.nav-links a.active { color: var(--saffron); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* dropdown */
.nav-drop { position: relative; }
/* invisible bridge so hover isn't lost between trigger and panel */
.nav-drop::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 16px;
}
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 620px; max-width: calc(100vw - 48px);
  max-height: none;
  overflow: visible;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px;
  padding: 14px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s cubic-bezier(.2,.7,.3,1), visibility .24s cubic-bezier(.2,.7,.3,1), transform .24s cubic-bezier(.2,.7,.3,1);
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; z-index: 120;
}
@media (max-height: 640px) {
  .nav-menu {
    max-height: calc(100vh - 96px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
.nav-drop:hover .nav-menu, .nav-menu:hover, .nav-drop.open .nav-menu,
.nav-drop:focus-within .nav-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 13px; border-radius: 12px;
  transition: background .2s; color: var(--text);
}
.nav-menu a:hover { background: var(--card-2); }
.nav-menu .nmi { font-size: 0.92rem; font-weight: 600; }
.nav-menu .nms { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.nav-menu .itile { width: 38px; height: 38px; border-radius: 10px; }
.nav-menu .itile svg { width: 19px; height: 19px; }
.nav-menu::-webkit-scrollbar { width: 6px; }
.nav-menu::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.nav-menu::-webkit-scrollbar-track { background: transparent; }

.hamburger { display: none; background: var(--card-2); border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 11px; color: var(--text); cursor: pointer; position: relative; z-index: 101; -webkit-tap-highlight-color: transparent; touch-action: manipulation; align-items: center; justify-content: center; }
.hamburger svg { width: 20px; height: 20px; margin: auto; pointer-events: none; }

/* theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--text-soft); cursor: pointer;
  transition: all .2s; flex: 0 0 auto;
}
.theme-toggle:hover { color: var(--saffron); border-color: var(--line-2); background: var(--hover-surface); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle--float {
  position: fixed; top: 18px; right: 18px; z-index: 200;
  box-shadow: var(--shadow);
}

/* mobile drawer */
.mobile-menu { display: none; }

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-desk { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 70px 0 0 0; background: var(--bg);
    z-index: 101; padding: 22px 24px; transform: translateX(100%); transition: transform .3s; overflow-y: auto;
    pointer-events: none; visibility: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu.open { transform: translateX(0); pointer-events: auto; visibility: visible; }
  .mobile-menu a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .mobile-menu .mm-sub a { padding-left: 18px; font-size: 0.95rem; color: var(--text-soft); }
  body.menu-open .nav { z-index: 102; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-1); padding: 70px 0 34px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; transition: color .2s; width: fit-content; }
.footer-links a:hover { color: var(--saffron); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom span { font-size: 0.82rem; color: var(--faint); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* bento — uniform mission grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
/* Center lone card on last row (7 cards in 3-col layout) */
@media (min-width: 901px) {
  .bento .mission-card:last-child:nth-child(3n + 1) { grid-column: 2; }
}
@media (max-width: 900px) and (min-width: 601px) {
  .bento .mission-card:last-child:nth-child(2n + 1) { grid-column: 1 / -1; max-width: 360px; justify-self: center; width: 100%; }
}

/* stat */
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 600; line-height: 1; background: var(--grad-saffron); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

/* feature list */
.flist { display: flex; flex-direction: column; gap: 14px; }
.flist li { display: flex; gap: 13px; align-items: flex-start; list-style: none; }
.flist .tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: var(--emerald-dim); color: var(--emerald); display: grid; place-items: center; margin-top: 2px; }
.flist .tick svg { width: 13px; height: 13px; }
ul.flist { padding: 0; margin: 0; }

/* steps */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 34px; position: relative; }
.step:not(:last-child)::before { content: ''; position: absolute; left: 27px; top: 50px; bottom: 0; width: 1px; background: var(--line-2); }
.step-num { width: 54px; height: 54px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; color: var(--emerald); font-size: 1.05rem; z-index: 1; }

/* Service pages — How it works (sticky heading + numbered steps) */
.svc-how-split { align-items: flex-start; }
.svc-how-sticky {
  align-self: start;
  position: relative;
  z-index: 1;
}
.svc-how-steps {
  position: relative;
  z-index: 0;
  min-width: 0;
}
@media (min-width: 901px) {
  .svc-how-sticky {
    position: sticky;
    top: 88px;
    z-index: 3;
    background: var(--bg-1);
    padding-bottom: 24px;
  }
  .svc-how-steps .step { isolation: isolate; }
}
@media (max-width: 900px) {
  .svc-how-sticky {
    position: static;
    margin-bottom: 32px;
  }
  .svc-how-steps { margin-top: 0; }
}

/* marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 54px; width: max-content; animation: scrollx 32s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.mq-item { font-family: var(--font-mono); color: var(--muted); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }

/* pill row */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* two-column split layout (service pages, about, home) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Page hero (interior) ---------- */
.phero { padding: 130px 0 70px; position: relative; background: var(--grad-hero); }
.phero .crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-bottom: 20px; letter-spacing: 0.05em; }
.phero .crumbs a:hover { color: var(--saffron); }

/* divider glow line */
.hr-glow { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .bento-card { animation: none; }
  .mission-card:hover { transform: none; }
  .mission-card:hover .itile { transform: none; }
}


/* glowing orb decoration */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; z-index: 0; transition: opacity 0.3s ease; }
[data-theme="light"] .orb { opacity: 0.22; }
.orb--e { background: radial-gradient(circle, rgba(16,185,129,0.45), transparent 70%); }
.orb--s { background: radial-gradient(circle, rgba(249,115,22,0.45), transparent 70%); }
.orb--i { background: radial-gradient(circle, rgba(96,165,250,0.4), transparent 70%); }

/* service hero visual */
.svc-hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-2);
  background: var(--card);
}
.svc-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1586 / 992;
  object-fit: cover;
}
.svc-hero-caption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

/* placeholder (image slot look) */
.ph {
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--ph-stripe) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; color: var(--faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-align: center; padding: 24px; min-height: 200px;
}

/* tag/label */
.kvs { display: flex; flex-direction: column; gap: 2px; }
.kv-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.kv-v { font-weight: 600; font-size: 1.05rem; }

/* badge */
.badge { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:7px; font-size:11.5px; font-weight:600; font-family: var(--font-mono); letter-spacing:0.03em; }
.badge--ok { background: var(--emerald-dim); color: var(--emerald); }
.badge--warn { background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }
.badge--danger { background: rgba(255,93,108,0.13); color: var(--danger); }
.badge--muted { background: var(--card-2); color: var(--muted); }
.badge--indigo { background: var(--indigo-dim); color: var(--indigo); }

/* utility */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-48{margin-top:48px}.mt-64{margin-top:64px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-32{margin-bottom:32px}.mb-48{margin-bottom:48px}
.maxw-xl{max-width:760px}.maxw-lg{max-width:620px}.maxw-md{max-width:520px}
.full{width:100%}

.chart-track { stroke: var(--chart-track); }

/* ============================================================
   GAMIFICATION — Trust Journey / XP / Missions
   ============================================================ */

/* XP progress bar */
.xp-bar-wrap { width: 100%; }
.xp-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.xp-bar--lg { height: 8px; }
.xp-bar-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--saffron), var(--emerald));
  border-radius: 99px; transition: width 0.55s cubic-bezier(.2,.7,.3,1);
}
.xp-bar-label { font-size: 11px; color: var(--faint); margin-top: 6px; letter-spacing: 0.04em; }

/* Player profile card */
.player-card {
  background: linear-gradient(155deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.player-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.player-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--saffron-dim); display: grid; place-items: center; font-size: 1.25rem;
}
.player-meta { flex: 1; min-width: 0; }
.player-rank { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.player-xp { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.player-badges-count { font-size: 0.82rem; color: var(--saffron); }

/* Journey HUD (homepage hero) */
.journey-hud {
  margin-top: 36px; padding: 20px 22px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--emerald) 8%, var(--bg-2)), var(--bg-1));
  border: 1px solid var(--line-2); border-radius: 18px;
  position: relative; overflow: hidden;
}
.journey-hud::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px;
  background: radial-gradient(circle, var(--saffron-dim), transparent 70%);
  pointer-events: none;
}
.journey-hud-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.journey-hud-kicker { font-size: 10px; letter-spacing: 0.16em; color: var(--faint); }
.journey-hud-rank {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--emerald); background: var(--emerald-dim); padding: 4px 12px; border-radius: 99px;
}
.journey-hud-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.journey-stat { text-align: center; }
.journey-stat-val { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.journey-stat-lbl { font-size: 0.72rem; color: var(--faint); font-family: var(--font-mono); letter-spacing: 0.06em; margin-top: 4px; text-transform: uppercase; }
.journey-hud-cta { width: 100%; margin-top: 14px; justify-content: center; }

/* Nav XP chip */
.nav-xp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 99px;
  background: var(--saffron-dim); border: 1px solid color-mix(in srgb, var(--saffron) 25%, transparent);
  font-size: 11px; font-weight: 600; color: var(--saffron);
  font-family: var(--font-mono); letter-spacing: 0.03em;
}

/* Mission cards (bento) */
.bento-card {
  display: flex; flex-direction: column; height: 100%;
  opacity: 1 !important; transform: none !important;
  animation: mission-card-in 0.55s cubic-bezier(.2,.7,.3,1) backwards;
}
.bento-card:nth-child(1) { animation-delay: 0.04s; }
.bento-card:nth-child(2) { animation-delay: 0.08s; }
.bento-card:nth-child(3) { animation-delay: 0.12s; }
.bento-card:nth-child(4) { animation-delay: 0.16s; }
.bento-card:nth-child(5) { animation-delay: 0.20s; }
.bento-card:nth-child(6) { animation-delay: 0.24s; }
.bento-card:nth-child(7) { animation-delay: 0.28s; }
@keyframes mission-card-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bento-card .bento-card-body { flex: 0 1 auto; margin-top: 14px; }
.bento-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--saffron); font-weight: 600; font-size: 0.86rem;
  margin-top: 14px; font-family: var(--font-mono);
}
.bento-link svg { width: 15px; height: 15px; transition: transform .25s; }
.bento-card:hover .bento-link svg { transform: translateX(4px); }

.mission-card { position: relative; overflow: hidden; }
.mission-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--saffron) 6%, transparent), transparent 55%);
  opacity: 0; transition: opacity 0.35s;
}
.mission-card:hover::after { opacity: 1; }
.mission-card:hover { transform: translateY(-6px); }
.mission-card .itile { transition: transform 0.35s cubic-bezier(.2,.7,.3,1); }
.mission-card:hover .itile { transform: scale(1.07); }
.mission-card:hover .mission-xp-chip { animation: xp-chip-pop 0.45s ease; }
@keyframes xp-chip-pop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.mission-card--featured {
  border-color: color-mix(in srgb, var(--saffron) 35%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--saffron) 4%, var(--card)), var(--card));
}
.mission-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mission-level {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); background: var(--card-2); padding: 4px 9px; border-radius: 6px;
}
.mission-xp-chip {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--emerald); background: var(--emerald-dim); padding: 4px 9px; border-radius: 6px;
}
.mission-tagline { font-size: 0.88rem !important; margin-top: 6px !important; }
.mission-bullets {
  list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px;
}
.mission-bullets li {
  font-size: 0.82rem; color: var(--text-soft); padding-left: 16px; position: relative;
}
.mission-bullets li::before {
  content: '▸'; position: absolute; left: 0; color: var(--saffron); font-size: 0.75rem;
}
.mission-cta { margin-top: 14px; }

/* Quest cards */
.quest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.quest-card {
  text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: inherit; color: inherit; width: 100%;
}
.quest-card:hover:not(.quest-card--done) {
  border-color: var(--saffron); transform: translateY(-2px); box-shadow: var(--shadow);
}
.quest-card--done { opacity: 0.72; cursor: default; border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 6%, var(--card)); }
.quest-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.quest-xp { font-size: 11px; color: var(--saffron); background: var(--saffron-dim); padding: 4px 10px; border-radius: 99px; }
.quest-done-badge { font-size: 11px; color: var(--emerald); font-family: var(--font-mono); font-weight: 600; }
.quest-go { color: var(--faint); font-size: 1.1rem; }
.quest-desc { font-size: 0.86rem; margin-top: 6px; }

/* Badge cards */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; min-height: 120px; }
.badge-grid .badge-card,
.quest-grid .quest-card { opacity: 1 !important; transform: none !important; }
.badge-card {
  text-align: center; padding: 22px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); transition: transform 0.2s, border-color 0.2s;
}
.badge-card--unlocked { border-color: color-mix(in srgb, var(--emerald) 35%, var(--line)); background: color-mix(in srgb, var(--emerald) 5%, var(--card)); }
.badge-card--locked { opacity: 0.55; filter: grayscale(0.4); }
.badge-card-ic { font-size: 2rem; margin-bottom: 10px; }
.badge-card-name { font-weight: 600; font-size: 0.88rem; }
.badge-card-xp { font-size: 10px; color: var(--faint); margin-top: 4px; }
.badge-card-status { font-size: 0.72rem; font-weight: 600; margin-top: 6px; color: var(--saffron); font-family: var(--font-mono); }
.badge-card--unlocked .badge-card-status { color: var(--emerald); }
.badge-card-desc { font-size: 0.76rem; margin-top: 8px; line-height: 1.45; }
.quest-card-status { display: block; margin-top: 10px; font-size: 0.72rem; font-weight: 600; color: var(--saffron); font-family: var(--font-mono); }
.quest-card--done .quest-card-status { color: var(--emerald); }

/* Reward toast */
.game-toast-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
@media (max-width: 640px) {
  .game-toast-wrap { left: 16px; right: 16px; bottom: 16px; align-items: center; }
}
.game-toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  font-weight: 600; font-size: 0.92rem;
  opacity: 0; transform: translateY(16px) scale(0.96);
  transition: opacity 0.28s, transform 0.28s;
  pointer-events: auto;
}
[data-theme="light"] .game-toast { box-shadow: 0 12px 32px rgba(15,23,42,0.12); }
.game-toast.in { opacity: 1; transform: translateY(0) scale(1); }
.game-toast--xp { border-color: color-mix(in srgb, var(--saffron) 40%, var(--line)); }
.game-toast--quest { border-color: color-mix(in srgb, var(--emerald) 40%, var(--line)); }
.game-toast--badge { border-color: color-mix(in srgb, var(--indigo) 40%, var(--line)); }
.game-toast-ic { font-size: 1.2rem; }

/* Floating coin decorations */
.game-coin {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--warn));
  opacity: 0.35; pointer-events: none; animation: coinFloat 6s ease-in-out infinite;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}
.game-coin--2 { animation-delay: 1.5s; width: 22px; height: 22px; }
@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(12deg); }
}

/* Portal unlock CTA block */
.portal-unlock-block {
  background: linear-gradient(150deg, color-mix(in srgb, var(--indigo) 8%, var(--bg-2)), var(--bg-1));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 44px 48px; position: relative; overflow: hidden;
}
.portal-unlock-block .role-explainer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 720px) { .portal-unlock-block .role-explainer { grid-template-columns: 1fr; } }
.role-access-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.role-access-card h4 { font-size: 0.92rem; margin-bottom: 6px; }
.role-access-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* Login portal access level */
.portal-access-level { margin-bottom: 28px; }
.portal-access-level h3 { font-size: 0.95rem; margin-bottom: 8px; }
.portal-access-helper { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.role-access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .role-access-grid { grid-template-columns: 1fr; } }
.role-access-card--login { cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.role-access-card--login:hover { border-color: var(--line-2); }
.role-access-card--login.on { border-color: var(--saffron); background: var(--saffron-dim); }
.role-access-card-ic { font-size: 1.4rem; margin-bottom: 8px; }

/* Service page mission elements */
.svc-mission-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mission-checklist { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; min-height: 48px; }
.mission-checklist .mission-check-item,
.mission-checklist [data-reveal] { opacity: 1 !important; transform: none !important; }
.mission-check-item {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-size: 0.9rem; opacity: 1; transform: none;
}
.mission-check-item:hover { border-color: var(--saffron); box-shadow: 0 4px 18px rgba(249,115,22,0.08); }
.mission-check-item:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
.mission-check-item.done { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 8%, var(--card)); cursor: default; }
.mission-check-item.done .mission-check-num { background: var(--emerald-dim); color: var(--emerald); }
.mission-check-item.done .mission-check-icon svg { color: var(--emerald); }
.mission-check-num {
  width: 32px; height: 32px; border-radius: 8px; background: var(--card-2);
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 600;
}
.mission-check-icon { display: grid; place-items: center; color: var(--saffron); }
.mission-check-icon svg { width: 20px; height: 20px; }
.mission-check-body { color: var(--text-soft); line-height: 1.45; }
.mission-check-meta { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; text-align: right; }
.mission-check-status { color: var(--saffron); font-weight: 600; }
.mission-check-item.done .mission-check-status { color: var(--emerald); }
.mission-check-xp { font-size: 10px; color: var(--saffron); }
@media (max-width: 720px) {
  .mission-check-item { grid-template-columns: auto auto 1fr; gap: 12px; }
  .mission-check-meta { grid-column: 1 / -1; text-align: left; padding-left: 46px; white-space: normal; }
}

/* Unlock deliverable cards */
.unlock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.unlock-card {
  padding: 18px; border-radius: 14px; border: 1px dashed var(--line-2);
  background: var(--card); cursor: pointer; transition: all 0.25s; text-align: center;
}
.unlock-card:hover:not(.unlocked) { border-color: var(--saffron); border-style: solid; }
.unlock-card.unlocked {
  border-style: solid; border-color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 6%, var(--card));
}
.unlock-card-ic { font-size: 1.6rem; margin-bottom: 8px; opacity: 0.5; }
.unlock-card.unlocked .unlock-card-ic { opacity: 1; }
.unlock-card-name { font-weight: 600; font-size: 0.88rem; }
.unlock-card-lock { font-size: 0.72rem; color: var(--faint); font-family: var(--font-mono); margin-top: 6px; }
.unlock-card.unlocked .unlock-card-lock { color: var(--emerald); }

/* Portal sidebar XP widget */
.portal-xp-widget {
  margin: 0 14px 14px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.portal-xp-widget-rank { font-size: 0.78rem; font-weight: 600; color: var(--emerald); margin-bottom: 4px; }
.portal-xp-widget-xp { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-bottom: 8px; }
.portal-xp-modules { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.portal-xp-modules-label { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-family: var(--font-mono); margin-bottom: 6px; }
.portal-xp-module { font-size: 0.75rem; color: var(--text-soft); padding: 3px 0; display: flex; align-items: center; gap: 6px; }
.portal-xp-module::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; }

@media (max-width: 640px) {
  .journey-hud-body { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .journey-stat-val { font-size: 1.2rem; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Unified inline SVG icon sizing ---- */
.chip svg, .mq-item svg, .tick svg, .cinfo .itile svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.chip, .mq-item, .tick { display: inline-flex; align-items: center; gap: 6px; }
.player-avatar { display: grid; place-items: center; }
.player-avatar svg { width: 22px; height: 22px; color: var(--saffron); }
.player-badges-count { display: inline-flex; align-items: center; gap: 5px; }
.player-badges-count svg { width: 14px; height: 14px; color: var(--saffron); }
.badge-card-ic { display: grid; place-items: center; min-height: 2.5rem; }
.badge-card-ic svg { width: 2rem; height: 2rem; color: var(--saffron); }
.badge-card--locked .badge-card-ic svg { color: var(--faint); opacity: 0.65; }
.unlock-card-ic { display: grid; place-items: center; min-height: 2rem; }
.unlock-card-ic svg { width: 1.6rem; height: 1.6rem; color: var(--text-soft); }
.unlock-card.unlocked .unlock-card-ic svg { color: var(--emerald); }
.unlock-card-lock { display: inline-flex; align-items: center; gap: 5px; justify-content: center; flex-wrap: wrap; }
.unlock-card-lock svg { width: 12px; height: 12px; opacity: 0.7; }
.game-toast-ic { display: inline-flex; align-items: center; }
.game-toast-ic svg { width: 1.2rem; height: 1.2rem; }
.role-access-card-ic { display: grid; place-items: center; margin-bottom: 8px; color: var(--saffron); }
.role-access-card-ic svg { width: 1.5rem; height: 1.5rem; }
.quest-done-badge, .quest-go { display: inline-flex; align-items: center; gap: 5px; }
.quest-done-badge svg, .quest-go svg { width: 15px; height: 15px; }
.ic-chip { display: inline-flex; align-items: center; gap: 6px; }
.ic-chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.game-coin::after { content: none; }
.game-coin { opacity: 0.18; box-shadow: inset 0 -2px 4px rgba(0,0,0,0.15); }
