/* ==========================================================================
   MAURYA TECH — "AI NEXUS" DESIGN SYSTEM
   A deep-void, neon-glass aesthetic: precision engineering meets AI energy.
   Violet + Cyan + Gold on True Void. Colors are theme-able via CSS vars,
   which are overridden inline from the admin panel Settings.
   ========================================================================== */

:root {
  --bg-void:      #030304;
  --bg-surface:   #0F1115;
  --bg-surface-2: #14171D;
  --fg:           #FFFFFF;
  --muted:        #94A3B8;
  --border:       #1E293B;

  --primary:      #8B5CF6;   /* Violet */
  --primary-2:    #6D28D9;   /* Deep Violet */
  --accent:       #22D3EE;   /* Cyan */
  --gold:         #FACC15;   /* Signal Gold */

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --glow-primary: 0 0 30px -5px rgba(139,92,246,0.55);
  --glow-accent:  0 0 25px -5px rgba(34,211,238,0.5);
  --glow-gold:    0 0 20px rgba(250,204,21,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.font-mono { font-family: var(--font-mono); }
.font-heading { font-family: var(--font-heading); }

::selection { background: var(--primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- Layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-surface); }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ---------- Background Texture ---------- */
.bg-grid-pattern {
  background-size: 48px 48px;
  background-image:
    linear-gradient(to right, rgba(148,163,184,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,0.08) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.glow-blob.violet { background: var(--primary); }
.glow-blob.cyan { background: var(--accent); }
.glow-blob.gold { background: var(--gold); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary);
  border: 1px solid rgba(139,92,246,0.4);
  background: rgba(139,92,246,0.08);
  padding: 8px 18px; border-radius: 999px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); position: relative; }
.badge .dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 1.6s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes ping { 75%,100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 15px 32px; border-radius: 999px; border: none;
  min-height: 44px; transition: all .3s ease; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(to right, var(--primary-2), var(--primary));
  color: #fff;
  box-shadow: var(--glow-primary);
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 40px -5px rgba(139,92,246,0.75); }

.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-ghost { background: transparent; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--primary); }

.btn-sm { padding: 10px 20px; font-size: 12px; min-height: 36px; }

/* ---------- Gradient text ---------- */
.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gradient-text-gold {
  background: linear-gradient(to right, var(--gold), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(3,3,4,0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links a { color: var(--muted); transition: color .2s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after { content:''; position:absolute; left:0; right:0; bottom:-22px; height:2px; background: linear-gradient(to right, var(--primary), var(--accent)); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 78px; left: 0; right: 0; bottom: 0; background: var(--bg-void); flex-direction: column; justify-content: flex-start; padding: 40px 24px; gap: 28px; transform: translateX(100%); transition: transform .35s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.5vw, 72px); line-height: 1.05; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin: 24px 0 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div { font-family: var(--font-mono); }
.hero-stats .num { font-size: 28px; font-weight: 700; color: var(--fg); }
.hero-stats .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.orb-wrap { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1/1; }
.orb-core {
  position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(139,92,246,0.9), rgba(34,211,238,0.4) 60%, transparent 80%);
  box-shadow: 0 0 90px 10px rgba(139,92,246,0.45);
  animation: float 8s ease-in-out infinite;
}
.orb-ring { position: absolute; border: 1px solid rgba(139,92,246,0.35); border-radius: 50%; }
.orb-ring.r1 { inset: 5%; animation: spin 16s linear infinite; border-top-color: var(--accent); }
.orb-ring.r2 { inset: -5%; animation: spin 22s linear infinite reverse; border-right-color: var(--gold); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.float-card {
  position: absolute; background: rgba(15,17,21,0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md);
  padding: 12px 16px; font-family: var(--font-mono); font-size: 12px;
  box-shadow: 0 0 30px -8px rgba(139,92,246,0.35); animation: bounce 4s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
.float-card.c1 { top: 6%; left: -6%; animation-delay: 0s; }
.float-card.c2 { bottom: 10%; right: -8%; animation-delay: 1.2s; }
.float-card.c3 { top: 45%; right: -12%; animation-delay: 2.1s; display: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .orb-wrap { max-width: 300px; }
  .hero { padding: 130px 0 60px; }
}

/* ---------- Section headers ---------- */
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 16px 0; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,0.5); box-shadow: 0 0 30px -10px rgba(139,92,246,0.35); }

.card .icon-box {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.4);
  font-size: 26px; color: var(--primary); margin-bottom: 20px;
  transition: box-shadow .3s ease;
}
.card:hover .icon-box { box-shadow: 0 0 22px rgba(139,92,246,0.4); }
.card .bg-icon {
  position: absolute; right: -10px; bottom: -18px; font-size: 110px; color: var(--primary);
  opacity: 0.06; transition: opacity .3s ease; transform: rotate(-8deg);
}
.card:hover .bg-icon { opacity: 0.14; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent); font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* Glass card variant */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Corner-accent card ("How It Works") */
.node-card { position: relative; padding: 32px 28px; }
.node-card::before, .node-card::after {
  content: ''; position: absolute; width: 26px; height: 26px; opacity: 0.9;
}
.node-card::before { top: 0; left: 0; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); }
.node-card::after { bottom: 0; right: 0; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.node-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; }

/* ---------- Grids responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ---------- Timeline (How It Works) ---------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}
.timeline-item { position: relative; padding-left: 76px; margin-bottom: 44px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-num {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-surface); border: 1px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; color: var(--primary);
  box-shadow: 0 0 20px -4px rgba(139,92,246,0.5);
}
.timeline-item h4 { font-size: 19px; margin-bottom: 6px; }
.timeline-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- Stats ticker ---------- */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; }
.stats-bar .grid-4 { text-align: center; }
.stats-bar .num { font-family: var(--font-mono); font-size: clamp(30px,4vw,46px); font-weight: 700; }
.stats-bar .lbl { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

/* ---------- Logos strip (partners/clients) ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; }
.logo-strip img { height: 40px; width: auto; opacity: 0.55; filter: grayscale(1) brightness(2); transition: opacity .3s ease, filter .3s ease; }
.logo-strip img:hover { opacity: 1; filter: none; }
.logo-strip .logo-fallback { font-family: var(--font-mono); color: var(--muted); border: 1px dashed var(--border); padding: 10px 18px; border-radius: var(--radius-sm); font-size: 13px; }

/* ---------- Forms / Inputs ---------- */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.form-control {
  width: 100%; background: rgba(0,0,0,0.5); border: none; border-bottom: 2px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 14px; padding: 12px 4px; height: 48px; transition: all .2s ease;
}
textarea.form-control { height: auto; padding: 12px; resize: vertical; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 10px 20px -10px rgba(139,92,246,0.4); }
.form-control::placeholder { color: rgba(255,255,255,0.3); }
select.form-control { background: rgba(0,0,0,0.5); }

/* ---------- Pricing (kept for reuse if needed) ---------- */
.plan { position: relative; }
.plan.popular { border-color: var(--primary); transform: scale(1.05); box-shadow: 0 0 40px -10px rgba(139,92,246,0.3); }
.plan:not(.popular) { opacity: 0.85; }

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; }
.blog-card .thumb { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; aspect-ratio: 16/10; background: var(--bg-surface-2); position: relative; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.blog-card:hover .thumb img { transform: scale(1.08); filter: contrast(1.1); }
.blog-meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.blog-meta .cat { color: var(--accent); }
.blog-card h3 { font-size: 20px; margin-bottom: 10px; }
.blog-card p { color: var(--muted); font-size: 14.5px; }

.blog-single-hero { padding: 150px 0 40px; }
.blog-content { max-width: 780px; margin: 0 auto; }
.blog-content img { border-radius: var(--radius-lg); margin: 28px 0; }
.blog-content p { color: #cbd5e1; font-size: 17px; line-height: 1.85; margin-bottom: 22px; }
.blog-content h2, .blog-content h3 { margin: 34px 0 16px; }

/* ---------- Founder page ---------- */
.founder-hero { padding: 150px 0 40px; position: relative; }
.founder-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.founder-photo-wrap { position: relative; }
.founder-photo {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 60px -15px rgba(139,92,246,0.4); aspect-ratio: 4/5; background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--bg-surface);
  border: 1px solid var(--primary); border-radius: var(--radius-md); padding: 14px 20px;
  font-family: var(--font-mono); font-size: 12px; box-shadow: var(--glow-primary);
}
.founder-quote { font-family: var(--font-heading); font-size: clamp(20px,2.4vw,28px); line-height: 1.4; margin: 24px 0; padding-left: 20px; border-left: 3px solid var(--primary); color: #e5e7eb; }
@media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 72px 0 32px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 16px 0 20px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg); margin-bottom: 18px; }
.footer-col a, .footer-col p { color: var(--muted); font-size: 14px; display: block; margin-bottom: 12px; transition: color .2s ease; }
.footer-col a:hover { color: var(--primary); }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all .25s ease; }
.social-row a:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 15px rgba(139,92,246,0.4); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc utility ---------- */
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.pill-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted);
}
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(to right, var(--primary-2), var(--primary));
  display: flex; align-items: center; justify-content: center; z-index: 90;
  box-shadow: var(--glow-primary); font-size: 26px; color: #fff; animation: float 5s ease-in-out infinite;
}

/* Page hero (generic, for services/blog/contact list pages) */
.page-hero { padding: 150px 0 60px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(32px,5vw,56px); }
.page-hero p { color: var(--muted); max-width: 620px; margin: 18px auto 0; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.breadcrumb a { color: var(--accent); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .ic { width: 46px; height: 46px; border-radius: var(--radius-sm); background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.4); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 20px; flex-shrink: 0; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Testimonials */
.testi-card { position: relative; }
.testi-stars { color: var(--gold); margin-bottom: 14px; font-size: 14px; letter-spacing: 2px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); color: var(--primary); font-weight: 700; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-person h5 { font-size: 14px; }
.testi-person span { color: var(--muted); font-size: 12.5px; }

/* Alerts */
.alert { padding: 14px 20px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; border: 1px solid; }
.alert-success { background: rgba(34,211,238,0.08); border-color: rgba(34,211,238,0.4); color: #67e8f9; }
.alert-error { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.4); color: #fca5a5; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
