/* ============================================================
   Pranam.AI — Futuristic Landing Page Stylesheet
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:          #020610;
  --bg2:         #050d1a;
  --surface:     rgba(255,255,255,.04);
  --surface2:    rgba(255,255,255,.07);
  --border:      rgba(255,255,255,.08);
  --border2:     rgba(99,102,241,.3);

  --accent1:     #6366f1;   /* indigo */
  --accent2:     #06b6d4;   /* cyan   */
  --accent3:     #8b5cf6;   /* violet */
  --green:       #10b981;
  --amber:       #f59e0b;
  --pink:        #ec4899;

  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-dim:    #475569;

  --font-sans:   'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;

  --radius:      14px;
  --radius-lg:   22px;
  --glow1: 0 0 40px rgba(99,102,241,.25);
  --glow2: 0 0 60px rgba(6,182,212,.2);

  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --ease-spring:   cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button {
  font-family: inherit;
  -webkit-appearance: none; /* remove iOS default styles */
}

/* ── Particle Canvas ───────────────────────────────────────── */
#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

/* ── Utility ───────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent1), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--accent1);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  transition: all .3s var(--ease-out-expo);
  cursor: pointer;
  border: none;
  letter-spacing: .01em;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,.5);
}
.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--surface2);
  border-color: rgba(99,102,241,.4);
  transform: translateY(-2px);
}
.btn--large { padding: 1rem 2.25rem; font-size: 1rem; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all .4s var(--ease-out-expo);
}
.navbar.scrolled {
  background: rgba(2,6,16,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(99,102,241,.4);
}
.logo-glyph {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}
.logo-name {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.logo-dot { color: var(--accent2); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent1), var(--accent2)) !important;
  color: #fff !important;
  padding: .5rem 1.25rem;
  border-radius: 100px;
  font-size: .85rem !important;
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
}
.nav-cta:hover { box-shadow: 0 6px 20px rgba(99,102,241,.5); transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;           /* larger touch target */
  min-width: 44px;        /* 44px min touch target */
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .2s;
}
.hamburger:hover { background: rgba(255,255,255,.06); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease-out-expo),
              opacity .2s,
              background .2s;
  transform-origin: center;
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100svh; /* safe viewport height on mobile browsers */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 8rem 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* stop any child from causing horizontal scroll */
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.18), transparent 70%);
  top: -100px; left: -200px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,.15), transparent 70%);
  bottom: 0; right: -100px;
  animation: orbFloat2 15s ease-in-out infinite;
}
.hero-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,.12), transparent 70%);
  top: 50%; left: 50%;
  animation: orbFloat3 10s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-30px, -40px); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(-50%,-50%) scale(1.2); }
}

.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.25);
  color: var(--accent2);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.badge-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(1.4); }
}

