:root {
  --night: #071b24;
  --night-2: #0c2b36;
  --ink: #102a34;
  --muted: #5f7077;
  --paper: #f7f5ef;
  --card: #fffdf7;
  --line: #d9ddd8;
  --mint: #23b58b;
  --mint-dark: #128064;
  --saffron: #f3a712;
  --coral: #f06449;
  --white: #fff;
  --shadow: 0 18px 50px rgba(7, 27, 36, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(35,181,139,.08), transparent 24rem),
    var(--paper);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.site-header a:focus-visible,
.site-header summary:focus-visible,
.button:focus-visible,
.language-switch a:focus-visible,
.download-choice-panel a:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.text-link { color: var(--mint-dark); text-decoration: underline; text-underline-offset: 3px; }

.language-switch {
  position: static;
  display: flex; gap: 3px; padding: 5px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  color: var(--white); background: var(--night-2);
}
.language-switch a, .language-switch span {
  min-width: 42px; padding: 8px 9px; border-radius: 8px;
  text-align: center; font-size: 13px; font-weight: 800;
}
.language-switch span { color: var(--night); background: var(--saffron); }
.language-switch a:hover { background: rgba(255,255,255,.12); }

.site-header {
  position: sticky; z-index: 100; top: 0; color: var(--white);
  background: var(--night);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 24px rgba(7,27,36,.12);
}
.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: 72px auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.brand { width: 62px; height: 62px; padding: 5px; border-radius: 16px; background: var(--white); }
.brand img, .footer-brand img { width: 100%; height: 100%; object-fit: contain; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(16px, 2vw, 30px); font-size: 14px; font-weight: 700; }
.desktop-nav a { padding: 30px 0 27px; border-bottom: 3px solid transparent; color: #d8e5e7; }
.desktop-nav a:hover, .desktop-nav .active { color: var(--white); border-color: var(--saffron); }
.header-actions { display: flex; gap: 10px; }
.header-login, .header-register {
  padding: 11px 17px; border-radius: 9px; font-size: 14px; font-weight: 800;
}
.header-login { border: 1px solid rgba(255,255,255,.35); }
.header-register { color: var(--night); background: var(--saffron); }
.mobile-menu { display: none; }
.mobile-top-actions { display: none; }

.hero {
  position: relative; overflow: hidden; min-height: 680px; color: var(--white);
  background:
    linear-gradient(112deg, rgba(7,27,36,.98) 0 50%, rgba(7,27,36,.78) 75%, rgba(7,27,36,.9)),
    radial-gradient(circle at 84% 40%, var(--mint), transparent 32rem);
}
.hero::after {
  content: ""; position: absolute; right: -9rem; top: 4rem; width: 34rem; height: 34rem;
  border: 80px solid rgba(243,167,18,.13); border-radius: 50%; transform: rotate(-14deg);
}
.hero-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 50px 50px; }
.hero-layout { position: relative; z-index: 2; min-height: 680px; display: grid; grid-template-columns: 1.05fr .75fr; gap: 70px; align-items: center; padding-block: 70px; }
.hero-copy { max-width: 700px; }
.eyebrow, .section-kicker {
  margin: 0 0 18px; color: var(--mint); font-size: 13px; font-weight: 900;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow span { display: inline-block; width: 28px; height: 2px; margin: 0 10px 4px 0; background: var(--saffron); }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero h1, .page-hero h1 {
  margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.045em;
}
.hero-intro { max-width: 650px; margin: 26px 0 0; color: #c9d9dc; font-size: 18px; line-height: 1.75; }
.hero-actions, .download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 10px; font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--night); background: var(--saffron); box-shadow: 0 12px 28px rgba(243,167,18,.2); }
.button-secondary, .button-light { border: 1px solid rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.06); }
.hero-note { display: flex; gap: 8px; align-items: center; margin-top: 20px; color: #9cb3b8; font-size: 13px; }
.hero-note svg { width: 18px; height: 18px; fill: none; stroke: var(--mint); stroke-width: 1.8; }
.hero-visual { position: relative; z-index: 3; display: grid; place-items: center; }
.logo-cutout {
  width: min(390px, 100%); padding: 50px; border-radius: 50% 50% 28% 50%;
  background: rgba(255,255,255,.96); box-shadow: 30px 35px 0 rgba(35,181,139,.25);
  transform: rotate(3deg);
}
.logo-cutout img { width: 100%; transform: rotate(-3deg); }
.number-grid, .result-balls { display: flex; flex-wrap: wrap; gap: 10px; }
.number-ball {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; color: var(--night); background: var(--saffron); font-weight: 900;
}
.orbit, .icon-disc { display: none; }

.section { padding: 92px 0; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .support-card h2, .download-copy h2, .results-copy h2, .process-heading h2, .closing-card h2 {
  margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.035em;
}
.section-heading p, .support-card p, .download-copy p, .results-copy p, .process-heading p {
  color: var(--muted); font-size: 17px; line-height: 1.75;
}
.trust-grid, .guide-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.trust-card, .guide-card, .article-card, .responsible-card, .download-card, .notice-box {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow);
}
.trust-card, .guide-card, .article-card, .responsible-card { padding: 28px; }
.trust-card h3, .guide-card h3, .article-card h2, .responsible-card h3 { margin: 14px 0 10px; font-size: 21px; }
.trust-card p, .guide-card p, .article-card p, .responsible-card p { color: var(--muted); line-height: 1.7; }
.trust-card::before { content: "✓"; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--white); background: var(--mint); font-weight: 900; }
.guide-number { color: var(--saffron); font: 800 36px Georgia, serif; }
.book-icon, .chart-icon { color: var(--mint-dark); }

