/* ═══════════════════════════════════════════════
   iGram Digital Hub — Design System
   Version 1.0 | Phase 1
═══════════════════════════════════════════════ */

/* fonts loaded via <link> in each HTML page */

/* ── CSS Variables ─────────────────────────── */
:root {
  --purple-900: #1A0F4F;
  --purple-800: #26215C;
  --purple-700: #3C3489;
  --purple-600: #534AB7;
  --purple-400: #7F77DD;
  --purple-200: #AFA9EC;
  --purple-100: #CECBF6;
  --purple-50:  #EEEDFE;

  --gold-800:   #412402;
  --gold-700:   #633806;
  --gold-600:   #854F0B;
  --gold-500:   #BA7517;
  --gold-400:   #EF9F27;
  --gold-200:   #FAC775;
  --gold-100:   #FAEEDA;

  --green-800:  #173404;
  --green-700:  #27500A;
  --green-600:  #3B6D11;
  --green-400:  #639922;
  --green-200:  #97C459;
  --green-100:  #C0DD97;
  --green-50:   #EAF3DE;

  --teal-600:   #0F6E56;
  --teal-400:   #1D9E75;
  --teal-100:   #9FE1CB;
  --teal-50:    #E1F5EE;

  --red-600:    #A32D2D;
  --red-50:     #FCEBEB;

  --blue-700:   #0C447C;
  --blue-600:   #185FA5;
  --blue-50:    #E6F1FB;

  --gray-900:   #0F0F14;
  --gray-50:    #F8F6FF;
  --white:      #FFFFFF;
  --text-dark:  #1A1A2E;
  --text-mid:   #4A4A6A;
  --text-muted: #6B6B8A;
  --border:     #E8E4F0;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 4px rgba(60,52,137,0.08);
  --shadow-md:  0 4px 16px rgba(60,52,137,0.12);
  --shadow-lg:  0 8px 32px rgba(60,52,137,0.16);

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }
p  { font-size: 0.95rem; line-height: 1.7; color: var(--text-mid); }

/* ── Layout Utilities ──────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.flex    { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.88rem; transition: var(--transition);
  white-space: nowrap; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--purple-700); color: var(--white);
  box-shadow: 0 4px 14px rgba(60,52,137,0.3);
}
.btn-primary:hover { background: var(--purple-600); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(60,52,137,0.35); }
.btn-gold {
  background: var(--gold-500); color: var(--white);
  box-shadow: 0 4px 14px rgba(186,117,23,0.3);
}
.btn-gold:hover { background: var(--gold-600); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--purple-700);
  border: 1.5px solid var(--purple-200);
}
.btn-outline:hover { background: var(--purple-50); border-color: var(--purple-700); }
.btn-white {
  background: var(--white); color: var(--purple-700);
  font-weight: 600;
}
.btn-white:hover { background: var(--purple-50); }
.btn-outline-white {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-green { background: var(--green-600); color: var(--white); box-shadow: 0 4px 14px rgba(59,109,17,0.3); }
.btn-green:hover { background: var(--green-700); transform: translateY(-1px); }

/* ── Pills / Badges ────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 500; font-family: var(--font-display);
}
.pill-purple { background: var(--purple-50); color: var(--purple-700); }
.pill-green  { background: var(--green-50);  color: var(--green-700); }
.pill-gold   { background: var(--gold-100);  color: var(--gold-700); }
.pill-teal   { background: var(--teal-50);   color: var(--teal-600); }
.pill-red    { background: var(--red-50);    color: var(--red-600); }
.pill-blue   { background: var(--blue-50);   color: var(--blue-700); }

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-p { padding: 24px; }

/* ── Section Headers ───────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 12px; display: block;
}
.section-header h2 { color: var(--purple-800); margin-bottom: 14px; }
.section-header p  { max-width: 560px; margin: 0 auto; font-size: 1rem; }

/* ── Divider ───────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ── Forms ─────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--text-mid); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-dark); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--purple-600); box-shadow: 0 0 0 3px rgba(83,74,183,0.12); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Navigation ────────────────────────────── */
.topbar {
  background: var(--purple-800); padding: 6px 0;
  font-size: 0.78rem; color: var(--purple-100);
}
.topbar a { color: var(--gold-200); font-weight: 500; transition: var(--transition); }
.topbar a:hover { color: var(--gold-400); }

.navbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(60,52,137,0.08);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: 1160px; margin: 0 auto;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: var(--purple-700);
}
.brand-icon {
  width: 36px; height: 36px; background: var(--purple-700);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gold-200);
}
.navbar-nav {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.nav-link {
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; color: var(--text-mid);
  transition: var(--transition); position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--purple-700); background: var(--purple-50);
}
.navbar-actions { display: flex; align-items: center; gap: 8px; }

