/* ==========================================================================
   joshherum.work — DCG55 Nepal guide
   ========================================================================== */

:root {
  --orange: #f26a1b;
  --orange-2: #ff9a3c;
  --orange-dark: #d4520a;
  --navy: #0b1f5c;
  --blue: #1740c9;
  --blue-2: #2f63ff;
  --ink: #141a2e;
  --text: #3b4257;
  --muted: #6b7288;
  --line: #e6e9f2;
  --bg: #f5f7fc;
  --card: #ffffff;
  --green: #17a466;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 30, 80, .08);
  --shadow-lg: 0 18px 50px rgba(15, 30, 80, .16);
  --grad-orange: linear-gradient(135deg, #ff9a3c 0%, #f26a1b 55%, #e24e06 100%);
  --grad-blue: linear-gradient(135deg, #0b1f5c 0%, #1740c9 100%);
  --wrap: 1200px;
  --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
:lang(ne) body, body:lang(ne) { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  line-height: 1.2; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad-orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 106, 27, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(242, 106, 27, .45); }
.btn-outline { background: #fff; color: var(--blue); border-color: #c9d4f5; }
.btn-outline:hover { color: var(--blue); border-color: var(--blue); }
.btn-light { background: #fff; color: var(--orange-dark); }
.btn-light:hover { color: var(--orange); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.22); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; }
.logo img { width: 128px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--muted); line-height: 1.3; }
.lang-switch a.active { background: var(--navy); color: #fff; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

.main-nav { background: var(--grad-blue); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.main-nav li { margin: 0; }
.main-nav a { display: block; color: #dfe6ff; font-weight: 600; font-size: .92rem; padding: 12px 16px; position: relative; }
.main-nav a:hover, .main-nav a.current { color: #fff; }
.main-nav a.current::after, .main-nav a:hover::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--orange-2);
}

/* ---------- Hero slider ---------- */
.hero { background: var(--navy); position: relative; }
.slider { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform .6s cubic-bezier(.65,.05,.36,1); }
.slide { flex: 0 0 100%; position: relative; }
.slide a { display: block; }
.slide img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(10, 20, 60, .45); color: #fff; font-size: 22px; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.slider-btn:hover { background: var(--orange); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.slider-dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: .25s; }
.slider-dots button.active { width: 28px; background: var(--orange-2); }

/* ---------- Ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker .wrap { display: flex; align-items: center; gap: 12px; padding-block: 9px; }
.ticker-label { flex: 0 0 auto; background: var(--grad-orange); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track p { margin: 0; white-space: nowrap; display: inline-block; padding-left: 100%; animation: ticker 38s linear infinite; font-size: .9rem; color: var(--text); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section-sm { padding-block: 40px; }
.section-white { background: #fff; }
.section-dark { background: var(--grad-blue); color: #d6ddf7; }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-head { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.section-dark .eyebrow { color: var(--orange-2); }
.lead { font-size: 1.08rem; color: var(--muted); }
.section-dark .lead { color: #c3cdf2; }

/* Intro */
.intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.intro-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.updated { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.facts { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.facts-head { background: var(--grad-orange); color: #fff; padding: 16px 22px; display: flex; align-items: center; gap: 12px; }
.facts-head img { width: 42px; height: 42px; object-fit: contain; }
.facts-head strong { color: #fff; font-size: 1.05rem; display: block; line-height: 1.2; }
.facts-head span { font-size: .82rem; opacity: .9; }
.facts table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.facts th, .facts td { text-align: left; padding: 11px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 600; width: 44%; }
.facts td { color: var(--ink); font-weight: 600; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* Steps banner */
.banner-link { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.banner-link img { width: 100%; }
.steps-banner { overflow-x: auto; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 700; font-size: .85rem; text-align: center;
  transition: .2s;
}
.cat img { width: 56px; height: 56px; object-fit: contain; }
.cat:hover { border-color: var(--orange-2); box-shadow: var(--shadow); color: var(--orange-dark); transform: translateY(-2px); }

/* Games */
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.row-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.row-head h2 img { width: auto; height: 34px; }
.games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.game { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); color: var(--ink); display: block; }
.game img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s ease; }
.game-info { padding: 10px 12px 12px; }
.game-info strong { display: block; font-size: .92rem; line-height: 1.3; }
.game-info span { font-size: .78rem; color: var(--muted); }
.game .tag { position: absolute; top: 8px; left: 8px; background: var(--grad-orange); color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.game .play { position: absolute; inset: 0 0 auto 0; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: rgba(11, 31, 92, .55); opacity: 0; transition: .25s; }
.game .play b { background: var(--grad-orange); color: #fff; padding: 9px 20px; border-radius: 999px; font-size: .88rem; }
.game:hover img { transform: scale(1.06); }
.game:hover .play { opacity: 1; }

/* Content blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.media img { width: 100%; }
.media-caption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M3.5 8.2l3 3 6-6.4'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section-dark .checklist li::before { background-color: var(--orange); }

/* Promos */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--line); }
.promo img { width: 100%; aspect-ratio: 570 / 240; object-fit: cover; }
.promo-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.promo-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.promo-body p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; flex: 1; }
.promo-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fff1e6; color: var(--orange-dark); }
.chip.blue { background: #e9eeff; color: var(--blue); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); margin: 24px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.data-table caption { text-align: left; padding: 14px 18px 0; font-weight: 700; color: var(--ink); }
.data-table th { background: var(--navy); color: #fff; text-align: left; font-weight: 700; padding: 12px 18px; font-size: .86rem; }
.data-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) td { background: #fafbff; }
.hl { color: var(--orange-dark); font-weight: 800; }

/* Steps list */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 70px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px; width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad-orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.steps li strong { display: block; margin-bottom: 2px; }
.steps li span { font-size: .93rem; }

/* Payments */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 8px; }
.pay { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pay-logo { height: 44px; display: flex; align-items: center; margin-bottom: 10px; font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em; }
.pay-logo.esewa { color: #60bb46; }
.pay-logo.khalti { color: #5c2d91; }
.pay-logo.ime { color: #d71920; }
.pay-logo.bank { color: var(--navy); }
.pay h3 { font-size: 1rem; margin-bottom: 4px; }
.pay p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Note */
.note { border-left: 4px solid var(--orange); background: #fff7f0; padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .94rem; margin: 20px 0; }
.note strong { color: var(--orange-dark); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.feature img { width: 54px; height: 54px; object-fit: contain; margin-bottom: 10px; }
.feature h3 { font-size: 1.05rem; }
.feature p { font-size: .93rem; margin: 0; }

/* Providers */
.providers { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.provider { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: .2s; }
.provider img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.provider:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* Trust */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 18px; }
.trust img { height: 48px; width: auto; object-fit: contain; }

/* Pros / cons */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pc > div { background: #fff; border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
.pc h3 { display: flex; align-items: center; gap: 8px; }
.pc .pros h3 { color: var(--green); }
.pc .cons h3 { color: #c2410c; }
.pc ul { margin: 0; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq details[open] { border-color: #ffc79c; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(45deg); transition: .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 16px; }
.faq .answer p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: var(--grad-orange); border-radius: 22px; padding: 38px 40px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #fff4ea; }

/* Footer */
.site-footer { background: #0a1433; color: #aab3d1; padding-top: 52px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { color: #aab3d1; }
.site-footer li a:hover { color: var(--orange-2); }
.footer-logo img { width: 140px; margin-bottom: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials img { width: 34px; height: 34px; border-radius: 50%; }
.footer-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.footer-trust img { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 38px; padding-block: 20px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
.disclaimer { font-size: .82rem; color: #8590b3; margin-top: 16px; }

/* Mobile bottom bar */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(5, 1fr); }
  .providers { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .main-nav { display: none; }
  .menu-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; padding-block: 6px; }
  .main-nav a { padding: 12px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a.current::after, .main-nav a:hover::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .intro, .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
  .games { grid-template-columns: repeat(4, 1fr); }
  .promos { grid-template-columns: repeat(2, 1fr); }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 30px 24px; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; padding-bottom: 66px; }
  .wrap { padding-inline: 16px; }
  .section { padding-block: 44px; }
  .section-sm { padding-block: 28px; }
  .logo img { width: 106px; }
  .slide img { aspect-ratio: 16 / 7; }
  .slider-btn { display: none; }
  .cats { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .cat { padding: 10px 2px 8px; font-size: .72rem; }
  .cat img { width: 40px; height: 40px; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promos, .pay-grid, .features, .pc { grid-template-columns: 1fr; }
  .providers { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .facts th, .facts td { padding: 10px 16px; }
  .row-head .btn { padding: 8px 14px; font-size: .82rem; }
  .intro-cta .btn { flex: 1 1 100%; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(15,30,80,.12);
  }
  .mobile-bar .btn { padding: 11px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker-track p { padding-left: 0; white-space: normal; }
}
