/* Topbar */
.sb-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(8,11,22,0.55);
  backdrop-filter: blur(18px);
}
.sb-topbar-inner{display:flex; align-items:center; justify-content:space-between; padding: 14px 0; gap: 16px;}
.sb-brand{display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:0.2px;}
.sb-brand-text{font-size:16px;}
.sb-brand-sub{font-weight:700; color: rgba(255,255,255,0.7);}
.sb-logo-dot{
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--mk-accent) 42%, rgba(167,139,250,0.85) 78%);
  box-shadow: 0 0 24px rgba(110,231,255,0.45), 0 0 34px rgba(167,139,250,0.25);
}
.sb-nav{display:flex; align-items:center; gap:18px;}
.sb-nav a{color: rgba(255,255,255,0.80); font-weight:600; font-size:14px;}
.sb-nav a.is-active{color:#fff;}
.sb-topbar-actions{display:flex; align-items:center; gap:10px;}
.sb-link{color: rgba(255,255,255,0.75); font-weight:600; font-size:14px;}
.sb-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color:#fff;
  font-weight:800;
  font-size:14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  white-space:nowrap;
}
.sb-btn:hover{transform: translateY(-1px); box-shadow: var(--mk-glow); border-color: rgba(110,231,255,0.28);}
.sb-btn-primary{
  border-color: rgba(110,231,255,0.32);
  background: linear-gradient(135deg, rgba(110,231,255,0.26), rgba(167,139,250,0.18));
}
.sb-btn-ghost{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}
.sb-burger{
  display:none;
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}
.sb-burger span{
  display:block;
  width:18px; height:2px;
  margin:4px auto;
  background: rgba(255,255,255,0.9);
  border-radius:99px;
}
.sb-mobile-menu{
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 14px 0 18px;
  background: rgba(8,11,22,0.58);
  backdrop-filter: blur(18px);
}
.sb-mobile-menu a{
  display:block;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-weight:700;
}
.sb-mobile-cta{display:flex; gap:10px; padding-top: 14px;}
@media (max-width: 920px){
  .sb-nav{display:none;}
  .sb-link{display:none;}
  .sb-burger{display:inline-block;}
}

@media (max-width: 420px){
  /* MOBILE TOPBAR FIT */
  .sb-topbar-inner{gap:10px;}
  .sb-topbar-actions{gap:8px;}
  .sb-topbar-actions .sb-btn{padding: 10px 12px; font-size: 13px;}
  .sb-burger{width:40px; height:40px;}
}

/* Hero */
.sb-hero{
  padding: 84px 0 34px;
}
.sb-hero-grid{
  display:grid; gap: 18px;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
}
@media (max-width: 920px){
  .sb-hero{padding: 62px 0 22px;}
  .sb-hero-grid{grid-template-columns: 1fr;}
}
.sb-h1{
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.8px;
  margin: 14px 0 14px;
}
.sb-lede{
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
  margin: 0 0 18px;
}
.sb-hero-ctas{display:flex; gap:12px; flex-wrap:wrap; margin: 18px 0 10px;}
.sb-hero-mini{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top: 12px;
}
.sb-hero-right{
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 920px;
}
.sb-screenshot{
  padding: 18px;
  border-radius: var(--mk-radius-lg);
  border: 1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(900px 380px at 30% 10%, rgba(110,231,255,0.16), transparent 58%),
    radial-gradient(800px 320px at 80% 20%, rgba(167,139,250,0.16), transparent 58%),
    rgba(255,255,255,0.03);
  box-shadow: var(--mk-shadow);
  overflow:hidden;
}
.sb-screenshot .sb-shot-top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 12px;
}
.sb-shot-dots{display:flex; gap:6px;}
.sb-shot-dots span{
  width:10px; height:10px; border-radius:50%;
  background: rgba(255,255,255,0.18);
}
.sb-shot-body{
  height: 320px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.02);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  text-align:center;
}