/* ── Hero ──────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, var(--purple-50) 0%, #E8F5E8 100%);
  position: relative; overflow: hidden;
}
.hero-gradient::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(83,74,183,0.06) 0%, transparent 70%);
}

/* ── Stats Strip ───────────────────────────── */
.stats-strip {
  background: var(--purple-800); padding: 32px 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--gold-200); line-height: 1;
}
.stat-lbl { font-size: 0.8rem; color: var(--purple-100); margin-top: 4px; }

/* ── Service Cards ─────────────────────────── */
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 20px;
  transition: var(--transition); cursor: pointer;
  text-align: center; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-color, var(--purple-600));
  transform: scaleX(0); transition: var(--transition);
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 22px;
}
.service-card h4 { font-family: var(--font-display); font-size: 0.92rem; color: var(--text-dark); margin-bottom: 4px; }
.service-card p  { font-size: 0.78rem; color: var(--text-muted); }

/* ── Process Steps ─────────────────────────── */
.step-connector {
  display: flex; align-items: center; gap: 0;
  position: relative;
}
.step-item { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--purple-700); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; position: relative; z-index: 1;
}
.step-line {
  height: 2px; background: var(--border);
  flex: 1; margin-top: -22px; position: relative; z-index: 0;
}

/* ── CTA Banner ────────────────────────────── */
.cta-banner {
  background: var(--purple-800); border-radius: var(--radius-xl);
  padding: 48px; position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--gray-900); color: #9988CC;
  padding: 64px 0 0;
}
.footer-brand h3 { font-family: var(--font-display); color: var(--white); margin-bottom: 12px; }
.footer-heading {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-200); margin-bottom: 16px;
}
.footer-link {
  display: block; padding: 4px 0; font-size: 0.85rem;
  color: #9988CC; transition: var(--transition);
}
.footer-link:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0; margin-top: 48px;
  font-size: 0.8rem;
}
.social-btn {
  width: 34px; height: 34px; background: rgba(255,255,255,0.06);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #9988CC; transition: var(--transition); font-size: 15px;
}
.social-btn:hover { background: var(--purple-700); color: var(--white); }

/* ── Module Hero ───────────────────────────── */
.module-hero {
  padding: 56px 0; position: relative; overflow: hidden;
}

/* ── Pricing Table ─────────────────────────── */
.price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--radius-md);
  transition: var(--transition);
}
.price-row:hover { background: var(--green-50); }
.price-row + .price-row { border-top: 1px solid var(--border); }

/* ── Notification Toast ────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--purple-700); color: var(--white);
  padding: 14px 20px; border-radius: var(--radius-md);
  font-size: 0.88rem; font-weight: 500; box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0;
  transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; align-items: center; gap: 10px;
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── ai.Sathi Widget ───────────────────────── */
.ai-widget {
  position: fixed; bottom: 28px; right: 28px; z-index: 998;
}
.ai-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--purple-700); color: var(--white);
  font-size: 24px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: var(--transition);
  position: relative;
}
.ai-btn:hover { background: var(--purple-600); transform: scale(1.05); }
.ai-btn-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--purple-400); opacity: 0;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.3);  opacity: 0; }
}
.ai-tooltip {
  position: absolute; bottom: 70px; right: 0;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 14px 16px;
  width: 220px; border: 1px solid var(--border);
  font-size: 0.83rem; color: var(--text-mid);
  transform: scale(0.9) translateY(8px); opacity: 0;
  transition: var(--transition); pointer-events: none;
}
.ai-tooltip.show { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.ai-tooltip strong { display: block; color: var(--purple-700); font-family: var(--font-display); margin-bottom: 4px; }

/* ── Animations ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

.animate-up { animation: fadeUp 0.6s ease both; }
.animate-up-1 { animation: fadeUp 0.6s 0.1s ease both; }
.animate-up-2 { animation: fadeUp 0.6s 0.2s ease both; }
.animate-up-3 { animation: fadeUp 0.6s 0.3s ease both; }
.animate-up-4 { animation: fadeUp 0.6s 0.4s ease both; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar-nav { display: none; }
  .mobile-menu-btn { display: flex !important; }
  .section { padding: 56px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .cta-banner { padding: 32px 24px; }
  .step-connector { flex-direction: column; gap: 16px; }
  .step-line { display: none; }
  .hero-visual { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-lg { width: 100%; justify-content: center; }
}
