:root{
  --bg:#14171c;
  --panel:#1b2029;
  --panel-2:#20262f;
  --paper:#eef1ee;
  --paper-dim:#98a1ab;
  --steel:#333b45;
  --brand:#3ecfb2;
  --brand-dim:#2a8f7a;
  --green:#3fbf7f;
  --amber:#e8a33d;
  --red:#d9584a;
  --line:rgba(238,241,238,0.09);
  --radius:3px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--paper);
  font-family:'Inter', sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
.mono{font-family:'IBM Plex Mono', monospace;}
h1,h2,h3{font-family:'Space Grotesk', sans-serif; font-weight:600; letter-spacing:-0.01em;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
ul{list-style:none;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}

/* ---------- NAV ---------- */
nav{
  position:sticky; top:0; z-index:50;
  background:rgba(20,23,28,0.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
nav .wrap{display:flex; align-items:center; justify-content:space-between; height:72px;}
.logo{display:flex; align-items:center; gap:10px; font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:19px;}
.logo-mark{
  width:26px; height:26px; border-radius:6px;
  background:var(--brand); color:var(--bg);
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace; font-size:12px; font-weight:700;
}
.navlinks{display:flex; gap:34px; font-size:14.5px; color:var(--paper-dim);}
.navlinks a{transition:color 0.2s; padding:4px 0;}
.navlinks a:hover, .navlinks a.active{color:var(--paper);}
.navlinks a.active{color:var(--brand);}
.nav-right{display:flex; align-items:center; gap:18px;}
.nav-cta{
  font-size:14px; padding:10px 20px; border:1px solid var(--brand);
  color:var(--brand); border-radius:var(--radius); transition:all 0.2s; white-space:nowrap;
}
.nav-cta:hover{background:var(--brand); color:var(--bg);}
.nav-toggle{display:none; background:none; border:none; color:var(--paper); font-size:22px; cursor:pointer;}
@media (max-width:820px){
  .navlinks{
    position:fixed; top:72px; left:0; right:0; bottom:0;
    background:var(--bg); flex-direction:column; gap:0;
    padding:12px 32px; transform:translateY(-110%); transition:transform 0.25s ease;
    z-index:49;
  }
  .navlinks.open{transform:translateY(0);}
  .navlinks a{padding:16px 0; border-bottom:1px solid var(--line); font-size:16px;}
  .nav-toggle{display:block;}
}

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-header{padding:64px 0 48px; border-bottom:1px solid var(--line);}
.page-header .eyebrow{margin-bottom:20px;}
.page-header h1{font-size:clamp(32px,4.6vw,52px); max-width:760px; line-height:1.12;}
.page-header p.lead{margin-top:20px; font-size:17px; color:var(--paper-dim); max-width:600px; line-height:1.6;}

/* ---------- HERO (home) ---------- */
header.hero{padding:88px 0 60px; border-bottom:1px solid var(--line);}
.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family:'IBM Plex Mono', monospace; font-size:12.5px;
  color:var(--brand); letter-spacing:0.08em; text-transform:uppercase;
  margin-bottom:26px;
}
.eyebrow::before{content:''; width:22px; height:1px; background:var(--brand);}
.hero h1{
  font-size:clamp(36px, 5.2vw, 64px);
  line-height:1.08;
  max-width:820px;
  color:var(--paper);
}
.hero h1 span{color:var(--brand);}
.hero p.lead{
  margin-top:24px; font-size:18px; line-height:1.6;
  color:var(--paper-dim); max-width:550px;
}
.hero-ctas{margin-top:38px; display:flex; gap:16px; align-items:center; flex-wrap:wrap;}
.btn-primary{
  background:var(--brand); color:var(--bg);
  padding:15px 28px; font-size:15px; font-weight:600;
  border-radius:var(--radius);
  transition:transform 0.15s, background 0.15s;
  display:inline-block; border:none; cursor:pointer; font-family:'Inter', sans-serif;
}
.btn-primary:hover{background:#59e0c4; transform:translateY(-1px);}
.btn-primary:disabled{opacity:0.5; cursor:not-allowed; transform:none;}
.btn-ghost{
  color:var(--paper); font-size:15px; padding:15px 6px;
  border-bottom:1px solid var(--steel); transition:border-color 0.2s;
}
.btn-ghost:hover{border-color:var(--brand);}
.btn-secondary{
  background:transparent; color:var(--paper); border:1px solid var(--steel);
  padding:14px 26px; font-size:15px; font-weight:500; border-radius:var(--radius);
  transition:border-color 0.2s; display:inline-block; cursor:pointer; font-family:'Inter', sans-serif;
}
.btn-secondary:hover{border-color:var(--brand); color:var(--brand);}

/* ---------- SIGNATURE: LIVE AUTHORIZATION CONSOLE ---------- */
.console{
  margin-top:64px; border:1px solid var(--line); background:var(--panel);
  border-radius:var(--radius); overflow:hidden;
}
.console-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 22px; border-bottom:1px solid var(--line);
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--paper-dim);
  text-transform:uppercase; letter-spacing:0.06em;
}
.console-head .live{color:var(--green); display:flex; align-items:center; gap:6px;}
.live-dot{width:6px; height:6px; border-radius:50%; background:var(--green); animation:pulse 1.8s infinite;}
@keyframes pulse{0%,100%{opacity:1;} 50%{opacity:0.25;}}

.console-body{display:grid; grid-template-columns:1.35fr 1fr;}
@media (max-width:860px){ .console-body{grid-template-columns:1fr;} }

.feed{padding:8px 0; border-right:1px solid var(--line); min-height:280px;}
@media (max-width:860px){ .feed{border-right:none; border-bottom:1px solid var(--line);} }

.feed-row{
  display:grid; grid-template-columns:1fr auto auto;
  align-items:center; gap:14px;
  padding:13px 22px;
  font-size:13px;
  border-bottom:1px solid var(--line);
  opacity:0; transform:translateY(-6px);
  animation: rowIn 0.4s forwards;
}
@keyframes rowIn{ to{opacity:1; transform:translateY(0);} }
.feed-row .who{color:var(--paper); font-weight:500;}
.feed-row .cat{color:var(--paper-dim); font-size:11.5px; margin-top:2px;}
.feed-row .amt{font-family:'IBM Plex Mono', monospace; color:var(--paper); text-align:right;}
.tag{
  font-family:'IBM Plex Mono', monospace; font-size:10.5px; padding:4px 9px;
  border-radius:12px; white-space:nowrap; letter-spacing:0.02em;
}
.tag.checking{color:var(--paper-dim); background:rgba(238,241,238,0.08);}
.tag.approved{color:var(--green); background:rgba(63,191,127,0.13);}
.tag.blocked{color:var(--red); background:rgba(217,88,74,0.13);}
.tag.flagged{color:var(--amber); background:rgba(232,163,61,0.13);}

.budgets{padding:20px 22px;}
.budget-row{margin-bottom:18px;}
.budget-row:last-child{margin-bottom:0;}
.budget-top{display:flex; justify-content:space-between; font-size:12.5px; margin-bottom:8px;}
.budget-top .name{color:var(--paper);}
.budget-top .val{font-family:'IBM Plex Mono', monospace; color:var(--paper-dim);}
.budget-track{height:6px; background:var(--panel-2); border-radius:3px; overflow:hidden;}
.budget-fill{height:100%; border-radius:3px; transition:width 0.6s ease;}
.budget-fill.green{background:var(--green);}
.budget-fill.amber{background:var(--amber);}
.budget-fill.red{background:var(--red);}

/* ---------- STATS ---------- */
.stats{padding:52px 0; border-bottom:1px solid var(--line);}
.stats .wrap{display:grid; grid-template-columns:repeat(4,1fr);}
.stat{padding:0 28px; border-left:1px solid var(--line);}
.stat:first-child{border-left:none; padding-left:0;}
.stat .num{font-family:'IBM Plex Mono', monospace; font-size:31px; font-weight:600; color:var(--brand);}
.stat .cap{margin-top:8px; font-size:13.5px; color:var(--paper-dim); line-height:1.5;}
@media (max-width:820px){
  .stats .wrap{grid-template-columns:1fr 1fr; row-gap:32px;}
  .stat:nth-child(3){border-left:none; padding-left:0;}
}

/* ---------- SECTIONS ---------- */
section{padding:92px 0; border-bottom:1px solid var(--line);}
.section-head{max-width:640px; margin-bottom:60px;}
.section-tag{
  font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--brand);
  text-transform:uppercase; letter-spacing:0.08em; margin-bottom:16px;
}
.section-head h2{font-size:clamp(27px,3.3vw,39px); color:var(--paper); line-height:1.18;}
.section-head p{margin-top:16px; color:var(--paper-dim); font-size:16px; line-height:1.6;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}

