/* ============================================================================
   Inteople v2 — Homepage components
   Header · Hero · What-we-do · Capabilities · Products · Industries ·
   Approach · Case studies · Leadership · CTA · Footer
   ========================================================================== */

/* ============================ HEADER ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(14, 22, 38, 0);
  transition:
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease);
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 74px;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow:
    0 1px 0 var(--line),
    var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  font-size: 1.16rem;
  color: var(--on-dark);
}

.site-header.scrolled .brand {
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 30px);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--on-dark);
  opacity: 0.85;
  transition:
    opacity var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.nav-links a:hover {
  opacity: 1;
}

.site-header.scrolled .nav-links a {
  color: var(--ink-2);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
}

.site-header.scrolled .nav-toggle {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  margin: auto;
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    padding: var(--sp-3) clamp(20px, 5vw, 40px) var(--sp-5);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform var(--dur) var(--ease);
    border-top: 1px solid var(--line);
  }

  .nav-links.open {
    transform: none;
  }

  .nav-links a {
    color: var(--ink-2);
    opacity: 1;
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta .btn-primary {
    display: none;
  }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--on-dark);
  overflow: hidden;
  margin-top: -74px;
  padding-top: calc(74px + clamp(48px, 6vw, 96px));
  padding-bottom: clamp(64px, 7vw, 120px);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  /* fade into page */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  color: #fff;
  font-size: var(--fs-display);
  font-weight: var(--fw-black);
  line-height: 1.1;
  margin: var(--sp-5) 0 var(--sp-5);
}

.hero h1 .grad-text {
  background: var(--grad-text);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  color: var(--on-dark-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--dark-line);
}

.hero-trust .ht {
  display: flex;
  flex-direction: column;
}

.hero-trust b {
  font-size: 1.4rem;
  font-weight: var(--fw-black);
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-trust span {
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
}

/* Hero console card */
.hero-visual {
  position: relative;
}

.console {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  backdrop-filter: blur(10px);
}

.console-top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--dark-line);
}

.console-core {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
}

.console-core span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.55;
  animation: pulseRing 3.4s var(--ease) infinite;
}

.console-core span:nth-child(2) {
  animation-delay: 1.3s;
}

.console-core i {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

@keyframes pulseRing {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.console-id b {
  display: block;
  font-size: var(--fs-sm);
  color: #fff;
}

.console-id span {
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
}

.console-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: #8ff0c4;
}

.console-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.console-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
}

.kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
}

.kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-dark-muted);
}

.kpi-num {
  display: block;
  font-size: 1.4rem;
  font-weight: var(--fw-black);
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.kpi-trend {
  font-size: 0.72rem;
  color: #34d399;
}

.console-chart {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
}

.console-chart-head {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
  margin-bottom: var(--sp-3);
}

.spark {
  width: 100%;
  height: 70px;
}

.spark path.line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2.4s var(--ease-out) forwards 0.3s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.console-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.console-tags span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-line);
  color: var(--on-dark-muted);
}

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 480px;
  }
}

