:root{
  --ink:#07111f;
  --muted:#607087;
  --blue:#1d68f2;
  --cyan:#06c9df;
  --purple:#7a3ff0;
  --line:#e6ebf2;
  --soft:#f7f9fc;
  --white:#fff;
  --grad:linear-gradient(110deg,#09cfe2 0%,#1d68f2 48%,#9b2df2 100%);
  --shadow:0 24px 70px rgba(7,17,31,.09);
}

*{
  box-sizing:border-box
}

html{
  scroll-behavior:smooth
}

body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.55
}

body.modal-open{
  overflow:hidden
}

button,
input,
select,
textarea{
  font:inherit
}

button{
  cursor:pointer
}

a{
  text-decoration:none;
  color:inherit
}

.container{
  max-width:1180px;
  margin:auto;
  padding:0 28px
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(230,235,242,.8)
}

.navin{
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}

.brandlogo{
  width:140px;
  display:block
}

.links{
  display:flex;
  gap:25px;
  color:#526177;
  font-size:14px
}

.links a{
  transition:.2s
}

.links a:hover{
  color:var(--blue)
}

.navcta{
  display:flex;
  gap:9px
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn{
  position:relative;
  border:0;
  border-radius:13px;
  padding:12px 17px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .2s,box-shadow .2s,background .2s;
  overflow:hidden
}

.btn:hover{
  transform:translateY(-2px)
}

.outline{
  background:#fff;
  color:var(--ink);
  border:1px solid #d8e0ea
}

.primary{
  background:var(--ink);
  color:#fff;
  box-shadow:0 12px 28px rgba(7,17,31,.14)
}

.blue{
  background:var(--blue);
  color:#fff;
  box-shadow:0 12px 28px rgba(29,104,242,.22)
}

.glow{
  animation:glow 2.7s ease-in-out infinite;
  isolation:isolate
}

.glow:after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  box-shadow:0 0 24px rgba(29,104,242,.16);
  z-index:-1
}

.pulse{
  animation:glow 2.7s ease-in-out infinite
}

@keyframes glow{

  0%,100%{
    box-shadow:
      0 10px 28px rgba(29,104,242,.18),
      0 0 0 0 rgba(29,104,242,.0)
  }

  50%{
    box-shadow:
      0 16px 42px rgba(29,104,242,.42),
      0 0 0 9px rgba(29,104,242,.08),
      0 0 32px rgba(122,63,240,.18)
  }

}

@keyframes float{

  0%,100%{
    transform:translateY(0)
  }

  50%{
    transform:translateY(-7px)
  }

}

@keyframes rise{

  from{
    opacity:0;
    transform:translateY(14px)
  }

  to{
    opacity:1;
    transform:none
  }

}


/* =========================================================
   HERO
   ========================================================= */

.hero{
  padding:92px 0 78px;
  overflow:hidden
}

.hero-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:70px;
  align-items:center
}

.eyebrow{
  font-size:12px;
  font-weight:850;
  letter-spacing:.17em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:18px
}

.hero h1{
  font-size:clamp(50px,6.4vw,84px);
  line-height:.96;
  letter-spacing:-.068em;
  margin:0 0 25px;
  max-width:820px
}

.gradient{
  background:var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent
}

.hero p{
  font-size:18px;
  color:var(--muted);
  max-width:690px;
  margin:0 0 31px
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap
}

.micro{
  font-size:12px;
  color:#7d8999;
  margin-top:14px
}

.hero-visual{
  border:1px solid var(--line);
  border-radius:30px;
  background:linear-gradient(145deg,#fff,#f7fbff);
  padding:30px;
  box-shadow:var(--shadow);
  position:relative;
  animation:float 6s ease-in-out infinite
}

.hero-visual:before{
  display:none
}

.tag{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#eef4ff;
  color:#235bc6;
  font-size:11px;
  font-weight:850;
  letter-spacing:.04em
}

.flow{
  display:grid;
  gap:10px;
  margin-top:18px
}

.node{
  padding:17px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow:0 9px 28px rgba(7,17,31,.035)
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--grad);
  flex:0 0 auto
}

