/* ===================================
   hubspot-alternative.com — stylesheet
   =================================== */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f8f9fb;
  --c-bg-card: #ffffff;
  --c-border: #e5e7eb;
  --c-text: #111827;
  --c-muted: #6b7280;
  --c-accent: #4f46e5;
  --c-accent-2: #7c3aed;
  --c-green: #059669;
  --c-green-bg: #ecfdf5;
  --c-red: #dc2626;
  --c-red-bg: #fef2f2;
  --c-yellow: #d97706;
  --c-ghl: #f97316;
  --c-ghl-bg: #fff7ed;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-ghl: 0 8px 32px rgba(249,115,22,.20);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: .18s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--c-muted); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Layout helpers --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
/* Content-visibility: defer rendering of off-screen sections */
.section, .section-sm, .trust, .ghl-section, .vs-section, .final-cta, footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}
/* Hero is above fold — never defer */
.hero { content-visibility: visible; contain-intrinsic-size: unset; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.text-muted { color: var(--c-muted); }
.font-bold { font-weight: 700; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-size: .95rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent); color: #fff;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.btn-primary:hover { background: #4338ca; box-shadow: 0 6px 20px rgba(79,70,229,.45); transform: translateY(-1px); }
.btn-ghl {
  background: linear-gradient(135deg, #f97316, #ea580c); color: #fff;
  box-shadow: 0 4px 16px rgba(249,115,22,.4);
}
.btn-ghl:hover { background: linear-gradient(135deg,#ea580c,#c2410c); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(249,115,22,.5); }
.btn-outline {
  background: transparent; color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn-outline:hover { border-color: #9ca3af; background: var(--c-bg-soft); }
.btn-outline-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* --- Navbar --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .9rem; color: var(--c-muted); font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--c-text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: #fff;
  z-index: 200; flex-direction: column; align-items: center;
  justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.2rem; font-weight: 600; color: var(--c-text); }
.mobile-close { position: absolute; top: 20px; right: 20px; font-size: 1.8rem; cursor: pointer; color: var(--c-muted); background: none; border: none; }

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, #fafafa 0%, #f0f0ff 50%, #fff7ed 100%);
  padding: 96px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--c-ghl-bg); border: 1px solid rgba(249,115,22,.25);
  font-size: .82rem; font-weight: 600; color: #c2410c;
  margin-bottom: 20px;
}
.hero-badge span { width: 7px; height: 7px; background: var(--c-ghl); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg,#4f46e5,#7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.hero-sub { font-size: 1.15rem; margin-bottom: 32px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--c-text); }
.hero-stat span { font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; }

/* --- Dashboard mockup --- */
.hero-visual { position: relative; }
.mockup-wrap {
  background: linear-gradient(135deg, #1e1e2e, #2d2b4e);
  border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
}
.mockup-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f56; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #27c93f; }
.mockup-screen { background: #0f0f1a; border-radius: 8px; padding: 20px; min-height: 280px; }
.mockup-sidebar {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px;
}
.mock-row {
  height: 10px; border-radius: 6px; background: rgba(255,255,255,.08);
  animation: shimmer 2s infinite;
}
.mock-row.w-60 { width: 60%; }
.mock-row.w-40 { width: 40%; }
.mock-row.w-80 { width: 80%; }
.mock-row.w-30 { width: 30%; }
.mock-row.accent { background: rgba(249,115,22,.4); }
.mock-row.accent2 { background: rgba(79,70,229,.4); }
.mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.mock-card {
  background: rgba(255,255,255,.05); border-radius: 8px; padding: 12px;
  border: 1px solid rgba(255,255,255,.06);
}
.mock-card-num { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.mock-card-label { font-size: .65rem; color: rgba(255,255,255,.4); text-transform: uppercase; }
.mock-card-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); margin-top: 8px; overflow: hidden; }
.mock-card-bar-fill { height: 100%; border-radius: 4px; }
.mockup-badge {
  position: absolute; bottom: -14px; right: -14px;
  background: #fff; border-radius: 12px; padding: 10px 16px;
  box-shadow: var(--shadow-md); border: 1px solid var(--c-border);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.mockup-badge strong { color: var(--c-green); font-size: 1.1rem; display: block; }

/* --- Trust section --- */
.trust { background: var(--c-bg-soft); padding: 40px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.trust-label { font-size: .85rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; }
.trust-logos { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.trust-logo { opacity: .4; filter: grayscale(1); font-weight: 800; font-size: 1rem; transition: var(--transition); }
.trust-logo:hover { opacity: .7; }
.trust-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-stat { text-align: center; }
.trust-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--c-text); }
.trust-stat span { font-size: .78rem; color: var(--c-muted); }

/* --- Pain points --- */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 16px; }
.pain-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--c-bg-soft); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 20px;
  transition: var(--transition);
}
.pain-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pain-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.pain-item h4 { margin-bottom: 4px; color: var(--c-text); }

/* --- Alt cards --- */
.alt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; }
.alt-card {
  background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  position: relative; overflow: hidden;
  contain: layout style;
}
.alt-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.alt-card.featured {
  border-color: var(--c-ghl); border-width: 2px;
  box-shadow: var(--shadow-ghl);
  background: linear-gradient(160deg, #fff7ed, #fff);
}
.alt-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #ea580c);
}
.card-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: .8rem; font-weight: 800; margin-bottom: 14px;
}
.rank-1 { background: #f97316; color: #fff; }
.rank-2, .rank-3, .rank-4, .rank-5, .rank-6 { background: var(--c-bg-soft); color: var(--c-muted); border: 1px solid var(--c-border); }
.card-logo {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; overflow: hidden;
  background: #fff; border: 1px solid var(--c-border);
}
.card-logo img {
  width: 36px; height: 36px;
  object-fit: contain;
}
.card-rating { display: flex; align-items: center; gap: 6px; margin: 10px 0; }
.stars { color: #f59e0b; font-size: .9rem; }
.rating-num { font-weight: 700; font-size: .9rem; }
.card-best-for { font-size: .78rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.card-price { font-size: 1.3rem; font-weight: 800; color: var(--c-text); margin-bottom: 12px; }
.card-price span { font-size: .8rem; font-weight: 500; color: var(--c-muted); }
.card-pros { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.card-pro { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; }
.card-pro::before { content: '✓'; color: var(--c-green); font-weight: 700; flex-shrink: 0; }
.card-featured-badge {
  display: inline-block; background: var(--c-ghl); color: #fff;
  font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}

/* --- Comparison table --- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 16px 18px; text-align: left;
  background: var(--c-bg-soft); border-bottom: 2px solid var(--c-border);
  font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; white-space: nowrap;
}
thead th.col-ghl { background: var(--c-ghl-bg); color: var(--c-ghl); }
thead th:first-child { min-width: 160px; }
tbody tr { border-bottom: 1px solid var(--c-border); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #fafafa; }
tbody td {
  padding: 13px 18px; font-size: .88rem; color: var(--c-muted); vertical-align: middle;
}
tbody td:first-child { font-weight: 600; color: var(--c-text); }
tbody td.col-ghl { background: rgba(249,115,22,.03); }
.check { color: var(--c-green); font-size: 1rem; }
.cross { color: var(--c-red); font-size: .9rem; }
.partial { color: var(--c-yellow); }
.price-tag { font-weight: 700; color: var(--c-text); font-size: .9rem; }
.best-badge {
  display: inline-block; background: var(--c-green-bg); color: var(--c-green);
  font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 100px;
}

/* --- GHL detail section --- */
.ghl-section { background: linear-gradient(160deg, #fff7ed 0%, #fef3c7 30%, #fff 100%); }
.ghl-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; margin-top: 40px; }
.ghl-feature {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid rgba(249,115,22,.15);
  box-shadow: 0 2px 8px rgba(249,115,22,.06);
  transition: var(--transition);
}
.ghl-feature:hover { box-shadow: 0 8px 24px rgba(249,115,22,.12); transform: translateY(-2px); }
.ghl-feature-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.ghl-feature h3 { font-size: 1rem; margin-bottom: 8px; }

/* --- VS section --- */
.vs-section { background: var(--c-bg-soft); }
.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.vs-col { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.vs-col.col-hubspot { border: 1.5px solid var(--c-border); }
.vs-col.col-ghl { border: 2px solid var(--c-ghl); box-shadow: var(--shadow-ghl); }
.vs-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.vs-logo { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .8rem; }
.vs-rows { display: flex; flex-direction: column; gap: 14px; }
.vs-row { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; }
.vs-row::before { flex-shrink: 0; margin-top: 1px; }
.vs-bad::before { content: '✗'; color: var(--c-red); font-weight: 700; }
.vs-good::before { content: '✓'; color: var(--c-green); font-weight: 700; }
.vs-divider { display: flex; align-items: center; justify-content: center; }
.vs-badge { background: var(--c-text); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; }

/* --- Who should choose section --- */
.choose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.choose-card {
  background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.choose-card.featured { border-color: var(--c-ghl); background: var(--c-ghl-bg); }
.choose-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.choose-list { display: flex; flex-direction: column; gap: 9px; }
.choose-list li { display: flex; align-items: flex-start; gap: 8px; font-size: .87rem; color: var(--c-muted); }
.choose-list li::before { content: '→'; flex-shrink: 0; color: var(--c-accent); font-weight: 700; }

/* --- FAQ --- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  border: 1px solid var(--c-border); border-radius: 10px;
  overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: #c7d2fe; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: none; border: none; cursor: pointer;
  font-size: .95rem; font-weight: 600; color: var(--c-text); text-align: left;
  gap: 12px;
}
.faq-q:hover { background: var(--c-bg-soft); }
.faq-arrow { font-size: 1.1rem; color: var(--c-muted); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--c-accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 18px; }
.faq-a p { font-size: .9rem; }

/* --- Final CTA --- */
.final-cta {
  background: linear-gradient(135deg, #1e1e2e 0%, #2d1b4e 50%, #1a2540 100%);
  padding: 96px 0; text-align: center; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(79,70,229,.15) 0%, transparent 65%);
  pointer-events: none;
}
.final-cta h2 { color: #fff; font-size: clamp(1.8rem,4vw,3rem); margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,.65); font-size: 1.1rem; max-width: 520px; margin: 0 auto 36px; }
.final-cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.final-cta-note { color: rgba(255,255,255,.4); font-size: .8rem; margin-top: 18px; }

/* --- Footer --- */
footer {
  background: #0f0f1a; color: rgba(255,255,255,.5);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-name { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: .85rem; line-height: 1.6; max-width: 240px; }
.footer-col h5 { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.45); transition: var(--transition); }
.footer-col ul li a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .8rem; color: rgba(255,255,255,.3); transition: var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }
.disclaimer { margin-top: 16px; font-size: .75rem; color: rgba(255,255,255,.25); text-align: center; line-height: 1.5; }

/* --- Utility badges --- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.badge-green { background: var(--c-green-bg); color: var(--c-green); }
.badge-orange { background: var(--c-ghl-bg); color: var(--c-ghl); }
.badge-purple { background: #ede9fe; color: var(--c-accent-2); }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-red { background: var(--c-red-bg); color: var(--c-red); }

/* --- Animations --- */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes shimmer {
  0% { opacity: .5; } 50% { opacity: 1; } 100% { opacity: .5; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; will-change: opacity, transform; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* --- Language Switcher --- */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  background: var(--c-bg-soft); border: 1px solid var(--c-border);
  font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--c-text);
  transition: var(--transition); white-space: nowrap;
}
.lang-btn:hover { border-color: #9ca3af; background: #f0f0f5; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--c-border); border-radius: 10px;
  box-shadow: var(--shadow-md); min-width: 156px; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 300;
}
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: .87rem; color: var(--c-text);
  transition: var(--transition); font-weight: 500;
}
.lang-dropdown li a:hover { background: var(--c-bg-soft); }
.lang-dropdown li a.active { color: var(--c-accent); font-weight: 700; background: #f5f3ff; }
.lang-flag { font-size: 1rem; line-height: 1; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-divider { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .final-cta-btns { flex-direction: column; align-items: center; }
  table { min-width: 700px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  .hero-ctas { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .alt-cards { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .nav-logo { font-size: .95rem; }
  .lang-btn { padding: 6px 8px; font-size: .78rem; }
}
