:root{
  --bg:#0b1220;
  --card:#101a2f;
  --text:#eaf0ff;
  --muted:#b9c3df;
  --brand:#4dc0ac;
  --brand2:#2f8e99;
  --danger:#ff5a7a;
  --ok:#52ffb8;
  --shadow: 0 16px 45px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;
  --border: 1px solid rgba(255,255,255,.10);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 10%, rgba(77,192,172,.15), transparent 60%),
              radial-gradient(1200px 800px at 80% 0%, rgba(47,142,153,.18), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
img{max-width:100%;height:auto;display:block}

.container{max-width:var(--max);margin:0 auto;padding:0 18px}
.section{padding:56px 0}
.section.tight{padding:34px 0}

.nav{
  position:sticky;top:0;z-index:50;
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
}
.nav-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;gap:12px;
}
.brand{
  display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.2px;
}
.brand .dot{
  width:12px;height:12px;border-radius:999px;background:linear-gradient(135deg,var(--brand),var(--brand2));
  box-shadow: 0 0 0 6px rgba(77,192,172,.12);
}
.nav-links{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.nav-links a{
  padding:8px 10px;border-radius:12px;color:var(--muted);
}
.nav-links a.active, .nav-links a:hover{
  background: rgba(255,255,255,.06);
  color:var(--text);
}
@media (max-width: 720px){
  .nav-inner{flex-direction:column;align-items:flex-start}
  .nav-links{width:100%}
  .nav-links a{flex:1 1 auto;text-align:center}
  .nav-links a.btn{width:100%;justify-content:center}
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border: var(--border);
  background: rgba(255,255,255,.06);
  padding:12px 14px;border-radius:14px;
  cursor:pointer;
}
.btn.primary{
  border: 1px solid rgba(77,192,172,.45);
  background: linear-gradient(135deg, rgba(77,192,172,.28), rgba(47,142,153,.22));
  box-shadow: 0 10px 28px rgba(77,192,172,.12);
}
.btn.primary:hover{transform: translateY(-1px)}
.btn.small{padding:10px 12px;border-radius:12px}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  border: var(--border);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 13px;
}

.hero{
  padding:54px 0 26px 0;
}
.hero-grid{
  display:grid;grid-template-columns: 1.3fr .9fr;gap:22px;align-items:stretch;
}
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
}
.h-card{
  border: var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.h-card-inner{padding:26px}
.h-title{font-size:42px;line-height:1.08;margin:8px 0 12px 0}
@media (max-width: 520px){
  .h-title{font-size:34px}
}
.h-sub{color:var(--muted);font-size:16px;margin:0 0 18px 0}
.h-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.h-side{
  padding:18px;
  display:flex;flex-direction:column;gap:12px;
}
.kpi{
  border: var(--border);
  border-radius: 16px;
  padding:14px;
  background: rgba(16,26,47,.55);
}
.kpi b{display:block;font-size:18px}
.kpi span{color:var(--muted);font-size:13px}
.hr{height:1px;background:rgba(255,255,255,.08);margin:14px 0}

.grid{
  display:grid;gap:16px;
}
.grid.cols-3{grid-template-columns: repeat(3, 1fr)}
.grid.cols-2{grid-template-columns: repeat(2, 1fr)}
@media (max-width: 980px){
  .grid.cols-3{grid-template-columns:1fr}
  .grid.cols-2{grid-template-columns:1fr}
}

.card{
  border: var(--border);
  border-radius: var(--radius);
  background: rgba(16,26,47,.55);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  overflow:hidden;
}
.card.pad{padding:18px}
.card h3{margin:0 0 8px 0}
.card p{margin:0;color:var(--muted)}
.card .meta{margin-top:10px;color:var(--muted);font-size:13px;display:flex;gap:10px;flex-wrap:wrap}
.card .meta span{border: var(--border);padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.04)}

.card img{width:100%;height:180px;object-fit:cover}
.card .body{padding:16px}

.list{
  margin:0;padding-left:18px;color:var(--muted)
}
.list li{margin:8px 0}

.pricing-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border-radius: var(--radius);
  border: var(--border);
  background: rgba(16,26,47,.55);
}
.table-wrap{width:100%;overflow-x:auto;border-radius: var(--radius)}
.table-wrap .pricing-table{min-width:520px}
.pricing-table th, .pricing-table td{
  padding:14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align:left;
}
.pricing-table th{color:var(--text);background: rgba(255,255,255,.06)}
.pricing-table td{color:var(--muted)}
.pricing-table tr:last-child td{border-bottom:none}
.note{color:var(--muted);font-size:13px;margin-top:10px}

.form{
  display:grid;gap:12px;
}
.field{
  display:grid;gap:6px;
}
label{color:var(--muted);font-size:13px}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border: var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
}
textarea{min-height:110px;resize:vertical}
input:focus, select:focus, textarea:focus{
  border-color: rgba(77,192,172,.55);
  box-shadow: 0 0 0 4px rgba(77,192,172,.12);
}