/* Screenshot / media rendering (prevents "broken" images) */
.sb-shot-body-media{
  height: auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.01);
  overflow: hidden;
  text-align: center;
}
.sb-shot-image{
  display:block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Hero screenshot should feel like a polished product shot */
.sb-shot-hero{
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}

/* Smaller media blocks inside sections */
.sb-shot-sm{
  width: min(460px, 100%);
  margin: 0 auto;
  max-height: 520px;
  object-fit: contain;
}

.sb-shot-wide{
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

@media (max-width: 920px){
  .sb-shot-hero{box-shadow: 0 22px 70px rgba(0,0,0,0.55);}
}
.sb-shot-label{max-width: 340px;}
.sb-shot-label strong{display:block; margin-bottom:6px;}
.sb-shot-badges{display:flex; gap:10px; flex-wrap:wrap;}
.sb-fineprint{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.60);
}

/* Sections */
.sb-section-title{
  font-size: 28px;
  margin: 0 0 10px;
  letter-spacing:-0.4px;
}
.sb-section-sub{color: rgba(255,255,255,0.72); margin:0 0 18px; line-height:1.6;}
.sb-feature{
  padding: 18px;
}
.sb-feature h3{margin: 0 0 8px; font-size: 16px;}
.sb-feature p{margin: 0; color: rgba(255,255,255,0.72); line-height: 1.6;}
.sb-icon{
  width: 40px; height: 40px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  margin-bottom: 12px;
  box-shadow: 0 0 30px rgba(110,231,255,0.12);
}
.sb-icon svg{opacity:0.95;}
.sb-slab{
  padding: 22px;
}
.sb-slab h3{margin:0 0 8px;}
.sb-list{margin: 10px 0 0; padding-left: 18px; color: rgba(255,255,255,0.74);}
.sb-list li{margin: 8px 0;}

/* Pricing */
.sb-pricing-card{padding: 22px;}
.sb-price{font-size: 34px; font-weight: 900; margin: 10px 0;}
.sb-price small{font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.68);}
.sb-check{
  display:flex; gap:10px; align-items:flex-start;
  margin: 10px 0;
  color: rgba(255,255,255,0.78);
}
.sb-check i{
  width:18px; height:18px; border-radius: 6px;
  background: rgba(34,197,94,0.16);
  border: 1px solid rgba(34,197,94,0.30);
  box-shadow: 0 0 18px rgba(34,197,94,0.12);
  display:inline-block;
  margin-top: 2px;
}
.sb-pricing-note{
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.72);
}

/* Footer */
.sb-footer{
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(8,11,22,0.35);
  padding: 40px 0;
}
.sb-footer-inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
@media (max-width: 920px){
  .sb-footer-inner{grid-template-columns: 1fr;}
}
.sb-footer-brand{display:flex; gap:12px; align-items:flex-start;}
.sb-footer-name{font-weight:900;}
.sb-footer-note{margin-top: 10px; font-size: 13px;}
.sb-footer-links{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px;}
@media (max-width: 640px){
  .sb-footer-links{grid-template-columns: 1fr;}
}
.sb-footer-title{font-weight:900; margin-bottom: 10px;}
.sb-footer-col a{display:block; padding: 6px 0; color: rgba(255,255,255,0.78);}
.sb-footer-col a:hover{color:#fff;}

/* Forms */
.sb-form{padding:22px;}
.sb-field{display:flex; flex-direction:column; gap:8px; margin-bottom: 14px;}
.sb-input, .sb-textarea, .sb-select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color:#fff;
  outline:none;
}
.sb-input:focus, .sb-textarea:focus, .sb-select:focus{
  border-color: rgba(110,231,255,0.35);
  box-shadow: var(--mk-glow);
}
.sb-textarea{min-height: 140px; resize: vertical;}


/* Comparison tables */
.sb-table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}
.sb-compare-table{
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.sb-compare-table th,
.sb-compare-table td{
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-right: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  line-height: 1.35;
}
.sb-compare-table th:last-child,
.sb-compare-table td:last-child{border-right:none;}
.sb-compare-table tr:last-child td{border-bottom:none;}
.sb-compare-table thead th{
  position: sticky;
  top: 0;
  background: rgba(13,20,28,0.92);
  backdrop-filter: blur(10px);
  font-weight: 900;
}
.sb-compare-table tbody tr:hover td{
  background: rgba(110,231,255,0.06);
}
@media (max-width: 860px){
  .sb-compare-table{min-width: 840px;}
}


/* Comparison layout polish */

.compare-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.compare-table-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
}

.compare-table-wrap::-webkit-scrollbar {
  height: 8px;
}
.compare-table-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
}
.compare-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
}
.compare-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.35);
}

.compare-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) rgba(255,255,255,0.06);
}


/* === MOBILE COMPARISON FIX (AUTO) === */
@media (max-width: 768px) {
  .sb-grid { grid-template-columns: 1fr !important; }
  .sb-card { width: 100% !important; }

  .sb-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
  }

  .sb-compare-table {
    min-width: 640px;
  }

  .sb-compare-table th:first-child,
  .sb-compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(10,15,26,0.95);
    box-shadow: 10px 0 18px rgba(0,0,0,0.35);
  }

  .sb-compare-table th,
  .sb-compare-table td {
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* ===============================
   FORCE MOBILE HORIZONTAL SCROLL
   FOR COMPARISON TABLES
   =============================== */
@media (max-width: 768px) {

  /* ensure nothing clips the scroll */
  .sb-card,
  .sb-grid,
  .sb-section,
  .sb-container {
    overflow: visible !important;
  }

  /* dedicated horizontal scroll container */
  .sb-table-wrap {
    display: block;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    padding-bottom: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10,15,26,0.95);
  }

  /* scrollbar that is ACTUALLY visible */
  .sb-table-wrap::-webkit-scrollbar {
    height: 10px;
  }
  .sb-table-wrap::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
  }
  .sb-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.35);
    border-radius: 999px;
  }

  /* force table wider than viewport so scroll exists */
  .sb-compare-table {
    min-width: 900px !important;
    width: max-content;
  }

  /* keep first column visible while scrolling */
  .sb-compare-table th:first-child,
  .sb-compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: rgba(10,15,26,0.98);
    box-shadow: 12px 0 20px rgba(0,0,0,0.4);
  }
}