/* ---------- FLOW ---------- */
.flow{display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line);}
.flow-step{padding:30px 26px; border-left:1px solid var(--line);}
.flow-step:first-child{border-left:none;}
.flow-num{font-family:'IBM Plex Mono', monospace; color:var(--brand-dim); font-size:13px; margin-bottom:18px;}
.flow-step h3{font-size:17.5px; color:var(--paper); font-weight:600; margin-bottom:9px;}
.flow-step p{font-size:14.5px; color:var(--paper-dim); line-height:1.55;}
@media (max-width:900px){
  .flow{grid-template-columns:1fr; border-top:none;}
  .flow-step{border-left:none; border-top:1px solid var(--line); padding:26px 0;}
  .flow-step:first-child{border-top:none;}
}

/* ---------- FEATURES ---------- */
.features-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
.feature{background:var(--bg); padding:34px 30px;}
.feature .fi{width:32px; height:32px; margin-bottom:20px; color:var(--brand);}
.feature h3{font-size:16.5px; color:var(--paper); margin-bottom:9px; font-weight:600; font-family:'Inter',sans-serif;}
.feature p{font-size:14.5px; color:var(--paper-dim); line-height:1.6;}
@media (max-width:900px){ .features-grid{grid-template-columns:1fr;} }

.feature-category{margin-bottom:64px;}
.feature-category:last-child{margin-bottom:0;}
.feature-category-head{display:flex; align-items:baseline; gap:16px; margin-bottom:28px; padding-bottom:16px; border-bottom:1px solid var(--line);}
.feature-category-head h3{font-size:22px; color:var(--paper);}
.feature-category-head .fc-tag{font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--brand-dim);}

