/* ============================================================
   GET STARTUPS — Shared Top Bar + Navigation
   Used by index.html and every page under /auth.
   Depends on theme.css for color tokens.
   ============================================================ */

/* ---------- TOP PROMO BAR ---------- */
.promo-bar{
  background:linear-gradient(90deg, var(--green-700), var(--green-600));
  color:#fff;
  text-align:center;
  font-size:13px;
  font-weight:600;
  padding:9px 16px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:4px 8px;
  animation:fadeDown .6s ease both;
}
.promo-bar span{ max-width:100%; }
.promo-bar a{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:3px;
  white-space:nowrap;
}

/* ---------- HEADER / NAV ---------- */
header.site{
  position:relative;
  z-index:40;
  padding:18px clamp(16px,3vw,40px) 0;
}
.nav-wrap{
  max-width:1320px;
  margin:0 auto;
  padding:20px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:var(--surface-strong);
  border:1px solid rgba(20,37,33,.08);
  border-radius:28px;
  box-shadow:0 18px 40px rgba(20,37,33,.08);
}
.brand{
  display:flex; align-items:center; gap:14px;
  font-weight:800; font-size:18px; color:var(--ink);
  flex-shrink:0;
  text-decoration:none;
}
.brand img{
  width:36px;
  height:36px;
  display:block;
}
nav.links{
  display:flex; align-items:center; gap:34px;
  font-size:15px; font-weight:700; color:var(--muted);
}
nav.links a{
  color:var(--muted);
  text-decoration:none;
  position:relative;
  padding-bottom:4px;
  transition:color .2s ease;
  white-space:nowrap;
}
nav.links a:hover{ color:var(--ink); }
nav.links a.active{ color:var(--green-600); }
nav.links a.active::after{
  content:"";
  position:absolute; right:0; left:0; bottom:-6px;
  height:2px; border-radius:2px;
  background:var(--green-600);
}
.nav-actions{
  display:flex; align-items:center; gap:12px;
  flex-shrink:0;
}
.icon-btn{
  width:40px;height:40px;
  border-radius:50%;
  border:1px solid #D6E5DD;
  background:#fff;
  display:flex;align-items:center;justify-content:center;
  color:var(--green-600);
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}
.icon-btn:hover{ transform:translateY(-1px); background:#F7FBF9; }
.icon-btn svg{ width:17px;height:17px; }
.btn-login{
  background:#fff;
  color:var(--ink);
  border:1px solid #D6E5DD;
  padding:0 30px;
  height:50px;
  font-size:15px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
}
.btn-login:hover{ background:#F7FBF9; }
.btn-join{
  padding:0 32px;
  height:50px;
  font-size:15px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
}
.nav-toggle{
  display:none;
  width:40px;height:40px;
  border-radius:12px;
  border:1px solid #D6E5DD;
  background:#fff;
  align-items:center;justify-content:center;
  cursor:pointer;
}
.nav-toggle svg{ width:18px;height:18px; color:var(--ink); }

/* ---------- RESPONSIVE ---------- */
@media (max-width:1020px){
  nav.links{ display:none; }
  .nav-toggle{ display:flex; }
}
@media (max-width:640px){
  .btn-login{ display:none; }
  .nav-wrap{
    padding:16px 18px;
    border-radius:22px;
  }
  .brand span.brand-name{ font-size:16px; }
  .promo-bar{
    font-size:12px;
    flex-direction:column;
    gap:2px;
    padding:8px 14px;
  }
}
@media (max-width:480px){
  /* nav row: brand + icon + join + toggle was overflowing
     on common 390–430px phones, not just sub-400px ones */
  .nav-wrap{ padding:14px 14px; gap:10px; }
  .brand{ gap:8px; }
  .brand .brand-name{ display:none; }
  .nav-actions{ gap:8px; }
  .icon-btn{ display:none; }
  .btn-join{ padding:0 16px; font-size:13px; height:44px; }
  .nav-toggle{ width:36px; height:36px; }
}
