/* theme.css — VV Softwares Design System */
/* Google Fonts loaded via <link> in HTML for faster rendering (avoid @import render-block) */

:root {
  /* Brand Palette */
  --clr-primary:       #0056b3;
  --clr-primary-light: #3a86ff;
  --clr-primary-glow:  rgba(58, 134, 255, 0.25);
  --clr-accent:        #6f42c1;
  --clr-accent-light:  #9d71ea;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #060a14 0%, #0a1628 50%, #0d1a3a 100%);
  --grad-brand:   linear-gradient(135deg, #3a86ff, #6f42c1);
  --grad-card:    linear-gradient(135deg, rgba(58,134,255,0.06), rgba(111,66,193,0.06));
  --grad-cta:     linear-gradient(135deg, #060a14, #0056b3 80%, #6f42c1);

  /* Backgrounds */
  --bg-dark:    #0a0f1e;
  --bg-darker:  #060a14;
  --bg-surface: #111827;
  --bg-light:   #f0f4ff;
  --bg-white:   #ffffff;

  /* Glass / Frosted (for use on dark backgrounds) */
  --glass-bg:     rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur:   blur(16px);

  /* Text */
  --txt-primary:   #1a1a2e;
  --txt-secondary: #4b5563;
  --txt-muted:     #9ca3af;
  --txt-light:     #e5e7eb;
  --txt-white:     #ffffff;
  --txt-accent:    #3a86ff;

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    900;

  --leading-tight:   1.2;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  /* Spacing */
  --sp-1:  4px;   --sp-2:  8px;   --sp-3:  12px;
  --sp-4:  16px;  --sp-5:  20px;  --sp-6:  24px;
  --sp-8:  32px;  --sp-10: 40px;  --sp-12: 48px;
  --sp-16: 64px;  --sp-20: 80px;  --sp-24: 96px;
  --section-gap: 100px;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.14);
  --shadow-xl:   0 25px 60px rgba(0,0,0,0.18);
  --shadow-glow: 0 0 40px rgba(58,134,255,0.18);
  --shadow-card: 0 4px 24px rgba(0,86,179,0.08);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   150ms;
  --dur-base:   300ms;
  --dur-slow:   600ms;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(16px, 4vw, 40px);
  --nav-height:    72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--txt-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section-pad {
  padding: var(--section-gap) 0;
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}
.text-center { text-align: center; }

/* ── Typography ── */
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: var(--weight-black); line-height: var(--leading-tight); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-weight: var(--weight-bold); line-height: var(--leading-tight); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem);  font-weight: var(--weight-semibold); }
h4 { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
p  { line-height: var(--leading-relaxed); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: var(--txt-white);
  box-shadow: 0 4px 20px rgba(58,134,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(58,134,255,0.45);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--txt-white);
  background: rgba(255,255,255,0.06);
  backdrop-filter: var(--glass-blur);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.btn-outline-dark {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--clr-primary);
  color: var(--txt-white);
  transform: translateY(-2px);
}

/* ── Section Label ── */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary-light);
  background: rgba(58,134,255,0.10);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

/* ── Card ── */
.card {
  background: var(--bg-white);
  border: 1px solid rgba(0,86,179,0.10);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,86,179,0.14);
}
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ── Header ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--dur-base), box-shadow var(--dur-base);
  background: transparent;
}
#site-header.scrolled {
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--sp-8);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.nav-brand img { height: 40px; width: auto; }
.nav-brand-name {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--txt-white);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.nav-link {
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.80);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--txt-white);
  background: rgba(255,255,255,0.08);
}
.nav-link.nav-cta {
  background: var(--grad-brand);
  color: var(--txt-white);
  padding: 8px 20px;
  box-shadow: 0 2px 12px rgba(58,134,255,0.30);
}
.nav-link.nav-cta:hover {
  box-shadow: 0 4px 20px rgba(58,134,255,0.50);
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--txt-white);
  border-radius: 2px;
  transition: transform var(--dur-base), opacity var(--dur-base);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ── */
#site-footer {
  background: var(--bg-darker);
  color: var(--txt-light);
  padding: var(--sp-20) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 44px; width: auto; margin-bottom: var(--sp-4); }
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--txt-muted);
  line-height: var(--leading-relaxed);
  max-width: 280px;
}
.footer-links h4, .footer-contact h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-white);
  margin-bottom: var(--sp-5);
}
.footer-links a {
  display: block;
  font-size: var(--text-sm);
  color: var(--txt-muted);
  padding: 4px 0;
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--clr-primary-light); }
.footer-contact p {
  font-size: var(--text-sm);
  color: var(--txt-muted);
  padding: 3px 0;
  line-height: var(--leading-relaxed);
}
.footer-contact a { color: var(--txt-muted); transition: color var(--dur-fast); }
.footer-contact a:hover { color: var(--clr-primary-light); }
.footer-contact .gstin {
  display: inline-block;
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  font-family: monospace;
  background: rgba(58,134,255,0.10);
  color: var(--txt-accent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(58,134,255,0.20);
}
.footer-bar {
  padding: var(--sp-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-bar p {
  font-size: var(--text-xs);
  color: var(--txt-muted);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--grad-hero);
  padding: calc(var(--nav-height) + 60px) 0 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,134,255,0.20), transparent 70%);
  top: -100px; left: -100px;
  filter: blur(60px);
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,66,193,0.20), transparent 70%);
  bottom: -60px; right: -60px;
  filter: blur(60px);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--txt-white); margin-bottom: var(--sp-4); }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: var(--text-lg); max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.50);
}
.breadcrumb a { color: rgba(255,255,255,0.60); }
.breadcrumb a:hover { color: var(--txt-white); }
.breadcrumb-sep { opacity: 0.40; }

/* ── Info Box ── */
.info-box {
  background: var(--bg-light);
  border: 1px solid rgba(0,86,179,0.12);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.info-row {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(0,86,179,0.06);
  font-size: var(--text-sm);
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-weight: var(--weight-semibold);
  color: var(--txt-secondary);
  min-width: 140px;
}
.info-value {
  color: var(--txt-primary);
  font-weight: var(--weight-medium);
}

/* ── Form ── */
.form-group { margin-bottom: var(--sp-5); }
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--txt-primary);
  margin-bottom: var(--sp-2);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,86,179,0.15);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--txt-primary);
  background: var(--bg-white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-primary-light);
  box-shadow: 0 0 0 3px var(--clr-primary-glow);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Doc Layout (Privacy / Terms) ── */
.doc-body {
  max-width: 820px;
  margin: 0 auto;
}
.doc-section {
  background: var(--bg-white);
  border: 1px solid rgba(0,86,179,0.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.doc-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--bg-light);
  color: var(--clr-primary);
}
.doc-section h3 { font-size: var(--text-lg); margin: var(--sp-5) 0 var(--sp-2); }
.doc-section p  { color: var(--txt-secondary); margin-bottom: var(--sp-4); }
.doc-section ul { padding-left: var(--sp-6); }
.doc-section ul li {
  color: var(--txt-secondary);
  margin-bottom: var(--sp-2);
  list-style: disc;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(6,10,20,0.97);
    backdrop-filter: var(--glass-blur);
    padding: var(--sp-5) var(--sp-6);
    gap: var(--sp-1);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.nav-open { display: flex; }
  .nav-link { width: 100%; padding: 12px 16px; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bar { flex-direction: column; text-align: center; }
  .info-label { min-width: 110px; }
}
@media (max-width: 480px) {
  .btn { padding: 12px 24px; font-size: var(--text-sm); }
  .doc-section { padding: var(--sp-6); }
}