/* ---------- TESTIMONIAL ---------- */
.testimonial{padding:88px 0; border-bottom:1px solid var(--line);}
.testimonial blockquote{
  font-family:'Space Grotesk', sans-serif; font-size:clamp(22px,2.6vw,31px);
  line-height:1.4; max-width:820px; color:var(--paper); font-weight:500;
}
.testimonial blockquote::before{content:'\201C'; color:var(--brand);}
.testimonial blockquote::after{content:'\201D'; color:var(--brand);}
.testimonial .attribution{margin-top:28px; display:flex; align-items:center; gap:14px;}
.attribution .avatar{
  width:42px; height:42px; border-radius:50%; background:var(--panel-2);
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace; color:var(--brand); font-size:14px; border:1px solid var(--line);
}
.attribution .name{font-size:14.5px; color:var(--paper); font-weight:500;}
.attribution .role{font-size:13px; color:var(--paper-dim);}

/* ---------- CALCULATOR ---------- */
.calculator{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:44px;}
.calc-grid{display:grid; grid-template-columns:1fr 1fr; gap:48px;}
@media (max-width:860px){ .calc-grid{grid-template-columns:1fr; gap:32px;} }
.calc-field{margin-bottom:26px;}
.calc-field:last-child{margin-bottom:0;}
.calc-field label{display:flex; justify-content:space-between; font-size:13.5px; color:var(--paper-dim); margin-bottom:10px;}
.calc-field label .cv{color:var(--brand); font-family:'IBM Plex Mono', monospace;}
input[type=range]{
  -webkit-appearance:none; width:100%; height:4px; border-radius:2px;
  background:var(--panel-2); outline:none;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; width:16px; height:16px; border-radius:50%;
  background:var(--brand); cursor:pointer; border:3px solid var(--bg);
}
input[type=range]::-moz-range-thumb{
  width:16px; height:16px; border-radius:50%; background:var(--brand); cursor:pointer; border:3px solid var(--bg);
}
.calc-result{
  background:var(--panel-2); border-radius:var(--radius); padding:32px; display:flex; flex-direction:column; justify-content:center;
}
.calc-result .rlabel{font-size:12.5px; color:var(--paper-dim); text-transform:uppercase; letter-spacing:0.06em; font-family:'IBM Plex Mono', monospace;}
.calc-result .rnum{font-family:'IBM Plex Mono', monospace; font-size:44px; color:var(--brand); font-weight:600; margin-top:10px;}
.calc-result .rsub{font-size:13.5px; color:var(--paper-dim); margin-top:6px;}
.calc-result hr{border:none; border-top:1px solid var(--line); margin:22px 0;}

