/* =========================================================
   Supermodel — Shared Header/Nav Styles
   Included on every page. Canonical reference: index.html
   ========================================================= */

/* Design tokens — single source of truth for all CSS variables */
@import url('/tokens.css');

/* ----- Announcement Banner ----- */
.announcement-banner {
  background: #FFFFFF;
  color: #000000;
  text-align: center;
  padding: 10px 48px 10px 24px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: .05em;
  border-bottom: 1px solid #E0E0E0;
}
.announcement-banner a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
.announcement-banner a:hover { opacity: 0.6; }
.announcement-banner .banner-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.announcement-banner .banner-tag {
  background: #000000;
  color: #FFFFFF;
  font-size: 0.6rem;
  padding: 2px 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.announcement-banner .banner-arrow { font-size: 0.75rem; opacity: 0.5; }
.announcement-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.4;
  padding: 4px;
  transition: opacity .2s;
}
.announcement-close:hover { opacity: 0.8; }

/* ----- Sticky site header (banner + nav combined) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ----- Nav v3 ----- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4,5,5,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { height: 22px; display: flex; align-items: center; }
.logo-icon svg { height: 100%; width: auto; }
.logo-wordmark { height: 14px; display: flex; align-items: center; }
.logo-wordmark svg { height: 100%; width: auto; }

/* Nav links */
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
nav ul a {
  font-family: var(--display, 'Lexend Exa', sans-serif);
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #D1D6D7;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
nav ul a:hover { color: #ffffff; }

/* Right-side CTAs */
.nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Star button — rounded pill */
.star-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid #343738;
  border-radius: 999px;
  font-family: var(--display, 'Lexend Exa', sans-serif);
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  transition: border-color .2s;
  cursor: pointer;
}
.star-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.star-btn:hover { border-color: rgba(255,255,255,0.4); }

/* ----- Mobile hamburger ----- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-ctas .star-btn { display: none; }
  nav ul {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: rgba(0,0,0,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 0;
    gap: 0;
    z-index: 99;
  }
  nav.open ul { display: flex; }
  nav ul li { padding: 0; border-bottom: 1px solid var(--border); }
  nav ul li:last-child { border-bottom: none; }
  nav ul li a {
    display: flex;
    padding: 14px 24px;
    font-size: .75rem;
    align-items: center;
    gap: 8px;
    color: var(--text);
    width: 100%;
  }
}

/* ----- Start Free Trial CTA button (nav) ----- */
.btn-trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #040505;
  font-family: var(--display, 'Lexend Exa', sans-serif);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  border-radius: 999px;
  padding: 7px 18px;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.btn-trial:hover { background: #e8e8e8; }

/* ----- Footer (new 3-column layout) ----- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px 40px;
}
.footer-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 240px; }
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-brand-name {
  font-family: var(--display, 'Lexend Exa', sans-serif);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
}
.footer-brand-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 120px;
  text-align: left;
}
.footer-col-head {
  font-family: var(--display, 'Lexend Exa', sans-serif);
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim, #555);
  margin: 0;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
  line-height: 1;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-dim, #555);
  margin: 0;
}
.footer-tufte {
  font-style: italic;
  white-space: nowrap;
  text-align: right;
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; }
  .footer-tufte { text-align: left; white-space: normal; }
}
