:root{
  --bg: #070a14;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted2: rgba(255,255,255,0.52);
  --accent1: #6ee7ff;
  --accent2: #a78bfa;
  --danger: #ff6b6b;
  --ok: #6bff95;
  --shadow: 0 16px 50px rgba(0,0,0,0.45);
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 15% 0%, rgba(110,231,255,0.14), transparent 55%),
    radial-gradient(900px 600px at 85% 10%, rgba(167,139,250,0.12), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(255,255,255,0.06), transparent 60%),
    var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.container{
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  background: rgba(0,0,0,0.8);
  border:1px solid var(--stroke);
  border-radius: 12px;
  z-index: 50;
}

.topbar{
  position: sticky;
  top:0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7,10,20,0.72);
  border-bottom: 1px solid var(--stroke);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.logo{
  width: 34px; height: 34px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(110,231,255,0.9), rgba(167,139,250,0.9));
  box-shadow: 0 12px 30px rgba(110,231,255,0.18);
  position: relative;
}
.logo::after{
  content:"";
  position:absolute;
  inset: 7px;
  border-radius: 10px;
  background: rgba(7,10,20,0.65);
}
.brand-title{ font-weight: 750; letter-spacing: 0.2px; }
.brand-sub{ font-size: 12px; color: var(--muted2); margin-top: 2px; }

.nav{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.nav a:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  text-decoration: none;
}

.hero{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 26px 0 18px;
}
@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
}

h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.5px;
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15.5px;
}

.support-card{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}
.support-text{ display:flex; flex-direction: column; gap: 3px; }
.support-text span{ color: var(--muted2); font-size: 12.5px; }

.bmac-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 750;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(110,231,255,0.18), rgba(167,139,250,0.18));
  text-decoration: none !important;
}
.bmac-btn:hover{
  border-color: rgba(255,255,255,0.22);
  background: linear-gradient(135deg, rgba(110,231,255,0.24), rgba(167,139,250,0.24));
}
.bmac-btn-small{
  padding: 10px 12px;
  font-size: 13px;
}

.hero-right{
  display:flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
}
.stat-card{
  padding: 16px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.stat-kicker{
  color: var(--muted2);
  font-size: 12px;
}
.stat-big{
  margin-top: 10px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.6px;
}
.stat-sub{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.mini-note{
  color: var(--muted2);
  font-size: 12.5px;
  padding: 10px 12px;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.card{
  margin: 16px 0;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card-header{
  padding: 18px 18px 0;
}
.card-header h2{
  margin: 0;
  font-size: 20px;
}
.card-header p{
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13.5px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 18px 18px;
}
@media (max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
}

.field label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,10,20,0.55);
  color: var(--text);
  outline: none;
}
.field input:focus{
  border-color: rgba(110,231,255,0.55);
  box-shadow: 0 0 0 4px rgba(110,231,255,0.10);
}
.hint{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.35;
}

.results{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 18px 18px;
}
@media (max-width: 920px){
  .results{ grid-template-columns: 1fr; }
}

.result{
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.result-title{
  color: var(--muted2);
  font-size: 12px;
}
.result-value{
  margin-top: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.4px;
}
.result-sub{
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.recommendations{
  padding: 0 18px 18px;
}
.recommendations h3{
  margin: 6px 0 10px;
  font-size: 16px;
}
.recommendations ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}
.recommendations li{
  margin: 7px 0;
}

.actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn{
  cursor:pointer;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 750;
}
.btn:hover{
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.20);
}
.btn-ghost{
  background: transparent;
}

.copy-toast{
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted2);
  min-height: 16px;
}

.ad-block{
  margin: 14px 0;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
}
.ad-label{
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 8px;
}
.ad-box{
  min-height: 80px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(7,10,20,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 10px;
}
.ad-hint{
  margin:0;
  color: var(--muted2);
  font-size: 12.5px;
}

.content{
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.muted{ color: var(--muted2); }

.formula{
  margin: 12px 0;
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.formula code{
  display:block;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  overflow-x: auto;
}

details{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 10px 12px;
  margin: 10px 0;
}
summary{
  cursor:pointer;
  font-weight: 750;
  color: rgba(255,255,255,0.86);
}
details p{
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-title{
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 6px;
}
.contact-link{
  font-weight: 800;
}
.support-inline{
  display:flex;
  flex-direction: column;
  align-items:flex-start;
}

.footer{
  padding: 18px 0 30px;
  text-align:center;
  color: var(--muted2);
}
.footer-links{
  display:flex;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-links a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
}
.footer-links a:hover{
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
}
.footer-note{
  font-size: 12.5px;
}