/* 1777betbet.bet - Original Design System */
/* Color palette: Deep navy + warm amber + coral accent */

:root {
  --c-bg: #0d1117;
  --c-bg-alt: #161b22;
  --c-bg-card: #1c2333;
  --c-bg-hover: #242d3d;
  --c-primary: #e94560;
  --c-primary-light: #ff6b81;
  --c-secondary: #f5c518;
  --c-secondary-light: #ffe066;
  --c-accent: #0fbcf9;
  --c-text: #e6edf3;
  --c-text-mid: #8b949e;
  --c-text-dim: #6e7681;
  --c-border: #30363d;
  --c-success: #3fb950;
  --c-warn: #d29922;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --shadow-card: 0 2px 12px rgba(0,0,0,.35);
  --shadow-hover: 0 8px 28px rgba(0,0,0,.45);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-light); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ======================== HEADER ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(13,17,23,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 168px minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand-wrap {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  border-radius: 10px;
}

.brand-mark svg { width: 28px; height: 28px; }

.brand-text {
  min-width: 0;
  line-height: 1.05;
}

.brand-text strong {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
  color: var(--c-secondary);
}

.brand-text span {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--c-text-mid);
  letter-spacing: .5px;
}

.primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 18px);
  overflow: visible;
  flex-wrap: nowrap;
}

.primary-nav a {
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-mid);
  border-radius: var(--radius-full);
  transition: color .2s, background .2s;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--c-text);
  background: var(--c-bg-hover);
}

.primary-nav a.active {
  color: var(--c-secondary);
}

.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: transform .15s, box-shadow .15s, background .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-register {
  min-height: 42px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--c-primary), #c0392b);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(233,69,96,.35);
}

.btn-register:hover {
  box-shadow: 0 4px 18px rgba(233,69,96,.5);
  color: #fff;
}

.btn-login {
  min-height: 42px;
  padding: 0 20px;
  background: transparent;
  color: var(--c-secondary);
  font-size: 14px;
  border: 2px solid var(--c-secondary);
}

.btn-login:hover {
  background: var(--c-secondary);
  color: var(--c-bg);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ======================== MORE MENU ======================== */
.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.more-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-hover);
  color: var(--c-text-mid);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  transition: background .2s;
}

.more-toggle:hover { background: var(--c-bg-card); color: var(--c-text); }

.more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: var(--radius-md);
  z-index: 1200;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-hover);
}

.more-menu[hidden] { display: none !important; }

.nav-more.is-open .more-menu {
  display: grid;
  gap: 4px;
}

.more-menu a {
  display: block;
  width: 100%;
  max-width: none;
  padding: 11px 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--c-text-mid);
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-decoration: none;
}

.more-menu a:hover { background: var(--c-bg-hover); color: var(--c-text); }

/* ======================== HERO ======================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  color: #fff;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: .03em;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero h1 .hl {
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--c-text-mid);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-hero-primary {
  min-height: 50px;
  padding: 0 32px;
  background: linear-gradient(135deg, var(--c-primary), #c0392b);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(233,69,96,.4);
}

.btn-hero-secondary {
  min-height: 50px;
  padding: 0 32px;
  background: var(--c-bg-card);
  color: var(--c-secondary);
  font-size: 16px;
  border: 2px solid var(--c-secondary);
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-img img { width: 100%; display: block; }

.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.stat-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  text-align: center;
  min-width: 110px;
}

.stat-card .val {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-secondary);
}

.stat-card .lbl {
  font-size: 12px;
  color: var(--c-text-dim);
}

/* ======================== INNER HERO (non-homepage) ======================== */
.inner-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border);
}

.inner-hero h1 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
}

.inner-hero .lead {
  font-size: 17px;
  color: var(--c-text-mid);
  max-width: 700px;
  line-height: 1.8;
}

/* ======================== BREADCRUMB ======================== */
.breadcrumb-bar {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
}

.breadcrumb-bar a { color: var(--c-text-mid); }
.breadcrumb-bar span { color: var(--c-text-dim); margin: 0 6px; }
.breadcrumb-bar .current { color: var(--c-secondary); }

/* ======================== SECTIONS ======================== */
.section { padding: 72px 0; }
.section-alt { background: var(--c-bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head h2 .hl {
  color: var(--c-secondary);
}

.section-head p {
  color: var(--c-text-mid);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  border-radius: 2px;
  margin: 12px auto 18px;
}

/* ======================== CARDS ======================== */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(233,69,96,.15), rgba(245,197,24,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.card h3, .card h4, .card h5 {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 18px;
}

.card p { color: var(--c-text-mid); font-size: 15px; line-height: 1.7; }

/* ======================== GAME CARDS ======================== */
.game-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  transition: transform .2s;
  position: relative;
}

.game-card:hover { transform: translateY(-4px); }

.game-card img { width: 100%; height: 180px; object-fit: cover; }

.game-card .info { padding: 16px; }
.game-card .info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.game-card .info p { font-size: 13px; color: var(--c-text-mid); }

.game-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ======================== CONTENT BLOCKS ======================== */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.content-split.reverse > :first-child { order: 2; }
.content-split.reverse > :last-child { order: 1; }

.content-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.content-img img { width: 100%; display: block; }

/* ======================== PROSE ======================== */
.prose { max-width: 820px; }

.prose h2 {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  margin: 48px 0 16px;
  color: var(--c-text);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  margin: 32px 0 12px;
  color: var(--c-text);
}

.prose p {
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 16px;
  color: var(--c-text-mid);
}

.prose ul, .prose ol {
  margin: 0 0 16px 24px;
  color: var(--c-text-mid);
}

.prose li { margin-bottom: 8px; line-height: 1.7; font-size: 15px; }

.prose strong { color: var(--c-text); }

.prose a { color: var(--c-accent); }
.prose a:hover { color: var(--c-primary-light); }

/* ======================== COMPARE TABLE ======================== */
.compare-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); color: #fff; padding: 14px 18px; font-weight: 600; text-align: left; }
.compare-table td { padding: 12px 18px; border-bottom: 1px solid var(--c-border); }
.compare-table tr:nth-child(odd) td { background: var(--c-bg-card); }
.compare-table tr:nth-child(even) td { background: var(--c-bg-alt); }
.compare-table .yes { color: var(--c-success); font-weight: 700; }
.compare-table .no { color: var(--c-text-dim); }

/* ======================== PRICING ======================== */
.price-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}