.results-section, .process-section { background: #eaf1ed; }
.results-layout, .process-layout, .download-card, .support-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.results-panel, .result-ticket {
  padding: 28px; border-radius: 16px; color: var(--white); background: var(--night);
}
.result-row, .draw-card, .result-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-rule, .draw-card-line { height: 1px; margin: 18px 0; background: rgba(255,255,255,.18); }
.draw-card-footer, .source-note { color: #a9bec2; font-size: 13px; line-height: 1.6; }
.steps-list { display: grid; gap: 15px; padding: 0; list-style: none; counter-reset: step; }
.steps-list li { position: relative; padding: 20px 20px 20px 66px; border-left: 3px solid var(--mint); border-radius: 8px; background: var(--card); box-shadow: 0 8px 24px rgba(7,27,36,.07); }
.steps-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 17px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--night); background: var(--saffron); font-weight: 900; }
.process-tip { padding: 20px; border-radius: 12px; background: rgba(35,181,139,.12); }

.download-card, .support-card { padding: 42px; }
.download-section, .support-section { padding-block: 40px 92px; }
.store-button {
  display: flex; align-items: center; gap: 14px; min-width: 230px; padding: 14px 18px;
  border-radius: 12px; color: var(--white); background: var(--night);
}
.store-button small, .store-button strong { display: block; }
.store-button small { color: #b8c9cc; }
.store-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; color: var(--night); background: var(--saffron); font-weight: 900; }
.android-logo::before { content: "Android"; font-size: 10px; }
.apple-logo::before { content: "iOS"; font-size: 12px; }
.platform-logo { color: var(--mint-dark); }

