/* ==========================================================================
   Tanflow Ventures — design system v3
   Headings: Poppins · Body/UI: Inter · Mono: IBM Plex Mono (terminal demo only)
   One blue-violet accent system; pinwheel colors only in the footer ribbon.
   v3: tighter density, wide horizontal mega panel, scroll/entrance motion.
   ========================================================================== */

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

:root {
  --ink:        #0F1533;
  --ink-2:      #151C41;
  --primary:    #4A5CC7;
  --primary-deep: #3849AC;
  --primary-ink:  #232E76;
  --violet:     #7E64DA;

  --green:  #8BC85C;
  --blue:   #556AB3;
  --red:    #CE2641;
  --yellow: #F9DE5B;
  --flow: linear-gradient(90deg, var(--green), var(--blue), var(--red), var(--yellow));

  --ok:      #3E8E2F;
  --danger:  #BE3450;
  --warn:    #B98A0E;

  --text:     #1D2440;
  --text-2:   #4B5372;
  --text-3:   #707894;
  --line:     #E6E9F3;
  --surface:  #FFFFFF;
  --surface-2:#F6F8FC;
  --surface-3:#EEF1F8;

  --grad-accent: linear-gradient(96deg, var(--primary) 0%, var(--violet) 100%);
  --grad-accent-light: linear-gradient(96deg, #8FA6FF 0%, #B49AFF 100%);

  --font-head: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-1: 0 1px 2px rgba(15, 21, 51, .05), 0 6px 20px rgba(15, 21, 51, .07);
  --shadow-2: 0 6px 16px rgba(15, 21, 51, .08), 0 24px 60px rgba(15, 21, 51, .13);

  --container: 1200px;
  --header-h: 66px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
h3 { font-size: 1.08rem; }
h4 { font-size: .98rem; }

p { margin: 0 0 1em; }

a { color: var(--primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 1.2em; }

code, .mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Brand signature — used once, at the top of the footer */
.flow-ribbon { height: 3px; background: var(--flow); }

/* Page-transition loader — the pinwheel mark spins inside a progress ring */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.page-loader.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.loader-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid var(--surface-3);
  border-top-color: var(--primary);
  animation: pinwheelSpin 1.1s cubic-bezier(.45, .2, .55, .8) infinite;
}
.page-loader img {
  width: 48px;
  height: 48px;
  animation: pinwheelSpin 1.8s linear infinite;
}
@keyframes pinwheelSpin {
  to { transform: rotate(360deg); }
}

/* Section rhythm */
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--alt { background: var(--surface-2); }
.section--ink {
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(74, 92, 199, .35), transparent 60%),
    radial-gradient(700px 420px at 5% 110%, rgba(126, 100, 218, .18), transparent 55%),
    var(--ink);
  color: #C3CAE3;
}
.section--ink h2, .section--ink h3 { color: #fff; }

/* Eyebrow label */
.eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .7rem;
}
.eyebrow::before { content: none; }
.eyebrow--green, .eyebrow--red, .eyebrow--yellow, .eyebrow--flow { color: var(--primary); }
.section--ink .eyebrow, .hero .eyebrow { color: #97A8EE; }

.section-head { max-width: 720px; margin-bottom: 1.9rem; }
.section-head p { color: var(--text-2); font-size: .97rem; }
.section--ink .section-head p { color: #A9B2D2; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .58rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn--primary {
  background: var(--primary-deep);
  color: #fff;
  box-shadow: 0 5px 16px rgba(56, 73, 172, .26);
}
.btn--primary:hover { background: var(--primary-ink); box-shadow: 0 7px 20px rgba(35, 46, 118, .3); }

.btn--ghost { border-color: #C9D0E6; color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--primary-deep); color: var(--primary-deep); }

.btn--light { background: #fff; color: var(--primary-ink); }
.btn--light:hover { background: var(--surface-3); }

.btn--outline-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.btn--lg { padding: .72rem 1.7rem; font-size: .95rem; }

/* --------------------------------------------------------------------------
   Announcement bar + header
   -------------------------------------------------------------------------- */
.announce {
  background: linear-gradient(90deg, var(--primary-ink), var(--primary-deep) 60%, var(--violet));
  color: #E4E8FF;
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
  padding: .4rem 24px;
}
.announce a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.nav-desktop {
  display: none;
  align-items: stretch;
  height: 100%;
  margin-right: auto;
}
.nav-item { position: static; display: flex; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 0 .95rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-link::after {
  content: '';
  position: absolute;
  left: .95rem; right: .95rem; bottom: 12px;
  height: 2.5px; border-radius: 2px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity .18s ease;
}
.nav-item.open .nav-link::after,
.nav-link[aria-current="true"]::after { opacity: 1; }
.nav-link[aria-current="true"] { color: var(--ink); }
.nav-link .caret {
  width: 7px; height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
  opacity: .65;
}
.nav-item.open .nav-link .caret { transform: rotate(225deg) translateY(-1px); }

.header-ctas { display: none; gap: .6rem; align-items: center; }

/* Mega menu — panel drops under its own trigger (JS clamps it inside the viewport) */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  max-width: calc(100vw - 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 1.5rem 1.9rem 1.6rem;
  display: none;
  gap: 2.2rem;
}
.nav-item.open .mega { display: flex; animation: megaIn .22s cubic-bezier(.2, .7, .3, 1); }
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Prominent product headers inside the Products panel */
.mega-product {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-bottom: .7rem;
  margin-bottom: .8rem;
  border-bottom: 2px solid var(--surface-3);
  color: var(--ink);
  text-decoration: none !important;
}
.mega-product-name {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  transition: color .14s ease;
}
.mega-product-arrow { margin-left: auto; color: var(--primary-deep); font-weight: 700; opacity: 0; transition: opacity .14s ease, transform .14s ease; }
.mega-product:hover .mega-product-name { color: var(--primary-deep); }
.mega-product:hover .mega-product-arrow { opacity: 1; transform: translateX(2px); }

/* Wide product panel: link groups side by side, links in 2-col grids */
.mega--wide { flex-direction: column; gap: 1.1rem; width: min(1120px, calc(100vw - 48px)); }
.mega-groups { display: flex; gap: 2.2rem; }
.mega-group { flex: 1; min-width: 0; }
.mega-group--divided { border-left: 1px solid var(--line); padding-left: 2.2rem; }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 0 1.3rem; }

.mega-col { min-width: 270px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); padding-left: 2.2rem; }
.mega-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--text-3);
  margin: 0 0 .7rem;
}
.mega-title::before { content: none; }
.mega a.mega-link {
  display: block;
  padding: .45rem .6rem;
  margin: 0 -.6rem;
  border-radius: 9px;
  color: var(--ink);
}
.mega a.mega-link:hover { background: var(--surface-2); text-decoration: none; }
.mega a.mega-link:hover strong { color: var(--primary-deep); }
.mega .mega-link strong { display: block; font-size: .88rem; font-weight: 600; transition: color .14s ease; }
.mega .mega-link span { display: block; font-size: .75rem; color: var(--text-3); line-height: 1.45; margin-top: .05rem; }
.mega-featured {
  background: linear-gradient(120deg, var(--primary-ink), var(--primary-deep) 65%, var(--violet));
  border-radius: var(--radius);
  padding: .85rem 1.15rem;
  margin-top: .7rem;
  font-size: .82rem;
  line-height: 1.5;
  color: #D9DEFF;
}
.mega-featured strong { color: #fff; }
.mega-featured a { color: #fff; font-weight: 600; }
.mega-featured--bar { margin-top: 0; }

/* Mobile nav */
.nav-toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: .5rem 24px 1.4rem;
}
.nav-mobile.open { display: block; }
.nav-mobile details { border-bottom: 1px solid var(--line); }
.nav-mobile summary {
  list-style: none;
  padding: .85rem 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after {
  content: ''; width: 8px; height: 8px;
  border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg); transition: transform .15s ease;
}
.nav-mobile details[open] summary::after { transform: rotate(225deg); }
.nav-mobile a { display: block; padding: .5rem 0 .5rem 1rem; color: var(--text-2); font-size: .92rem; }
.nav-mobile .nav-mobile-single { display: block; padding: .85rem 0; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-mobile-ctas { display: flex; gap: .7rem; margin-top: 1.2rem; }
/* Restore button styling: the generic `.nav-mobile a` rule above is more
   specific than the .btn colour/padding and would otherwise dark-text and
   left-align these CTAs. */
.nav-mobile-ctas .btn { flex: 1; display: inline-flex; padding: .58rem 1.35rem; }
.nav-mobile-ctas .btn--primary { color: #fff; }
.nav-mobile-ctas .btn--ghost { color: var(--ink); }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-ctas { display: inline-flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 78% -20%, rgba(74, 92, 199, .5), transparent 62%),
    radial-gradient(800px 480px at 8% 115%, rgba(126, 100, 218, .28), transparent 58%),
    var(--ink);
  color: #B6BEDD;
  padding: 60px 0 54px;
}
.hero h1 { color: #fff; max-width: 860px; margin-bottom: .45em; }
.hero .lede { font-size: clamp(.95rem, 1.25vw, 1.08rem); max-width: 620px; color: #A9B2D2; line-height: 1.65; }
.hero-gradient-word {
  background: var(--grad-accent-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-note { margin-top: 1.2rem; font-size: .78rem; font-weight: 500; color: #7C87B0; letter-spacing: .01em; }

.hero--center { text-align: center; }
.hero--center h1, .hero--center .lede { margin-left: auto; margin-right: auto; }
.hero--center .hero-ctas { justify-content: center; }

/* Home hero — fills the first screen exactly on any display height.
   100vh fallback, then svh (mobile-URL-bar safe); minus announce bar + header. */
.hero--home {
  display: flex;
  align-items: center;
  /* Mobile/tablet: size to content so the stacked hero doesn't float in a
     sea of empty space. The full-viewport fill is desktop-only (below). */
  padding: 40px 0 44px;
}
@media (min-width: 1024px) {
  .hero--home {
    min-height: calc(100vh - var(--header-h) - 33px);
    min-height: calc(100svh - var(--header-h) - 33px);
    padding: 30px 0;
  }
}
.hero--home .container { width: 100%; }
/* Type scales fluidly with BOTH viewport width and height, so it renders at the
   same physical size regardless of OS display scaling (100% / 125% / 150%). */
.hero--home h1 { font-size: clamp(1.9rem, 1.5vw + 2.4vh, 3.7rem); max-width: 1120px; }
.hero--home .lede { font-size: clamp(.94rem, .6vw + 1vh, 1.22rem); max-width: 700px; }
.hero--home .eyebrow { font-size: clamp(.62rem, .3vw + .45vh, .78rem); }
.hero--home .btn--lg { padding: .75rem 1.85rem; font-size: clamp(.9rem, .5vw + .7vh, 1.05rem); }
.hero--home .hero-ctas { margin-top: clamp(.9rem, 1.6vh, 1.5rem); }
.hero--home .hero-note { margin-top: clamp(.6rem, 1.1vh, 1.1rem); font-size: clamp(.68rem, .35vw + .5vh, .84rem); }
.flow-viz { margin-top: clamp(1.2rem, 2.6vh, 2.8rem); }
.fv-chip { font-size: clamp(.76rem, .45vw + .6vh, .92rem); padding: clamp(.4rem, .7vh, .72rem) clamp(.7rem, .9vh, 1.05rem); }
.fv-mark img { width: clamp(46px, 7.2vh, 76px); height: clamp(46px, 7.2vh, 76px); }
.fv-caption { margin-top: clamp(.8rem, 1.6vh, 1.7rem); font-size: clamp(.68rem, .35vw + .5vh, .86rem); }
.fv-col { gap: clamp(.45rem, .8vh, .75rem); }
.fv-hub { gap: clamp(.55rem, 1vh, 1.1rem); }

.hero-visual {
  position: relative;
  max-width: 1000px;
  margin: 3.2rem auto 0;
  text-align: left;
}
.flow-viz { margin-top: 1.9rem; }

/* Remaining flow-visual details scale fluidly with viewport height as well */
@media (min-width: 900px) {
  .fv-ico { width: clamp(23px, 3vh, 32px); height: clamp(23px, 3vh, 32px); }
  .fv-ico svg { width: clamp(13px, 1.7vh, 18px); height: clamp(13px, 1.7vh, 18px); }
  .fv-tag { font-size: clamp(.56rem, .3vw + .4vh, .7rem); padding: clamp(.24rem, .4vh, .36rem) clamp(.6rem, 1vh, .9rem); }
  .fv-label { font-size: clamp(.58rem, .3vw + .4vh, .72rem); }
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -8% -14%;
  background: radial-gradient(60% 70% at 50% 45%, rgba(94, 114, 228, .35), transparent 70%);
  pointer-events: none;
}

/* Mock product frame */
.app-frame {
  position: relative;
  background: #12193F;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(5, 8, 25, .65), 0 8px 28px rgba(5, 8, 25, .5);
}
.app-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem;
  background: #0D1330;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.app-bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.app-bar i:nth-child(1) { background: #E5586E; }
.app-bar i:nth-child(2) { background: #E8C34A; }
.app-bar i:nth-child(3) { background: #63BE52; }
.app-url {
  margin-left: .8rem;
  font-size: .7rem;
  color: #8A93B8;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: .2rem .9rem;
}
.app-body { display: grid; grid-template-columns: 190px 1fr; }
.app-side {
  border-right: 1px solid rgba(255,255,255,.07);
  padding: 1rem .9rem;
  display: none;
  flex-direction: column;
  gap: .15rem;
  background: rgba(255,255,255,.02);
}
@media (min-width: 720px) { .app-side { display: flex; } }
.app-logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; color: #fff;
  margin-bottom: 1rem; padding: 0 .5rem;
}
.app-logo img { width: 18px; height: 18px; }
.app-nav {
  font-size: .76rem; font-weight: 500; color: #8A93B8;
  padding: .42rem .55rem; border-radius: 7px;
}
.app-nav--active { background: rgba(94, 114, 228, .22); color: #fff; font-weight: 600; }
.app-main { padding: 1rem 1.1rem 1.15rem; min-width: 0; }
.app-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-head);
  font-size: .92rem; font-weight: 600; color: #fff;
  margin-bottom: .8rem;
}
.app-live {
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: #7ED96A;
  background: rgba(126, 217, 106, .12);
  padding: .18rem .6rem; border-radius: 999px;
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.app-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: .9rem; }
@media (min-width: 720px) { .app-stats { grid-template-columns: repeat(4, 1fr); } }
.app-stat {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  padding: .55rem .75rem;
}
.app-stat b { display: block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: #fff; }
.app-stat span { font-size: .66rem; color: #8A93B8; }
.app-table { border: 1px solid rgba(255,255,255,.08); border-radius: 9px; overflow: hidden; }
.app-tr {
  display: grid;
  grid-template-columns: 1fr 1.2fr .9fr;
  gap: .6rem;
  align-items: center;
  padding: .5rem .8rem;
  font-size: .74rem;
  color: #C3CAE3;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.app-hide-sm { display: none; }
@media (min-width: 720px) { .app-tr { grid-template-columns: 1fr 1.2fr .8fr .9fr; } .app-hide-sm { display: block; } }

/* Platform overview panels inside the mock */
.app-cols { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .app-cols { grid-template-columns: 1fr 1fr; } }
.app-panel {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  padding: .75rem .85rem;
  min-width: 0;
}
.app-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-head);
  font-size: .82rem; font-weight: 600; color: #fff;
  margin-bottom: .6rem;
}
.app-stats--2 { grid-template-columns: 1fr 1fr !important; margin-bottom: .6rem; }
.app-events { display: grid; gap: .1rem; }
.app-event {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem; color: #B4BBD6;
  padding: .34rem .45rem;
  border-radius: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-event--alert { background: rgba(206, 38, 65, .1); }
.app-event .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot--ok { background: #7ED96A; }
.dot--danger { background: #FF7A8E; }
.dot--info { background: #94A8F5; }
.dot--warn { background: #F2D46A; }
.app-tr:last-child { border-bottom: 0; }
.app-tr--head {
  font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #7C87B0; background: rgba(255,255,255,.04);
}
.app-tr--alert { background: rgba(206, 38, 65, .08); }
.app-chip {
  font-style: normal;
  font-size: .6rem; font-weight: 700; letter-spacing: .05em;
  padding: .18rem .55rem; border-radius: 999px;
}
.app-chip--ok     { background: rgba(126, 217, 106, .14); color: #7ED96A; }
.app-chip--danger { background: rgba(255, 122, 142, .16); color: #FF7A8E; }
.app-chip--info   { background: rgba(148, 168, 245, .16); color: #94A8F5; }
.app-chip--warn   { background: rgba(242, 212, 106, .14); color: #F2D46A; }

/* --------------------------------------------------------------------------
   Hero product duo: the two products, joined — clean and product-led
   -------------------------------------------------------------------------- */
.hero-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
  max-width: 920px;
  margin: clamp(1.6rem, 3.4vh, 3rem) auto 0;
}
@media (min-width: 820px) {
  .hero-duo { grid-template-columns: 1fr auto 1fr; }
}
.duo-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  text-align: left;
  padding: clamp(1.1rem, 2.2vh, 1.6rem) clamp(1.2rem, 2.2vh, 1.7rem);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.duo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 166, 255, .5);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 22px 60px rgba(5, 8, 25, .5);
}
.duo-tag {
  align-self: flex-start;
  font-size: clamp(.6rem, .3vw + .4vh, .68rem);
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
}
.duo-tag--iam { background: rgba(143, 166, 255, .16); color: #B7C4FF; border: 1px solid rgba(143, 166, 255, .3); }
.duo-tag--pam { background: rgba(126, 217, 106, .13); color: #A5E393; border: 1px solid rgba(126, 217, 106, .28); }
.duo-card b {
  font-family: var(--font-head);
  font-size: clamp(1.02rem, .7vw + 1vh, 1.3rem);
  font-weight: 600;
  color: #fff;
  margin-top: .2rem;
}
.duo-desc {
  font-size: clamp(.8rem, .4vw + .6vh, .92rem);
  color: #A9B2D2;
  line-height: 1.55;
}
.duo-link {
  margin-top: auto;
  padding-top: .55rem;
  font-size: clamp(.78rem, .4vw + .55vh, .88rem);
  font-weight: 600;
  color: #B7C4FF;
  transition: color .15s ease;
}
.duo-card:hover .duo-link { color: #fff; }
.duo-plus {
  align-self: center;
  justify-self: center;
  width: clamp(36px, 4.6vh, 44px);
  height: clamp(36px, 4.6vh, 44px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(74, 92, 199, .5);
}

/* --------------------------------------------------------------------------
   Identity flow visual (home hero): people → Tanflow hub → infrastructure
   -------------------------------------------------------------------------- */
.fv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: center;
  justify-items: center;
}
@media (min-width: 900px) {
  .fv-grid { grid-template-columns: 1fr minmax(150px, 190px) auto minmax(150px, 190px) 1fr; gap: 0; }
  .fv-chip { white-space: nowrap; }
}
.fv-col { display: grid; gap: .65rem; width: 100%; max-width: 300px; }
.fv-label {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #97A8EE;
  margin-bottom: .15rem;
  text-align: center;
}
@media (min-width: 900px) {
  .fv-col:first-child .fv-label { text-align: left; }
  .fv-col:last-child .fv-label { text-align: right; }
}
.fv-chip {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .52rem .85rem;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 500;
  color: #D5DAEC;
  backdrop-filter: blur(4px);
}
.fv-ico {
  width: 27px; height: 27px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  background: rgba(143, 166, 255, .14);
  color: #A9BAFF;
}
.fv-ico svg { width: 15px; height: 15px; }

/* Light-beam connectors: solid gradient lines fading at both ends,
   with a soft light streak sweeping along them. Product tags ride the beams. */
.fv-line {
  position: relative;
  width: 2px;
  height: 76px;
  background: linear-gradient(180deg, transparent, rgba(143, 166, 255, .55) 25% 75%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.fv-line::after {
  content: '';
  position: absolute;
  left: -1px;
  top: -25%;
  width: 4px;
  height: 46px;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .9), transparent);
  filter: blur(1px);
  animation: fvSweepY 3.2s ease-in-out infinite;
}
.fv-line--late::after { animation-delay: 1.6s; }
@keyframes fvSweepY {
  0% { top: -25%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.fv-line .fv-tag {
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .fv-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(143, 166, 255, .55) 25% 75%, transparent);
  }
  .fv-line::after {
    top: -1px;
    left: -15%;
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
    animation-name: fvSweepX;
  }
  @keyframes fvSweepX {
    0% { left: -15%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
  }
  .fv-line .fv-tag {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
  }
}

/* Central hub: the pinwheel floats free over a soft ambient light — no disc, no ring */
.fv-hub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: .4rem 2rem;
}
.fv-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fv-mark::before {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 166, 255, .36) 0%, rgba(143, 166, 255, .13) 42%, transparent 68%);
  animation: fvBreath 4.5s ease-in-out infinite;
  pointer-events: none;
}
.fv-mark img {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .45)) drop-shadow(0 8px 22px rgba(5, 8, 25, .6));
  animation: pinwheelSpin 16s linear infinite;
}
@keyframes fvBreath {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.12); opacity: 1; }
}
.fv-tag {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .32rem .8rem;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}
.fv-tag--iam { background: rgba(38, 48, 100, .92); color: #B7C4FF; border: 1px solid rgba(143, 166, 255, .35); }
.fv-tag--pam { background: rgba(30, 58, 36, .92); color: #A5E393; border: 1px solid rgba(126, 217, 106, .32); }

.fv-caption {
  margin: 1.3rem 0 0;
  text-align: center;
  font-size: .76rem;
  font-weight: 500;
  color: #7C87B0;
  letter-spacing: .02em;
}

/* Floating status chips over the frame */
.float-chip {
  position: absolute;
  z-index: 2;
  background: #171F4B;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  padding: .55rem .85rem;
  box-shadow: 0 14px 40px rgba(5, 8, 25, .55);
  animation: chipFloat 5s ease-in-out infinite alternate;
}
.float-chip b { display: block; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; color: #fff; }
.float-chip span { display: block; font-size: .64rem; color: #8A93B8; margin-top: .1rem; }
.float-chip--danger { top: 14%; right: -20px; border-left: 3px solid #FF7A8E; }
.float-chip--danger b { color: #FF7A8E; }
.float-chip--ok { bottom: 12%; left: -20px; border-left: 3px solid #7ED96A; animation-delay: 1.2s; }
.float-chip--ok b { color: #7ED96A; }
@keyframes chipFloat { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@media (max-width: 900px) {
  .float-chip--danger { right: 6px; }
  .float-chip--ok { left: 6px; }
}

.hero--page { padding: 44px 0 40px; }
.hero .crumbs { margin-bottom: 1.1rem; }

/* Entrance motion — staggered fade-up for hero content */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
/* Hero entrance: begins ~as the page-loader fades (min 550ms) so the content
   visibly animates in rather than being already settled when the loader lifts. */
.hero .container > * { animation: fadeUp .7s cubic-bezier(.2, .75, .3, 1) backwards; }
.hero .container > :nth-child(1) { animation-delay: .5s; }
.hero .container > :nth-child(2) { animation-delay: .58s; }
.hero .container > :nth-child(3) { animation-delay: .66s; }
.hero .container > :nth-child(4) { animation-delay: .74s; }
.hero .container > :nth-child(5) { animation-delay: .82s; }
.hero .container > :nth-child(6) { animation-delay: .9s; }

/* Scroll-reveal (class applied by JS; no-JS visitors see everything) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2, .75, .3, 1), transform .6s cubic-bezier(.2, .75, .3, 1); }
.reveal.in-view { opacity: 1; transform: none; }

/* Breadcrumbs */
.crumbs { font-size: .76rem; font-weight: 500; color: #7C87B0; }
.crumbs a { color: #97A8EE; }
.crumbs .sep { margin: 0 .45rem; opacity: .55; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card::before { content: none; }
a.card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: transparent; text-decoration: none; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-2); font-size: .88rem; margin-bottom: 0; }
.card .card-link { display: inline-block; margin-top: .8rem; font-weight: 600; font-size: .84rem; color: var(--primary-deep); }
a.card:hover .card-link { text-decoration: underline; text-underline-offset: 3px; }
.card--static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card--green, .card--red, .card--yellow, .card--flow { --accent: var(--primary); }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #EDF0FC;
  color: var(--primary-deep);
  margin-bottom: .9rem;
}
.card-icon svg { width: 20px; height: 20px; }

/* Product overview cards (home) */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: box-shadow .18s ease, transform .18s ease;
}
.product-card:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); }
.product-card .tag {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: #EDF0FC;
  color: var(--primary-deep);
}
.product-card--pam .tag { background: #EAF4E2; color: #3E7027; }
.product-card h3 { font-size: 1.3rem; }
.product-card .motto {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.product-card ul { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.product-card li { padding: .3rem 0 .3rem 1.5rem; position: relative; font-size: .88rem; color: var(--text-2); }
.product-card li::before {
  content: ''; position: absolute; left: 0; top: .72em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.product-card .btn { margin-top: auto; align-self: flex-start; }

/* Stat / differentiator strip */
.diff-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px)  { .diff-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .diff-strip { grid-template-columns: repeat(5, 1fr); } }
.diff { background: var(--surface); padding: 1.15rem 1.1rem; }
.diff b { display: block; font-family: var(--font-head); font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.diff span { font-size: .8rem; color: var(--text-3); line-height: 1.5; }
.diff .diff-k {
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); display: block; margin-bottom: .45rem;
}

/* Badge wall (compliance chips) */
.badge-wall { display: flex; flex-wrap: wrap; gap: .55rem; }
.badge {
  font-size: .78rem;
  font-weight: 500;
  padding: .4rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--surface);
}
.section--ink .badge { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: #C3CAE3; }

/* Pillars (3-up on product heroes) */
.pillars { display: grid; gap: 1rem; margin-top: 1.9rem; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  backdrop-filter: blur(4px);
  text-align: left;
}
.pillar .num { font-size: .64rem; font-weight: 700; letter-spacing: .14em; color: #97A8EE; }
.pillar b { display: block; font-family: var(--font-head); color: #fff; margin: .4rem 0 .25rem; font-size: .96rem; font-weight: 600; }
.pillar span { font-size: .82rem; color: #A9B2D2; line-height: 1.5; }

/* Steps (numbered flow) */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 900px) { .steps--5 { grid-template-columns: repeat(5, 1fr); } .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 1.1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #EDF0FC;
  color: var(--primary-deep);
  font-weight: 700;
  font-size: .78rem;
  margin-bottom: .6rem;
}
.step b { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: .25rem; font-size: .92rem; font-weight: 600; }
.step span { font-size: .81rem; color: var(--text-2); line-height: 1.5; }

/* Feature list rows (capability pages) */
.feature-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-row { display: grid; gap: .3rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .feature-row { grid-template-columns: 280px 1fr; } }
.feature-row b { font-family: var(--font-head); color: var(--ink); font-size: .95rem; font-weight: 600; }
.feature-row p { margin: 0; color: var(--text-2); font-size: .89rem; }

/* Check list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checklist li { position: relative; padding-left: 1.7rem; color: var(--text-2); font-size: .92rem; }
.checklist li::before {
  content: ''; position: absolute; left: 2px; top: .5em;
  width: 10px; height: 6px;
  border-left: 2.2px solid var(--ok); border-bottom: 2.2px solid var(--ok);
  transform: rotate(-45deg);
}
.section--ink .checklist li { color: #B6BEDD; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.tf-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
.tf-table th, .tf-table td { padding: .68rem .95rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tf-table thead th {
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tf-table tbody tr:last-child td { border-bottom: 0; }
.tf-table td.yes { color: var(--ok); font-weight: 600; }
.tf-table td.no  { color: var(--danger); }
.tf-table td.part { color: var(--warn); font-weight: 500; }
.tf-table td:first-child { font-weight: 500; color: var(--ink); }
.tf-table .col-hl { background: #F2F4FD; }

/* Console / terminal motif */
.console {
  background: var(--ink);
  border-radius: var(--radius);
  border: 1px solid #262E5C;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #C3CAE3;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.console-bar {
  display: flex; align-items: center; gap: .45rem;
  background: var(--ink-2);
  padding: .55rem .9rem;
  border-bottom: 1px solid #262E5C;
  font-size: .68rem; color: #7C87B0; letter-spacing: .06em;
}
.console-bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.console-bar i:nth-child(1) { background: #E5586E; }
.console-bar i:nth-child(2) { background: #E8C34A; }
.console-bar i:nth-child(3) { background: #63BE52; }
.console-body { padding: 1rem 1.1rem; overflow-x: auto; }
.console-body .ln { display: block; white-space: pre; line-height: 1.85; }
.console .c-green  { color: #7ED96A; }
.console .c-red    { color: #FF7A8E; }
.console .c-yellow { color: #F2D46A; }
.console .c-blue   { color: #94A8F5; }
.console .c-dim    { color: #6B7390; }

/* Policy verdict chips */
.verdict {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .22rem .6rem; border-radius: 999px; white-space: nowrap;
}
.verdict--block  { background: #FBEBEE; color: var(--danger); }
.verdict--notify { background: #FBF3DC; color: #8F6C0A; }
.verdict--justify{ background: #EDF0FC; color: var(--primary-deep); }
.verdict--allow  { background: #EAF4E2; color: var(--ok); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-1);
}
.form-grid { display: grid; gap: .95rem; }
@media (min-width: 720px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--2 .span-2 { grid-column: span 2; } }
.field label { display: block; font-weight: 600; font-size: .84rem; color: var(--ink); margin-bottom: .35rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid #D7DCEB;
  border-radius: 9px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 92, 199, .16);
}
.field .hint { font-size: .74rem; color: var(--text-3); margin-top: .3rem; }
.field-error { color: var(--danger); font-size: .8rem; margin-top: .3rem; }

.alert { border-radius: 11px; padding: .85rem 1.1rem; font-size: .88rem; margin-bottom: 1.2rem; }
.alert--ok { background: #EFF7E9; border: 1px solid #CBE5BC; color: #2F5716; }
.alert--err { background: #FBEBEE; border: 1px solid #F0C4CD; color: var(--danger); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(800px 340px at 85% 130%, rgba(126, 100, 218, .5), transparent 62%),
    radial-gradient(600px 300px at 8% -40%, rgba(74, 92, 199, .55), transparent 58%),
    var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2rem;
  text-align: center;
  color: #A9B2D2;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin: 0 auto 1.4rem; font-size: .92rem; }
.cta-band .hero-ctas { justify-content: center; margin-top: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9AA3C4; }
.footer-main { display: grid; gap: 2rem; padding: 2.6rem 0 2rem; }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.footer-brand img { height: 30px; width: auto; margin-bottom: .9rem; }
.footer-brand p { font-size: .8rem; line-height: 1.6; max-width: 290px; }
.footer-brand .tagline { font-weight: 600; font-size: .78rem; color: #C9D0E8; letter-spacing: .01em; }
.footer-brand a { color: #C9D0E8; font-weight: 500; }
.footer-brand a:hover { color: #fff; text-decoration: none; }
.footer-col h4 {
  font-family: var(--font-sans);
  color: #fff; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .11em;
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: #9AA3C4; font-size: .82rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; gap: .8rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: .76rem;
}
.footer-bottom a { color: #9AA3C4; }
.footer-legal-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  background: #fff;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.3rem;
  box-shadow: var(--shadow-2);
  display: none;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
}
.cookie-banner.show { display: flex; animation: fadeUp .4s ease; }
.cookie-banner p { margin: 0; font-size: .8rem; flex: 1 1 320px; }
.cookie-banner a { color: var(--primary-deep); font-weight: 600; }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-banner .btn--outline-light { border-color: #C9D0E6; color: var(--text-2); }
.cookie-banner .btn--outline-light:hover { border-color: var(--primary-deep); color: var(--primary-deep); background: none; }
.cookie-banner .btn--light { background: var(--primary-deep); color: #fff; }
.cookie-banner .btn--light:hover { background: var(--primary-ink); }

/* --------------------------------------------------------------------------
   Misc page helpers
   -------------------------------------------------------------------------- */
.two-col { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col--wide-left { grid-template-columns: 1.3fr 1fr; } }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.25rem; margin-top: 2em; }
.prose h3 { font-size: 1.02rem; margin-top: 1.7em; }
.prose ul { color: var(--text-2); }
.prose li { margin-bottom: .4em; }
.prose p { font-size: .93rem; }

.arch-layers { display: grid; gap: .65rem; }
.arch-layer {
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 9px;
  background: var(--surface);
  padding: .9rem 1.2rem;
}
.arch-layer b { font-family: var(--font-head); color: var(--ink); display: block; font-size: .94rem; font-weight: 600; }
.arch-layer span { font-size: .84rem; color: var(--text-2); }
.arch-layer .mono-tag {
  float: right;
  font-family: var(--font-sans);
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  color: var(--text-3); text-transform: uppercase; margin-top: .25rem;
}
.arch-layer--1 { border-left-color: #8FA6FF; }
.arch-layer--2 { border-left-color: var(--primary); }
.arch-layer--3 { border-left-color: var(--violet); }
.arch-layer--4 { border-left-color: var(--primary-ink); }

.proto-grid { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .proto-grid { grid-template-columns: repeat(4, 1fr); } }
.proto {
  border: 1px solid var(--line); border-radius: 9px;
  padding: .75rem .95rem;
  font-size: .86rem; font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface);
}
.proto i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.proto span { font-size: .68rem; color: var(--text-3); font-weight: 400; }

/* Full-width impact stat banner (PAM challenge) */
.stat-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.6rem 2.6rem;
  align-items: center;
  grid-template-columns: 1fr;
  background:
    radial-gradient(700px 300px at 8% -40%, rgba(206, 38, 65, .28), transparent 60%),
    radial-gradient(600px 280px at 95% 130%, rgba(74, 92, 199, .35), transparent 60%),
    var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.4rem;
  margin-bottom: 2.4rem;
  color: #A9B2D2;
}
@media (min-width: 900px) { .stat-banner { grid-template-columns: auto 1fr auto; } }
.stat-banner-num {
  font-family: var(--font-head);
  font-size: clamp(4rem, 8vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
}
.stat-banner-num span {
  background: var(--grad-accent-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-banner-lead {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: .5rem;
  line-height: 1.35;
}
.stat-banner-sub { font-size: .92rem; margin-bottom: .7rem; max-width: 560px; }
.stat-banner-src {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7C87B0;
  margin: 0;
}
.stat-banner-side {
  display: grid;
  gap: .8rem;
  min-width: 210px;
}
.stat-mini {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: .7rem 1rem;
}
.stat-mini b {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
}
.stat-mini span { font-size: .76rem; color: #A9B2D2; line-height: 1.4; }

/* "The answer" card — the resolution of the problem cards */
.card--answer {
  background:
    radial-gradient(400px 200px at 90% 120%, rgba(126, 100, 218, .4), transparent 65%),
    linear-gradient(135deg, var(--primary-ink), var(--primary-deep));
  border-color: transparent;
}
.card--answer h3 { color: #fff; }
.card--answer p { color: #D9DEFF; }
.card-answer-link {
  display: inline-block;
  margin-top: .9rem;
  font-weight: 600;
  font-size: .88rem;
  color: #fff;
  text-decoration: none;
}
.card-answer-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* stat highlight */
.big-stat { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.big-stat .num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.big-stat .desc { max-width: 420px; color: var(--text-2); font-size: .92rem; }
.section--ink .big-stat .desc { color: #A9B2D2; }

/* --------------------------------------------------------------------------
   Compliance page
   -------------------------------------------------------------------------- */
.comp-stats {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-top: 1.8rem;
}
@media (min-width: 720px) { .comp-stats { grid-template-columns: repeat(4, 1fr); } }
.comp-stat {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  padding: .8rem 1rem;
}
.comp-stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700;
  background: var(--grad-accent-light);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.comp-stat span { font-size: .72rem; color: #A9B2D2; }

.comp-matrix td:not(:first-child) { text-align: center; font-size: .95rem; }
.comp-matrix td:not(:first-child):not(.yes) { color: #B9C1DC; }

.comp-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.comp-filter {
  font-family: inherit;
  font-size: .82rem; font-weight: 600;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid #C9D0E6;
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s ease;
}
.comp-filter:hover { border-color: var(--primary-deep); color: var(--primary-deep); }
.comp-filter.active {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
  box-shadow: 0 4px 14px rgba(56, 73, 172, .3);
}
.comp-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem;
  margin-bottom: .4rem;
}
.comp-card-head h3 { margin: 0; }
.comp-scope {
  flex-shrink: 0;
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .26rem .7rem; border-radius: 999px;
  background: var(--surface-3); color: var(--text-2);
  white-space: nowrap;
}
.comp-scope--indian { background: #EDF0FC; color: var(--primary-deep); }
.comp-card[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Resource lock + modal alert
   -------------------------------------------------------------------------- */
.lock-icon { width: 15px; height: 15px; flex-shrink: 0; }
.res-card--unlocked { border-color: #CBE5BC; }

.tf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 21, 51, .55);
  backdrop-filter: blur(3px);
}
.tf-modal[hidden] { display: none; }
.tf-modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  animation: fadeUp .28s cubic-bezier(.2, .7, .3, 1);
}
.tf-modal-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #EDF0FC;
  color: var(--primary-deep);
}
.tf-modal-icon svg { width: 26px; height: 26px; }
.tf-modal-card h3 { margin-bottom: .4rem; }
.tf-modal-card p { font-size: .9rem; color: var(--text-2); margin-bottom: 1.4rem; }
.tf-modal-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.blog-card { display: flex; flex-direction: column; }
.blog-date {
  display: block;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: .5rem;
}
.blog-card .card-link { display: block; margin-top: auto; padding-top: .9rem; }

/* Blog cards with auto HTML/CSS cover (no image files) */
.blog-card--cover { padding: 0; overflow: hidden; }
.blog-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .6rem;
  aspect-ratio: 1200 / 630;
  padding: 1.2rem 1.3rem;
  overflow: hidden;
}
.blog-thumb--a { background: linear-gradient(140deg, var(--primary-ink), var(--primary) 90%); }
.blog-thumb--b { background: linear-gradient(140deg, #1E3A24, var(--ok) 95%); }
.blog-thumb--c { background: linear-gradient(140deg, #241C56, var(--violet) 95%); }
.blog-thumb-tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.blog-thumb-title {
  font-family: var(--font-head);
  font-size: 1.12rem; font-weight: 600; line-height: 1.25;
  color: #fff;
  max-width: 78%;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-thumb-mark {
  position: absolute; right: -8px; bottom: -8px;
  width: 78px; height: 78px;
  filter: drop-shadow(0 4px 12px rgba(5,8,25,.4));
  opacity: .95;
}
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.35rem; }
.blog-card-body h3 { margin-bottom: .4rem; }
.blog-card-body p { color: var(--text-2); font-size: .88rem; }
.blog-body { font-size: .97rem; }
.blog-body h2 { font-size: 1.3rem; }
.blog-body img { border-radius: var(--radius); }
.blog-body blockquote {
  margin: 1.4em 0; padding: .8em 1.2em;
  border-left: 4px solid var(--primary);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  color: var(--text-2);
}
.blog-body pre {
  background: var(--ink); color: #C3CAE3;
  border-radius: 10px; padding: 1rem 1.2rem;
  overflow-x: auto; font-size: .82rem;
}
.blog-body code { font-size: .88em; }
.blog-body :not(pre) > code {
  background: var(--surface-3); border-radius: 5px; padding: .1em .4em;
}

/* --------------------------------------------------------------------------
   Platform page — journey flow + product panels
   -------------------------------------------------------------------------- */
.journey {
  display: grid;
  gap: .9rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .journey { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; }
}
.journey-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  transition: box-shadow .18s ease, transform .18s ease;
}
.journey-step:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.journey-step b { display: block; font-family: var(--font-head); font-size: .95rem; font-weight: 600; color: var(--ink); margin: .5rem 0 .25rem; }
.journey-step > span:last-child { font-size: .8rem; color: var(--text-2); line-height: 1.5; }
.journey-chip {
  font-size: .6rem; font-weight: 700; letter-spacing: .08em;
  padding: .2rem .55rem; border-radius: 999px;
}
.journey-chip--iam  { background: #EDF0FC; color: var(--primary-deep); }
.journey-chip--pam  { background: #EAF4E2; color: #3E7027; }
.journey-chip--both { background: linear-gradient(96deg, #EDF0FC, #EAF4E2); color: var(--ink); }
.journey-arrow {
  display: none;
  align-items: center;
  color: #B9C1DC;
  font-size: 1.1rem;
  font-weight: 700;
}
@media (min-width: 1024px) { .journey-arrow { display: flex; } }

.platform-panels {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) { .platform-panels { grid-template-columns: 1fr auto 1fr; } }
.platform-panel {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.platform-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(143, 166, 255, .55);
  background: rgba(255,255,255,.07);
  box-shadow: 0 24px 70px rgba(5, 8, 25, .5);
}
.platform-panel h3 { color: #fff; font-size: 1.35rem; margin: .6rem 0 .1rem; }
.platform-panel-tag {
  align-self: flex-start;
  font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .75rem; border-radius: 999px;
  background: rgba(143, 166, 255, .18); color: #B7C4FF;
}
.platform-panel--pam .platform-panel-tag { background: rgba(126, 217, 106, .16); color: #A5E393; }
.platform-panel-motto {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #97A8EE; margin-bottom: 1rem;
}
.platform-panel .checklist { margin-bottom: 1.4rem; }
.platform-panel .checklist li { color: #B6BEDD; font-size: .88rem; }
.platform-panel .btn { margin-top: auto; align-self: flex-start; }
.platform-join { display: none; align-items: center; justify-content: center; }
@media (min-width: 900px) { .platform-join { display: flex; } }
.platform-join-badge {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 8px 26px rgba(74, 92, 199, .5);
}

/* --------------------------------------------------------------------------
   Tanflow Authenticator app-download band
   -------------------------------------------------------------------------- */
.app-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
  background:
    radial-gradient(600px 280px at 90% -20%, rgba(74, 92, 199, .3), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}
@media (min-width: 860px) { .app-band { grid-template-columns: 1.3fr 1fr; padding: 3rem; } }
.app-band-copy h2 { margin-bottom: .5rem; }
.app-band-copy > p { color: var(--text-2); max-width: 560px; }
.app-stores { display: flex; flex-wrap: wrap; gap: .8rem; }
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1.2rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.app-store-btn svg { flex-shrink: 0; }
.app-store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: 1.05rem; }
.app-store-btn small { font-size: .62rem; font-weight: 500; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }

/* Phone mockup */
.app-phone { display: flex; justify-content: center; }
.app-phone-frame {
  position: relative;
  width: 230px;
  padding: 12px;
  background: #0D1330;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(5, 8, 25, .35), inset 0 0 0 2px rgba(255,255,255,.06);
}
.app-phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 18px; background: #0D1330; border-radius: 0 0 12px 12px; z-index: 2;
}
.app-phone-screen {
  background: linear-gradient(180deg, #F6F8FC, #EEF1F8);
  border-radius: 22px;
  padding: 1.4rem 1rem 1.2rem;
  min-height: 360px;
}
.app-phone-top {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--ink);
  padding-bottom: .9rem; margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.app-otp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem .8rem;
  margin-bottom: .7rem;
  box-shadow: 0 2px 8px rgba(15,21,51,.04);
}
.app-otp-svc { font-size: .64rem; color: var(--text-3); margin-bottom: .2rem; }
.app-otp-row { display: flex; align-items: center; justify-content: space-between; }
.app-otp-code {
  font-family: var(--font-mono);
  font-size: 1.15rem; font-weight: 600; letter-spacing: .05em;
  color: var(--primary-deep);
}
.app-otp-ring {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .64rem; font-weight: 700; color: var(--primary-deep);
  background: conic-gradient(var(--primary) 0 60%, var(--surface-3) 0);
}

/* --------------------------------------------------------------------------
   Admin console — sidebar shell (external CSS so the strict CSP allows it)
   -------------------------------------------------------------------------- */
.admin-shell { background: var(--surface-2); min-height: 100vh; }
:root { --admin-side: 250px; }

.admin-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--admin-side);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1rem;
  z-index: 60;
  transition: transform .25s ease;
}
.admin-brand { display: block; padding: .3rem .6rem 1.2rem; }
.admin-brand img { height: 28px; width: auto; }
.admin-side-label {
  font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #5E6890; margin: .4rem .7rem .6rem;
}
.admin-side-nav { display: flex; flex-direction: column; gap: .2rem; }
.admin-side-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .7rem;
  border-radius: 9px;
  color: #A9B2D2;
  font-size: .9rem; font-weight: 500;
  text-decoration: none !important;
  border: 0; background: none; width: 100%; cursor: pointer; text-align: left;
  font-family: inherit;
}
.admin-side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side-link.active { background: var(--grad-accent); color: #fff; box-shadow: 0 6px 18px rgba(74,92,199,.35); }
.admin-side-ico { display: inline-flex; }
.admin-side-ico svg { width: 18px; height: 18px; }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: .2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.admin-side-signout:hover { color: #FF8A9B; }

.admin-overlay { display: none; position: fixed; inset: 0; background: rgba(5,8,25,.5); z-index: 55; }
.admin-overlay.show { display: block; }
.admin-menu-btn {
  display: none;
  position: fixed; top: 14px; left: 14px; z-index: 70;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--ink); border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.admin-menu-btn span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }

.admin-content { margin-left: var(--admin-side); min-height: 100vh; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.admin-header h1 { font-size: 1.3rem; margin: 0; }
.admin-user { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.admin-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-accent); color: #fff; font-weight: 700; font-size: .9rem;
}
.admin-inner { padding: 1.8rem 2rem 3rem; max-width: 1200px; }

@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .admin-menu-btn { display: inline-flex; }
  .admin-header { padding-left: 4.2rem; }
  .admin-inner { padding: 1.4rem 1.1rem 3rem; }
}

/* Dashboard stat cards */
.admin-stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.8rem; }
@media (min-width: 720px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.admin-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.admin-stat-k { display: flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: .5rem; }
.admin-stat-k svg { width: 15px; height: 15px; color: var(--primary); }
.admin-stat b { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--ink); display: block; line-height: 1; }
.admin-stat span { font-size: .78rem; color: var(--text-3); }

.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; }
.admin-card-head { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-card-head h2 { margin: 0; font-size: 1.05rem; }
.admin-card-body { padding: 1.3rem; }
.admin-spacer { flex: 1; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filters a {
  font-size: .8rem; font-weight: 600;
  padding: .38rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: #fff;
}
.filters a:hover { border-color: var(--primary-deep); color: var(--primary-deep); text-decoration: none; }
.filters a.active { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; text-decoration: none; }

.admin-table-scroll { overflow-x: auto; }
.lead-msg { max-width: 320px; white-space: pre-wrap; font-size: .82rem; color: var(--text-2); }
.pager { display: flex; gap: .6rem; padding: 1rem 1.3rem; align-items: center; font-size: .85rem; color: var(--text-2); border-top: 1px solid var(--line); }
.pager .admin-spacer { flex: 1; }
.admin-mono { font-family: var(--font-mono); font-size: .78rem; }
.admin-editor-grid { max-width: 820px; }
.admin-cover-preview { max-width: 260px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: .6rem; display: block; }
.admin-empty { text-align: center; color: var(--text-3); padding: 2.6rem 1rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cookie-banner, .cta-band, .announce { display: none !important; }
}
