/* ProxasLab / PROXA — light "infrastructure" design system
   Display: Space Grotesk · Body: IBM Plex Sans · Data/labels: IBM Plex Mono */

:root{
  --bg:#ffffff; --bg-soft:#f4f7fc; --panel:#ffffff;
  --line:#e4eaf3; --line-strong:#cdd8e8;
  --ink:#0b1a33; --body:#36465e; --muted:#6b7b95;
  --brand:#143a7a; --primary:#1763e6; --primary-d:#0d4fc4;
  --cyan:#0596c4; --cyan-soft:#e3f5fb;
  --good:#0a9c70; --good-soft:#e2f6ef; --warn:#d8523a; --warn-soft:#fbe9e4;
  --r:14px; --r-sm:10px;
  --sh-sm:0 1px 2px rgba(11,26,51,.06);
  --sh:0 2px 6px rgba(11,26,51,.06), 0 14px 34px rgba(11,26,51,.07);
  --sh-lg:0 8px 20px rgba(11,26,51,.08), 0 30px 60px rgba(11,26,51,.10);
  --maxw:1140px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--body);
  font-family:"IBM Plex Sans",system-ui,sans-serif; font-size:16.5px; line-height:1.62;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:"Space Grotesk",sans-serif; color:var(--ink); line-height:1.08; letter-spacing:-.02em; margin:0}
p{margin:0}
a{color:inherit; text-decoration:none}
.mono{font-family:"IBM Plex Mono",monospace}
img{display:block}
::selection{background:#cfe0ff; color:var(--brand)}

/* blueprint texture — extremely subtle, only adds engineering feel */
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    linear-gradient(var(--bg),var(--bg)),
    linear-gradient(90deg,rgba(20,58,122,.035) 1px,transparent 1px) 0 0/28px 28px,
    linear-gradient(rgba(20,58,122,.035) 1px,transparent 1px) 0 0/28px 28px;
  background-blend-mode:normal; mask-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent 60%);
}

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