.small{
  font-size:13px;
  color:var(--muted)
}

.node .small{
  margin-left:auto
}

.arrow{
  text-align:center;
  color:#a2adbc;
  font-size:18px
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section{
  padding:98px 0
}

.soft{
  background:var(--soft)
}

.section-head{
  max-width:780px;
  margin-bottom:42px
}

.section-head h2{
  font-size:clamp(40px,5vw,64px);
  line-height:1.02;
  letter-spacing:-.055em;
  margin:0 0 16px
}

.section-head p{
  font-size:17px;
  color:var(--muted);
  margin:0
}


/* =========================================================
   WORKFLOW
   ========================================================= */

.workflow{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  background:#fff
}

.step{
  padding:26px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  min-height:150px
}

.step:nth-child(4n){
  border-right:0
}

.step:nth-last-child(-n+4){
  border-bottom:0
}

.step strong{
  display:block;
  font-size:15px
}

.step span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:8px
}


/* =========================================================
   SYSTEMS
   ========================================================= */

.systems{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px
}

.card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:25px;
  background:#fff;
  transition:.25s
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 45px rgba(7,17,31,.08);
  border-color:#d6e0f0
}

.card h3{
  font-size:21px;
  letter-spacing:-.025em;
  margin:12px 0 8px
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:14px
}

.card .num{
  font-size:11px;
  font-weight:850;
  letter-spacing:.12em;
  color:var(--blue)
}


/* =========================================================
   RESOURCES
   ========================================================= */

.resource-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px
}

.resource{
  padding:28px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  min-height:235px;
  display:flex;
  flex-direction:column
}

.resource h3{
  font-size:24px;
  letter-spacing:-.035em;
  margin:12px 0 9px
}

.resource p{
  color:var(--muted);
  font-size:14px;
  margin:0
}

.resource .resource-cta{
  margin-top:auto;
  padding-top:22px
}

.resource.featured{
  background:linear-gradient(145deg,#07111f,#12213b);
  color:#fff;
  border-color:#07111f
}

.resource.featured p{
  color:#c6d0df
}

.resource.featured .tag{
  background:rgba(255,255,255,.1);
  color:#dce9ff
}


/* =========================================================
   INDUSTRIES
   ========================================================= */

.industry-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px
}

.industry{
  padding:28px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  font-weight:850;
  transition:.2s
}

.industry:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 35px rgba(7,17,31,.06)
}


/* =========================================================
   CALCULATOR
   ========================================================= */

.calculator{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:22px;
  align-items:stretch
}

.calc-panel,
.calc-result{
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px;
  background:#fff
}

.calc-panel{
  background:linear-gradient(145deg,#f9fbff,#fff)
}

.formgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}

.field{
  display:grid;
  gap:6px
}

.field.full{
  grid-column:1/-1
}

.field label{
  font-size:12px;
  font-weight:800
}

.field input,
.field select,
.field textarea{
  width:100%;
  border:1px solid #d9e1eb;
  border-radius:11px;
  padding:11px 12px;
  outline:none;
  background:#fff
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(29,104,242,.1)
}

.calc-result{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:300px
}

.big-number{
  font-size:70px;
  font-weight:950;
  letter-spacing:-.065em;
  line-height:1
}

.score-ring{
  font-size:70px;
  font-weight:950;
  letter-spacing:-.07em
}


/* =========================================================
   CTA + FOOTER
   ========================================================= */

.cta-band{
  border-radius:30px;
  background:var(--ink);
  color:#fff;
  padding:58px
}

.cta-band p{
  color:#c7d0dd;
  max-width:720px
}

.footer{
  padding:48px 0;
  border-top:1px solid var(--line)
}

.footerin{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px
}

.footerlogo{
  width:130px
}


/* =========================================================
   MODAL
   ========================================================= */

.modal{
  position:fixed;
  inset:0;
  background:rgba(7,17,31,.58);
  backdrop-filter:blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:80
}

.modal.open{
  display:flex
}

