/* Smart KhataKart — Public marketing website */
:root {
  --primary: #0F62FE;
  --primary-dark: #0043CE;
  --primary-light: #EEF3FF;
  --accent: #198038;
  --text: #161616;
  --muted: #6B7280;
  --border: #E4E7EC;
  --bg: #F5F7FA;
  --surface: #fff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 98, 254, 0.08);
  --max: 1120px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
}
.site-brand:hover { text-decoration: none; }
.site-brand img { height: 42px; width: auto; max-width: 160px; object-fit: contain; }
.site-brand-text { display: flex; flex-direction: column; }
.site-brand-name { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.site-brand-tag { font-size: .68rem; color: var(--muted); font-style: italic; }
.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  padding: .45rem .75rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--primary-light); text-decoration: none; }
.site-nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  margin-left: .35rem;
}
.site-nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: .25rem; }

/* Main */
.site-main { flex: 1; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0F62FE 0%, #0043CE 55%, #001D6C 100%);
  color: #fff;
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.hero-logo { max-width: 200px; height: auto; margin: 0 auto 1.25rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; margin-bottom: .5rem; letter-spacing: -.02em; }
.hero-tagline { font-size: 1.1rem; opacity: .92; margin-bottom: .35rem; font-weight: 500; }
.hero-desc { font-size: .95rem; opacity: .8; max-width: 520px; margin: 0 auto 1.75rem; }
.hero-entity { font-size: .78rem; opacity: .75; max-width: 560px; margin: -.75rem auto 1.5rem; line-height: 1.5; }
.hero-entity strong { font-weight: 600; opacity: 1; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.4rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.btn-primary:hover { color: var(--primary-dark); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-primary-blue { background: var(--primary); color: #fff; }
.btn-primary-blue:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Sections */
.section { padding: 3.5rem 1.25rem; }
.section-alt { background: var(--surface); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; }
.section-header p { color: var(--muted); font-size: .95rem; max-width: 560px; margin: 0 auto; }

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.section-alt .feature-card { background: var(--bg); }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(15,98,254,.12); }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p { font-size: .84rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { text-align: center; position: relative; }
.step-num {
  width: 48px; height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin: 0 auto .75rem;
}
.step h3 { font-size: .95rem; margin-bottom: .35rem; }
.step p { font-size: .8rem; color: var(--muted); }

/* APK cards */
.apk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.apk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.apk-card .icon { font-size: 2.5rem; margin-bottom: .5rem; }
.apk-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.apk-card p { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; min-height: 2.5em; }
.apk-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.apk-badge.ok { background: #D1FAE5; color: #065F46; }
.apk-badge.pending { background: #FEF3C7; color: #92400E; }

/* Page content */
.page-hero {
  background: var(--primary-light);
  padding: 2.5rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 1.75rem; font-weight: 700; }
.page-content { max-width: 720px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.policy-section { margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.policy-section:last-child { border: none; }
.policy-section h2 { font-size: 1rem; color: var(--primary); margin-bottom: .6rem; }
.policy-section .body { font-size: .88rem; color: #374151; white-space: pre-wrap; line-height: 1.65; }

/* Footer */
.site-footer {
  background: #101828;
  color: #D0D5DD;
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: auto;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand img { height: 40px; margin-bottom: .5rem; }
.footer-brand p { font-size: .8rem; opacity: .7; max-width: 320px; }
.footer-reg { font-size: .72rem !important; opacity: .55 !important; margin-top: .65rem !important; line-height: 1.5; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: .75rem; font-weight: 600; }
.footer-col a { display: block; font-size: .82rem; color: #9CA3AF; margin-bottom: .4rem; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
  font-size: .75rem;
  opacity: .7;
  line-height: 1.5;
  text-align: center;
}

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: .75rem 1rem 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; text-align: left; }
  .site-nav-cta { margin-left: 0 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-brand-tag { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