.hero-sanskrit {
  margin-bottom: 1rem;
}
.devanagari-title {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--amber), var(--pink), var(--accent1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  background-size: 200% auto;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.devanagari-sub {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: .3rem;
  letter-spacing: .03em;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.headline-line { display: block; }
.line-1 { color: var(--text); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat-num {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-plus {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent2);
  line-height: 1;
  vertical-align: top;
}
.stat-label {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: .2rem;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── AI Brain Visual ───────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ai-brain-container {
  position: relative;
  width: 340px; height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brain-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ringRotate linear infinite;
}
.ring-1 {
  width: 340px; height: 340px;
  border-color: rgba(99,102,241,.2);
  animation-duration: 25s;
  border-style: dashed;
}
.ring-2 {
  width: 260px; height: 260px;
  border-color: rgba(6,182,212,.2);
  animation-duration: 18s;
  animation-direction: reverse;
}
.ring-3 {
  width: 180px; height: 180px;
  border-color: rgba(139,92,246,.25);
  animation-duration: 12s;
  border-style: dashed;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.brain-core {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,.3), rgba(6,182,212,.3));
  border: 1px solid rgba(99,102,241,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(99,102,241,.3), 0 0 120px rgba(6,182,212,.15);
  animation: corePulse 3s ease-in-out infinite;
  z-index: 2;
}
.brain-inner { font-size: 2.5rem; }
@keyframes corePulse {
  0%,100% { box-shadow: 0 0 60px rgba(99,102,241,.3), 0 0 120px rgba(6,182,212,.15); }
  50% { box-shadow: 0 0 80px rgba(99,102,241,.5), 0 0 160px rgba(6,182,212,.25); }
}
.brain-nodes {
  position: absolute;
  inset: 0;
}
.b-node {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--accent1);
  box-shadow: 0 0 20px rgba(99,102,241,.2);
  transition: all .3s;
  animation: nodeFloat 4s ease-in-out infinite;
}
.b-node:hover {
  background: rgba(99,102,241,.15);
  border-color: var(--accent1);
  box-shadow: 0 0 30px rgba(99,102,241,.4);
  transform: scale(1.15);
}
/* Positions around 340×340 circle */
.n1 { top:  10px; left: 148px; animation-delay: 0s;   color: var(--accent1); }
.n2 { top:  80px; right: 8px;  animation-delay: .5s;  color: var(--accent2); }
.n3 { bottom: 80px; right: 8px; animation-delay: 1s;  color: var(--green); }
.n4 { bottom: 10px; left: 148px; animation-delay: 1.5s; color: var(--amber); }
.n5 { bottom: 80px; left: 8px;  animation-delay: 2s;  color: var(--pink); }
.n6 { top: 80px; left: 8px;    animation-delay: 2.5s; color: var(--accent3); }
@keyframes nodeFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.nl {
  stroke: rgba(99,102,241,.2);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: lineDash 3s linear infinite;
}
@keyframes lineDash {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -24; }
}

/* ── Scroll Indicator ──────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-dim);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeInUp 2s ease 1.5s both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent1), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .3; }
  50% { opacity: 1; }
}

/* ── TICKER ────────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(99,102,241,.04);
  padding: .75rem 0;
  position: relative;
  z-index: 1;
}
.ticker {
  display: flex;
  gap: 0;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}
.ticker span {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 1.5rem;
  letter-spacing: .05em;
}
.ticker .sep { color: var(--accent1); }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── ABOUT ─────────────────────────────────────────────────── */
.about-section { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s;
}
.pillar:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateX(4px);
}
.pillar-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(99,102,241,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent1);
  font-size: .85rem;
  flex-shrink: 0;
}
.pillar div { display: flex; flex-direction: column; gap: .2rem; }
.pillar strong { font-size: .9rem; color: var(--text); }
.pillar span { font-size: .82rem; color: var(--text-muted); }

/* Glowing Code Card */
.glowing-card {
  background: rgba(5,13,26,.9);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glow1), inset 0 1px 0 rgba(255,255,255,.05);
  animation: cardGlow 4s ease-in-out infinite alternate;
}
@keyframes cardGlow {
  from { box-shadow: var(--glow1); }
  to   { box-shadow: 0 0 60px rgba(6,182,212,.2), inset 0 1px 0 rgba(255,255,255,.05); }
}
.gc-header {
  background: rgba(255,255,255,.04);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
}
.gc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.gc-dot.red   { background: #ef4444; }
.gc-dot.yellow{ background: #f59e0b; }
.gc-dot.green { background: #10b981; }
.gc-title {
  font-size: .75rem;
  color: var(--text-dim);
  margin-left: .25rem;
  font-family: 'Courier New', monospace;
}
.gc-body {
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: .82rem;
}
.code-line {
  display: flex;
  gap: .5rem;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.code-key   { color: var(--accent1); }
.code-colon { color: var(--text-dim); }
.code-val   { color: var(--green); }
.blink-cursor .code-val::after {
  content: '';
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--accent2);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink .9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── PRODUCTS ──────────────────────────────────────────────── */
.products-section { background: var(--bg); }
.products-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(99,102,241,.06), transparent 70%);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  overflow: hidden;
  transition: all .4s var(--ease-out-expo);
  animation: fadeInUp .6s ease both;
}
.product-card:nth-child(1) { animation-delay: .1s; }
.product-card:nth-child(2) { animation-delay: .2s; }
.product-card:nth-child(3) { animation-delay: .3s; }
.product-card:nth-child(4) { animation-delay: .4s; }
.product-card:nth-child(5) { animation-delay: .5s; }
.product-card:nth-child(6) { animation-delay: .6s; }
.product-card:hover {
  border-color: var(--border2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), var(--glow1);
}
.product-card.pipeline {
  border-color: rgba(139,92,246,.2);
  opacity: .85;
}
.product-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.5), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.product-card:hover .product-glow { opacity: 1; }

.product-icon-wrap { margin-bottom: 1rem; }
.product-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--clr) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--clr) 35%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--clr);
}
.product-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 100px;
  background: rgba(16,185,129,.12);
  color: var(--green);
  border: 1px solid rgba(16,185,129,.25);
  margin-bottom: .75rem;
}
.pipeline-tag {
  background: rgba(139,92,246,.12);
  color: var(--accent3);
  border-color: rgba(139,92,246,.25);
}
.product-card h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.product-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.product-features {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.product-features li i.fa-check { color: var(--green); font-size: .7rem; }
.product-features li i.fa-circle { color: var(--accent3); font-size: .4rem; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent2);
  transition: gap .2s;
}
.product-link:hover { gap: .7rem; }
.product-link.coming {
  color: var(--text-dim);
  cursor: default;
}

