/* ===========================
   COMPONENTS (Nebula v2.1 Polish)
   Focus: hero photo integration + better pills/cards micro-interactions
=========================== */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, filter .18s ease;
  user-select: none;
  will-change: transform;
}

.btn-primary{
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #07101f;
  box-shadow: 0 14px 44px rgba(0,0,0,.28);
}
.btn-primary:hover{
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 18px 60px rgba(0,0,0,.34);
}

.btn-outline{
  background: rgba(255,255,255,.02);
  border-color: rgba(148,163,184,.24);
  color: var(--text-main);
}
.btn-outline:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148,163,184,.10);
  border: 1px solid rgba(148,163,184,.20);
  color: var(--text-main);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.icon-btn:hover{
  background: rgba(148,163,184,.16);
  transform: translateY(-1px);
}

/* Cards */
.card{
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out), filter .22s var(--ease-out);
  will-change: transform;

}

html[data-theme="light"] .card{
  background: rgba(255,255,255,.90);
  box-shadow: 0 18px 45px rgba(15,23,42,.12);
}

/* Metric cards */
.metric-card{
  background: rgba(15, 23, 42, .70);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
html[data-theme="light"] .metric-card{
  background: rgba(255,255,255,.88);
}

.metric-card .metric-value{
  display: block;
  font-weight: 900;
  font-size: 1.34rem;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-card .metric-label{
  display: block;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 650;
}

/* Hero visual card: integrate photo with theme */
.hero-visual .profile-card,
.profile-card{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.18);
  background:
    radial-gradient(800px 420px at 30% 10%, rgba(56,189,248,.10), transparent 60%),
    radial-gradient(760px 380px at 90% 10%, rgba(168,85,247,.10), transparent 55%),
    rgba(15,23,42,.70);
  box-shadow: 0 26px 90px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out), filter .22s var(--ease-out);
  will-change: transform;

}

html[data-theme="light"] .profile-card{
  background:
    radial-gradient(900px 480px at 30% 10%, rgba(14,165,233,.12), transparent 60%),
    radial-gradient(760px 380px at 90% 10%, rgba(124,58,237,.10), transparent 55%),
    rgba(255,255,255,.92);
  box-shadow: 0 22px 70px rgba(15,23,42,.14);
}

/* Unified hero side layout (EN + HI) */
.hero-side{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-top{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px 22px 0;
}

.profile-avatar{
  width: min(220px, 56%);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 55px rgba(0,0,0,.30);
}

.profile-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-meta h3{
  margin: 0;
  font-size: 1.15rem;
}

.profile-meta p{
  margin: 6px 0 0;
  color: var(--text-muted);
}

.profile-card .profile-bullets{
  padding: 16px 18px 18px;
}

/* Hero orbs / illustration */
.hero-art{
  position: relative;
  height: 160px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(148,163,184,.06);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.orb{
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: .6;
}

.orb-1{
  background: rgba(56,189,248,.22);
  left: -80px;
  top: -70px;
}

.orb-2{
  background: rgba(168,85,247,.22);
  right: -90px;
  top: -90px;
}

.orb-3{
  background: rgba(34,197,94,.14);
  left: 30%;
  bottom: -120px;
}

.hero-illustration{
  position: relative;
  z-index: 1;
}

@media (max-width: 980px){
  .profile-avatar{ width: min(200px, 52%); }
  .hero-art{ height: 130px; }
}

.profile-photo{
  position: relative;
  padding: 18px;
  background:
    radial-gradient(700px 360px at 30% 20%, rgba(56,189,248,.14), transparent 60%),
    radial-gradient(680px 340px at 85% 10%, rgba(168,85,247,.14), transparent 55%),
    rgba(2,6,23,.38);
}
html[data-theme="light"] .profile-photo{
  background:
    radial-gradient(700px 360px at 30% 20%, rgba(14,165,233,.12), transparent 60%),
    radial-gradient(680px 340px at 85% 10%, rgba(124,58,237,.10), transparent 55%),
    rgba(255,255,255,.70);
}

.profile-photo::before{
  content:"";
  position:absolute;
  inset: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(56,189,248,.22), rgba(168,85,247,.20));
  filter: blur(10px);
  opacity: .65;
  pointer-events:none;
}

.profile-photo img{
  aspect-ratio: 4 / 5;
  object-fit: cover;
  max-height: 380px;
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}

.profile-info{ padding: 18px 18px 16px; }
.profile-info h2{ margin: 2px 0 6px; font-size: 1.25rem; }
.profile-info p{ margin: 0 0 12px; color: var(--text-muted); }

.profile-bullets{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.profile-bullets li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-main);
  opacity: .92;
}
.profile-bullets i{ margin-top: 3px; color: var(--accent-2); }

/* Client pills */
.client-pill,
.logo-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(148,163,184,.08);
  color: var(--text-muted);
  font-weight: 750;
  font-size: .92rem;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.client-pill:hover,
