/* templatein14 — India APK/App download theme */
/* Visual direction referenced from the brief's reference page (light body,
   dark header, warm amber/orange accent, centered app-icon hero, plain
   info table, gradient section headers) — reimplemented with original
   tokens, class names and markup. */

:root {
  --vs-bg: #f5f6f9;
  --vs-surface: #ffffff;
  --vs-border: #e4e6ee;
  --vs-text: #23262f;
  --vs-text-muted: #5c6070;
  --vs-header-bg: #101827;
  --vs-header-text: #eef0f6;
  --vs-accent-1: #eb6a1f;
  --vs-accent-2: #f8b13a;
  --vs-accent-contrast: #ffffff;
  --vs-radius-sm: 8px;
  --vs-radius-md: 14px;
  --vs-radius-lg: 22px;
  --vs-header-h: 64px;
  --vs-max: 1180px;
  --vs-content-max: 720px;
  --vs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--vs-font);
  background: var(--vs-bg);
  color: var(--vs-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--vs-accent-1); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 800; color: var(--vs-text); }

p { margin: 0 0 1em; color: var(--vs-text-muted); }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

.vs-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--vs-accent-1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--vs-radius-sm) 0;
  z-index: 100;
}
.vs-skip:focus { left: 0; }

/* Header */
.vs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--vs-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vs-header__bar {
  max-width: var(--vs-max);
  margin: 0 auto;
  height: var(--vs-header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vs-brand__logo { height: 30px; width: auto; object-fit: contain; }
.vs-header .vs-brand__logo { filter: brightness(0) invert(1); }

.vs-nav__list { display: flex; gap: 4px; }
.vs-nav__link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--vs-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  color: var(--vs-header-text);
}
.vs-nav__link:hover, .vs-nav__link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--vs-accent-2);
  text-decoration: none;
}

.vs-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.vs-burger__bar { width: 22px; height: 2px; background: var(--vs-header-text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.vs-burger[aria-expanded="true"] .vs-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vs-burger[aria-expanded="true"] .vs-burger__bar:nth-child(2) { opacity: 0; }
.vs-burger[aria-expanded="true"] .vs-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Page column */
main { max-width: var(--vs-max); margin: 0 auto; padding: 0 16px; }
.vs-page { max-width: var(--vs-content-max); margin: 0 auto; }

.vs-section { padding: 36px 0; }
.vs-section > h2 { font-size: 1.4rem; }

/* Hero (centered, icon-led) */
.vs-hero { padding: 40px 0 28px; text-align: center; }
.vs-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(235, 106, 31, 0.1);
  color: var(--vs-accent-1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.vs-hero__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.vs-hero__version { color: var(--vs-accent-1); font-weight: 700; margin: -8px 0 12px; }
.vs-hero__desc { font-size: 1.02rem; max-width: 60ch; margin-left: auto; margin-right: auto; }

.vs-hero__icon {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--vs-radius-lg);
  border: 1px solid var(--vs-border);
  background: var(--vs-surface);
  box-shadow: 0 12px 30px -14px rgba(16, 24, 39, 0.35);
  margin: 18px auto 20px;
}

.vs-hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 0 0 22px; }
.vs-stat { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.92rem; color: var(--vs-text); }
.vs-icon { width: 18px; height: 18px; color: var(--vs-accent-1); flex-shrink: 0; }

.vs-hero__note { font-size: 0.82rem; margin-top: 14px; color: var(--vs-text-muted); }

.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  border-radius: var(--vs-radius-md);
  font-weight: 800;
  font-size: 1.02rem;
  border: none;
}
.vs-btn--primary {
  background: linear-gradient(135deg, var(--vs-accent-1), var(--vs-accent-2));
  color: var(--vs-accent-contrast);
  box-shadow: 0 14px 26px -12px rgba(235, 106, 31, 0.55);
}
.vs-btn--primary:hover, .vs-btn--primary:focus-visible { filter: brightness(1.05); text-decoration: none; }
.vs-btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.92rem; white-space: nowrap; }