/* ── LAB SECTION ───────────────────────────────────────────── */
.lab-section { background: var(--bg2); }
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Process Steps */
.lab-process { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 1.25rem;
  row-gap: 0;
  position: relative;
}
.step-connector {
  grid-column: 1;
  grid-row: 2;
  width: 2px;
  height: 100%;
  min-height: 40px;
  background: linear-gradient(to bottom, var(--accent1), transparent);
  margin: 0 auto;
  opacity: .3;
}
.step-circle {
  grid-column: 1;
  grid-row: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(99,102,241,.12);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent1);
  flex-shrink: 0;
  font-family: var(--font-sans);
  transition: all .3s;
}
.process-step:hover .step-circle {
  background: var(--accent1);
  color: #fff;
  box-shadow: 0 0 20px rgba(99,102,241,.4);
}
.step-content {
  grid-column: 2;
  grid-row: 1 / 3;
  padding-bottom: 2rem;
}
.step-content h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.step-content p {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Lab Card */
.lab-card {
  background: rgba(5,13,26,.9);
  border: 1px solid rgba(6,182,212,.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--glow2);
}
.lab-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.lab-logo-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(6,182,212,.2), rgba(99,102,241,.2));
  border: 1px solid rgba(6,182,212,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
  font-size: 1.1rem;
}
.lab-card-title { font-weight: 700; font-size: .95rem; }
.lab-card-sub   { font-size: .78rem; color: var(--text-muted); }

.lab-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.lm {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: .25rem .5rem;
}
.lm-label {
  font-size: .78rem;
  color: var(--text-muted);
  grid-column: 1;
}
.lm-val {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent2);
  grid-column: 2;
  grid-row: 1;
}
.lm-bar {
  grid-column: 1 / 3;
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.lm-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--pct);
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  border-radius: 100px;
  animation: barFill 1.5s var(--ease-out-expo) both;
}
@keyframes barFill {
  from { width: 0; }
  to   { width: var(--pct); }
}

.lab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.lab-tags span {
  font-size: .75rem;
  padding: .25rem .7rem;
  border-radius: 100px;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  color: var(--accent1);
}

/* ── ECOSYSTEM ─────────────────────────────────────────────── */
.ecosystem-section { background: var(--bg); }
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.eco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  transition: all .4s var(--ease-out-expo);
}
.eco-card:hover {
  border-color: var(--border2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), var(--glow1);
}
.eco-logo { margin-bottom: .75rem; }
/* Real logo image wrapper */
.eco-logo-img-wrap {
  width: 100%;
  background: #0a0a0a;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  min-height: 72px;
  transition: border-color .3s;
}
.eco-card:hover .eco-logo-img-wrap {
  border-color: rgba(99,102,241,.3);
}
.eco-logo-img {
  width: auto;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1);
  transition: filter .3s, transform .3s;
}
.eco-card:hover .eco-logo-img {
  filter: brightness(1.1);
  transform: scale(1.04);
}
.eco-name {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
}
.eco-tagline {
  font-size: .8rem;
  color: var(--accent2);
  font-weight: 500;
}
.eco-desc {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.eco-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent1);
  margin-top: .5rem;
  transition: gap .2s;
}
.eco-link:hover { gap: .7rem; }

/* Sanskrit Quote */
.sanskrit-quote {
  background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(6,182,212,.06));
  border: 1px solid rgba(99,102,241,.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.sq-deco { color: var(--accent1); font-size: 1.5rem; opacity: .4; }
.sq-text { flex: 1; }
.sq-devanagari {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text);
  margin-bottom: .5rem;
  letter-spacing: .05em;
}
.sq-translation {
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── CONTACT ───────────────────────────────────────────────── */
.contact-section { background: var(--bg2); }
.contact-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(99,102,241,.08), transparent 70%);
}
.cta-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta-orb--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,.12), transparent);
  top: -100px; left: -100px;
}
.cta-orb--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,.1), transparent);
  bottom: 0; right: -50px;
}
.cta-wrapper .section-sub { margin: 0 auto 3rem; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--text);
  font-size: .9rem;
  transition: border .25s, box-shadow .25s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}
