/* ===================================================================
   SHARED — brand tokens, reset, base, buttons, unified nav, footer
   Loaded on every page. Page-specific styles live in software.css /
   tirevans.css / home.css and load AFTER this file.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* dark "bookend" zones: nav, hero, final-cta, footer */
  --black: #0B0B0B;
  --charcoal: #141414;
  --card-dark: #1B1B1B;
  --muted-dark: #B8B8BC;
  --border-dark: rgba(255,255,255,.10);
  --border-dark-strong: rgba(255,255,255,.18);

  /* light zones: everything else */
  --bg: #FFFFFF;
  --bg-alt: #F6F6F3;
  --bg-soft: #FBFBF9;
  --ink: #15151A;
  --ink-soft: #46464C;
  --muted: #6B6B72;
  --card: #FFFFFF;
  --card-hover: #FCFCFA;
  --border: rgba(17,17,17,.09);
  --border-strong: rgba(17,17,17,.16);

  /* shared */
  --white: #FFFFFF;
  --gold: #F7C600;
  --gold-dim: #D4A800;
  --gold-pale: rgba(247,198,0,0.10);
  --accent: #FFD84D;
  --red: #EF4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(20,20,15,0.06);
  --shadow-lg: 0 24px 60px rgba(20,20,15,0.10);
  --shadow-dark-lg: 0 24px 70px rgba(0,0,0,0.55);
  --glow: 0 0 0 1px rgba(247,198,0,0.14), 0 8px 28px rgba(247,198,0,0.12);

  /* unified nav stack height, used by page CSS for offsets */
  --nav-primary-h: 64px;
  --nav-secondary-h: 44px;
  --nav-total-h: 108px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
body.modal-open { overflow: hidden; }
::selection { background: var(--gold); color: var(--black); }

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.icon-fill { fill: currentColor; stroke: none; }

/* ===== Buttons (shared across both products) ===== */
.btn-ghost {
  padding: 10px 20px; border: 1.5px solid var(--border-dark-strong); border-radius: 8px;
  background: none; color: var(--white); font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary {
  padding: 11px 22px; background: var(--gold); border: none; border-radius: 8px;
  color: var(--black); font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(247,198,0,0.3); }

/* ===================================================================
   UNIFIED NAVIGATION
   Two-tier: primary brand/product switcher (all pages) +
   secondary in-page links (rendered only on software.html / tirevans.html)
   =================================================================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 210;
  height: var(--nav-primary-h);
  background: rgba(11,11,11,0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.site-brand img { height: 32px; width: auto; display: block; }
.site-brand-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; color: var(--white); letter-spacing: -0.01em; }
.site-brand-text span { color: var(--gold); }

.product-switch { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.06); border: 1px solid var(--border-dark); border-radius: 100px; padding: 4px; }
.product-switch a {
  text-decoration: none; color: var(--muted-dark); font-size: 13.5px; font-weight: 600;
  padding: 8px 18px; border-radius: 100px; transition: all .2s; letter-spacing: .01em;
}
.product-switch a:hover { color: var(--white); }
.product-switch a.is-active { background: var(--gold); color: var(--black); }

.site-nav-ctas { display: flex; align-items: center; gap: 12px; }

.subnav {
  position: fixed; top: var(--nav-primary-h); left: 0; right: 0; z-index: 205;
  height: var(--nav-secondary-h);
  background: var(--charcoal); border-bottom: 1px solid var(--border-dark);
  display: flex; align-items: center;
  padding: 0 40px;
  overflow-x: auto; scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-links { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.subnav-links a { text-decoration: none; color: var(--muted-dark); font-size: 13px; font-weight: 500; transition: color .2s; letter-spacing: .01em; }
.subnav-links a:hover { color: var(--gold); }
.subnav-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold-dim); padding-right: 20px; margin-right: 4px; border-right: 1px solid var(--border-dark);
}

@media (max-width: 720px) {
  .site-nav { padding: 0 16px; }
  .subnav { padding: 0 20px; }
  .site-brand-text { display: none; }

  body[data-page="home"] .site-nav-ctas { display: none; }

  .product-switch { padding: 3px; gap: 2px; }
  .product-switch a { padding: 7px 12px; font-size: 12.5px; }

  .site-nav-ctas { gap: 8px; }
  .site-nav-ctas .btn-ghost,
  .site-nav-ctas .btn-primary { padding: 8px 12px; font-size: 12.5px; }
}

@media (max-width: 420px) {
  .site-nav-ctas .btn-ghost { display: none; }
}

/* ===================================================================
   UNIFIED FOOTER
   =================================================================== */
footer.site-footer {
  background: var(--charcoal); padding: 64px 80px 36px; color: var(--muted-dark);
  border-top: 1px solid var(--border-dark);
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-brand-col .site-brand { margin-bottom: 14px; }
.footer-brand-col img { height: 32px; }
.footer-brand-col p { font-size: 14px; line-height: 1.8; color: var(--muted-dark); max-width: 280px; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--muted-dark); text-decoration: none; margin-bottom: 11px; line-height: 1.6; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 13px; color: #7A7A7E; }

@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  footer.site-footer { padding: 48px 24px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