/* App info table */
.vs-info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--vs-surface);
  border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius-md);
  overflow: hidden;
}
.vs-info-table th, .vs-info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--vs-border);
  font-size: 0.95rem;
}
.vs-info-table tr:last-child th, .vs-info-table tr:last-child td { border-bottom: 0; }
.vs-info-table th { width: 42%; color: var(--vs-text-muted); font-weight: 600; }
.vs-info-table td { font-weight: 700; }
.vs-info-table tr:nth-child(even) { background: var(--vs-bg); }

/* Content flow */
.vs-content h2 {
  background: linear-gradient(90deg, var(--vs-accent-1), var(--vs-accent-2));
  color: #fff;
  font-size: 1.3rem;
  padding: 12px 18px;
  border-radius: var(--vs-radius-sm);
  margin: 1.6em 0 0.8em;
}
.vs-content h3 { font-size: 1.1rem; margin-top: 1.2em; }
.vs-content p:last-child { margin-bottom: 0; }

/* Screenshots (rendered inline within content flow) */
.vs-shot {
  max-width: 320px;
  margin: 0 auto 1.2em;
  border-radius: var(--vs-radius-md);
  overflow: hidden;
  border: 1px solid var(--vs-border);
  cursor: zoom-in;
}
.vs-shot img { aspect-ratio: 9 / 16; object-fit: cover; transition: transform 0.25s ease; }
.vs-shot:hover img { transform: scale(1.04); }

.vs-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 39, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 80;
}
.vs-lightbox-overlay img {
  max-height: 88vh;
  max-width: 92vw;
  width: auto;
  border-radius: var(--vs-radius-md);
}
.vs-lightbox-overlay.is-hidden { display: none; }

/* Footer (centered, minimal) */
.vs-footer {
  border-top: 1px solid var(--vs-border);
  margin-top: 24px;
  padding: 32px 16px 100px;
  background: var(--vs-surface);
  text-align: center;
}
.vs-footer__top { max-width: var(--vs-max); margin: 0 auto 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vs-footer__contact { font-style: normal; display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--vs-text-muted); }
.vs-footer__nav { max-width: var(--vs-max); margin: 0 auto 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.vs-footer__nav a { font-size: 0.88rem; color: var(--vs-text-muted); min-height: 32px; display: inline-flex; align-items: center; }
.vs-footer__nav a:hover { color: var(--vs-accent-1); }
.vs-footer__legal { max-width: var(--vs-max); margin: 0 auto; font-size: 0.78rem; color: var(--vs-text-muted); }

/* Back to top */
.vs-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vs-header-bg);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 45;
}
.vs-top svg { width: 20px; height: 20px; }
.vs-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Sticky download CTA (mobile, download page only) */
.vs-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(16, 24, 39, 0.96);
  backdrop-filter: blur(10px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s ease;
}
.vs-has-sticky .vs-sticky-cta { display: flex; }
.vs-sticky-cta.is-hidden { transform: translateY(110%); }
.vs-sticky-cta__info { display: flex; gap: 10px; font-size: 0.8rem; color: var(--vs-header-text); font-weight: 600; }

@media (min-width: 768px) {
  .vs-sticky-cta { display: none !important; }
  .vs-footer { padding-bottom: 32px; }
  .vs-top { bottom: 24px; right: 24px; }
}

/* Mobile nav */
@media (max-width: 767px) {
  .vs-nav {
    position: absolute;
    top: var(--vs-header-h);
    left: 0;
    right: 0;
    background: var(--vs-header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .vs-nav.is-open { max-height: 320px; }
  .vs-nav__list { flex-direction: column; padding: 8px 16px 16px; }
  .vs-burger { display: inline-flex; }
}

/* Tablet / desktop */
@media (min-width: 768px) {
  main { padding: 0 32px; }
  .vs-hero__icon { width: 156px; height: 156px; }
}
