/* ============================================================
   VelrixTech shared subpage styles (v1)
   Sirf NAYE pages (services/faq/about/guides/legal) isko use
   karte hain — homepage ki CSS index.html ke andar inline hai.

   ⚠️ CACHE: naam versioned hai (site.v1.css) kyunki server ise
   1 saal cache karta hai. Content badlo to naam site.v2.css karo
   aur har subpage ka <link href> bhi update karo.
   ============================================================ */

:root {
  --bg: #080c14;
  --bg2: #0d1424;
  --card: rgba(16, 24, 48, 0.6);
  --border: rgba(255, 255, 255, 0.07);
  --cyan: #22d3ee;
  --purple: #a855f7;
  --pink: #ec4899;
  --green: #10b981;
  --text: #cbd5e1;
  --text-dim: #94a3b8;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.75;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

.grad {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* ---------- NAV (subpages) ---------- */
nav.subnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px;
  display: flex; align-items: center;
  padding: 0 5%;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1280px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  box-shadow: 0 0 20px rgba(34, 211, 238, .3);
}
.logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; }
.logo-text span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-dim); font-size: .9rem; font-weight: 500; text-decoration: none; transition: .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.nav-cta {
  padding: .7rem 1.6rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff !important; font-size: .9rem; font-weight: 700;
}
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 999;
  flex-direction: column; gap: 0;
  background: rgba(8, 12, 20, 0.97);
  border-bottom: 1px solid var(--border);
  padding: .5rem 5% 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); text-decoration: none; padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.mobile-menu a.nav-cta {
  margin-top: 1rem; text-align: center; border: none; border-radius: 50px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff; font-weight: 700; padding: .8rem;
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ---------- PAGE LAYOUT ---------- */
main.page { max-width: 860px; margin: 0 auto; padding: 120px 5% 4rem; }
main.page.wide { max-width: 1000px; }

.breadcrumbs { font-size: .85rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--cyan); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--text); }

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.2; color: #fff; margin-bottom: 1rem;
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: #fff; margin: 2.5rem 0 1rem; line-height: 1.3;
  scroll-margin-top: 96px;
}
h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; color: #fff; margin: 1.75rem 0 .75rem;
  scroll-margin-top: 96px;
}
p { margin-bottom: 1rem; }
a { color: var(--cyan); }
a:hover { color: #67e8f9; }
ul, ol { margin: 0 0 1rem 1.4rem; }
li { margin-bottom: .4rem; }
strong { color: #fff; }

.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem;
  font-size: .875rem; color: var(--text-dim);
  padding-bottom: 1.25rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.byline a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.byline .dot { opacity: .4; }

.tldr {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}
.tldr .tldr-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: .6rem;
}
.tldr ul { margin-bottom: 0; }

/* Direct-answer paragraph right under a question H2 (AEO) */
.direct-answer { color: #e2e8f0; font-size: 1.05rem; }

/* ---------- TABLES ---------- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  font-family: 'Space Grotesk', sans-serif; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); background: rgba(16, 24, 48, 0.8);
}
tr:last-child td { border-bottom: none; }

/* ---------- FAQ (details/summary) ---------- */
.faq-list { display: flex; flex-direction: column; gap: .75rem; margin: 1.25rem 0 2rem; }
details.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
details.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: #fff;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .arrow { transition: transform .25s; color: var(--cyan); flex-shrink: 0; }
details.faq-item[open] summary .arrow { transform: rotate(180deg); }
details.faq-item .faq-a { padding: 0 1.25rem 1.1rem; color: var(--text); }
details.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- CARDS / GRIDS ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.info-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem 1.4rem;
}
.info-card h3 { margin-top: 0; }
.info-card .icon { font-size: 1.4rem; margin-bottom: .6rem; color: var(--cyan); }

/* ---------- CTA ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.9rem; border-radius: 50px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff !important; font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 0 24px rgba(34, 211, 238, .25);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(168, 85, 247, .4); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.9rem; border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .07); }
.cta-box {
  text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 2.25rem 1.5rem; margin: 2.5rem 0 1rem;
}
.cta-box h2 { margin-top: 0; }
.cta-box .cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.25rem; }
.cta-box .cta-note { font-size: .85rem; color: var(--text-dim); margin: 1rem 0 0; }

/* ---------- ABOUT PAGE ---------- */
.about-photo {
  width: 168px; height: 168px; border-radius: 20px; object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 0 34px rgba(168, 85, 247, .25);
}
.about-header { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.badge-line { display: flex; flex-wrap: wrap; gap: .6rem; margin: .75rem 0 0; }
.badge-pill {
  font-size: .78rem; font-weight: 600; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, .35); border-radius: 50px;
  padding: .3rem .85rem; background: rgba(34, 211, 238, .07);
}
.app-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.app-proof .app-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.2rem 1.3rem;
}
.app-proof .app-card h3 { margin-top: 0; margin-bottom: .4rem; }
.app-proof .app-card p { font-size: .9rem; color: var(--text-dim); margin-bottom: .8rem; }
.app-proof .app-card .app-link { font-size: .88rem; font-weight: 600; text-decoration: none; }
.app-proof .app-card .app-soon { font-size: .82rem; color: var(--text-dim); font-style: italic; }

/* ---------- FOOTER (shared) ---------- */
footer { border-top: 1px solid var(--border); background: var(--bg2); margin-top: 4rem; }
.footer-grid { max-width: 1280px; margin: 0 auto; padding: 3rem 5% 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { font-size: .9rem; color: var(--text-dim); margin: 1rem 0; max-width: 340px; }
.social-row { display: flex; gap: .6rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-dim); text-decoration: none; transition: .2s;
}
.social-btn:hover { color: #fff; border-color: var(--cyan); }
.footer-col h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: .95rem;
  color: #fff; margin: 0 0 1rem;
}
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: .88rem; padding: .3rem 0; transition: .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .82rem; color: var(--text-dim);
}
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- MISC ---------- */
.updated-note { font-size: .82rem; color: var(--text-dim); font-style: italic; margin-top: 2.5rem; }
.hinglish-note { font-size: .85rem; color: var(--text-dim); }
img { max-width: 100%; height: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
