/* ═══════════════════════════════════════════════════════════════
   HumanIQ Technologies — Main Stylesheet
   © 2026 HumanIQ Technologies Pvt. Ltd.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:          #0E0E0E;
  --bg-alt:      #0A0A0A;
  --surf:        #1A1A1A;
  --raised:      #212121;
  --border:      rgba(255,255,255,0.08);
  --border-md:   rgba(255,255,255,0.14);
  --teal:        #26A69A;
  --teal-dim:    rgba(38,166,154,0.10);
  --teal-border: rgba(38,166,154,0.28);
  --gold:        #E9C46A;
  --gold-dim:    rgba(233,196,106,0.09);
  --gold-border: rgba(233,196,106,0.28);
  --text:        #F3F3F3;
  --muted:       #9A9A9A;
  --dim:         #CFCFCF;
  --red:         #EF5350;
  --blue:        #42A5F5;
  --green:       #66BB6A;
  --purple:      #AB47BC;
  --orange:      #FFA726;
  --nav-h:       68px;
  --f:           'Inter','Segoe UI',system-ui,sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--f); overflow-x: hidden; line-height: 1.5; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.eyebrow {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 10px; display: block;
}
.eyebrow-gold  { color: var(--gold); }
.eyebrow-center { text-align: center; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.4px; font-weight: 800; }
.lead { font-size: clamp(15px,1.4vw,17px); color: var(--dim); line-height: 1.75; }
.t-teal   { color: var(--teal);  }
.t-gold   { color: var(--gold);  }
.t-muted  { color: var(--muted); }
.t-dim    { color: var(--dim);   }
.caption  { font-size: 12px; color: var(--muted); line-height: 1.65; }
.body-sm  { font-size: 14px; color: var(--dim);   line-height: 1.65; }

/* ── DIVIDER ──────────────────────────────────────────────── */
.divider        { width: 40px; height: 3px; background: linear-gradient(90deg,var(--teal),var(--gold)); border-radius: 2px; margin: 14px 0; }
.divider-center { margin: 14px auto; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.inner           { max-width: 1100px; margin: 0 auto; width: 100%; }
section          { padding: 96px 40px; }
.section-alt     { background: var(--bg-alt); }
.section-center  { text-align: center; }
.page-hero {
  padding: 100px 40px 84px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 50% at 80% 40%, rgba(38,166,154,0.07), transparent),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(233,196,106,0.05), transparent),
    var(--bg);
}
.page-hero h1  { font-size: clamp(28px,3.8vw,52px); max-width: 740px; }
.page-hero .lead { max-width: 640px; }