.modalbox{
  width:min(860px,100%);
  max-height:91vh;
  overflow:auto;
  background:#fff;
  border-radius:25px;
  padding:31px;
  box-shadow:0 35px 100px rgba(0,0,0,.24);
  position:relative;
  animation:rise .2s ease-out
}

.modalbox.wide{
  width:min(980px,100%)
}

.close{
  position:absolute;
  right:17px;
  top:16px;
  width:35px;
  height:35px;
  border:0;
  border-radius:50%;
  background:#f0f3f7;
  font-size:18px
}

.modalbox h2{
  font-size:38px;
  line-height:1.05;
  letter-spacing:-.05em;
  margin:0 0 13px
}

.modalbox h3{
  font-size:20px;
  letter-spacing:-.025em;
  margin:25px 0 8px
}

.resource-copy{
  color:#46566d;
  font-size:14px
}

.resource-copy ul,
.resource-copy ol{
  padding-left:20px
}

.resource-copy li{
  margin:7px 0
}

.resource-copy .principle{
  border-left:3px solid var(--blue);
  padding:12px 16px;
  background:#f7faff;
  border-radius:0 12px 12px 0;
  margin:18px 0
}

.resource-copy .scorecard{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:16px 0
}

.scorecard div{
  border:1px solid var(--line);
  border-radius:13px;
  padding:15px;
  background:#fafcff
}

.scorecard strong{
  display:block
}

.scorecard span{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:4px
}


/* =========================================================
   CALENDAR
   ========================================================= */

.cal-wrap{
  width:100%;
  height:650px;
  margin-top:22px;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  position:relative
}

.cal-inline{
  width:100%;
  height:100%;
  min-height:650px;
  overflow:auto;
  background:#fff
}

.cal-inline iframe{
  display:block;
  width:100%!important;
  height:100%!important;
  min-height:620px!important;
  border:0!important
}

.cal-loading{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
  color:var(--muted);
  font-size:14px;
  text-align:center
}

.cal-error{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:40px;
  text-align:center;
  color:var(--muted)
}

.cal-error strong{
  color:var(--ink);
  font-size:16px
}

.cal-error p{
  margin:0;
  max-width:420px
}

.cal-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:14px
}

.cal-actions .btn{
  white-space:nowrap
}


/* =========================================================
   RESOURCE FORM
   ========================================================= */

.resource-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px;
  margin-top:18px
}

.resource-form .wide{
  grid-column:1/-1
}

.resource-form label{
  display:block;
  margin-bottom:0;
  font-size:12px;
  font-weight:800
}

.resource-form input,
.resource-form select{
  display:block;
  width:100%;
  margin-top:7px;
  padding:13px;
  border:1px solid #d5dfec;
  border-radius:11px;
  background:#fff;
  color:#081426;
  outline:none
}

.resource-form input:focus,
.resource-form select:focus{
  border-color:#4d8cff;
  box-shadow:0 0 0 3px rgba(44,112,255,.08)
}

.note{
  padding:12px 14px;
  background:#f7f9fc;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:12px;
  color:#64748b
}


/* =========================================================
   QUIZ
   ========================================================= */

.quiz{
  max-width:760px
}

.progress{
  height:7px;
  background:#e9edf3;
  border-radius:99px;
  overflow:hidden;
  margin:18px 0 25px
}

.bar{
  height:100%;
  background:var(--grad);
  transition:.25s
}

.answers{
  display:grid;
  gap:10px
}

.answer{
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  text-align:left
}

.answer:hover{
  border-color:#9db7f7;
  background:#f9fbff
}

.resultgrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px
}

.resultitem{
  border:1px solid var(--line);
  border-radius:15px;
  padding:18px;
  background:#fff
}

.status{
  font-size:11px;
  font-weight:850
}

.high{
  color:#dc2626
}

.med{
  color:#b45309
}

.strong{
  color:#059669
}

.output{
  background:#07111f;
  color:#eaf1fb;
  border-radius:18px;
  padding:22px;
  white-space:pre-wrap;
  min-height:300px;
  font-size:13px
}


/* =========================================================
   TOAST + PROGRESS
   ========================================================= */

