.site-header{
  position:sticky;
  top:0;
  z-index:900;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--panel) 82%, transparent);
  border-bottom:1px solid color-mix(in oklab, var(--line) 78%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.site-header.is-compact .header-inner{
  padding:10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  text-decoration:none;
}

.brand-logo{
  height:42px;
  width:auto;
  display:block;
  flex-shrink:0;
}

.brand-tag{
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:12px;
  color:var(--muted);
  line-height:1.15;
}

.brand-tag-line{
  display:block;
  white-space:nowrap;
}

@media (max-width: 1100px){
  .brand-tag{display:none;}
}

.header-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-shrink:0;
}

.btn{
  border-radius:14px;
  padding:10px 14px;
  font-weight:700;
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--card) 88%, transparent);
  color:var(--text);
  cursor:pointer;
  text-align:center;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  border:1px solid rgba(139,181,255,.24);
  background: linear-gradient(135deg, rgba(91,140,255,.92), rgba(127,210,255,.82));
  color:#061021;
  box-shadow: 0 10px 30px rgba(91,140,255,.18), inset 0 1px 0 rgba(255,255,255,.20);
}

.btn-ghost{
  background:rgba(10,22,45,.35);
  border:1px solid rgba(139,181,255,.16);
  color:var(--text);
}

.burger{
  display:none;
  width:44px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(139,181,255,.14);
  background: color-mix(in oklab, var(--card) 86%, transparent);
  cursor:pointer;
  flex-shrink:0;
}

.burger span{
  display:block;
  height:2px;
  width:18px;
  margin:5px auto;
  background:var(--text);
  opacity:.9;
}

.mobile-nav{
  display:none;
  border-top:1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,22,45,.96), rgba(10,22,45,.88));
}

.mobile-nav-inner{
  padding:16px 0 18px;
}

.mobile-nav-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.mobile-nav-actions .btn{
  width:100%;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}

@media (max-width: 920px){
  .header-actions > a.btn{
    display:none;
  }

  .burger{
    display:inline-block;
  }

  .mobile-nav.is-open{
    display:block;
  }
}

@media (max-width: 520px){
  .header-inner{
    gap:10px;
  }

  .brand{
    gap:10px;
    min-width:0;
  }

  .brand-logo{
    height:38px;
  }

  .burger{
    width:42px;
    height:40px;
  }
}

.grid-2{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:26px;
  align-items:start;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

@media (max-width: 900px){
  .grid-2{grid-template-columns:1fr;}
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .grid-3{grid-template-columns:1fr;}
}

@media (max-width: 520px){
  .grid-4{grid-template-columns:1fr;}
}

.card{
  background: linear-gradient(180deg, rgba(13,27,53,.92), rgba(10,21,42,.92));
  border:1px solid rgba(139,181,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.03);
  padding:18px;
}

.card.soft{
  box-shadow:none;
  background: linear-gradient(180deg, rgba(13,27,53,.72), rgba(10,21,42,.72));
}

.card h3{
  margin-bottom:8px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:750;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(139,181,255,.16);
  background: rgba(13,27,53,.56);
  color:var(--muted);
}

.site-footer{
  border-top:1px solid rgba(139,181,255,.10);
  background: linear-gradient(180deg, rgba(10,22,45,.78), rgba(8,18,36,.92));
  padding:34px 0 22px;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:22px;
  align-items:start;
}

.footer-col-title{
  font-weight:850;
  margin-bottom:10px;
}

.site-footer a{
  display:block;
  color:var(--muted);
  padding:6px 0;
}

.site-footer a:hover{
  color:var(--text);
}

.footer-title{
  font-weight:900;
  letter-spacing:.04em;
}

.footer-sub{
  color:var(--muted);
  margin-top:6px;
  max-width:50ch;
}

.footer-note{
  color:var(--muted);
  margin-top:10px;
  max-width:50ch;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(139,181,255,.10);
  color:var(--muted);
  font-size:13px;
}

.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

@media (max-width: 900px){
  .footer-grid{grid-template-columns:1fr;}
  .footer-bottom{flex-direction:column; align-items:flex-start;}
}

.form{
  display:grid;
  gap:12px;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

label{
  display:grid;
  gap:6px;
  font-weight:650;
}

input,
select,
textarea{
  width:100%;
  min-width:0;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(139,181,255,.12);
  background: rgba(8,18,36,.78);
  color:var(--text);
  outline:none;
}

textarea{
  resize:vertical;
}

.form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}

.form-hint{
  color:var(--muted);
  font-size:12px;
}

@media (max-width: 700px){
  .form-row{grid-template-columns:1fr;}
}

[data-reveal]{
  opacity:0;
  transform: translateY(10px);
  transition: .7s ease;
}

[data-reveal].is-visible{
  opacity:1;
  transform:none;
}

.pill-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.backtop{
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px) + 54px);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.backtop.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}