.form-group select option { background: #050d1a; color: var(--text); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent1);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.contact-form .btn {
  align-self: center;
  margin-top: .5rem;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  animation: fadeInUp .5s ease;
}
.form-success.visible { display: flex; }
.success-icon { font-size: 3.5rem; color: var(--green); }
.form-success h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
}
.form-success p { color: var(--text-muted); }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: rgba(2,6,16,1);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: .87rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 300px;
  line-height: 1.65;
}
.footer-socials {
  display: flex;
  gap: .75rem;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  transition: all .25s;
}
.footer-socials a:hover {
  background: rgba(99,102,241,.15);
  border-color: var(--accent1);
  color: var(--accent1);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-col ul a {
  font-size: .87rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--accent2); }

/* Footer ecosystem logo links */
.footer-eco-link {
  display: inline-flex;
  align-items: center;
}
.footer-eco-logo {
  height: 22px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  opacity: .55;
  filter: brightness(1.1);
  transition: opacity .25s, transform .25s;
}
.footer-eco-link:hover .footer-eco-logo {
  opacity: 1;
  transform: translateX(3px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: .8rem; color: var(--text-dim); }
.footer-sanskrit {
  color: var(--accent1) !important;
  font-style: italic;
}

/* ── Entrance Animations ───────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST COMPLETE OVERHAUL
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet: 1024px ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 2rem 4rem;
    gap: 2rem;
    max-width: 100%;
  }
  .hero-sub          { margin: 0 auto 2rem; }
  .hero-actions      { justify-content: center; }
  .hero-stats        { justify-content: center; }
  .hero-visual       { justify-content: center; }
  .hero-badge        { margin: 0 auto 1.5rem; }
  .hero-sanskrit     { text-align: center; }
  .about-grid        { grid-template-columns: 1fr; gap: 2.5rem; }
  .products-grid     { grid-template-columns: repeat(2, 1fr); }
  .lab-grid          { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ecosystem-grid    { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* ── Mobile: 768px ──────────────────────────────────────────── */
@media (max-width: 768px) {

  /* --- Global spacing --- */
  .section        { padding: 3.5rem 0; }
  .container      { padding: 0 1.25rem; }
  .section-title  { font-size: 1.8rem; }
  .section-sub    { font-size: .9rem; }

  /* --- Navbar --- */
  .navbar { padding: .75rem 0; }
  .nav-container { padding: 0 1.25rem; }

  /* Hide desktop links */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2,6,16,.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    padding-top: 80px;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a {
    display: block;
    padding: 1rem 1.75rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: color .2s, background .2s;
  }
  .nav-links.open a:hover  { color: var(--text); background: rgba(255,255,255,.03); }
  .nav-links.open .nav-cta {
    margin: 1.5rem 1.75rem 0;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent1), var(--accent2)) !important;
    color: #fff !important;
    border-radius: 100px;
    padding: .85rem 1.5rem !important;
    text-align: center;
    font-size: 1rem !important;
    border-bottom: none !important;
  }

  /* Hamburger visible — animated X */
  .hamburger {
    display: flex;
    z-index: 1001;
    position: relative;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* --- Hero --- */
  .hero {
    padding: 6rem 1.25rem 3rem;
    min-height: auto;
    gap: 2.5rem;
  }
  .hero-badge { font-size: .7rem; padding: .35rem .85rem; }
  .devanagari-title { font-size: 3rem; }
  .devanagari-sub   { font-size: .78rem; }
  .hero-headline    { font-size: 2.4rem; line-height: 1.1; }
  .hero-sub         { font-size: .95rem; line-height: 1.7; max-width: 100%; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 2.5rem;
  }
  .hero-actions .btn { justify-content: center; width: 100%; padding: .9rem 1.5rem; }

  /* Stats row */
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }
  .stat-num   { font-size: 1.6rem; }
  .stat-label { font-size: .68rem; }
  .stat-divider { display: none; }

  /* Brain visual — smaller, centered */
  .hero-visual     { margin-top: .5rem; }
  .ai-brain-container { width: 240px; height: 240px; }
  .ring-1 { width: 240px; height: 240px; }
  .ring-2 { width: 185px; height: 185px; }
  .ring-3 { width: 130px; height: 130px; }
  .brain-core { width: 72px; height: 72px; }
  .brain-inner { font-size: 2rem; }
  .b-node { width: 36px; height: 36px; font-size: .75rem; }
  .n1 { top:  6px;  left: 102px; }
  .n2 { top:  55px; right: 4px;  }
  .n3 { bottom: 55px; right: 4px;  }
  .n4 { bottom: 6px;  left: 102px; }
  .n5 { bottom: 55px; left: 4px; }
  .n6 { top: 55px;    left: 4px;  }

  /* --- Ticker --- */
  .ticker-wrap { padding: .6rem 0; }
  .ticker span { font-size: .75rem; padding: 0 1rem; }

  /* --- About --- */
  .about-section .container { padding: 0 1.25rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-lead { font-size: 1rem; }
  .about-text p { font-size: .88rem; }
  .about-pillars { gap: .75rem; }
  .pillar { padding: .85rem; }
  .pillar-icon { width: 32px; height: 32px; font-size: .8rem; }
  .pillar strong { font-size: .85rem; }
  .pillar span   { font-size: .78rem; }
  .glowing-card  { margin-top: 0; }
  .gc-body { padding: 1.25rem; }
  .code-line { font-size: .78rem; }

  /* --- Products --- */
  .products-grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-card  { padding: 1.35rem; }
  .product-icon  { width: 44px; height: 44px; font-size: 1.1rem; }
  .product-card h3 { font-size: 1.1rem; }
  .product-card p  { font-size: .85rem; }
  .product-features li { font-size: .8rem; }

  /* --- Lab --- */
  .lab-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lab-card { padding: 1.35rem; }
  .lab-card-title { font-size: .9rem; }
  .lm-label, .lm-val { font-size: .75rem; }
  .step-circle { width: 38px; height: 38px; font-size: .72rem; }
  .step-content h4 { font-size: .92rem; }
  .step-content p  { font-size: .84rem; }
  .step-content     { padding-bottom: 1.5rem; }

  /* --- Ecosystem --- */
  .ecosystem-grid { grid-template-columns: 1fr; gap: 1rem; }
  .eco-card       { padding: 1.5rem 1.25rem; }
  .eco-logo-img-wrap { padding: .85rem 1rem; min-height: 60px; }
  .eco-logo-img   { height: 30px; }
  .eco-name       { font-size: 1.15rem; }
  .eco-desc       { font-size: .84rem; }
  .sanskrit-quote {
    flex-direction: column;
    padding: 1.75rem 1.25rem;
    gap: 1rem;
    text-align: center;
  }
  .sq-devanagari  { font-size: 1.1rem; }
  .sq-translation { font-size: .8rem; }
  .sq-deco        { font-size: 1.2rem; }

  /* --- Contact --- */
  .contact-section .container { padding: 0 1.25rem; }
  .cta-wrapper { padding: 0; }
  .contact-form { gap: .85rem; }
  .form-row     { grid-template-columns: 1fr; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem; /* prevents iOS zoom on focus */
    padding: .85rem 1rem;
  }
  .contact-form .btn { width: 100%; justify-content: center; }

  /* --- Footer --- */
  .footer         { padding: 3rem 0 1.5rem; }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p { font-size: .84rem; max-width: 100%; }
  .footer-col h4  { font-size: .78rem; margin-bottom: .75rem; }
  .footer-col ul a { font-size: .84rem; }
  .footer-bottom  {
    flex-direction: column;
    gap: .4rem;
    text-align: center;
    padding-top: 1.25rem;
  }
  .footer-bottom p  { font-size: .75rem; }
  .footer-eco-logo  { height: 18px; }
}

