[hidden] { display: none !important; }
img { max-width: 100%; }
/* Layout: one committed light theme. Cool white ground with a faint dot grid. Hero is a live "gate console" (ID scan beam, extracted fields, event log). Each page carries one system-style visual: network map, shift log, phone, analytics window. Brand teal from the Caxiara apps, with a cyan glow used for motion and highlights only. */
:root {
  --bg: #F5FAF7;
  --surface: #FFFFFF;
  --ink: #0E211B;
  --muted: #4C6258;
  --line: #D6E4DC;
  --brand: #287862;
  --brand-deep: #1B5744;
  --glow: #2BC48F;
  --mark: #FF0000;
  --brand-ink: #FFFFFF;
  --soft: #E4F2EB;
  --grid: rgba(40, 120, 98, 0.09);
  --ok: #0E7C4A;
  --ok-soft: #E1F4EA;
  --accent: #A45F00;
  --accent-soft: #FBEBC8;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid) 1px, transparent 1.2px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  padding-block: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-head { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); }
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.22em; font-size: 18px; }
.brand img { height: 44px; width: auto; display: block; }
.foot .brand img { height: 60px; }
.nav { display: flex; gap: 4px; align-items: center; overflow-x: auto; min-width: 0; max-width: 100%; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--brand-deep); background: var(--soft); }
.nav a.cta { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 0 rgba(43,196,143,0.5); }
.nav a.cta:hover { background: var(--brand-deep); }

/* Type */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }
.grad { background: linear-gradient(90deg, var(--brand), var(--glow)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 3px rgba(255,0,0,0.14); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 10px; font: 600 15px var(--font-body); text-decoration: none; border: 1.5px solid var(--brand); cursor: pointer; min-height: 48px; transition: box-shadow .2s, background .2s; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-deep); box-shadow: 0 8px 24px -8px rgba(40,120,98,0.6); }
.btn.ghost { background: var(--surface); color: var(--brand); }
.btn.ghost:hover { background: var(--soft); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 500 12.5px var(--font-mono); background: var(--soft); color: var(--brand-deep); border: 1px solid rgba(40,120,98,0.18); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(14,124,74,0.2); }
.chip.amber { background: var(--accent-soft); color: var(--accent); border-color: rgba(164,95,0,0.2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,124,74,0.5); } 100% { box-shadow: 0 0 0 9px rgba(14,124,74,0); } }

/* Sections */
.page { padding-block: 0 72px; }
.band { padding-block: 64px; border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; justify-items: start; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 48px; align-items: center; padding-block: 56px 56px; position: relative; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -10%; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(43,196,143,0.18), transparent); pointer-events: none; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-block: 56px 48px; position: relative; }
.split::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -10%; width: 60%; height: 90%; background: radial-gradient(closest-side, rgba(43,196,143,0.14), transparent); pointer-events: none; }
.split .copy { display: grid; gap: 18px; justify-items: start; }
.page-hero { padding-block: 64px 40px; display: grid; gap: 18px; max-width: 800px; justify-items: start; }

