/* Cognitive IT Blends — brand colors from source deck */
:root {
  --navy: #1c2b42;
  --blue-deep: #45689c;
  --blue-mid: #3c8fca;
  --blue-light: #62d4ff;
  --blue-bg: #f0f6ff;
  --off-white: #fffefb;
  --white: #ffffff;
  --ink: #1e2733;
  --ink-soft: #4d5a6b;
  --radius: 16px;
  --shadow: 0 20px 40px -20px rgba(28, 43, 66, 0.25);
  --container: 1180px;
  --gradient: linear-gradient(120deg, var(--blue-deep), var(--blue-mid) 55%, var(--blue-light));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Animate.css entrance elements stay hidden until JS triggers them.
   Some animate.css keyframes (e.g. zoomIn) have no 100% frame, so fill-mode
   doesn't hold opacity:1 at animation end — visibility must be controlled
   by this class, removed by JS, not by animate.css's own keyframe fill. */
.pre-animate { opacity: 0; }

h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: "Poppins", "Inter", sans-serif; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--blue-mid); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 254, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 43, 66, 0.08);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(28, 43, 66, 0.4); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
a.brand { margin-top: 10px; }
.brand-logo { height: 150px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--blue-mid); }
.nav-cta {
  background: var(--gradient);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(60, 143, 202, 0.6); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 14px 28px -12px rgba(60, 143, 202, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-ghost {
  color: var(--navy);
  border: 2px solid rgba(69, 104, 156, 0.3);
}
.btn-ghost:hover { border-color: var(--blue-mid); color: var(--blue-mid); }
.btn-light {
  background: var(--white);
  color: var(--blue-deep);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -12px rgba(0,0,0,0.35); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(98, 212, 255, 0.15), transparent 60%), var(--off-white);
  padding: 96px 0 80px;
}
.hero-wave {
  position: absolute;
  top: -10%;
  right: -18%;
  width: 60%;
  min-width: 480px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.ai-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}
.hero-slider {
  position: relative;
  z-index: 1;
  min-height: clamp(500px, 62vh, 620px);
  padding-bottom: 56px;
}
.hero-slide {
  position: absolute;
  inset: 0 0 56px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Slider nav: arrows + dots, pinned to the bottom of the slider */
.hero-nav {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 3;
}
.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(69, 104, 156, 0.25);
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(6px);
}
.hero-arrow:hover { background: var(--white); color: var(--blue-mid); transform: translateY(-2px); }
.hero-dots { display: flex; gap: 10px; }
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(69, 104, 156, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.is-active { background: var(--gradient); transform: scale(1.3); }
.eyebrow {
  display: inline-block;
  color: var(--blue-mid);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.hero-sub .sep { color: var(--blue-light); margin: 0 4px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-media { display: flex; justify-content: center; perspective: 1200px; }

.hero-tilt {
  position: relative;
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}
.hero-img {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(28, 43, 66, 0.18));
  transform: translateZ(20px);
}

/* Pulsing tech rings behind the hero image, sci-fi "scan" feel */
.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(60, 143, 202, 0.35);
  transform: translate(-50%, -50%) translateZ(-10px);
  pointer-events: none;
  z-index: 1;
}
.hero-ring-1 { width: 78%; height: 78%; animation: ring-pulse 4.5s ease-in-out infinite; }
.hero-ring-2 { width: 96%; height: 96%; border-color: rgba(98, 212, 255, 0.25); animation: ring-pulse 4.5s ease-in-out infinite 1.2s; }
@keyframes ring-pulse {
  0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) translateZ(-10px) scale(0.96); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) translateZ(-10px) scale(1.02); }
}

