/* ==========================================================
   SALES GYM — SHARED STYLES
   Used by all pages. Single source of truth for design tokens.
   ========================================================== */

:root {
  --ink: #0a0e1a;
  --ink-2: #131825;
  --ink-3: #1c2236;
  --line: #232a40;
  --line-2: #2e3650;
  --bone: #f4ede3;
  --bone-2: #ebe2d3;
  --paper: #faf6ee;
  --text: #e9e4d8;
  --text-mute: #9a9788;
  --text-dim: #6b6a5f;
  --signal: #ff5b1f;
  --signal-soft: #ff7a45;
  --signal-dim: #c44214;
  --gold: #c8a96a;
  --positive: #7dc28a;
  --warn: #e8b94a;
  --danger: #d85a4a;

  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ============== NAV WITH DROPDOWNS ============== */
nav.top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.logo-mark {
  width: 28px; height: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.logo-mark span { background: var(--bone); border-radius: 1px; }
.logo-mark span:nth-child(2) { background: var(--signal); }

nav.top .links {
  display: flex; gap: 4px;
  font-size: 14px;
  font-weight: 500;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  color: var(--text-mute);
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.nav-link:hover { color: var(--bone); }
.nav-link .caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.nav-item:hover .caret { transform: rotate(225deg) translate(-2px, -2px); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  min-width: 380px;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.5);
}
.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown.wide { min-width: 520px; }
.dropdown-grid { display: grid; gap: 4px; }
.dropdown-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.dropdown-item {
  display: block;
  padding: 12px 14px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.dropdown-item:hover {
  background: var(--ink-3);
  border-color: var(--line);
}
.dropdown-item .dd-title {
  display: flex; align-items: center; gap: 8px;
  color: var(--bone);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.dropdown-item .dd-title .arrow {
  font-size: 11px;
  color: var(--signal);
  opacity: 0;
  transition: all 0.2s;
}
.dropdown-item:hover .dd-title .arrow {
  opacity: 1;
  transform: translateX(4px);
}
.dropdown-item .dd-desc {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.4;
}
.dropdown-section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px 4px;
  margin-top: 4px;
}
.dropdown-section-label:first-child { margin-top: 0; }

nav.top .actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  border-radius: 0;
}
.btn:hover { border-color: var(--bone); background: rgba(244,237,227,0.04); }
.btn.signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  font-weight: 700;
}
.btn.signal:hover {
  background: var(--signal-soft);
  border-color: var(--signal-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(255,91,31,0.55);
}
.btn.lg { padding: 16px 28px; font-size: 15px; }
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.lang-toggle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.lang-toggle b { color: var(--bone); }

/* ============== TYPOGRAPHY HELPERS ============== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 28px;
  padding: 6px 12px;
  border: 1px solid var(--signal-dim);
  background: rgba(255,91,31,0.06);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--signal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--signal);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 32px;
  max-width: 800px;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--signal);
}

.section-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 680px;
  margin-bottom: 56px;
}

/* ============== PAGE HERO (sub-pages) ============== */
.page-hero {
  padding: 140px var(--pad-x) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 32px;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--bone); }
.breadcrumb .sep { margin: 0 10px; opacity: 0.5; }
.breadcrumb .current { color: var(--bone); }

h1.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin-bottom: 28px;
  max-width: 920px;
  font-variation-settings: "opsz" 144;
}
h1.page-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--signal);
}

.page-lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-mute);
  margin-bottom: 40px;
  max-width: 700px;
}
.page-lead strong { color: var(--bone); font-weight: 600; }

.page-cta {
  display: flex; gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============== SECTIONS ============== */
.section {
  padding: 100px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-alt {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt .section-inner {
  padding: 100px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-light {
  background: var(--bone);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-light .section-inner {
  padding: 100px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-light .section-title { color: var(--ink); }
.section-light .section-lead { color: #555; }

/* ============== FEATURE CARDS ============== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 32px 28px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--signal-dim);
  transform: translateY(-4px);
}
.feature-card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--bone);
  margin-bottom: 14px;
  line-height: 1.2;
}
.feature-card p {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
}

/* ============== FINAL CTA ============== */
.final-cta {
  padding: 140px var(--pad-x);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.final-cta-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--bone);
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.final-cta h2 em {
  font-style: italic;
  color: var(--signal);
  font-weight: 300;
}
.final-cta p {
  font-size: 19px;
  color: var(--text-mute);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============== FOOTER ============== */
footer {
  background: var(--ink);
  padding: 80px var(--pad-x) 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--bone);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; }
.footer-col a {
  color: var(--text-mute);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--bone); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .compliance {
  display: flex; gap: 24px;
  flex-wrap: wrap;
}

/* ============== ANIMATIONS ============== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.65s; }

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  nav.top .links { display: none; }
  .page-hero { padding: 110px var(--pad-x) 50px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  h1.page-title { font-size: 38px; }
  .footer-top { grid-template-columns: 1fr; }
}
