/* ============================================================
   MITHRA 2026 — Website Design System
   Palette, type, components, nav, footer, motion.
   Brand colors per Mithra Brand Guidelines (Spring 2025).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand blues */
  --clear-sky: #78A9FF;
  --cool-water: #4589FF;
  --really-blue: #0F62FE;   /* primary */
  --rich-cold: #0043CE;     /* pressed/active */
  --deep-ocean: #001D6C;    /* dark brand */
  --deep-ocean-2: #00114a;  /* deeper dark for gradients */

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F4F7FF;
  --paper: #FFFFFF;
  --ink: #0B1533;           /* primary text on light */
  --slate: #697077;         /* secondary text */
  --slate-light: #8A9099;
  --soft-border: #DDE5F0;
  --soft-border-2: #EAEFF8;

  /* Semantic (product UI only) */
  --green: #24A148;
  --green-bg: #E6F4EA;
  --amber: #F1C21B;
  --amber-bg: #FCF4D6;
  --coral: #DA1E28;
  --coral-bg: #FBE7E8;

  /* Type */
  --font-head: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 760px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows — cool, soft */
  --shadow-xs: 0 1px 2px rgba(0,29,108,.06);
  --shadow-sm: 0 2px 8px rgba(0,29,108,.06), 0 1px 2px rgba(0,29,108,.04);
  --shadow-md: 0 12px 32px rgba(0,29,108,.10), 0 2px 8px rgba(0,29,108,.05);
  --shadow-lg: 0 28px 64px rgba(0,29,108,.16), 0 6px 16px rgba(0,29,108,.07);
  --shadow-blue: 0 18px 40px rgba(15,98,254,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--really-blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--clear-sky); color: var(--deep-ocean); }

/* ---------- Type scale ---------- */
.t-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--really-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.t-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--cool-water);
  display: inline-block;
}
.t-eyebrow.no-rule::before { display: none; }
.t-eyebrow.on-dark { color: var(--clear-sky); }