/* ---------- PRICING ---------- */
.pricing-toggle{
  display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:56px;
}
.toggle-switch{
  width:52px; height:28px; border-radius:14px; background:var(--panel-2);
  border:1px solid var(--line); position:relative; cursor:pointer; flex-shrink:0;
}
.toggle-knob{
  position:absolute; top:2px; left:2px; width:22px; height:22px; border-radius:50%;
  background:var(--brand); transition:transform 0.2s ease;
}
.toggle-switch.on .toggle-knob{transform:translateX(24px);}
.toggle-label{font-size:14.5px; color:var(--paper-dim);}
.toggle-label.active{color:var(--paper);}
.save-badge{
  font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--green);
  background:rgba(63,191,127,0.13); padding:3px 9px; border-radius:10px; margin-left:6px;
}

.pricing-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
@media (max-width:960px){ .pricing-grid{grid-template-columns:1fr; max-width:440px; margin:0 auto;} }
.price-card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:36px 30px; display:flex; flex-direction:column;
}
.price-card.featured{border-color:var(--brand); position:relative;}
.price-card .badge{
  position:absolute; top:-13px; left:30px; background:var(--brand); color:var(--bg);
  font-family:'IBM Plex Mono', monospace; font-size:11px; padding:4px 12px; border-radius:12px; font-weight:600;
}
.price-card h3{font-size:20px; color:var(--paper); margin-bottom:8px;}
.price-card .desc{font-size:13.5px; color:var(--paper-dim); margin-bottom:24px; line-height:1.5; min-height:40px;}
.price-card .price{font-family:'IBM Plex Mono', monospace; font-size:38px; color:var(--paper); font-weight:600;}
.price-card .price span{font-size:15px; color:var(--paper-dim); font-weight:400; font-family:'Inter', sans-serif;}
.price-card .price-period{font-size:12.5px; color:var(--paper-dim); margin-bottom:26px; margin-top:6px;}
.price-list{margin-bottom:30px; flex-grow:1;}
.price-list li{
  display:flex; align-items:flex-start; gap:10px; font-size:13.5px; color:var(--paper-dim);
  padding:8px 0; border-bottom:1px solid var(--line);
}
.price-list li:last-child{border-bottom:none;}
.price-list li svg{flex-shrink:0; margin-top:2px; color:var(--brand);}

/* ---------- FAQ ---------- */
.faq-item{border-bottom:1px solid var(--line);}
.faq-item:first-child{border-top:1px solid var(--line);}
.faq-q{
  width:100%; text-align:left; background:none; border:none; color:var(--paper);
  padding:22px 0; font-size:16px; font-weight:500; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; font-family:'Inter', sans-serif;
}
.faq-q .plus{color:var(--brand); font-family:'IBM Plex Mono', monospace; font-size:18px; transition:transform 0.2s;}
.faq-item.open .faq-q .plus{transform:rotate(45deg);}
.faq-a{max-height:0; overflow:hidden; transition:max-height 0.3s ease;}
.faq-a p{font-size:14.5px; color:var(--paper-dim); line-height:1.6; padding-bottom:22px; max-width:680px;}

/* ---------- SECURITY ---------- */
.cert-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); margin-bottom:64px;}
.cert{background:var(--bg); padding:28px 24px; text-align:center;}
.cert .cname{font-family:'IBM Plex Mono', monospace; font-size:14px; color:var(--brand); margin-bottom:6px;}
.cert .cdesc{font-size:12.5px; color:var(--paper-dim);}
@media (max-width:820px){ .cert-grid{grid-template-columns:1fr 1fr;} }