.toast{
  position:fixed;
  right:22px;
  bottom:22px;
  background:#07111f;
  color:#fff;
  padding:13px 16px;
  border-radius:12px;
  display:none;
  z-index:100
}

.toast.show{
  display:block
}

.scroll-progress{
  position:fixed;
  top:0;
  left:0;
  width:0;
  height:4px;
  background:var(--grad);
  z-index:9999;
  transition:width .08s linear;
  pointer-events:none;
  box-shadow:0 0 12px rgba(29,104,242,.22)
}

.auto-pill{
  font-style:normal;
  font-size:8px;
  letter-spacing:.08em;
  color:#fff;
  background:linear-gradient(110deg,#06c9df,#1d68f2,#7a3ff0);
  padding:4px 6px;
  border-radius:999px;
  vertical-align:middle;
  box-shadow:0 0 16px rgba(29,104,242,.28);
  animation:autoGlow 2.5s ease-in-out infinite
}

@keyframes autoGlow{

  0%,100%{
    box-shadow:0 0 8px rgba(29,104,242,.12)
  }

  50%{
    box-shadow:
      0 0 20px rgba(29,104,242,.38),
      0 0 28px rgba(122,63,240,.16)
  }

}

.leak-result{
  color:#b91c1c
}

.leak-result .big-number{
  color:#b91c1c;
  text-shadow:0 0 22px rgba(220,38,38,.16)
}

.leak-bar{
  height:10px;
  border-radius:999px;
  background:#eef1f5;
  overflow:hidden;
  margin:15px 0 8px
}

.leak-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#fca5a5,#dc2626,#991b1b);
  box-shadow:0 0 16px rgba(220,38,38,.18)
}

.pdf-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:20px
}

.pdf-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  background:#fafcff
}

.pdf-card strong{
  display:block
}

.pdf-card span{
  font-size:12px;
  color:var(--muted)
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:920px){

  .links{
    display:none
  }

  .hero-grid,
  .calculator{
    grid-template-columns:1fr
  }

  .workflow{
    grid-template-columns:1fr 1fr
  }

  .systems{
    grid-template-columns:1fr 1fr
  }

  .industry-grid{
    grid-template-columns:1fr 1fr
  }

  .hero{
    padding-top:65px
  }

  .hero h1{
    font-size:55px
  }

  .navcta .outline{
    display:none
  }

  .resource-grid{
    grid-template-columns:1fr
  }

  .step:nth-child(2n){
    border-right:0
  }

  .step:nth-last-child(-n+4){
    border-bottom:1px solid var(--line)
  }

  .step:nth-last-child(-n+2){
    border-bottom:0
  }

}


@media(max-width:760px){

  .cal-wrap{
    height:620px
  }

  .cal-inline{
    min-height:620px
  }

  .cal-inline iframe{
    min-height:600px!important
  }

  .cal-actions{
    justify-content:stretch
  }

  .cal-actions .btn{
    width:100%
  }

}


@media(max-width:600px){

  .container{
    padding:0 18px
  }

  .hero h1{
    font-size:45px
  }

  .hero p{
    font-size:16px
  }

  .section{
    padding:72px 0
  }

  .systems,
  .industry-grid,
  .workflow{
    grid-template-columns:1fr
  }

  .step{
    border-right:0!important;
    border-bottom:1px solid var(--line)!important
  }

  .step:last-child{
    border-bottom:0!important
  }

  .formgrid{
    grid-template-columns:1fr
  }

  .field.full{
    grid-column:auto
  }

  .cta-band{
    padding:38px 24px
  }

  .footerin{
    flex-direction:column;
    align-items:flex-start
  }

  .modalbox{
    padding:24px
  }

  .modalbox h2{
    font-size:30px
  }

  .cal-wrap{
    height:640px
  }

  .cal-inline{
    min-height:640px
  }

  .cal-inline iframe{
    min-height:620px!important
  }

  .cal-actions{
    justify-content:stretch
  }

  .cal-actions .btn{
    width:100%
  }

  .resource-form{
    grid-template-columns:1fr
  }

  .resource-form .wide{
    grid-column:auto
  }

}