.h1 { font-size: clamp(40px, 6vw, 80px); }
.h2 { font-size: clamp(31px, 4.2vw, 54px); line-height: 1.06; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.14; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--slate); }
.lede.on-dark { color: rgba(255,255,255,.78); }
.measure { max-width: 640px; }
.measure-wide { max-width: 760px; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px){ .container { padding: 0 20px; } }
.section { padding: clamp(64px, 9vw, 122px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }

.bg-offwhite { background: var(--off-white); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--deep-ocean); color: #fff; }
.bg-dark h1,.bg-dark h2,.bg-dark h3,.bg-dark h4 { color: #fff; }
.bg-dark-grad {
  background: radial-gradient(120% 120% at 80% -10%, #0a2da0 0%, var(--deep-ocean) 45%, var(--deep-ocean-2) 100%);
  color: #fff;
}
.bg-dark-grad h1,.bg-dark-grad h2,.bg-dark-grad h3,.bg-dark-grad h4 { color:#fff; }

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .2s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--really-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--rich-cold); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--really-blue); border-color: var(--soft-border); }
.btn-secondary:hover { border-color: var(--cool-water); background: var(--off-white); }
.btn-white { background: #fff; color: var(--deep-ocean); }
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.btn-block { width: 100%; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  color: var(--really-blue); transition: gap .2s var(--ease);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.arrow-link .ic { width: 16px; height: 16px; flex: 0 0 auto; }
.arrow-link:hover { gap: 12px; }
.arrow-link.on-dark { color: var(--clear-sky); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 6px 13px;
  border-radius: var(--radius-pill); background: var(--off-white);
  color: var(--really-blue); border: 1px solid var(--soft-border);
}
.pill.on-dark { background: rgba(120,169,255,.12); color: var(--clear-sky); border-color: rgba(120,169,255,.25); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  padding: 5px 11px; border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.tag-atlas { background: var(--off-white); color: var(--really-blue); }
.tag-pulse { background: rgba(36,161,72,.1); color: var(--green); }

/* dot status */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-coral { background: var(--coral); }
.dot-blue { background: var(--cool-water); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg); padding: 30px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--soft-border-2); }
.card .card-ic, .card-ic {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--off-white); color: var(--really-blue);
}
.card .card-ic svg, .card-ic svg { width: 25px; height: 25px; }
.card-ic .ic { width: 25px; height: 25px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 16px; }

.card-dark {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 30px; color: #fff;
}
.card-dark .card-ic { background: rgba(120,169,255,.14); color: var(--clear-sky); }
.card-dark p { color: rgba(255,255,255,.72); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-5 { grid-template-columns: repeat(5,1fr); }
@media (max-width: 1000px){ .grid-5 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 980px){ .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.split.narrow-text { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 900px){ .split, .split.narrow-text { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Product UI frame ---------- */
.ui-frame {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-lg);
}
.ui-frame.tilt { box-shadow: var(--shadow-lg); }
.ui-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--off-white); border-bottom: 1px solid var(--soft-border);
}
.ui-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--soft-border); display: block; }
.ui-bar i:nth-child(1){ background:#FF5F57; } .ui-bar i:nth-child(2){ background:#FEBC2E; } .ui-bar i:nth-child(3){ background:#28C840; }
.ui-bar .ui-url { margin-left: 12px; font-size: 12px; color: var(--slate); font-family: var(--font-body); background:#fff; border:1px solid var(--soft-border); border-radius: 6px; padding: 4px 12px; }
.ui-screenshot { display:block; width:100%; }

/* float card chip */
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--soft-border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 14px 18px;
}

/* ---------- Marquee (logo strip) ---------- */
.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; width: max-content; gap: 38px; align-items: center; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track img { width: 116px; height: 38px; object-fit: contain; object-position: center; opacity: .62; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.marquee-track img:hover { opacity: 1; filter: grayscale(0); }
@media (prefers-reduced-motion: reduce){ .marquee-track { animation: none; flex-wrap: wrap; justify-content:center; } }
/* mobile: let users swipe the logo strip horizontally instead of the auto-marquee */
@media (max-width: 760px){
  .marquee { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track { animation: none; gap: 30px; padding-bottom: 4px; }
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--soft-border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 4px; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(18px,1.6vw,21px); color: var(--ink);
}
.faq-q .faq-ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--soft-border); display: grid; place-items: center; transition: .25s var(--ease); color: var(--really-blue); }
.faq-q[aria-expanded="true"] .faq-ic { background: var(--really-blue); color: #fff; border-color: var(--really-blue); transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--slate); max-width: 820px; font-size: 16.5px; }

/* ---------- Stats ---------- */
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(38px,5vw,60px); line-height: 1; letter-spacing: -.03em; color: var(--really-blue); }
.bg-dark .stat-num, .bg-dark-grad .stat-num { color: var(--clear-sky); }
.stat-label { color: var(--slate); margin-top: 10px; font-size: 15px; }
.bg-dark .stat-label, .bg-dark-grad .stat-label { color: rgba(255,255,255,.7); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--soft-border);
  transition: box-shadow .25s, background .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 70px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px; font-weight: 500; font-size: 15.5px;
  color: var(--ink); background: none; border: none; transition: color .15s, background .15s;
}
.nav-link:hover, .nav-item:hover .nav-link, .nav-link[aria-expanded="true"] { color: var(--really-blue); background: var(--off-white); }
.nav-link .chev { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav-item:hover .nav-link .chev, .nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* mega panel */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 14px; min-width: 300px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
/* invisible bridge across the 10px gap so hover doesn't drop between button and panel */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 12px; }
.nav-item.open .mega, .nav-item:hover .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega.mega-wide { min-width: 600px; }
/* solutions two-section mega */
.mega.mega-solutions { min-width: 660px; }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.mega-col { display: flex; flex-direction: column; }
.mega-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-light); padding: 4px 14px 8px; }
.mega-cols + .mega-foot { margin-top: 8px; }
/* distinguish the two solution sections by icon accent */
.mega-col--role { border-left: 1px solid var(--soft-border); padding-left: 8px; }
.mega-col--role .mega-label { color: var(--green); }
.mega-col--usecase .mega-label { color: var(--really-blue); }
.mega-col--role .mega-link .mega-ic { background: var(--green-bg); color: var(--green); }
.mega-col--role .mega-link:hover .mega-ic { background: var(--green); color: #fff; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-grid.one { grid-template-columns: 1fr; }
.mega-link { display: flex; gap: 13px; padding: 12px 14px; border-radius: 12px; transition: background .15s; align-items: flex-start; }
.mega-link:hover { background: var(--off-white); }
.mega-link .mega-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--off-white); color: var(--really-blue); display: grid; place-items: center; }
.mega-link:hover .mega-ic { background: var(--really-blue); color: #fff; }
.mega-link .mega-ic svg { width: 20px; height: 20px; }
.mega-link b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.mega-link span { display: block; font-size: 13px; color: var(--slate); margin-top: 3px; line-height: 1.4; }
.mega-foot { margin-top: 8px; padding: 14px; border-radius: 12px; background: var(--deep-ocean); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mega-foot b { font-family: var(--font-head); font-size: 15px; }
.mega-foot span { font-size: 13px; color: rgba(255,255,255,.7); display:block; margin-top:2px; }

/* mobile */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--soft-border); background: #fff; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }
.mobile-nav { display: none; }
@media (max-width: 1040px){
  .nav { height: 64px; }
  .nav-logo img { height: 32px; }
  .nav-menu, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav {
    display: block; position: fixed; inset: 72px 0 0 0; background: #fff; z-index: 99;
    transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; padding: 18px 20px 60px;
  }
  body.menu-open .mobile-nav { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .m-group { border-bottom: 1px solid var(--soft-border); }
  .m-group > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; background: none; border: none; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); }
  .m-group > button svg { width: 18px; height: 18px; transition: transform .25s; }
  .m-group.open > button svg { transform: rotate(180deg); }
  .m-sub { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
  .m-group.open .m-sub { max-height: 600px; }
  .m-sub a { display: block; padding: 12px 4px 12px 14px; color: var(--slate); font-weight: 500; }
  .m-link { display: block; padding: 16px 4px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--soft-border); }
  .mobile-nav .btn { margin-top: 22px; }
}

