/* InnoCoreLabs — design tokens */
:root {
  --bg: #F7F8FB;
  --bg-2: #EEF2F9;
  --ink: #0F1B2D;
  --ink-2: #2B3A52;
  --muted: #5B6B85;
  --line: rgba(15, 27, 45, 0.08);
  --line-2: rgba(15, 27, 45, 0.14);
  --brand: #A9C8F5;        /* logo powder blue */
  --brand-2: #7BA8EA;      /* mid */
  --brand-3: #4A7BC8;      /* deep CTA */
  --brand-ink: #1E3A6B;
  --accent: #F0C9B4;       /* soft warm accent */
  --card: #FFFFFF;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,27,45,.04), 0 1px 0 rgba(15,27,45,.02);
  --shadow-md: 0 10px 30px -12px rgba(30,58,107,.18), 0 2px 6px rgba(15,27,45,.05);
  --shadow-lg: 0 30px 60px -20px rgba(30,58,107,.22), 0 8px 20px -8px rgba(15,27,45,.08);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- Layout ---- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ---- Typography ---- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-3);
  font-weight: 500;
}
.lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 620px;
  line-height: 1.55;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(247, 248, 251, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  font-size: 14.5px;
  color: var(--ink-2);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--brand-3); }
.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--brand-3); transform: translateY(-1px); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-canvas, #hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(123,168,234,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(123,168,234,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 75%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-copy .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-3);
  box-shadow: 0 0 0 4px rgba(74,123,200,.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(74,123,200,0); } }
.hero h1 {
  font-size: clamp(44px, 6.5vw, 84px);
  margin-bottom: 28px;
}
.hero h1 .gradient {
  background: linear-gradient(100deg, var(--brand-3) 0%, var(--brand-2) 50%, var(--brand-ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { margin-bottom: 36px; font-size: 20px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand-3); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: rgba(255,255,255,.7);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-secondary:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn svg { width: 16px; height: 16px; }
.hero-stage {
  position: relative;
  width: 100%;
  height: 520px;
  max-width: 520px;
  margin-left: auto;
  justify-self: end;
}
@media (max-width: 960px) { .hero-stage { margin: 40px auto 0; justify-self: center; height: 400px; } }

/* pill row */
.pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 42px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(169, 200, 245, 0.22);
  color: var(--brand-ink);
  border: 1px solid rgba(123, 168, 234, .28);
}

/* ---- Marquee ---- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  background: #fff;
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: slide 40s linear infinite;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; white-space: nowrap; }
.marquee-track span::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- Section ---- */
section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 720px) { section { padding: 80px 0; } }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; } }
.section-head h2 {
  font-size: clamp(36px, 4.8vw, 58px);
}
.section-head p { font-size: 18px; color: var(--muted); }
.section-head .eyebrow { margin-bottom: 16px; display: block; }

/* ---- Services (3 focus cards) ---- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }
.service-card {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  transform-style: preserve-3d;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.service-card .visual {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  margin-bottom: 28px;
  background: linear-gradient(140deg, #EEF4FE, #DFE9FA);
  position: relative;
  overflow: hidden;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 22px;
}
.service-card .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.service-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--ink-2);
}
.service-num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--brand-3);
}

/* custom visuals per card */
.viz-chatbot { background: radial-gradient(circle at 30% 40%, #C7DCF9 0%, #EEF4FE 60%, #F7F8FB 100%); }
.viz-workflow { background: linear-gradient(135deg, #EEF4FE 0%, #D8E5F8 100%); }
.viz-products { background: linear-gradient(160deg, #FDF2EC 0%, #F0C9B4 40%, #E6DBFB 100%); }

/* ---- Products ---- */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }
.product {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--brand-3);
  text-transform: uppercase;
}
.product h3 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
}
.product-canvas {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #F0F5FE, #DEE9FA);
}
.product-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.product-feats .feat {
  display: flex; align-items: center; gap: 10px;
}
.product-feats .feat::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-3); flex-shrink: 0;
}

/* ---- Work grid (case studies) ---- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.work {
  grid-column: span 6;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s, box-shadow .35s;
  display: flex;
  flex-direction: column;
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work.wide { grid-column: span 8; }
.work.narrow { grid-column: span 4; }
@media (max-width: 860px) {
  .work, .work.wide, .work.narrow { grid-column: span 12; }
}
.work-visual {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}
.work-body { padding: 26px 28px 28px; }
.work .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--brand-3);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.work h4 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.work p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- Stack ---- */
.stack {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-3);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.stack-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.stack-col li {
  font-size: 15px;
  color: var(--ink-2);
}

/* ---- Contact ---- */
.contact {
  background: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
  padding: 48px;
  border-right: 1px solid var(--line);
}
@media (max-width: 860px) { .contact-form { border-right: none; border-bottom: 1px solid var(--line); padding: 36px; } }
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.contact-form p { color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-3);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }

/* ---- Form status ---- */
.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.form-status.success,
.form-status.error { display: block; }
.form-status.success {
  background: rgba(74, 123, 200, 0.08);
  color: var(--brand-ink);
  border-color: rgba(74, 123, 200, 0.28);
}
.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* ---- Orbiting Skills (stack) ---- */
.orbit-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.orbit-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-core {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #EEF2F9 70%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md), inset 0 0 24px rgba(123,168,234,.12);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.orbit-core::before, .orbit-core::after {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169,200,245,.55), transparent 70%);
  filter: blur(18px);
  opacity: .8;
  animation: corePulse 4s ease-in-out infinite;
}
.orbit-core::after { animation-delay: 1.5s; background: radial-gradient(circle, rgba(240,201,180,.45), transparent 70%); }
@keyframes corePulse { 50% { opacity: .4; transform: scale(1.08); } }
.orbit-core img { width: 54px; height: 54px; position: relative; z-index: 1; }

.orbit-path {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(123,168,234,.22);
  box-shadow: inset 0 0 40px rgba(169,200,245,.22), 0 0 30px rgba(169,200,245,.15);
}
.orbit-path.outer {
  border-color: rgba(240,201,180,.32);
  box-shadow: inset 0 0 40px rgba(240,201,180,.18), 0 0 30px rgba(240,201,180,.12);
}
.orbit-planet {
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%,-50%);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform .3s ease-out;
}
.orbit-planet-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--brand-ink);
  text-align: center;
  line-height: 1.1;
  padding: 4px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
}
.orbit-planet-inner:hover {
  transform: scale(1.18);
  border-color: var(--brand-3);
  box-shadow: 0 0 0 4px rgba(74,123,200,.12), var(--shadow-md);
  z-index: 10;
}
.orbit-planet-inner svg { width: 26px; height: 26px; }
.orbit-label {
  position: absolute;
  top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--ink);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.orbit-planet:hover .orbit-label { opacity: 1; }

.stack-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) { .stack-split { grid-template-columns: 1fr; gap: 40px; } }

/* ---- Contact map ---- */
.contact-map {
  position: relative;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(0.95);
}
.map-overlay {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: 320px;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.map-overlay h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.map-overlay p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.map-overlay .row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 6px;
}
.map-overlay .row svg {
  width: 14px;
  height: 14px;
  color: var(--brand-3);
  flex-shrink: 0;
}
.map-overlay .row a { color: var(--ink-2); }
.map-overlay .row a:hover { color: var(--brand-3); }
@media (max-width: 640px) {
  .map-overlay { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 16px 18px; }
}

/* ---- Footer ---- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a:hover { color: var(--brand-3); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
@media (max-width: 720px) { .footer-bottom { flex-direction: column; gap: 14px; text-align: center; } }

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .marquee-track { animation: none; }
}
