/* ═══════════════════════════════════════════════════════════════
   VeeraPay — Shared Stylesheet
   Light theme · DM Serif Display + DM Sans
═══════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --blue:      #007bff;
  --indigo:    #6610f2;
  --purple:    #6f42c1;
  --pink:      #e83e8c;
  --red:       #dc3545;
  --orange:    #fd7e14;
  --yellow:    #ffc107;
  --green:     #28a745;
  --teal:      #20c997;
  --cyan:      #17a2b8;
  --white:     #fff;
  --gray:      #6c757d;
  --gray-dark: #343a40;
  --primary:   #007bff;
  --secondary: #6c757d;
  --success:   #28a745;
  --info:      #17a2b8;
  --warning:   #ffc107;
  --danger:    #dc3545;
  --light:     #f8f9fa;
  --dark:      #343a40;

  /* Extended palette */
  --primary-50:  #e7f3ff;
  --primary-100: #cce6ff;
  --primary-200: #99ccff;
  --primary-600: #0066d6;
  --primary-700: #0052ad;
  --primary-800: #003d84;

  --surface:      #ffffff;
  --surface-2:    #f8f9fa;
  --surface-3:    #eef2f7;
  --border:       #dee2e6;
  --border-light: #e9ecef;

  --text-primary:   #0d1b2a;
  --text-secondary: #495057;
  --text-muted:     #6c757d;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1),  0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.12);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-xs {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography helpers ─────────────────────────────────────── */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ─── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
.badge-primary { background: var(--primary-50);  color: var(--primary-600); }
.badge-success { background: #edf7ee;             color: #1a7830; }
.badge-info    { background: #e3f6fb;             color: #0e6578; }
.badge-warning { background: #fff8e1;             color: #856404; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,123,255,.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-50);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #b02a37;
  border-color: #b02a37;
  transform: translateY(-1px);
}
.btn-lg  { font-size: 16px; padding: 16px 36px; }
.btn-sm  { font-size: 13px; padding: 9px 18px; }
.btn-full { width: 100%; }
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover {
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
}
.nav-logo-beta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-50);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all .18s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-50);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-primary);
}

/* ─── Mobile Menu ───────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}
.mobile-menu.open { display: flex; }
.mobile-panel {
  width: 300px;
  background: var(--surface);
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideIn .25s ease;
  overflow-y: auto;
}
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--surface-3);
  border: none;
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-bottom: 8px;
}
.mobile-nav-link {
  display: block;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background .18s;
}
.mobile-nav-link:hover { background: var(--surface-2); color: var(--primary); }
.mobile-divider { height: 1px; background: var(--border-light); margin: 8px 0; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer { background: var(--gray-dark); color: rgba(255,255,255,.75); }

.footer-top {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-text { font-family: var(--font-display); font-size: 20px; color: #fff; }
.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 260px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all .2s;
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .18s; }
.footer-links a:hover { color: #fff; }

.footer-mid {
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 28px 0;
}
.footer-mid-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}
.footer-apps { display: flex; gap: 10px; }
.app-store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: all .2s;
}
.app-store-btn:hover { background: rgba(255,255,255,.14); }
.app-store-name     { font-size: 12px; color: rgba(255,255,255,.5); }
.app-store-platform { font-size: 14px; font-weight: 700; color: #fff; }

.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal     { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-legal a   { color: rgba(255,255,255,.45); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }
.footer-reg       { font-size: 12px; color: rgba(255,255,255,.3); }

/* ─── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  padding: 80px 0 72px;
  text-align: center;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 60%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,123,255,.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32,201,151,.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .section-title { font-size: clamp(36px, 5vw, 60px); }

/* ─── Animations ────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(.85); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ─── Form Elements ─────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,123,255,.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--danger); }
.form-control.error:focus { box-shadow: 0 0 0 3px rgba(220,53,69,.15); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-hint  { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; display: none; }
.form-control.error + .form-error { display: block; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 42px; }
.input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.input-icon-right { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); cursor: pointer; background: none; border: none; padding: 0; }

/* Checkbox & Radio */
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}
.check-label input[type="checkbox"],
.check-label input[type="radio"] {
  width: 17px; height: 17px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all .15s;
}
.check-label input[type="radio"] { border-radius: 50%; }
.check-label input:checked {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5l3 3 4-4' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.check-label input[type="radio"]:checked {
  background-image: none;
  box-shadow: inset 0 0 0 3px #fff;
}

/* ─── Divider with text ──────────────────────────────────────── */
.divider-text {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13px;
  margin: 20px 0;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ─── Auth card ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 50%, #f0fdf4 100%);
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-xl);
}
.auth-logo-center {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}
.auth-footer-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 24px;
}
.auth-footer-link a { color: var(--primary); font-weight: 600; }
.auth-footer-link a:hover { text-decoration: underline; }

/* ─── Policy / Docs page ────────────────────────────────────── */
.policy-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 24px 100px;
}
.policy-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 48px 0 14px;
  color: var(--text-primary);
}
.policy-body h2:first-of-type { margin-top: 0; }
.policy-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.policy-body p { font-size: 15px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.policy-body ul { margin: 0 0 16px 20px; list-style: disc; }
.policy-body ul li { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.7; }
.policy-body a { color: var(--primary); }
.policy-body a:hover { text-decoration: underline; }
.policy-toc {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.policy-toc-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.policy-toc ol { margin-left: 16px; list-style: decimal; }
.policy-toc ol li { font-size: 14px; margin-bottom: 6px; }
.policy-toc ol li a { color: var(--primary); font-weight: 500; }
.policy-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.policy-meta span { display: flex; align-items: center; gap: 6px; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-mid-inner { flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 36px 24px; }
  .page-hero { padding: 60px 0 52px; }
}
@media (max-width: 480px) {
  .container, .container-sm, .container-xs { padding: 0 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .btn-lg { font-size: 15px; padding: 14px 28px; }
}