.security-list{}
.security-item{display:grid; grid-template-columns:220px 1fr; gap:32px; padding:28px 0; border-bottom:1px solid var(--line);}
.security-item:first-child{border-top:1px solid var(--line);}
.security-item h3{font-size:16px; color:var(--paper); font-weight:600; font-family:'Inter', sans-serif;}
.security-item p{font-size:14.5px; color:var(--paper-dim); line-height:1.65;}
@media (max-width:700px){ .security-item{grid-template-columns:1fr; gap:8px;} }

/* ---------- CONTACT FORM ---------- */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:64px;}
@media (max-width:900px){ .contact-grid{grid-template-columns:1fr; gap:44px;} }
.contact-info-item{display:flex; gap:16px; margin-bottom:28px;}
.contact-info-item .ci-icon{color:var(--brand); flex-shrink:0; margin-top:2px;}
.contact-info-item h3{font-size:15px; color:var(--paper); margin-bottom:5px; font-weight:600; font-family:'Inter', sans-serif;}
.contact-info-item p{font-size:14px; color:var(--paper-dim); line-height:1.6;}

.form-group{margin-bottom:22px;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
@media (max-width:560px){ .form-row{grid-template-columns:1fr;} }
label.f-label{display:block; font-size:13px; color:var(--paper-dim); margin-bottom:8px;}
input[type=text], input[type=email], select, textarea{
  width:100%; background:var(--panel); border:1px solid var(--steel); border-radius:var(--radius);
  color:var(--paper); padding:13px 14px; font-size:14.5px; font-family:'Inter', sans-serif;
  transition:border-color 0.2s;
}
input[type=text]:focus, input[type=email]:focus, select:focus, textarea:focus{
  outline:none; border-color:var(--brand);
}
textarea{resize:vertical; min-height:100px;}
.field-error{font-size:12.5px; color:var(--red); margin-top:7px; display:none;}
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea{border-color:var(--red);}
.form-group.invalid .field-error{display:block;}
.form-success{
  display:none; background:rgba(63,191,127,0.1); border:1px solid var(--green); border-radius:var(--radius);
  padding:24px; text-align:center;
}
.form-success.show{display:block;}
.form-success h3{color:var(--green); font-size:18px; margin-bottom:8px;}
.form-success p{color:var(--paper-dim); font-size:14px;}

/* ---------- CTA ---------- */
.cta-section{text-align:center; padding:104px 0;}
.cta-section h2{font-size:clamp(29px,4.2vw,50px); color:var(--paper); max-width:680px; margin:0 auto 22px;}
.cta-section p{color:var(--paper-dim); font-size:16.5px; max-width:470px; margin:0 auto 38px;}

/* ---------- FOOTER ---------- */
footer{padding:56px 0 44px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid var(--line); margin-bottom:28px;}
@media (max-width:820px){ .footer-grid{grid-template-columns:1fr 1fr; row-gap:32px;} }
.footer-col h4{font-size:12.5px; color:var(--paper-dim); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:16px; font-family:'IBM Plex Mono', monospace; font-weight:500;}
.footer-col ul li{margin-bottom:11px;}
.footer-col ul li a{font-size:14px; color:var(--paper-dim); transition:color 0.2s;}
.footer-col ul li a:hover{color:var(--paper);}
.footer-col p{font-size:13.5px; color:var(--paper-dim); line-height:1.6; margin-top:14px; max-width:260px;}
footer .bottom-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;}
footer .fmark{display:flex; align-items:center; gap:10px; color:var(--paper-dim); font-size:13.5px;}
footer .flinks{display:flex; gap:24px; font-size:13px; color:var(--paper-dim);}
footer .flinks a:hover{color:var(--paper);}

.reveal{opacity:0; transform:translateY(16px); transition:opacity 0.6s ease, transform 0.6s ease;}
.reveal.in{opacity:1; transform:translateY(0);}

:focus-visible{outline:2px solid var(--brand); outline-offset:2px;}