.footer{
  border-top: var(--border);
  padding:26px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-grid{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
}

.callbar{
  position: fixed;
  right: 14px;
  bottom: 14px;
  display:flex;
  gap:10px;
  z-index: 60;
}
.callbar a{
  box-shadow: var(--shadow);
}


/* Gallery */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .gallery-grid{grid-template-columns: 1fr 1fr;}
}
@media (max-width: 520px){
  .gallery-grid{grid-template-columns: 1fr;}
}
.gallery-item{
  position:relative;
  border: var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(16,26,47,.55);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.gallery-item img{
  width:100%;
  height:220px;
  object-fit:cover;
  transform: scale(1);
  transition: transform .22s ease, opacity .22s ease;
}
.gallery-item:hover img{
  transform: scale(1.03);
  opacity:.95;
}
.gallery-tag{
  position:absolute;
  left:12px;
  top:12px;
  padding:8px 10px;
  border-radius:999px;
  border: var(--border);
  background: rgba(11,18,32,.65);
  color: var(--text);
  font-size: 12px;
}
.gallery-pair{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}


/* ===== Before/After pair carousel (2 images at once) ===== */
.ba2{position:relative}
.ba2-viewport{
  overflow:hidden;
  border-radius: calc(var(--radius) - 6px);
}
.ba2-track{
  display:flex;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.ba2-slide{
  flex: 0 0 100%;
}
.ba2-pair{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){
  .ba2-pair{gap:10px}
  .ba2-pair img{height:240px}
}
.ba2-fig{
  margin:0;
  border: var(--border);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(16,26,47,.55);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.ba2-fig img{
  width:100%;
  height: 280px;
  object-fit: cover;
  display:block;
}
.ba2-fig figcaption{
  padding:10px 12px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.ba2-cap{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-top:10px;
  color: var(--muted);
  font-size: 14px;
}
.ba2-cap b{color:var(--text)}
.ba2-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: var(--border);
  background: rgba(11,18,32,.65);
  color: var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 16px 45px rgba(0,0,0,.30);
  user-select:none;
}
.ba2-arrow.left{left: 10px}
.ba2-arrow.right{right: 10px}
.ba2-arrow:hover{border-color: rgba(77,192,172,.35)}
@media (max-width: 720px){
  .ba2-arrow{width:40px;height:40px}
  .ba2-arrow.left{left: 6px}
  .ba2-arrow.right{right: 6px}
}
.ba2-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top: 14px;
}
.ba2-dot{
  width:9px;height:9px;border-radius:999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  cursor:pointer;
}
.ba2-dot.active{background: rgba(255,255,255,.45)}


/* LEAD MODAL */
@keyframes dnbFadeIn{from{opacity:0}to{opacity:1}}
@keyframes dnbPop{from{transform:translateY(10px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
@keyframes dnbSlideUp{from{transform:translateY(18px);opacity:0}to{transform:translateY(0);opacity:1}}

.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
  display:none;
  z-index: 100;
  animation: dnbFadeIn .18s ease-out;
}
.modal-backdrop.show{display:flex; align-items:center; justify-content:center; padding:18px;}
.modal{
  width:min(720px, 100%);
  border: var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16,26,47,.92), rgba(16,26,47,.74));
  box-shadow: var(--shadow);
  overflow:hidden;
  animation: dnbPop .20s ease-out;
}
.modal-header{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:18px 18px 10px 18px;
}
.modal-title{margin:0; font-size:20px}
.modal-sub{margin:0; color:var(--muted); font-size:13px}
.modal-close{
  border: var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
}
.modal-body{padding: 10px 18px 18px 18px;}
.modal-grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px;}
@media (max-width: 720px){
  .modal-grid{grid-template-columns:1fr}
}
.modal-foot{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between;
  padding: 14px 18px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.modal-foot .left{display:flex; gap:10px; flex-wrap:wrap}
.smallmuted{color:var(--muted); font-size:12px}

.toast{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom: 86px;
  z-index: 110;
  display:none;
  padding: 12px 14px;
  border-radius: 14px;
  border: var(--border);
  background: rgba(16,26,47,.92);
  box-shadow: var(--shadow);
  animation: dnbSlideUp .18s ease-out;
  color: var(--text);
  max-width: min(560px, calc(100% - 36px));
}
.toast.show{display:block}
.toast p{margin:0; color: var(--muted); font-size:13px}
.toast b{color: var(--text)}

/* subtle motion for cards/buttons */
.card{transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease}
.card:hover{transform: translateY(-2px); border-color: rgba(77,192,172,.22); box-shadow: 0 18px 44px rgba(0,0,0,.30)}
.btn{transition: transform .12s ease, border-color .12s ease, opacity .12s ease}
.btn:hover{transform: translateY(-1px)}

.section.top{padding-top:24px}

@media (max-width: 640px){
  .callbar{left:12px; right:12px; bottom:12px; width:auto; justify-content:space-between}
  .callbar a{flex:1 1 auto; justify-content:center}
}