/* ── buttons ── */
.btn{
  display:inline-flex; align-items:center; gap:9px; cursor:pointer;
  font-family:"Space Grotesk",sans-serif; font-weight:600; font-size:15px;
  color:#fff; background:var(--primary); border:1px solid var(--primary);
  padding:11px 20px; border-radius:var(--r-sm); transition:.16s ease;
  box-shadow:0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px rgba(23,99,230,.22);
}
.btn:hover{background:var(--primary-d); border-color:var(--primary-d); transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-sm{padding:8px 15px; font-size:14px}
.btn-lg{padding:14px 26px; font-size:16.5px}
.btn-ghost{background:#fff; color:var(--brand); border-color:var(--line-strong); box-shadow:var(--sh-sm)}
.btn-ghost:hover{background:var(--bg-soft); border-color:var(--primary); color:var(--primary)}
.btn.w{width:100%; justify-content:center}
:focus-visible{outline:3px solid #9cc0ff; outline-offset:2px; border-radius:6px}

/* ── nav ── */
.nav{
  position:sticky; top:0; z-index:50; display:flex; align-items:center; gap:22px;
  padding:14px 24px; max-width:var(--maxw); margin:0 auto;
  background:rgba(255,255,255,.82); backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid transparent;
}
.nav.scrolled{border-bottom-color:var(--line); background:rgba(255,255,255,.93)}
.brand{display:flex; align-items:center; gap:11px; font-family:"Space Grotesk",sans-serif; font-weight:700; color:var(--ink); font-size:19px; letter-spacing:-.01em}
.brand i{display:block; font-style:normal; font-weight:500; font-size:11px; color:var(--muted); font-family:"IBM Plex Mono",monospace; margin-top:-2px}
.brand span{display:flex; flex-direction:column; line-height:1.05}
.nav-links{display:flex; gap:6px; margin-left:auto}
.nav-links a{
  font-size:14.5px; font-weight:500; color:var(--body); padding:8px 13px; border-radius:8px; transition:.14s;
}
.nav-links a:hover{background:var(--bg-soft); color:var(--ink)}
.nav-links a[aria-current="page"]{color:var(--primary)}
.nav .btn{margin-left:6px}
.nav-mobile{display:none}

/* ── generic section ── */
.section{padding:84px 0}
.section.soft{background:var(--bg-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.kicker{color:var(--cyan); font-size:12.5px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; margin-bottom:14px}
.section h2{font-size:clamp(28px,4vw,40px); font-weight:700; max-width:18ch}
.section .lede{margin-top:16px; max-width:62ch; font-size:18px; color:var(--body)}
.eyebrow{display:inline-flex; align-items:center; gap:8px; font-family:"IBM Plex Mono",monospace; font-size:12.5px; color:var(--brand); background:var(--cyan-soft); border:1px solid #c3e8f3; padding:5px 11px; border-radius:999px}
.eyebrow .dot{width:7px; height:7px; border-radius:50%; background:var(--good); box-shadow:0 0 0 3px rgba(10,156,112,.18)}

/* ── hero ── */
.hero{display:grid; grid-template-columns:1.05fr .95fr; gap:54px; align-items:center; padding:74px 0 66px}
.hero h1{font-size:clamp(38px,5.4vw,62px); font-weight:700; margin:20px 0 0}
.hero h1 em{font-style:normal; color:var(--primary)}
.hero .lede{margin-top:22px; font-size:18.5px; max-width:54ch}
.hero .lede strong{color:var(--ink); font-weight:600}
.hero-cta{display:flex; gap:13px; margin-top:30px; flex-wrap:wrap}
.hero-sub{margin-top:16px; font-size:13.5px; color:var(--muted); font-family:"IBM Plex Mono",monospace}

/* ── signature: identity panel ── */
.panel{background:var(--panel); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--sh-lg); overflow:hidden}
.panel-top{display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--line); background:linear-gradient(180deg,#fbfdff,#f4f8fe)}
.panel-title{display:flex; align-items:center; gap:9px; font-family:"IBM Plex Mono",monospace; font-size:13px; color:var(--brand); font-weight:500}
.led{width:8px; height:8px; border-radius:50%; background:var(--good); box-shadow:0 0 0 3px rgba(10,156,112,.16); animation:pulse 2.4s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}
.seg{display:inline-flex; cursor:pointer; border:1px solid var(--line-strong); border-radius:999px; background:#fff; padding:3px; font-family:"IBM Plex Mono",monospace; font-size:12px}
.seg span{padding:4px 11px; border-radius:999px; color:var(--muted); transition:.18s}
.seg span.on{background:var(--primary); color:#fff}
.panel-rows{padding:6px 4px}
.row{display:grid; grid-template-columns:96px 1fr auto; align-items:center; gap:12px; padding:11px 14px; border-bottom:1px solid #f0f4fa}
.row:last-child{border-bottom:0}
.row .field{font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.03em}
.row .val{font-family:"IBM Plex Mono",monospace; font-size:13.5px; color:var(--ink); transition:.3s; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.row .val.exposed{color:var(--warn)}
.row .val.isolated{color:var(--good)}
.tag-state{font-family:"IBM Plex Mono",monospace; font-size:10.5px; padding:2px 7px; border-radius:999px; white-space:nowrap}
.tag-state.exposed{background:var(--warn-soft); color:var(--warn)}
.tag-state.isolated{background:var(--good-soft); color:var(--good)}
.panel-foot{display:flex; align-items:center; justify-content:space-between; padding:13px 16px; border-top:1px solid var(--line); background:#fbfdff}
.scanline{font-family:"IBM Plex Mono",monospace; font-size:11.5px; color:var(--muted)}
.verdict{font-size:12.5px; font-weight:600}
.verdict.exposed{color:var(--warn)} .verdict.isolated{color:var(--good)}

/* ── trust strip ── */
.strip{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; box-shadow:var(--sh-sm)}
.strip>div{background:#fff; padding:20px 22px}
.strip b{display:block; font-family:"Space Grotesk",sans-serif; color:var(--ink); font-size:16px}
.strip span{font-size:13px; color:var(--muted)}

/* ── flow ── */
.flow{display:grid; grid-template-columns:1fr auto 1.2fr auto 1fr; gap:14px; align-items:stretch; margin-top:36px}
.flow-node{background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:20px; box-shadow:var(--sh-sm)}
.flow-node.accent{border-color:#bcd3f7; background:linear-gradient(180deg,#fff,#f3f8ff); box-shadow:var(--sh)}
.flow-node .tag{display:inline-block; font-size:11.5px; color:var(--cyan); margin-bottom:8px}
.flow-node.accent .tag{color:var(--primary)}
.flow-node p{font-size:14px; color:var(--body)}
.flow-arrow{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:var(--line-strong)}
.flow-arrow span{width:34px; height:2px; background:linear-gradient(90deg,var(--line-strong),var(--primary)); position:relative}
.flow-arrow span::after{content:""; position:absolute; right:-1px; top:-3px; border-left:7px solid var(--primary); border-top:4px solid transparent; border-bottom:4px solid transparent}
.flow-arrow i{font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--muted); font-style:normal}

/* ── cards grid ── */
.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:38px}
.card{background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:24px; box-shadow:var(--sh-sm); transition:.18s}
.card:hover{box-shadow:var(--sh); transform:translateY(-2px); border-color:#cfdcf0}
.card h3{font-size:18.5px; font-weight:600; margin-bottom:9px; display:flex; align-items:center; gap:9px}
.card h3::before{content:""; width:9px; height:9px; border-radius:3px; background:linear-gradient(135deg,var(--primary),var(--cyan))}
.card p{font-size:14.5px; color:var(--body)}

/* ── leak proof ── */
.leak{margin-top:34px; border:1px solid var(--line); border-radius:var(--r); overflow:hidden; box-shadow:var(--sh); background:#fff}
.leak-row{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; border-bottom:1px solid #f0f4fa}
.leak-row:last-child{border-bottom:0}
.leak-row .ch{font-size:13.5px; color:var(--ink)}
.state{font-family:"IBM Plex Mono",monospace; font-size:13px; display:inline-flex; align-items:center; gap:9px; color:var(--good)}
.state::before{content:""; width:9px; height:9px; border-radius:50%; background:var(--good); box-shadow:0 0 0 3px var(--good-soft)}
.state.strong{font-weight:600; color:var(--brand)} .state.strong::before{background:var(--brand); box-shadow:0 0 0 3px #dde7f7}
.state code{background:var(--bg-soft); padding:1px 5px; border-radius:5px; color:var(--brand)}
.proof-note{margin-top:18px; font-size:12.5px; color:var(--muted); max-width:70ch}

/* ── pricing ── */
.tiers{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:38px; align-items:start}
.tier{position:relative; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:28px 24px; box-shadow:var(--sh-sm)}
.tier.feature{border-color:#bcd3f7; box-shadow:var(--sh-lg); transform:translateY(-6px)}
.tier .ribbon{position:absolute; top:-11px; left:24px; background:var(--primary); color:#fff; font-family:"IBM Plex Mono",monospace; font-size:11px; padding:3px 10px; border-radius:999px}
.tier header{display:flex; align-items:baseline; justify-content:space-between; padding-bottom:16px; border-bottom:1px solid var(--line); margin-bottom:18px}
.tier h3{font-size:20px; font-weight:600}
.tier .price{font-family:"Space Grotesk",sans-serif; font-size:34px; font-weight:700; color:var(--ink)}
.tier .price small{font-size:14px; color:var(--muted); font-weight:500}
.tier ul{list-style:none; margin:0 0 22px; padding:0; display:flex; flex-direction:column; gap:11px}
.tier li{position:relative; padding-left:26px; font-size:14.5px; color:var(--body)}
.tier li::before{content:""; position:absolute; left:0; top:7px; width:15px; height:9px; border-left:2px solid var(--good); border-bottom:2px solid var(--good); transform:rotate(-45deg)}
.pay-note{margin-top:22px; text-align:center; font-size:12.5px; color:var(--muted)}

/* ── download ── */
.dl-card{display:flex; align-items:center; gap:28px; background:#fff; border:1px solid var(--line); border-radius:18px; padding:34px; box-shadow:var(--sh-lg); max-width:760px; margin:0 auto}
.dl-card img{border-radius:16px; box-shadow:var(--sh)}
.dl-body h2{font-size:26px; font-weight:700}
.dl-body p{margin:10px 0 18px; color:var(--body)}
.dl-meta{margin-top:14px; font-size:12.5px; color:var(--muted)}
.reqs{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:40px}
.req{background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:20px; box-shadow:var(--sh-sm)}
.req b{display:block; font-family:"Space Grotesk",sans-serif; color:var(--ink)}
.req span{font-size:13.5px; color:var(--muted)}
.steps{counter-reset:s; display:grid; gap:14px; margin-top:34px; max-width:680px}
.step{counter-increment:s; position:relative; padding:18px 20px 18px 64px; background:#fff; border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--sh-sm)}
.step::before{content:counter(s,decimal-leading-zero); position:absolute; left:18px; top:16px; font-family:"IBM Plex Mono",monospace; color:var(--primary); font-size:18px; font-weight:500}
.step b{font-family:"Space Grotesk",sans-serif; color:var(--ink)}

/* page hero (interior pages) */
.page-head{padding:56px 0 8px}
.page-head h1{font-size:clamp(32px,4.5vw,48px); font-weight:700; margin-top:14px}
.page-head .lede{margin-top:16px; max-width:60ch; font-size:18px}

/* ── footer ── */
.foot{border-top:1px solid var(--line); background:var(--bg-soft); margin-top:8px}
.foot .wrap{display:flex; align-items:center; gap:18px; padding:34px 24px; flex-wrap:wrap}
.foot-brand{display:flex; align-items:center; gap:10px; font-family:"Space Grotesk",sans-serif; font-weight:700; color:var(--ink)}
.foot-links{display:flex; gap:18px; margin-left:8px}
.foot-links a{font-size:14px; color:var(--body)} .foot-links a:hover{color:var(--primary)}
.foot-note{margin-left:auto; font-size:13px; color:var(--muted)}

/* ── responsive ── */
@media(max-width:900px){
  .hero{grid-template-columns:1fr; gap:36px; padding:48px 0}
  .grid,.tiers,.reqs{grid-template-columns:1fr}
  .strip{grid-template-columns:repeat(2,1fr)}
  .flow{grid-template-columns:1fr; gap:10px}
  .flow-arrow{flex-direction:row; padding:2px 0}.flow-arrow span{width:2px; height:22px; background:linear-gradient(180deg,var(--line-strong),var(--primary))}
  .flow-arrow span::after{right:-3px; top:auto; bottom:-1px; border-left:4px solid transparent; border-right:4px solid transparent; border-top:7px solid var(--primary); border-bottom:0}
  .tier.feature{transform:none}
  .nav-links{display:none}
  .nav-mobile{display:inline-flex; margin-left:auto}
  .dl-card{flex-direction:column; text-align:center}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important; transition:none!important; scroll-behavior:auto}}

/* ── pricing toggles ── */
.seg-row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:30px}
.seg2{display:inline-flex; background:#fff; border:1px solid var(--line-strong); border-radius:999px; padding:4px; box-shadow:var(--sh-sm)}
.seg2 button{font-family:"IBM Plex Mono",monospace; font-size:13px; color:var(--muted); background:none; border:0; cursor:pointer; padding:7px 16px; border-radius:999px; transition:.16s}
.seg2 button.on{background:var(--primary); color:#fff}
.seg2 button:not(.on):hover{color:var(--ink)}

/* ── subscribe modal ── */
.modal{position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center; padding:20px;
  background:rgba(8,17,33,.55); backdrop-filter:blur(4px); animation:fade .2s ease}
.modal.open{display:flex}
@keyframes fade{from{opacity:0}to{opacity:1}}
.modal-card{position:relative; width:100%; max-width:400px; background:#fff; border:1px solid var(--line); border-radius:18px;
  box-shadow:var(--sh-lg); padding:30px 28px 22px; animation:rise .22s cubic-bezier(.2,.8,.2,1)}
@keyframes rise{from{transform:translateY(14px); opacity:0}to{transform:translateY(0); opacity:1}}
.modal-x{position:absolute; top:14px; right:16px; background:none; border:0; font-size:24px; line-height:1; color:var(--muted); cursor:pointer; padding:4px}
.modal-x:hover{color:var(--ink)}
.modal-head{text-align:center; margin-bottom:18px}
.modal-icon{display:inline-grid; place-items:center; width:48px; height:48px; border-radius:13px; color:var(--primary); background:var(--cyan-soft); margin-bottom:12px}
.modal-head h3{font-size:20px; font-weight:600}
.modal-head p{font-size:13.5px; color:var(--muted); margin-top:6px}
.modal-tabs{display:flex; background:var(--bg-soft); border:1px solid var(--line); border-radius:10px; padding:3px; margin-bottom:16px}
.modal-tabs button{flex:1; font-family:"Space Grotesk",sans-serif; font-weight:500; font-size:14px; color:var(--muted); background:none; border:0; cursor:pointer; padding:8px; border-radius:7px; transition:.16s}
.modal-tabs button.on{background:#fff; color:var(--ink); box-shadow:var(--sh-sm)}
#sub-form{display:flex; flex-direction:column; gap:11px}
#sub-form input{font-family:"IBM Plex Sans",sans-serif; font-size:15px; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:10px; padding:12px 14px; transition:.14s}
#sub-form input:focus{outline:0; border-color:var(--primary); box-shadow:0 0 0 3px rgba(23,99,230,.12)}
.modal-err{color:var(--warn); font-size:13px; min-height:0; padding:0 2px}
.modal-err:not(:empty){padding:2px}
#sub-submit{margin-top:4px}
.modal-or{display:flex; align-items:center; gap:12px; margin:15px 0; color:var(--muted); font-family:"IBM Plex Mono",monospace; font-size:11px}
.modal-or::before,.modal-or::after{content:""; flex:1; height:1px; background:var(--line)}
#sub-google svg{flex:none}
.modal-foot{text-align:center; font-size:11px; color:var(--muted); margin-top:14px}

/* ── legal / policy prose ── */
.legal{max-width:780px}
.legal .updated{font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--muted); margin:0 0 28px}
.legal h2{font-family:"Space Grotesk",sans-serif; font-size:20px; font-weight:600; color:var(--ink); margin:32px 0 10px}
.legal h2:first-of-type{margin-top:0}
.legal p{color:var(--body); font-size:15px; margin:0 0 13px}
.legal ul{margin:0 0 13px; padding-left:22px; color:var(--body); font-size:15px}
.legal li{margin:5px 0}
.legal strong{color:var(--ink); font-weight:600}
.legal a{color:var(--primary); text-decoration:underline}
.legal .lead{font-size:17px; color:var(--body); margin-bottom:22px}