.logo-pill:hover{
  transform: translateY(-1px);
  background: rgba(148,163,184,.14);
  border-color: rgba(148,163,184,.28);
}

/* Animations */
@keyframes heroUp{ to{ opacity: 1; transform: translateY(0); } }
@keyframes floatSoft{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }

.hero-enter{
  opacity: 0;
  transform: translateY(14px);
  animation: heroUp .7s ease forwards;
}
.hero-enter.delay-2{ animation-delay: .08s; }
.hero-enter.delay-3{ animation-delay: .16s; }
.hero-enter.delay-4{ animation-delay: .24s; }

.hero-visual .profile-card.hero-enter{
  animation: heroUp .7s ease forwards, floatSoft 6.5s ease-in-out infinite;
  animation-delay: 0s, .85s;
}

/* Scroll reveal */
.reveal, .reveal-stagger{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible, .reveal-stagger.visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .hero-enter,
  .reveal, .reveal-stagger,
  .hero-visual .profile-card.hero-enter{
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Premium hover: subtle lift + glow ring */
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56,189,248,.55), rgba(168,85,247,.45), rgba(34,197,94,.30));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .22s var(--ease-out);
  pointer-events:none;
}
.card::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(600px 220px at var(--glare-x, 30%) var(--glare-y, 20%), rgba(56,189,248,.10), transparent 55%),
    radial-gradient(520px 200px at 80% 10%, rgba(168,85,247,.10), transparent 55%);
  opacity: 0;
  transition: opacity .22s var(--ease-out);
  pointer-events:none;
}

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(148,163,184,.26);
  filter: saturate(1.04);
  box-shadow: 0 26px 100px rgba(0,0,0,.40);
}
.card:hover::before,
.card:hover::after{ opacity: 1; }

/* Tilt-ready: JS will set --rx/--ry and glare coordinates */
.tilt{
  transform: perspective(980px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
}
.tilt:hover{
  transform: perspective(980px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
}

/* Magnetic buttons: JS applies translate; keep smoothness */
.magnetic{
  transition: transform .18s var(--ease-soft), box-shadow .18s var(--ease-soft), background .18s var(--ease-soft), border-color .18s var(--ease-soft);
  will-change: transform;
}

/* Back to top */
.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(148,163,184,.12);
  border: 1px solid rgba(148,163,184,.20);
  color: var(--text-main);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), background .22s var(--ease-out), border-color .22s var(--ease-out);
  z-index: 120;
  backdrop-filter: blur(14px);
}
.back-to-top:hover{
  background: rgba(148,163,184,.18);
  border-color: rgba(148,163,184,.28);
  transform: translateY(6px);
}
.back-to-top.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Rotating gear icon for Hindi hero (replaces missing image) */
.rotating-gear{
  font-size: clamp(64px, 8vw, 120px);
  line-height: 1;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
  animation: spinSlow 14s linear infinite;
}
@keyframes spinSlow{
  to{ transform: rotate(360deg); }
}

/* Form feedback */
.form-status{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(148,163,184,.08);
  color: var(--text-main);
  font-weight: 650;
  font-size: .92rem;
  min-height: 18px;
}
.form-status.ok{
  border-color: rgba(34,197,94,.34);
  background: rgba(34,197,94,.10);
  color: var(--accent-3);
}
.form-status.err{
  border-color: rgba(239,68,68,.34);
  background: rgba(239,68,68,.10);
  color: #ef4444;
}