.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.faq-list summary { cursor: pointer; padding: 20px; font-weight: 800; }
.faq-list p { margin: 0; padding: 0 20px 20px; color: var(--muted); line-height: 1.7; }
.closing-card { padding: 54px; border-radius: 18px; color: var(--white); background: var(--night); text-align: center; }
.closing-card p { max-width: 700px; margin: 18px auto; color: #c6d7da; line-height: 1.7; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    var(--night);
  background-size: 96px 100%;
}
.page-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: 7%; top: -120px; border: 55px solid rgba(243,167,18,.18); border-radius: 50%; }
.page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 48px;
  align-items: center;
}
.page-hero .shell { position: relative; z-index: 2; }
.page-hero h1 { max-width: 850px; font-size: clamp(42px, 6vw, 70px); }
.page-hero p { max-width: 720px; color: #c6d7da; font-size: 18px; line-height: 1.7; }
.page-hero-logo {
  width: 96px;
  height: 96px;
  padding: 8px;
  border-radius: 22px;
  object-fit: contain;
  background: var(--white);
}
.inner-page { min-height: 100vh; }
.guide-content { padding: 70px 0; }
.guide-content > .shell, .guide-content .shell { max-width: 980px; }
.guide-content h2 { margin: 42px 0 14px; font: 700 clamp(28px,3vw,40px) Georgia,serif; }
.guide-content h3 { margin-top: 28px; }
.guide-content p, .guide-content li { color: var(--muted); line-height: 1.8; }
.guide-figure { margin: 28px 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.guide-figure img { width: 100%; max-height: 850px; object-fit: contain; border-radius: 10px; }
.guide-figure figcaption { padding: 12px 3px 2px; color: var(--muted); font-size: 13px; }
.guide-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.download-choice-panel {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}
.download-choice-panel > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.download-choice-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  color: var(--night);
  background: var(--saffron);
  font-size: 14px;
  font-weight: 900;
}
.download-choice-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.download-choice-panel small,
.download-choice-panel strong { display: block; }
.download-choice-panel small { margin-bottom: 3px; color: var(--muted); }
.download-choice-panel strong { font-size: 19px; }
.download-choice-panel a {
  padding: 12px 15px;
  border-radius: 9px;
  color: var(--white);
  background: var(--night-2);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.notice-box { margin: 24px 0; padding: 22px; border-left: 5px solid var(--saffron); box-shadow: none; }
.check-list { padding-left: 22px; }
.guide-aside {
  display: grid;
  gap: 10px;
  padding: 26px;
  border-radius: 14px;
  color: var(--white);
  background: var(--night-2);
}
.guide-aside h2 { margin: 0 0 8px; font-size: 24px; }
.guide-aside > a:not(.button) {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.hindi-link-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.hindi-link-grid a { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.hindi-link-grid strong, .hindi-link-grid small { display: block; }
.hindi-link-grid small { margin-top: 5px; color: var(--muted); line-height: 1.5; }

.support-links { display: grid; gap: 10px; }
.support-links a { padding: 14px 16px; border-radius: 9px; color: var(--white); background: var(--night-2); font-weight: 750; }
.support-links a:hover { background: var(--mint-dark); }

footer, .footer-main { color: #bfd0d3; background: var(--night); }
.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 2fr;
  gap: 70px;
  padding: 60px 0 38px;
}
.footer-brand { min-width: 0; }
.footer-brand img {
  width: 70px;
  height: 70px;
  padding: 6px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--white);
}
.footer-brand p { max-width: 300px; color: #bfd0d3; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.guide-footer-links { display: flex; flex-wrap: wrap; gap: 22px; padding: 30px 0; }
.footer-links h2 { margin: 0 0 14px; color: var(--white); font-size: 18px; }
.footer-links strong { display: block; margin-bottom: 12px; color: var(--white); }
.footer-links a { display: block; margin: 9px 0; font-size: 14px; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.footer-bottom .shell { display: flex; justify-content: space-between; gap: 20px; }
.mobile-action-bar { display: none; }

@media (max-width: 980px) {
  .desktop-nav, .header-actions { display: none; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 10px;
    row-gap: 8px;
    padding-block: 10px;
  }
  .mobile-top-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .mobile-top-actions a {
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 9px;
    text-align: center;
    font-size: 14px;
    font-weight: 850;
  }
  .mobile-top-actions a:last-child {
    border-color: var(--saffron);
    color: var(--night);
    background: var(--saffron);
  }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { width: 46px; height: 44px; display: grid; align-content: center; gap: 5px; padding: 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { height: 2px; background: var(--white); }
  .mobile-menu nav {
    position: absolute; right: 0; top: 118px;
    width: min(310px, calc(100vw - 40px));
    max-height: calc(100vh - 164px);
    overflow-y: auto;
    padding: 10px; border-radius: 12px;
    color: var(--ink); background: var(--white); box-shadow: var(--shadow);
  }
  .mobile-menu nav a { display: block; padding: 12px; border-radius: 7px; font-weight: 700; }
  .mobile-register-link { color: var(--night)!important; background: var(--saffron); }
  .hero-layout, .results-layout, .process-layout, .download-card, .support-card, .faq-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-layout { min-height: auto; padding: 70px 0 100px; }
  .hero-visual { max-width: 380px; margin-inline: auto; }
  .trust-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 74px; }
  .brand { width: 54px; height: 54px; }
  .language-switch { padding: 4px; }
  .language-switch a, .language-switch span {
    min-width: 37px;
    padding: 7px 6px;
    font-size: 12px;
  }
  .hero h1, .page-hero h1 { font-size: 43px; }
  .hero-layout { gap: 42px; }
  .logo-cutout { padding: 34px; }
  .section { padding: 68px 0; }
  .trust-grid, .guide-layout, .guide-grid, .guide-gallery, .hindi-link-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 58px 0; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .page-hero-logo { width: 76px; height: 76px; }
  .download-choice-panel > div { grid-template-columns: 48px 1fr; }
  .download-choice-panel a { grid-column: 1 / -1; text-align: center; white-space: normal; }
  .download-choice-icon { width: 48px; height: 48px; }
  .download-card, .support-card, .closing-card { padding: 28px 22px; }
  .footer-main, .footer-links { grid-template-columns: 1fr; }
  .footer-bottom .shell { display: block; }
  .mobile-action-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
