*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0A0C12;
  color: #EAECEF;
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; }
a { color: inherit; }
::selection { background: #E11D2A; color: #fff; }

input, select, textarea { font-family: 'Manrope', system-ui, sans-serif; }
input::placeholder, textarea::placeholder { color: #5C6473; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #E11D2A !important; }

:focus-visible {
  outline: 2px solid #E11D2A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Active nav link (header) */
nav .tb-nav-link[aria-current="page"] { color: #fff; }

/* Active legal/footer link */
footer a[aria-current="page"] { color: #fff !important; }

/* Hover utilities */
.tb-nav-link { transition: color .15s ease; }
.tb-nav-link:hover { color: #fff; }
.tb-muted-link { transition: color .15s ease; }
.tb-muted-link:hover { color: #fff; }
.tb-cta-red { transition: background .15s ease; }
.tb-cta-red:hover { background: #C2151F; }
.tb-cta-dark { transition: background .15s ease; }
.tb-cta-dark:hover { background: #000; }
.tb-cta-white { transition: background .15s ease; }
.tb-cta-white:hover { background: #F2F2F2; }
.tb-cta-outline-light { transition: background .15s ease, border-color .15s ease; }
.tb-cta-outline-light:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
.tb-cta-outline-red { transition: background .15s ease; }
.tb-cta-outline-red:hover { background: rgba(255,255,255,0.12); }
.tb-feature-card { transition: border-color .15s ease; }
.tb-feature-card:hover { border-color: rgba(225,29,42,0.45); }
.tb-email-link { transition: color .15s ease; }
.tb-email-link:hover { color: #FF6B6B; }
.tb-bread-link { transition: color .15s ease; }
.tb-bread-link:hover { color: #fff; }

/* Animations */
@keyframes tbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes tbRise { from { opacity: .6; transform: scaleY(.65); } to { opacity: 1; transform: scaleY(1); } }
.tb-float { animation: tbFloat 7s ease-in-out infinite; }
.tb-bar { transform-origin: bottom; animation: tbRise .8s ease both; }

/* FAQ details/summary */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details .tb-plus { transition: transform .2s ease; }
details[open] .tb-plus { transform: rotate(45deg); }
details[open] { border-color: rgba(225,29,42,0.45) !important; }

/* Mobile menu button (shown only on small screens) */
.tb-menu-btn {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.tb-menu-btn:hover { background: rgba(255,255,255,0.06); }
.tb-menu-btn span,
.tb-menu-btn span::before,
.tb-menu-btn span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #EAECEF;
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.tb-menu-btn span::before { position: absolute; top: -6px; left: 0; }
.tb-menu-btn span::after { position: absolute; top: 6px; left: 0; }
.tb-menu-btn[aria-expanded="true"] span { background: transparent; }
.tb-menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.tb-menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav panel — hidden by default; main.js toggles [hidden] */
.tb-mobile-panel {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(10,12,18,0.96);
  padding: 16px 24px 24px;
}
.tb-mobile-panel.is-open { display: block; }
.tb-mobile-panel nav { display: flex; flex-direction: column; gap: 4px; }
.tb-mobile-panel nav a {
  padding: 12px 4px;
  font-weight: 600;
  font-size: 16px;
  color: #EAECEF;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tb-mobile-panel .tb-mobile-auth { display: flex; gap: 10px; margin-top: 16px; }
.tb-mobile-panel .tb-mobile-auth a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

/* Breakpoint */
@media (max-width: 880px) {
  .tb-menu-btn { display: inline-flex; }
  .tb-nav { display: none !important; }
  .tb-header-auth { display: none !important; }
  .tb-hero { grid-template-columns: 1fr !important; gap: 40px !important; padding-top: 56px !important; padding-bottom: 64px !important; }
  .tb-hero-h1 { font-size: 38px !important; }
  .tb-hero-stats { gap: 18px !important; }
  .tb-hero-divider { display: none !important; }
  .tb-section-grid-3 { grid-template-columns: 1fr !important; }
  .tb-section-grid-2 { grid-template-columns: 1fr !important; gap: 40px !important; }
  .tb-section-grid-4 { grid-template-columns: 1fr 1fr !important; }
  .tb-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .tb-page-h1 { font-size: 36px !important; }
  .tb-h2 { font-size: 30px !important; }
  .tb-cta-h2 { font-size: 34px !important; }
  .tb-section-pad { padding-top: 64px !important; padding-bottom: 64px !important; }
  .tb-contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .tb-form-row { grid-template-columns: 1fr !important; }
  .tb-form-card { padding: 24px !important; }
  .tb-trust-strip-sep { display: none !important; }
}

@media (max-width: 520px) {
  .tb-section-grid-4 { grid-template-columns: 1fr !important; }
  .tb-footer-grid { grid-template-columns: 1fr !important; }
  .tb-hero-h1 { font-size: 34px !important; }
}