/* ── Small Mobile: 480px ────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-headline    { font-size: 2rem; }
  .devanagari-title { font-size: 2.4rem; }

  /* Hide brain on very small phones to save space */
  .hero-visual      { display: none; }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    width: 100%;
  }
  .stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: .75rem 1rem;
    align-items: center;
    text-align: center;
  }
  .stat:last-child { grid-column: 1 / -1; }

  .section-title  { font-size: 1.6rem; }
  .section-badge  { font-size: .7rem; }

  .product-card   { padding: 1.25rem; }
  .eco-card       { padding: 1.25rem 1rem; }

  .btn            { font-size: .88rem; padding: .8rem 1.4rem; }
  .btn--large     { font-size: .95rem; padding: .9rem 1.75rem; }

  /* Contact form full width CTA */
  .contact-form .btn--large { width: 100%; padding: 1rem; }
}

/* ── Extra small: 360px ─────────────────────────────────────── */
@media (max-width: 360px) {
  .hero           { padding: 5.5rem 1rem 2.5rem; }
  .container      { padding: 0 1rem; }
  .hero-headline  { font-size: 1.8rem; }
  .devanagari-title { font-size: 2rem; }
  .logo-name      { font-size: 1.1rem; }
  .logo-mark      { width: 36px; height: 36px; }
}