/* Button variants used across pages */
.btn-ghost{
  background: rgba(255,255,255,.02);
  border-color: rgba(148,163,184,.18);
  color: var(--text-main);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.btn-small, .btn-sm{
  padding: 9px 12px;
  border-radius: 14px;
  font-size: .92rem;
  font-weight: 850;
}

.btn-full{ width: 100%; }

.icon-btn.small{
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

/* Forms */
.form-group{ display: grid; gap: 6px; margin-bottom: 12px; }
label{ font-weight: 750; color: var(--text-main); }
input, textarea, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(15,23,42,.55);
  color: var(--text-main);
  outline: none;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select{
  background: rgba(255,255,255,.82);
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(56,189,248,.34);
  box-shadow: 0 0 0 4px rgba(56,189,248,.14);
}
textarea{ resize: vertical; }

/* Footer layout */
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-center{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.footer-center a{ color: var(--text-muted); }
.footer-center a:hover{ color: var(--text-main); }
.footer-right{ color: var(--text-muted); text-align: right; }

@media (max-width: 860px){
  .footer-inner{ flex-direction: column; align-items: flex-start; }
  .footer-right{ text-align: left; }
}

/* Lists inside cards */
.card-list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
}
.card-list li{ line-height: 1.5; }
.numbered-list{
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
}

/* Hero CTA row */
.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Missing utility classes used in HTML (restored) */

/* Pills / badges */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(148,163,184,.10);
  color: var(--text-main);
  font-weight: 800;
  font-size: .78rem;
  white-space: nowrap;
}
.badge-warning{
  border-color: rgba(245,158,11,.30);
  background: rgba(245,158,11,.12);
  color: #f59e0b;
}

/* Nav scroller (Hindi page uses this class) */
.nav-scroller{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-scroller::-webkit-scrollbar{ display:none; }

/* Logo row */
.logo-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Hero badge */
.hero-badge{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.08);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  box-shadow: 0 16px 52px rgba(0,0,0,.24);
}
.hero-badge i{ color: var(--accent-3); }

/* Neon glow helper */
.neon-card{
  box-shadow:
    0 26px 90px rgba(0,0,0,.45),
    0 0 0 1px rgba(148,163,184,.10) inset;
}

/* Packages */
.package-card{ display: flex; flex-direction: column; gap: 12px; }
.package-card .btn{ margin-top: auto; }
.package-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Testimonials */
.testimonial-card .quote{ color: var(--text-muted); }
.testimonial-card .author{
  margin: 12px 0 0;
  color: var(--text-subtle);
  font-weight: 750;
}

/* Lifecycle section */
.lifecycle-grid{
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: start;
}
.lifecycle-flow{
  display: grid;
  gap: 14px;
}
.lifecycle-step{
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}
.step-label{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(148,163,184,.10);
  border: 1px solid rgba(148,163,184,.18);
  color: var(--text-main);
  font-weight: 900;
  grid-row: 1 / span 2;
}
.lifecycle-step h4{ margin: 0 0 4px; }
.lifecycle-step p{ margin: 0; color: var(--text-muted); }
.lifecycle-step h3,
.lifecycle-step h4,
.lifecycle-step p{
  grid-column: 2;
}
.lifecycle-side{ position: sticky; top: 110px; }
@media (max-width: 980px){
  .lifecycle-grid{ grid-template-columns: 1fr; }
  .lifecycle-side{ position: static; }
}

/* Diagnostic UI */
.option-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.option-list li{
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.08);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: transform .18s var(--ease-out), background .18s var(--ease-out), border-color .18s var(--ease-out);
}
.option-list li:hover{
  transform: translateY(-2px);
  background: rgba(148,163,184,.12);
  border-color: rgba(148,163,184,.28);
}
.diagnostic-result{
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(56,189,248,.22);
  background: rgba(56,189,248,.08);
  color: var(--text-main);
}
.diagnostic-cta{ margin-top: 14px; display:flex; gap: 10px; flex-wrap: wrap; }

/* Chatbot widget (if present) */
.chatbot-banner{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(148,163,184,.10);
  backdrop-filter: blur(14px);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: min(420px, calc(100vw - 36px));
  box-shadow: 0 18px 70px rgba(0,0,0,.35);
}
.chat-window{
  position: fixed;
  left: 18px;
  bottom: 86px;
  width: 340px;
  max-width: calc(100vw - 36px);
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 90px rgba(0,0,0,.45);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 61;
}
.chat-window.open{ display:flex; }
.chat-message{ padding: 10px 12px; display:flex; gap: 10px; }
.avatar{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(148,163,184,.12);
  border: 1px solid rgba(148,163,184,.18);
}
.bubble{
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(148,163,184,.08);
  color: var(--text-main);
  max-width: 240px;
}
.bot .bubble{
  background: rgba(56,189,248,.10);
  border-color: rgba(56,189,248,.18);
}
.chat-input-row{
  display: flex;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(148,163,184,.16);
}
.btn-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #07101f;
  border: 0;
  cursor: pointer;
}

/* Card variants */
.card-accent{
  border-color: rgba(56,189,248,.22);
  background: radial-gradient(700px 360px at 30% 20%, rgba(56,189,248,.12), transparent 60%),
              rgba(15,23,42,.72);
}
.card-premium{
  border-color: rgba(168,85,247,.22);
  background: radial-gradient(700px 360px at 70% 10%, rgba(168,85,247,.12), transparent 60%),
              rgba(15,23,42,.72);
}

/* Section alt */
.section-alt{ background: var(--bg-section-muted); }

/* Hero delay helpers */
.hero-enter.delay-1{ animation-delay: 0s; }

.note-card{
  border: 1px dashed rgba(148,163,184,.26);
  background: rgba(148,163,184,.06);
}
.diagnostic-score{
  font-weight: 950;
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin: 0;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.diagnostic-summary{ color: var(--text-muted); margin: 8px 0 0; }
.footer-left{ color: var(--text-main); }

.hero-content{ max-width: 720px; }


/* --- Additions for Start Here / Process / FAQ --- */
.card-actions{ margin-top: 14px; display:flex; gap:12px; flex-wrap:wrap; }
.center-actions{ margin-top: 16px; display:flex; justify-content:center; }
.step-pill{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:999px; background: rgba(255,255,255,0.08); margin-right:10px; font-weight:700; }
.faq-grid{ display:grid; gap:14px; }
.faq-item{ background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; }
.faq-item summary{ cursor:pointer; font-weight:700; list-style:none; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item p{ margin-top:10px; color: var(--muted); }