.price-card:hover { transform: translateY(-4px); }

.price-card.featured {
  border-color: var(--c-secondary);
  box-shadow: 0 0 24px rgba(245,197,24,.2);
}

.price-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-secondary);
  color: var(--c-bg);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 0 0 12px 12px;
}

.price-name { font-weight: 700; font-size: 18px; margin-top: 14px; }

.price-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--c-secondary);
  margin: 8px 0;
}

.price-amount small { font-size: 14px; color: var(--c-text-mid); font-weight: 400; }

.price-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  text-align: left;
}

.price-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--c-text-mid);
  border-bottom: 1px solid var(--c-border);
}

.price-list li::before { content: "\2713 "; color: var(--c-success); font-weight: 700; margin-right: 8px; }

/* ======================== FAQ ======================== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
}

.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--c-secondary);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform .2s;
}

.faq-item.open .faq-q::after {
  content: "\2212";
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: 15px;
  color: var(--c-text-mid);
  line-height: 1.8;
}

.faq-item.open .faq-a { display: block; }

/* ======================== CTA BANNER ======================== */
.cta-banner {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--c-primary), #1a1a2e 50%, var(--c-secondary));
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-cta-white {
  min-height: 50px;
  padding: 0 32px;
  background: #fff;
  color: var(--c-primary);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.btn-cta-outline {
  min-height: 50px;
  padding: 0 32px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  border: 2px solid #fff;
}

/* ======================== NOTICE / ALERT ======================== */
.notice-box {
  background: var(--c-bg-card);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
}

.notice-box h3 { color: var(--c-primary-light); font-weight: 700; margin-bottom: 8px; }
.notice-box p { color: var(--c-text-mid); font-size: 15px; line-height: 1.7; }

/* ======================== RESP CARDS ======================== */
.resp-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 14px;
}

.resp-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(233,69,96,.15), rgba(245,197,24,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.resp-card h4 { font-weight: 700; margin-bottom: 4px; font-size: 16px; }
.resp-card p { color: var(--c-text-mid); font-size: 14px; line-height: 1.7; }

/* ======================== STEPS ======================== */
.steps { counter-reset: step; }

.step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.step-num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.step-item h4 { font-weight: 700; margin-bottom: 4px; }
.step-item p { color: var(--c-text-mid); font-size: 15px; line-height: 1.7; }

/* ======================== TAGS ======================== */
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.tag {
  display: inline-block;
  background: var(--c-bg-hover);
  color: var(--c-text-mid);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--c-border);
}

/* ======================== FOOTER ======================== */
.site-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding: 60px 0 24px;
  color: var(--c-text-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-secondary);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 14px;
}

.footer-email a { color: var(--c-accent); font-size: 14px; }

.footer-heading {
  color: var(--c-text);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--c-text-mid);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover { color: var(--c-primary-light); }

.payment-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.payment-tag {
  background: var(--c-bg-hover);
  color: var(--c-text-mid);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  border: 1px solid var(--c-border);
}

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-dim);
}

/* ======================== SCROLL TOP ======================== */
.scroll-top-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(233,69,96,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
}

.scroll-top-btn.visible { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover { transform: translateY(-3px); }

/* ======================== 404 ======================== */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.page-404 h1 { font-size: 72px; font-weight: 900; color: var(--c-primary); }
.page-404 h2 { font-size: 28px; margin: 14px 0; }
.page-404 p { color: var(--c-text-mid); margin-bottom: 28px; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1100px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-more { display: none !important; }

  .header-inner {
    min-height: 68px;
    grid-template-columns: 140px 1fr auto;
    gap: 10px;
  }

  .brand-wrap {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: 48px;
  }

  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-text strong, .brand-text span { max-width: 86px; }

  .primary-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: var(--radius-lg);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-hover);
    z-index: 1100;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav a {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    text-overflow: initial;
    border-bottom: 1px solid var(--c-border);
  }

  .primary-nav a:last-child { border-bottom: none; }

  .header-actions { justify-content: flex-end; gap: 6px; }
  .header-actions .btn { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .nav-toggle { display: inline-flex; }

  .hero-split { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 36px; }
  .content-split { grid-template-columns: 1fr; }
  .content-split.reverse > :first-child { order: 1; }
  .content-split.reverse > :last-child { order: 2; }
  .card-grid-4, .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .section { padding: 48px 0; }

  .prose h2 { margin-top: 36px; }
}

@media (max-width: 500px) {
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 10px; }
  .stat-card { min-width: 90px; padding: 10px 14px; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
}