/* ============================ WHAT WE DO ============================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.intro-statement {
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.intro-statement b {
  color: var(--accent-ink);
}

.intro-points {
  display: grid;
  gap: var(--sp-4);
}

.intro-point {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}

.intro-point .ic {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.intro-point .ic svg {
  width: 22px;
  height: 22px;
}

.intro-point h4 {
  margin-bottom: 2px;
}

.intro-point p {
  font-size: var(--fs-sm);
}

@media (max-width: 820px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================ CAPABILITIES ============================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.cap {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--r);
  background: var(--dark-surface);
  border: 1px solid var(--dark-line);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.cap:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 80, 0.5);
}

.cap-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-2);
}

.cap .ic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255, 106, 80, 0.12);
  color: var(--accent-2);
  margin: var(--sp-4) 0;
}

.cap .ic svg {
  width: 24px;
  height: 24px;
}

.cap h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-3);
}

.cap p {
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.cap-tags span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--on-dark-muted);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-sm);
}

@media (max-width: 980px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================ PRODUCTS ECOSYSTEM ============================ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.prod {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.prod:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.prod.featured {
  grid-column: span 2;
  flex-direction: row;
}

.prod-media {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}

.prod.featured .prod-media {
  flex: 1.1;
}

.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform var(--dur-slow) var(--ease);
}

.prod:hover .prod-media img {
  transform: scale(1.04);
}

.prod-badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
}

.prod-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.prod.featured .prod-body {
  flex: 1;
  justify-content: center;
}

.prod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.prod-head h3 {
  font-size: var(--fs-h4);
}

.prod-domain {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--accent-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prod p {
  font-size: var(--fs-sm);
}

.prod-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--accent-ink);
  margin-top: auto;
}

.prod-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.prod:hover .prod-link svg {
  transform: translateX(4px);
}

@media (max-width: 820px) {
  .prod-grid {
    grid-template-columns: 1fr;
  }

  .prod.featured {
    grid-column: auto;
    flex-direction: column;
  }
}

/* ============================ INDUSTRIES ============================ */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.ind {
  padding: var(--sp-5);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.ind:hover {
  transform: translateY(-4px);
  border-color: var(--accent-3);
}

.ind .ic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--brand);
  margin-bottom: var(--sp-4);
}

.ind .ic svg {
  width: 24px;
  height: 24px;
}

.ind h4 {
  margin-bottom: var(--sp-2);
}

.ind p {
  font-size: var(--fs-sm);
}

@media (max-width: 980px) {
  .ind-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ind-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================ APPROACH + STATS ============================ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--r);
  background: var(--dark-surface);
  border: 1px solid var(--dark-line);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: var(--fw-black);
  color: var(--accent-2);
  opacity: 0.55;
}

.step h4 {
  margin: var(--sp-3) 0 var(--sp-2);
}

.step p {
  font-size: var(--fs-sm);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--dark-line);
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: var(--fw-black);
  color: #fff;
  letter-spacing: -0.03em;
}

.stat span {
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}

@media (max-width: 880px) {
  .approach-grid,
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================ CASE STUDIES ============================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.case {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.case-domain {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
}

.case-metric {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: var(--sp-3) 0 2px;
}

.case-metric small {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--muted);
}

.case h3 {
  font-size: var(--fs-h4);
  margin: var(--sp-4) 0 var(--sp-2);
}

.case p {
  font-size: var(--fs-sm);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.case-tags span {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

@media (max-width: 920px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================ LEADERSHIP ============================ */
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.quote {
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.quote-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: var(--sp-3);
}

.quote p {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

.quote-who {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.quote-who img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-who b {
  display: block;
  color: var(--ink);
}

.quote-who span {
  font-size: var(--fs-sm);
  color: var(--muted);
}

@media (max-width: 820px) {
  .lead-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================ CTA ============================ */
.cta {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--grad-hero);
  color: var(--on-dark);
  padding: clamp(40px, 5vw, 72px);
  overflow: hidden;
  text-align: center;
}

.cta h2 {
  color: #fff;
  max-width: 640px;
  margin: var(--sp-4) auto;
}

.cta p {
  max-width: 520px;
  margin: 0 auto var(--sp-6);
  color: var(--on-dark-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

/* ============================ FOOTER ============================ */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark);
  padding-block: var(--sp-8) var(--sp-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-6);
}

.footer-brand p {
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
  margin: var(--sp-4) 0;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer-col a {
  display: block;
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
  padding: 6px 0;
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover {
  color: var(--accent-2);
}

.socials {
  display: flex;
  gap: var(--sp-3);
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--dark-line);
  color: var(--on-dark);
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--dark-line);
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}

.footer-legal a {
  color: var(--on-dark-muted);
  transition: color var(--dur) var(--ease);
}

.footer-legal a:hover {
  color: #fff;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