/* ── GRID ─────────────────────────────────────────────────── */
.g2      { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.g3      { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.g4      { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.g-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; align-items: center; }
.g-split-wide { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }

/* ── CARDS ────────────────────────────────────────────────── */
.card        { background: var(--surf); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.card-teal   { border-color: var(--teal-border); }
.card-gold   { border-color: var(--gold-border); }
.card-raised { background: var(--raised); }
.card-lift   { transition: transform .2s, box-shadow .2s; }
.card-lift:hover                { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.45); }
.card-teal.card-lift:hover      { box-shadow: 0 16px 48px rgba(38,166,154,0.12); }
.card-gold.card-lift:hover      { box-shadow: 0 16px 48px rgba(233,196,106,0.12); }

/* ── ICON BOX ─────────────────────────────────────────────── */
.icon-box  { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex-shrink: 0; }
.ib-teal   { background: var(--teal-dim);            color: var(--teal);   }
.ib-gold   { background: var(--gold-dim);            color: var(--gold);   }
.ib-surf   { background: var(--surf); border: 1px solid var(--border); color: var(--dim); }
.ib-blue   { background: rgba(66,165,245,0.10);      color: var(--blue);   }
.ib-purple { background: rgba(171,71,188,0.10);      color: var(--purple); }

/* ── TAGS ─────────────────────────────────────────────────── */
.tag        { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.tag-teal   { background: var(--teal-dim); color: var(--teal);  border: 1px solid var(--teal-border); }
.tag-gold   { background: var(--gold-dim); color: var(--gold);  border: 1px solid var(--gold-border); }
.tag-muted  { background: var(--surf);     color: var(--muted); border: 1px solid var(--border); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn         { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 40px; font-family: var(--f); font-size: 14px; font-weight: 700; letter-spacing: 0.3px; text-decoration: none; border: none; cursor: pointer; transition: opacity .2s, transform .15s; white-space: nowrap; }
.btn:hover   { opacity: 0.88; transform: translateY(-1px); }
.btn-gold    { background: linear-gradient(135deg,var(--gold),#c9941a); color: #0E0E0E; box-shadow: 0 4px 20px rgba(233,196,106,0.3); }
.btn-teal    { background: var(--teal-dim); color: var(--teal); border: 1px solid var(--teal-border); }
.btn-outline { background: transparent; color: var(--dim); border: 1px solid var(--border-md); }
.btn-outline:hover { border-color: rgba(255,255,255,0.28); color: var(--text); }
.btn-row     { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row-center { justify-content: center; }

/* ── STATS ────────────────────────────────────────────────── */
.stats-row   { display: flex; gap: 48px; flex-wrap: wrap; }
.stat .num   { font-size: clamp(28px,3vw,42px); font-weight: 900; letter-spacing: -1.5px; line-height: 1; }
.stat .lbl   { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── CHECK LIST ───────────────────────────────────────────── */
.check-list    { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--dim); line-height: 1.55; }
.check-list li::before { content: '✓'; color: var(--teal); font-weight: 800; flex-shrink: 0; margin-top: 1px; }

/* ── STEPS ────────────────────────────────────────────────── */
.step          { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num      { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-dim); border: 1px solid var(--teal-border); color: var(--teal); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step h4       { font-size: 15px; margin-bottom: 5px; }
.step p        { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── FORM ─────────────────────────────────────────────────── */
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; background: #1C1C1C; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 16px; color: var(--text); font-family: var(--f);
  font-size: 14px; outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus,
select:focus    { border-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea        { resize: vertical; min-height: 130px; }
label           { display: block; font-size: 12px; font-weight: 600; color: var(--dim); margin-bottom: 6px; }
.form-row       { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group     { display: flex; flex-direction: column; gap: 16px; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
  background: rgba(10,10,10,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; height: 100%; padding: 0 40px;
  display: flex; align-items: center;
}
.nav-brand    { display: flex; align-items: baseline; gap: 2px; text-decoration: none; flex-shrink: 0; margin-right: auto; }
.brand-h      { font-size: 19px; font-weight: 900; color: var(--teal);  letter-spacing: -0.5px; }
.brand-iq     { font-size: 19px; font-weight: 900; color: var(--gold);  letter-spacing: -0.5px; }
.brand-tech   { font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 1.5px; margin-left: 8px; text-transform: uppercase; }
.nav-links    { display: flex; gap: 2px; }
.nav-links a  { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 14px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta      { background: linear-gradient(135deg,var(--gold),#c9941a); color: #0E0E0E; font-weight: 700; font-size: 13px; padding: 9px 22px; border-radius: 40px; text-decoration: none; white-space: nowrap; transition: opacity .2s; margin-left: 24px; flex-shrink: 0; }
.nav-cta:hover { opacity: 0.88; }
.nav-toggle   { display: none; background: none; border: 1px solid var(--border); color: var(--text); font-size: 18px; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0; margin-left: 16px; }
.nav-mobile   { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(10,10,10,0.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; gap: 2px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; font-weight: 500; color: var(--dim); text-decoration: none; padding: 10px 14px; border-radius: 8px; transition: background .15s; }
.nav-mobile a:hover { background: var(--surf); color: var(--text); }
.nav-mobile .m-cta { margin-top: 10px; background: linear-gradient(135deg,var(--gold),#c9941a); color: #0E0E0E; font-weight: 700; text-align: center; border-radius: 10px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer        { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 72px 40px 36px; }
.footer-inner  { max-width: 1100px; margin: 0 auto; }
.footer-top    { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 48px; margin-bottom: 48px; }
.footer-brand .name { font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.footer-brand p     { font-size: 13px; color: var(--muted); line-height: 1.75; max-width: 270px; margin-bottom: 16px; }
.footer-col h5      { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer-col ul      { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a       { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.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: 12px; color: var(--muted); }

/* ── CTA BANNER ───────────────────────────────────────────── */
.cta-banner      { padding: 96px 40px; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(38,166,154,0.07), transparent); border-top: 1px solid var(--border); }
.cta-banner .inner { text-align: center; max-width: 620px; }
.cta-banner h2   { font-size: clamp(24px,3vw,38px); margin-bottom: 14px; }
.cta-banner p    { font-size: 15px; color: var(--dim); line-height: 1.75; margin-bottom: 28px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  section       { padding: 72px 32px; }
  .page-hero    { padding: 80px 32px 64px; }
  .footer       { padding: 56px 32px 28px; }
  .footer-top   { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
  .g-split      { grid-template-columns: 1fr; gap: 48px; }
  .g-split-wide { grid-template-columns: 1fr; }
  .g2           { grid-template-columns: 1fr; }
  .g3           { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .g4           { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .stats-row    { gap: 28px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle   { display: flex; }
  .cta-banner   { padding: 64px 32px; }
  .form-row     { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section       { padding: 56px 20px; }
  .page-hero    { padding: 64px 20px 48px; }
  .footer       { padding: 48px 20px 24px; }
  .footer-top   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .g3           { grid-template-columns: 1fr; }
  .g4           { grid-template-columns: 1fr; }
  .cta-banner   { padding: 56px 20px; }
  .stats-row    { gap: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

/* ── Scroll-reveal base ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(0.16,1,0.3,1),
              transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Directional variants */
.reveal-left  { transform: translateX(-50px) translateY(0); }
.reveal-right { transform: translateX(50px) translateY(0);  }
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: translateX(0) translateY(0); }

/* Scale-in */
.reveal-scale { transform: scale(0.88) translateY(0); }
.reveal-scale.visible { opacity: 1; transform: scale(1) translateY(0); }

/* Stagger children — cards in grids */
.stagger > .reveal:nth-child(1)  { transition-delay: 0s;    }
.stagger > .reveal:nth-child(2)  { transition-delay: 0.15s;  }
.stagger > .reveal:nth-child(3)  { transition-delay: 0.3s;  }
.stagger > .reveal:nth-child(4)  { transition-delay: 0.45s;  }
.stagger > .reveal:nth-child(5)  { transition-delay: 0.6s;  }
.stagger > .reveal:nth-child(6)  { transition-delay: 0.75s;  }

/* ── Hero entrance ──────────────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroDivider {
  from { width: 0; }
  to   { width: 40px; }
}
@keyframes heroTagSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero .eyebrow,
.page-hero .eyebrow      { animation: heroFadeUp 0.9s ease-out both; }
.hero h1,
.page-hero h1            { animation: heroFadeUp 1s ease-out 0.15s both; }
.hero .divider,
.page-hero .divider       { animation: heroDivider 0.7s ease-out 0.4s both; }
.hero .lead,
.page-hero .lead          { animation: heroFadeUp 1s ease-out 0.35s both; }
.hero .btn-row            { animation: heroFadeUp 0.9s ease-out 0.55s both; }
.hero .product-callout    { animation: heroFadeUp 0.9s ease-out 0.7s both; }
.hero .tag                { animation: heroTagSlide 0.7s ease-out both; }
.hero .tag:nth-child(1)   { animation-delay: 0.4s; }
.hero .tag:nth-child(2)   { animation-delay: 0.52s; }
.hero .tag:nth-child(3)   { animation-delay: 0.64s; }
.hero .tag:nth-child(4)   { animation-delay: 0.76s; }

/* ── Stats counter pulse ────────────────────────────────── */
@keyframes countPop {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
.stat.visible .num {
  animation: countPop 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.stat.visible:nth-child(1) .num { animation-delay: 0s;   }
.stat.visible:nth-child(2) .num { animation-delay: 0.18s; }
.stat.visible:nth-child(3) .num { animation-delay: 0.36s; }
.stat.visible:nth-child(4) .num { animation-delay: 0.54s; }

/* ── Icon box pulse on reveal ───────────────────────────── */
@keyframes iconPop {
  0%   { transform: scale(0.5) rotate(-8deg); opacity: 0; }
  70%  { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.card.visible .icon-box {
  animation: iconPop 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}

/* ── Divider draw-in on reveal ──────────────────────────── */
.reveal .divider {
  width: 0;
  transition: width 0.7s ease-out 0.4s;
}
.reveal.visible .divider {
  width: 40px;
}

/* ── Step entries stagger ───────────────────────────────── */
.step.reveal:nth-child(1)  { transition-delay: 0s;   }
.step.reveal:nth-child(2)  { transition-delay: 0.12s; }
.step.reveal:nth-child(3)  { transition-delay: 0.24s; }
.step.reveal:nth-child(4)  { transition-delay: 0.36s; }
.step.reveal:nth-child(5)  { transition-delay: 0.48s; }

/* ── Check-list items fade in ───────────────────────────── */
.check-list.visible li {
  animation: heroFadeUp 0.6s ease-out both;
}
.check-list.visible li:nth-child(1) { animation-delay: 0s;   }
.check-list.visible li:nth-child(2) { animation-delay: 0.1s; }
.check-list.visible li:nth-child(3) { animation-delay: 0.2s; }
.check-list.visible li:nth-child(4) { animation-delay: 0.3s; }
.check-list.visible li:nth-child(5) { animation-delay: 0.4s; }

/* ── CTA banner glow pulse ──────────────────────────────── */
@keyframes subtleGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(38,166,154,0); }
  50%      { box-shadow: 0 0 60px rgba(38,166,154,0.08); }
}
.cta-banner.visible {
  animation: subtleGlow 3s ease-in-out infinite;
}

/* ── Floating gradient orb in hero ──────────────────────── */
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -15px) scale(1.05); }
  66%      { transform: translate(-10px, 10px) scale(0.97); }
}
.hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38,166,154,0.08) 0%, transparent 70%);
  top: 10%; right: 5%;
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,196,106,0.06) 0%, transparent 70%);
  bottom: 15%; left: 8%;
  animation: floatOrb 10s ease-in-out 2s infinite;
  pointer-events: none;
}

/* ── Smooth card hover enhancements ─────────────────────── */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.card-lift:hover .icon-box {
  transform: scale(1.08);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Button ripple shine ────────────────────────────────── */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-gold:hover::after {
  left: 120%;
}

/* ── Nav link underline slide ───────────────────────────── */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: left 0.3s ease, right 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  left: 14px; right: 14px;
}

/* ── Reduce motion for accessibility ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
