/* =========================================================
   Nivaksha — corporate website
   Palette drawn from the logo: royal blue, orange, green
   ========================================================= */
:root {
  --blue-900: #071a45;
  --blue-800: #0b2a6f;
  --blue-700: #123c96;
  --blue-600: #1e4fc2;
  --blue-100: #e8eefc;
  --orange: #f7941d;
  --orange-600: #e07c05;
  --green: #3fa535;
  --green-100: #e7f5e5;
  --ink: #0f1a33;
  --body: #47526b;
  --muted: #7a859c;
  --line: #e3e8f2;
  --bg: #ffffff;
  --tint: #f5f7fc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -28px rgba(11, 42, 111, .35);
  --shadow-sm: 0 8px 24px -14px rgba(11, 42, 111, .3);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--font); color: var(--body); background: var(--bg);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--display); letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
code { font-size: .85em; background: var(--blue-100); color: var(--blue-700); padding: .1em .35em; border-radius: 5px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 .95rem/1 var(--font); padding: .85rem 1.3rem; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1.05rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; box-shadow: 0 12px 24px -12px rgba(18, 60, 150, .7); }
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(18, 60, 150, .8); }
.btn-accent { background: linear-gradient(135deg, var(--orange), var(--orange-600)); color: #fff; box-shadow: 0 12px 24px -12px rgba(224, 124, 5, .7); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn-ghost { color: var(--blue-700); border-color: var(--line); }
.btn-light { background: #fff; color: var(--blue-800); }

/* ---------- Eyebrow with logo triangle ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 1rem;
}
.eyebrow.light { color: #9db6ff; }
.tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(11, 42, 111, .5); }
.header-row { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.footer-logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { font-weight: 600; font-size: .93rem; color: var(--ink); position: relative; padding: .4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-cta { display: flex; align-items: center; gap: 1.1rem; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0 11px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 110px; background: radial-gradient(60rem 30rem at 85% 0%, #eaf0ff 0%, transparent 60%), radial-gradient(40rem 24rem at 0% 100%, #fff3e4 0%, transparent 65%), #fff; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(18, 60, 150, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 60, 150, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.hero-swoosh { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; pointer-events: none; opacity: .5; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
h1.eyebrow { font-family: var(--font); letter-spacing: .14em; line-height: 1.4; }
.hero-title { font-family: var(--display); font-weight: 800; color: var(--ink); letter-spacing: -.025em; font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.04; margin: 0 0 1.2rem; }
.grad { background: linear-gradient(90deg, var(--blue-600) 0%, var(--blue-700) 45%, var(--orange) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; max-width: 36rem; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.6rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points .ic { color: var(--green); stroke-width: 2.6; }

/* Console mock */
.console { background: var(--blue-900); border-radius: 20px; color: #fff; box-shadow: 0 50px 90px -40px rgba(7, 26, 69, .75), 0 0 0 1px rgba(255, 255, 255, .06) inset; overflow: hidden; position: relative; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s; }
.console:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.console::before { content: ""; position: absolute; inset: 0; background: radial-gradient(28rem 18rem at 0% 0%, rgba(30, 79, 194, .55), transparent 70%), radial-gradient(22rem 16rem at 100% 100%, rgba(247, 148, 29, .22), transparent 70%); pointer-events: none; }
.console-top { position: relative; display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.console-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(226, 232, 255, .75); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #2fd68b; background: rgba(47, 214, 139, .12); border: 1px solid rgba(47, 214, 139, .3); padding: .3rem .65rem; border-radius: 99px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.console-body { position: relative; padding: 1.1rem; display: grid; gap: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.kpi { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: .75rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.kpi-label { font-size: .66rem; color: rgba(226, 232, 255, .6); line-height: 1.3; min-height: 2.6em; }
.kpi strong { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-trend { font-size: .66rem; color: rgba(226, 232, 255, .55); }
.kpi-trend.up, .kpi-trend.ok, .kpi-trend.down { color: #2fd68b; }
.kpi-alert strong { color: #2fd68b; }
.console-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: .65rem; }
.chart-card, .feed-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: .8rem; min-width: 0; }
.card-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(226, 232, 255, .65); margin-bottom: .6rem; }
.legend { display: inline-flex; align-items: center; gap: .3rem; text-transform: none; letter-spacing: 0; font-weight: 600; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.l-in { background: #5b8cff; } .l-out { background: var(--orange); margin-left: .35rem; }
.bars { width: 100%; height: 110px; display: block; }
.bars rect { transition: height .6s cubic-bezier(.2, .8, .2, 1), y .6s cubic-bezier(.2, .8, .2, 1); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .76rem; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: .55rem; align-items: center; padding: .35rem .45rem; border-radius: 8px; background: rgba(255, 255, 255, .03); animation: feedIn .5s ease both; }
.feed li span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed em { font-style: normal; color: rgba(226, 232, 255, .5); font-variant-numeric: tabular-nums; }
.tag { font-size: .6rem; font-weight: 800; letter-spacing: .08em; padding: .15rem .4rem; border-radius: 5px; }
.tag.in { background: rgba(91, 140, 255, .2); color: #9db6ff; }
.tag.out { background: rgba(247, 148, 29, .2); color: #ffc078; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Stats strip ---------- */
.stats { background: var(--blue-800); color: #fff; position: relative; }
.stats::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue-600) 0 33%, var(--orange) 33% 66%, var(--green) 66%); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1rem; text-align: center; border-right: 1px solid rgba(255, 255, 255, .1); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1.1; }
.stat span { font-size: .88rem; color: rgba(226, 232, 255, .72); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 3.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.06rem; }
.muted-h { color: var(--muted); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.pillar { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.pillar::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--accent); transform: scaleX(.25); transform-origin: left; transition: transform .35s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }
.pillar-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); margin-bottom: 1.1rem; }
.pillar-ic .ic { width: 24px; height: 24px; }
.pillar p { font-size: .92rem; margin: 0; }

/* Navy journey */
.section-navy { background: var(--blue-900); color: rgba(226, 232, 255, .78); overflow: hidden; }
.section-navy h2, .section-navy h4 { color: #fff; }
.navy-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 20% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 10%, transparent 70%); }
.section-navy::after { content: ""; position: absolute; width: 46rem; height: 46rem; right: -18rem; top: -14rem; border-radius: 50%; border: 18px solid rgba(247, 148, 29, .18); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(18deg); pointer-events: none; }
.journey { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.journey-copy p { font-size: 1.06rem; margin-bottom: 1.8rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.timeline li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: background .3s, border-color .3s, transform .3s; }
.timeline li:hover { background: rgba(255, 255, 255, .07); border-color: rgba(247, 148, 29, .4); transform: translateX(6px); }
.timeline p { margin: 0; font-size: .94rem; }
.timeline h4 { margin-bottom: .2rem; }
.t-step { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--orange); min-width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; background: rgba(247, 148, 29, .12); }

/* Modules */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.4rem; }
.chip { font: 700 .88rem var(--font); padding: .6rem 1.1rem; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--blue-600); }
.chip.is-active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.module { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .25s, box-shadow .25s, opacity .25s; }
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.module .ic { grid-row: span 2; width: 42px; height: 42px; padding: 10px; border-radius: 11px; background: var(--blue-100); color: var(--blue-700); }
.module[data-cat="finance"] .ic { background: #fff1df; color: var(--orange-600); }
.module[data-cat="community"] .ic { background: var(--green-100); color: #2e8a26; }
.module[data-cat="governance"] .ic { background: #efe9fb; color: #6b3fc2; }
.module[data-cat="facility"] .ic { background: #e2f4f5; color: #0e7c86; }
.module h4 { margin: .1rem 0 .25rem; }
.module p { margin: 0; font-size: .9rem; }
.module.is-hidden { display: none; }

/* Roles */
.roles { display: grid; grid-template-columns: 290px 1fr; gap: 1.5rem; }
.role-tabs { display: flex; flex-direction: column; gap: .5rem; }
.role-tab { display: flex; align-items: center; gap: .8rem; font: 700 .98rem var(--font); text-align: left; padding: 1.05rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .25s; }
.role-tab .ic { color: var(--blue-600); }
.role-tab:hover { border-color: var(--blue-600); }
.role-tab.is-active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); box-shadow: var(--shadow-sm); }
.role-tab.is-active .ic { color: var(--orange); }
.role-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.4rem; box-shadow: var(--shadow-sm); animation: fadeUp .4s ease both; }
.role-panel[hidden] { display: none; }
.role-panel h3 { font-family: var(--display); font-size: 1.45rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.8rem; color: var(--ink); font-weight: 500; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fa535' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/70% no-repeat; }
.role-visual { background: var(--tint); border-radius: 16px; padding: 1.4rem; display: grid; gap: .75rem; border: 1px solid var(--line); }
.rv-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.rv-row b { color: var(--ink); }
.rv-row b.ok { color: var(--green); }
.meter { height: 8px; border-radius: 99px; background: #dfe5f2; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-600), var(--blue-800)); }
.meter.green span { background: var(--green); }
.meter.orange span { background: var(--orange); }
.ticket { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; }
.ticket .pill { grid-row: span 2; }
.ticket b { color: var(--ink); font-size: .92rem; }
.ticket small { color: var(--muted); }
.pill { font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: .25rem .55rem; border-radius: 6px; }
.pill.orange { background: #fff1df; color: var(--orange-600); }
.pill.blue { background: var(--blue-100); color: var(--blue-700); }
.pill.green { background: var(--green-100); color: #2e8a26; }
.scan { justify-items: center; }
.scan-box { position: relative; width: 150px; height: 150px; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 2px dashed #c9d3ea; }
.scan-box .ic { width: 90px; height: 90px; color: var(--blue-800); stroke-width: 1.4; }
.scan-line { position: absolute; left: 8px; right: 8px; height: 3px; background: var(--orange); box-shadow: 0 0 12px var(--orange); border-radius: 2px; animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 14px; } 50% { top: calc(100% - 17px); } }
.scan-ok { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: #2e8a26; background: var(--green-100); padding: .55rem .9rem; border-radius: 10px; font-size: .88rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, #c9d3ea 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%; background: #fff; border: 2px solid var(--blue-600); color: var(--blue-700); font: 800 1.2rem var(--display); box-shadow: 0 0 0 8px #fff; }
.step:last-child .step-n { background: var(--orange); border-color: var(--orange); color: #fff; }
.step p { font-size: .93rem; }

/* Trust */
.trust { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.trust-copy p { font-size: 1.06rem; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.trust-card .ic { width: 28px; height: 28px; color: var(--blue-600); margin-bottom: .9rem; }
.trust-card p { font-size: .92rem; margin: 0; }
.integrations { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.6rem; }
.int-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .82rem; color: var(--ink); margin-right: .3rem; }
.int { font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: #c9d6f3; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--font); font-size: 1.02rem; margin: 0; line-height: 1.4; }
.faq summary::after { content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123c96' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .25s, background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: #fff1df; }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; font-size: .96rem; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7), 0 4px 10px rgba(0, 0, 0, .12); transition: transform .25s, box-shadow .25s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float .ic { width: 30px; height: 30px; stroke-width: 1.7; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px); white-space: nowrap; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; padding: .45rem .75rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translateY(-50%); }

/* Contact */
.contact-section { background: linear-gradient(135deg, var(--blue-800), var(--blue-900)); color: rgba(226, 232, 255, .8); overflow: hidden; }
.contact-section::before { content: ""; position: absolute; width: 40rem; height: 40rem; left: -16rem; bottom: -22rem; border-radius: 50%; border: 16px solid rgba(63, 165, 53, .2); border-right-color: transparent; border-top-color: transparent; }
.contact { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.contact h2 { color: #fff; }
.contact-copy p { font-size: 1.06rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; color: #fff; font-weight: 600; }
.contact-list .ic { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--orange); }
.contact-list .wa-item .ic { background: #25d366; color: #fff; }
.contact-list .wa-item a { border-bottom: 1px solid rgba(37, 211, 102, .5); transition: color .2s, border-color .2s; }
.contact-list .wa-item a:hover { color: #25d366; border-color: #25d366; }
.form { background: #fff; border-radius: 20px; padding: 2.2rem; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); display: grid; gap: 1rem; }
.form h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: .2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .82rem; font-weight: 700; color: var(--ink); }
.form input, .form select, .form textarea { font: 500 .95rem var(--font); color: var(--ink); padding: .8rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--tint); transition: border-color .2s, background .2s, box-shadow .2s; width: 100%; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(30, 79, 194, .12); }
.form .is-invalid { border-color: #e5484d; background: #fff5f5; }
.captcha { display: grid; gap: .4rem; }
.captcha-label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.captcha-row { display: flex; align-items: center; gap: .6rem; }
.captcha-img { height: 56px; width: auto; max-width: 50%; border: 1.5px solid var(--line); border-radius: 10px; background: var(--tint); transition: opacity .2s; flex-shrink: 1; min-width: 0; }
.captcha-img.is-loading { opacity: .35; }
.captcha-refresh { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue-700); cursor: pointer; transition: border-color .2s, background .2s; }
.captcha-refresh:hover { border-color: var(--blue-600); background: var(--blue-100); }
.captcha-refresh.is-spinning .ic { animation: spin .5s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.form .captcha-input { flex: 1 1 6rem; min-width: 5.5rem; text-align: center; text-transform: uppercase; letter-spacing: .2em; font-size: 1.15rem; font-weight: 800; }
.captcha-hint { font-size: .78rem; color: var(--muted); }
.field-error { font-size: .78rem; font-weight: 600; color: #d1343a; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-note { margin: 0; font-size: .88rem; font-weight: 600; min-height: 1.3em; }
.form-note.ok { color: #2e8a26; }
.form-note.err { color: #d1343a; }

/* Footer */
.footer { background: #050f2a; color: rgba(226, 232, 255, .6); padding: 72px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 12px; margin-bottom: 1.1rem; }
.footer-logo img { height: 40px; width: auto; }
.footer-brand p { max-width: 22rem; }
.footer h5 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { display: block; padding: .25rem 0; transition: color .2s; }
.footer a:hover { color: var(--orange); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.console.reveal.in { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.console.reveal.in:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 1.1rem; }
}
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .nav.is-open { display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 24px 1.2rem; box-shadow: 0 20px 40px -24px rgba(11, 42, 111, .4); }
  .nav.is-open a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav.is-open a::after { display: none; }
  .nav.is-open .nav-cta-mobile { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1rem; }
  .nav.is-open .nav-cta-mobile a { border-bottom: 1.5px solid; padding: .85rem 1rem; }
  .nav.is-open .nav-cta-mobile .btn-ghost { border-color: var(--line); }
  .nav.is-open .nav-cta-mobile .btn-primary { border-color: transparent; }
  .hero-inner, .journey, .trust, .contact { grid-template-columns: 1fr; gap: 48px; }
  .console, .console.reveal.in { transform: none; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-wrap .section-head { position: static; }
  .role-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .role-tab { flex-shrink: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  :root { --header-h: 66px; }
  .brand img { height: 36px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .console-split { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .stat:nth-child(2) { border-right: 0; }
  .pillars, .modules, .trust-grid, .steps { grid-template-columns: 1fr; }
  .role-panel { grid-template-columns: 1fr; padding: 1.5rem; }
  .form { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-tip { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