/* announcement bar */
.announce { background: var(--deep-ocean); color: #fff; font-size: 14px; text-align: center; padding: 9px 20px; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce .dot { margin: 0 10px; opacity: .5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-ocean); color: rgba(255,255,255,.7); padding: 80px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 40px 28px; }
@media (max-width: 1080px){ .footer-top { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 620px){ .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand img { height: 30px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 15px; max-width: 300px; }
.footer-social { margin-top: 22px; display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.78); transition: background .18s, color .18s, border-color .18s; }
.footer-social a:hover { background: var(--really-blue); border-color: var(--really-blue); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; color: rgba(255,255,255,.68); font-size: 15px; padding: 7px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-cert { display: inline-block; margin-top: 22px; opacity: .82; transition: opacity .15s; }
.footer-cert:hover { opacity: 1; }
.footer-cert img { height: 60px; width: auto; display: block; }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }
.footer-entity { display: block; margin-top: 6px; color: rgba(255,255,255,.42); font-size: 13px; }

/* ---------- Reveal animation (scroll fly-in disabled per request) ---------- */
.reveal { opacity: 1; transform: none; transition: none; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1 !important; transform: none !important; } }
html.anim-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- helpers ---------- */
.dark-tile { background-image: url('../assets/bg-tile.png'); background-size: 320px; }
.divider { height: 1px; background: var(--soft-border); border: 0; }
.flex { display: flex; } .items-center { align-items: center; } .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-40{margin-top:40px}.mt-48{margin-top:48px}
.eyebrow-row{ display:flex; align-items:center; gap:14px; }