/* Floating glass chips that sell the "AI product" feel */
.hero-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(98, 212, 255, 0.4);
  border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(28, 43, 66, 0.3);
  backdrop-filter: blur(6px);
  transform: translateZ(45px);
  animation: chip-float 5s ease-in-out infinite;
  pointer-events: none;
}
.hero-chip i { color: var(--blue-mid); }
.chip-1 { top: 6%; left: -6%; animation-delay: 0s; }
.chip-2 { bottom: 12%; right: -8%; animation-delay: 1.2s; }
.chip-3 { top: 58%; left: -12%; animation-delay: 2.4s; }
@keyframes chip-float {
  0%, 100% { transform: translateZ(45px) translateY(0); }
  50% { transform: translateZ(45px) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ring, .hero-chip { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--blue-bg); }
.section-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 14px;
}
.lede { font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.callout {
  margin-top: 28px;
  padding: 22px 26px;
  border-left: 4px solid var(--blue-mid);
  background: var(--blue-bg);
  border-radius: 0 12px 12px 0;
  color: var(--navy);
  font-weight: 600;
}
.section-alt .callout { background: var(--white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.two-col p { font-size: 1.05rem; }

/* Check list */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.check-list li {
  position: relative;
  padding: 16px 20px 16px 48px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 20px -14px rgba(28,43,66,0.3);
  color: var(--ink);
  font-weight: 500;
}
.check-list li::before {
  content: "✕";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #c0504d;
  font-weight: 700;
}

/* Pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}
.pill {
  padding: 14px 24px;
  background: var(--white);
  border-radius: 999px;
  font-weight: 600;
  color: var(--blue-deep);
  box-shadow: 0 8px 20px -14px rgba(28,43,66,0.3);
  border: 1px solid rgba(69,104,156,0.15);
}

/* Value grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.value-card {
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue-mid);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-6px); }
.value-card h3 { color: var(--blue-deep); margin-bottom: 6px; }
.value-card p:last-child { margin-bottom: 0; }
.section-alt .value-card { background: var(--white); }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gradient);
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card ul { margin-top: 12px; }
.service-card li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px dashed rgba(28,43,66,0.1);
}
.service-card li:last-child { border-bottom: none; }
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
}

/* SDLC flow */
.sdlc-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.sdlc-step {
  padding: 16px 22px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 12px 24px -14px rgba(60,143,202,0.5);
}
.sdlc-step i { margin-right: 8px; }
.sdlc-arrow {
  color: var(--blue-mid);
  font-weight: 700;
  font-size: 1.3rem;
}

/* Triptych */
.triptych {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.triptych-card {
  background: var(--blue-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.triptych-card h3 { color: var(--blue-deep); }
.triptych-sub {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.triptych-card li {
  padding: 8px 0 8px 20px;
  position: relative;
  color: var(--ink-soft);
}
.triptych-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-mid);
}

/* ---------- Parallax banners ---------- */
.parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  background: var(--navy);
}
.parallax-bg {
  position: absolute;
  inset: -20% 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(98, 212, 255, 0.28), transparent 55%),
    radial-gradient(circle at 82% 72%, rgba(60, 143, 202, 0.32), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 40px),
    linear-gradient(135deg, #17233a, var(--navy) 55%, var(--blue-deep));
  will-change: transform;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 35, 58, 0.15), rgba(23, 35, 58, 0.55));
}
.parallax-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.parallax-quote {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw + 0.6rem, 2.2rem);
  line-height: 1.4;
  color: var(--white);
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- CTA / Contact ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  background: linear-gradient(135deg, #17233a, var(--navy) 40%, var(--blue-deep));
  color: var(--white);
}
.cta-wave {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 55%;
  min-width: 420px;
  opacity: 0.35;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.section-tag-light { color: var(--blue-light); }
h2.light { color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0 40px;
}
.contact-item h4 {
  color: var(--blue-light);
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-item h4 i { margin-right: 6px; width: 1.1em; text-align: center; }
.contact-item p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.contact-item a { color: var(--white); font-weight: 600; }
.contact-item a:hover { color: var(--blue-light); }

/* ---------- Legal / long-form content ---------- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content .updated { color: var(--ink-soft); font-weight: 600; margin-bottom: 32px; }
.legal-content h2 { font-size: 1.35rem; margin-top: 40px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-content ul li { color: var(--ink-soft); padding: 4px 0; }
.legal-content .contact-block p { margin-bottom: 4px; }
.legal-content .callout { margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #14203380;
  background: var(--navy);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { height: 34px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-inner p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Fixed-height crossfade doesn't fit stacked mobile content well;
     fall back to plain show/hide so height follows the active slide. */
  .hero-slider { min-height: 0; padding-bottom: 0; }
  .hero-slide {
    position: relative;
    inset: auto;
    display: none;
    grid-template-columns: 1fr;
    text-align: center;
    opacity: 1;
    transition: none;
  }
  .hero-slide.is-active { display: grid; }
  .hero-nav {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    justify-content: center;
    margin-top: 28px;
  }
  .hero-actions { justify-content: center; }
  .hero-media { order: -1; }
  .hero-img { max-width: 320px; }
  .hero-chip { display: none; }
  .ai-net { opacity: 0.4; }
  .two-col { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .parallax-quote { padding: 0 8px; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--off-white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(28,43,66,0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 10px 0; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .sdlc-flow { flex-direction: column; align-items: stretch; }
  .sdlc-arrow { transform: rotate(90deg); text-align: center; }
}

/* ---------- Back to top (jquery.scrollUp) ---------- */
#scrollUp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  right: 24px;
  bottom: 24px;
  background: var(--gradient);
  color: var(--white);
  font-size: 1.1rem;
  border-radius: 50%;
  box-shadow: 0 12px 24px -10px rgba(28, 43, 66, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#scrollUp:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -10px rgba(28, 43, 66, 0.55); }