/* Window chrome (used by every system visual) */
.win { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(14,33,27,0.35), 0 0 0 1px rgba(255,255,255,0.6) inset; min-width: 0; width: 100%; }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FBFDFC, #ECF4EF); font: 500 12px var(--font-mono); color: var(--muted); letter-spacing: 0.04em; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; flex: none; }
.win-bar .t { margin-left: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-bar .r { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); white-space: nowrap; }
.win-body { padding: 18px; display: grid; gap: 16px; }
.sample { font: 500 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Gate console */
.scan-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
.idcard { position: relative; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #F0F7F3, #E1EFE8); padding: 14px; overflow: hidden; display: grid; gap: 10px; align-content: start; min-height: 190px; }
.idcard .hd { font: 500 10.5px var(--font-mono); letter-spacing: 0.1em; color: var(--brand-deep); text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.idcard .photo { width: 52px; height: 64px; border-radius: 6px; background: linear-gradient(160deg, #C6DDD2, #A2C4B5); }
.idcard .ln { height: 8px; border-radius: 4px; background: rgba(14,33,27,0.14); }
.idcard .ln.s { width: 55%; } .idcard .ln.m { width: 78%; } .idcard .ln.l { width: 92%; }
.idcard .row { display: flex; gap: 12px; align-items: flex-start; }
.idcard .row .col { display: grid; gap: 8px; flex: 1; min-width: 0; padding-top: 4px; }
.beam { position: absolute; left: 0; right: 0; top: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--glow), transparent); box-shadow: 0 0 18px 6px rgba(43,196,143,0.35); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 90%; } }
.corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--glow); }
.corner.a { left: 6px; top: 6px; border-right: 0; border-bottom: 0; }
.corner.b { right: 6px; top: 6px; border-left: 0; border-bottom: 0; }
.corner.c { left: 6px; bottom: 6px; border-right: 0; border-top: 0; }
.corner.d { right: 6px; bottom: 6px; border-left: 0; border-top: 0; }
.fields { margin: 0; display: grid; gap: 0; align-content: start; }
.fields > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.fields > div:first-child { padding-top: 2px; }
.fields dt { font: 500 11px var(--font-mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; grid-column: 1; }
.fields dd { margin: 0; font-weight: 600; grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
.fields .tick { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font: 400 12.5px var(--font-mono); }
.log li { display: grid; grid-template-columns: 62px 112px minmax(0, 1fr); gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--muted); transition: background .3s, color .3s; align-items: baseline; }
.log li b { font-weight: 500; color: var(--brand-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log li.on { background: var(--soft); color: var(--ink); }

/* Spec strip */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.specs > div { padding: 22px 22px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.specs > div:first-child { border-left: 0; }
.specs b { font: 700 2.2rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--brand); }
.specs span { font-size: 14px; color: var(--muted); }

/* Flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--glow)); opacity: 0.55; }
.flow li { counter-increment: step; padding: 0 16px 0 0; display: grid; gap: 8px; align-content: start; position: relative; }
.flow li::before { content: counter(step); width: 30px; height: 30px; border-radius: 9px; background: var(--surface); border: 1.5px solid var(--brand); color: var(--brand-deep); font: 500 13px var(--font-mono); display: grid; place-items: center; position: relative; z-index: 1; }
.flow b { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; margin-top: 6px; }
.flow span { font-size: 14px; color: var(--muted); }

/* Network map */
.map { padding: 8px; }
.map svg { width: 100%; height: auto; display: block; }
.n-rect { fill: var(--surface); stroke: var(--brand); stroke-width: 1.5; }
.n-core { fill: var(--brand); stroke: var(--brand-deep); stroke-width: 1.5; }
.n-text { fill: var(--ink); font: 700 15px var(--font-display); }
.n-sub { fill: var(--muted); font: 400 11.5px var(--font-mono); }
.n-core-text { fill: var(--brand-ink); font: 700 16px var(--font-display); letter-spacing: 0.1em; }
.n-core-sub { fill: #D6F2E6; font: 400 11.5px var(--font-mono); }
.wire { stroke: var(--line); stroke-width: 2; fill: none; }
.pkt { stroke: var(--glow); stroke-width: 2.5; fill: none; stroke-dasharray: 6 14; stroke-linecap: round; animation: dash 1.4s linear infinite; }
.pkt.rev { animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.w-label { fill: var(--muted); font: 400 11px var(--font-mono); }

/* App panels */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trio .win-body { align-content: start; gap: 12px; }
.trio h3 { font-size: 1.25rem; }
.trio .who { font: 400 13px var(--font-mono); color: var(--muted); }
.trio ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.trio a.more { font-weight: 600; color: var(--brand); text-decoration: none; margin-top: 2px; }
.trio a.more:hover { text-decoration: underline; }

/* Ruled lists */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.rules > div { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.rules h3 { font-size: 1.08rem; }
.rules p { color: var(--muted); font-size: 15px; }
.rules.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }

/* Code panel */
.code { margin: 0; padding: 18px; font: 400 13px/1.7 var(--font-mono); color: var(--ink); overflow-x: auto; background: #EEF6F1; }
.code .k { color: var(--brand-deep); } .code .s { color: var(--ok); } .code .c { color: var(--muted); }
.two-up { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }

/* Two-flow columns */
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.steps li::before { content: counter(s); font-family: var(--font-mono); color: var(--brand); font-weight: 500; }
.steps li:last-child { border-bottom: 1px solid var(--line); }

/* Phone */
.phone { width: 270px; max-width: 100%; margin-inline: auto; border: 9px solid var(--ink); border-radius: 36px; background: var(--surface); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(14,33,27,0.55); }
.phone-top { background: var(--brand); color: var(--brand-ink); padding: 18px 16px 14px; font: 700 16px var(--font-display); }
.phone-top small { display: block; font: 400 11px var(--font-mono); opacity: 0.85; margin-top: 2px; }
.phone-body { padding: 14px 14px 18px; display: grid; gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12.5px; font-weight: 600; text-align: center; }
.seg span { padding: 9px 4px; color: var(--muted); }
.seg span.sel { background: var(--soft); color: var(--brand-deep); }
.phone .fld { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13px; }
.phone .fld small { display: block; font: 400 10px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.phone .qr { width: 110px; height: 110px; margin-inline: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: #0E211B; }
.phone .qr svg { width: 100%; height: 100%; display: block; }
.phone .pay { text-align: center; }

/* Analytics window */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.kpis small { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.kpis b { font: 700 1.5rem/1.1 var(--font-display); }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 130px; border-bottom: 1px solid var(--line); }
.bars i { display: block; height: var(--h); background: linear-gradient(180deg, var(--glow), var(--brand)); border-radius: 5px 5px 0 0; transform-origin: bottom; animation: grow .9s ease-out both; animation-delay: calc(var(--i) * 45ms); }
@keyframes grow { from { transform: scaleY(0.15); } }
.axis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; font: 400 10px var(--font-mono); color: var(--muted); text-align: center; }

/* Register table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: #ECF4EF; }
td:first-child { font-weight: 600; white-space: nowrap; }
td:last-child { color: var(--muted); }

/* Coming next */
.next { display: flex; flex-wrap: wrap; gap: 10px; }
.next span { padding: 9px 14px; border: 1px dashed #A8C8B9; border-radius: 999px; font-size: 14.5px; background: var(--surface); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-deep), var(--brand) 55%, #2E9C78); color: var(--brand-ink); border-radius: 20px; padding: 48px clamp(22px, 5vw, 56px); display: grid; gap: 18px; justify-items: start; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1.2px); background-size: 22px 22px; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { max-width: 56ch; opacity: 0.94; }
.cta-band .btn { background: var(--surface); color: var(--brand-deep); border-color: var(--surface); }
.cta-band .btn:hover { background: var(--soft); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { font: 400 16px var(--font-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 4px rgba(43,196,143,0.2); }
textarea { min-height: 110px; resize: vertical; }
.fieldrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.out { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 12px; }
.out pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 13.5px; background: #EEF6F1; padding: 14px; border-radius: 10px; }
.facts { display: grid; gap: 0; }
.facts > div { padding-block: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.facts .mono { font-size: 13px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 32px; font-size: 14.5px; }
.foot h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.legal { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero, .split, .contact, .two-up { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .flow::before { display: none; }
  .trio, .rules, .rules.three, .twocol { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div:nth-child(3) { border-left: 0; }
  .specs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .scan-grid { grid-template-columns: minmax(0, 1fr); }
  .fieldrow { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .log li { grid-template-columns: 56px minmax(0, 1fr); }
  .log li b { display: none; }
  .band { padding-block: 48px; }
  .hero, .split { padding-block: 36px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam, .pkt, .dot, .bars i { animation: none; }
}
