/* ==========================================================================
   Innoweb Tech Solutions — Engineered Light
   Design tokens + shared components
   ========================================================================== */

:root {
  --ink:         oklch(0.14 0.02 250);
  --ink-2:       oklch(0.18 0.02 250);
  --ink-3:       oklch(0.22 0.015 250);
  --ink-4:       oklch(0.34 0.012 250);
  --ivory:       oklch(0.97 0.005 90);
  --ivory-2:     oklch(0.94 0.006 90);
  --ivory-3:     oklch(0.88 0.008 90);
  --slate:       oklch(0.42 0.012 250);
  --lime:        oklch(0.88 0.20 130);
  --lime-ink:    oklch(0.32 0.10 130);

  --serif:  "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans:   "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --display:"Space Grotesk", "Geist", sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 3vw, 40px);
  --maxw:   1360px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    linear-gradient(to right, oklch(0.14 0.02 250 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.14 0.02 250 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  position: relative;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============ typography ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 999px;
  box-shadow: 0 0 12px oklch(0.88 0.20 130 / 0.7);
  animation: bulb-blink 3.5s ease-in-out infinite;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
.display em { font-style: italic; color: var(--slate); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--slate);
  max-width: 60ch;
  text-wrap: pretty;
}

.mono { font-family: var(--mono); }

/* ============ WORDMARK — futuristic Innoweb Tech Solutions ============ */
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark .lead {
  color: var(--ink);
}
.wordmark .tail {
  color: var(--slate);
  font-weight: 400;
  font-style: italic;
  font-family: var(--serif);
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
}
.wordmark-lg {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.wordmark-lg .a {
  color: var(--ink);
  display: inline-block;
}
.wordmark-lg .b {
  color: var(--slate);
  font-weight: 400;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85em;
  margin-left: 4px;
}
.dark .wordmark .lead, .dark .wordmark-lg .a { color: var(--ivory); }
.dark .wordmark .tail, .dark .wordmark-lg .b { color: oklch(0.72 0.01 250); }

/* ============ BULB LOGO ============ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-glyph {
  width: 32px;
  height: 36px;
  flex-shrink: 0;
  overflow: visible;
}
/* glass bulb envelope */
.brand-glyph .bulb-glass {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* filament — pulses with lime */
.brand-glyph .bulb-filament {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px oklch(0.88 0.20 130 / 0.9));
  animation: bulb-blink 3.5s ease-in-out infinite;
}
/* radiance glow behind bulb */
.brand-glyph .bulb-glow {
  fill: oklch(0.88 0.20 130 / 0.35);
  filter: blur(4px);
  animation: bulb-blink 3.5s ease-in-out infinite;
}
/* base threads */
.brand-glyph .bulb-base {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
@keyframes bulb-blink {
  0%, 100% { opacity: 1; }
  46%      { opacity: 1; }
  48%      { opacity: 0.15; }
  50%      { opacity: 1; }
  92%      { opacity: 1; }
  94%      { opacity: 0.15; }
  96%      { opacity: 1; }
}

/* ============ layout ============ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

section { padding: clamp(80px, 10vw, 160px) 0; }

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.97 0.005 90 / 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--ivory-3);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 999px;
  transition: background 200ms var(--ease);
}
.nav-links a:hover { background: var(--ivory-2); }
.nav-links a.current { background: var(--ink); color: var(--ivory); }

/* services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 320px;
  background: var(--ivory);
  border: 1px solid var(--ivory-3);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 20px 40px -20px oklch(0.14 0.02 250 / 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown-panel a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 14px;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  border-radius: 8px;
  gap: 20px;
}
.nav-dropdown-panel a .n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.1em;
}
.nav-dropdown-panel a:hover { background: var(--ivory-2); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--lime);
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); background: oklch(0.92 0.20 130); }
.nav-cta .dot {
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 999px;
  animation: bulb-blink 3.5s ease-in-out infinite;
}
.nav-cta-dark {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.nav-cta-dark:hover { background: var(--ink-2); }
.nav-cta-dark .dot { background: var(--lime); box-shadow: 0 0 6px var(--lime); }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 24px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; }

.btn-primary { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); }

.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-lime:hover { background: oklch(0.92 0.20 130); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-3); }
.btn-ghost:hover { background: var(--ivory-2); }

/* ============ chips ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  border: 1px solid var(--ivory-3);
  border-radius: 999px;
  color: var(--slate);
  background: var(--ivory);
}
.chip .dot { width: 5px; height: 5px; background: var(--lime); border-radius: 999px; }

/* ============ dark sections ============ */
.dark {
  background: var(--ink);
  color: var(--ivory);
  background-image:
    linear-gradient(to right, oklch(0.97 0.005 90 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.97 0.005 90 / 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.dark .lede { color: oklch(0.72 0.01 250); }
.dark .chip { background: transparent; border-color: var(--ink-3); color: oklch(0.72 0.01 250); }
.dark .btn-ghost { color: var(--ivory); border-color: var(--ink-3); }
.dark .btn-ghost:hover { background: var(--ink-2); }

/* ============ footer ============ */
.footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 80px 0 32px;
  background-image:
    linear-gradient(to right, oklch(0.97 0.005 90 / 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.97 0.005 90 / 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  position: relative;
  z-index: 2;
}
.footer .wrap { display: grid; gap: 60px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.62 0.01 250);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a {
  font-size: 14px;
  color: oklch(0.85 0.01 250);
  transition: color 200ms var(--ease);
}
.footer ul a:hover { color: var(--lime); }
.footer-cta { max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--ink-3);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: oklch(0.55 0.01 250);
  letter-spacing: 0.02em;
}

/* ============ ambient 3D bulb layer (all pages) ============ */
#ambient-bulb {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
body > *:not(#ambient-bulb) { position: relative; z-index: 1; }
.hero-3d-mount {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============ utility ============ */
.hairline { height: 1px; background: var(--ivory-3); border: 0; margin: 0; }
.dark .hairline { background: var(--ink-3); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

/* ============ reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ 3D CSS artifacts (service cards) ============ */
.artifact {
  position: relative;
  width: 120px;
  height: 120px;
  perspective: 800px;
  perspective-origin: 50% 40%;
}
.artifact-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
  animation: art-float 8s var(--ease) infinite;
}
@keyframes art-float {
  0%, 100% { transform: rotateX(58deg) rotateZ(-38deg) translateZ(0); }
  50%      { transform: rotateX(58deg) rotateZ(-38deg) translateZ(6px); }
}
.a-stack .p {
  position: absolute;
  inset: 20px;
  border: 1px solid var(--ink-3);
  background: oklch(0.97 0.005 90 / 0.85);
  border-radius: 6px;
}
.dark .a-stack .p { background: oklch(0.14 0.02 250 / 0.85); border-color: oklch(0.30 0.015 250); }
.a-stack .p:nth-child(1) { transform: translateZ(-18px); opacity: 0.5; }
.a-stack .p:nth-child(2) { transform: translateZ(0); }
.a-stack .p:nth-child(3) { transform: translateZ(18px); border-color: var(--lime); }
.a-stack .p:nth-child(3)::after {
  content: "";
  position: absolute; inset: 8px;
  background:
    linear-gradient(to bottom, var(--lime) 2px, transparent 2px) 0 0/100% 12px,
    linear-gradient(to bottom, var(--ink-3) 1px, transparent 1px) 0 6px/100% 12px;
  opacity: 0.4;
}
.a-shield {
  position: absolute; inset: 20px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid var(--lime);
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, oklch(0.88 0.20 130 / 0.15) 8px 9px),
    repeating-linear-gradient(-45deg, transparent 0 8px, oklch(0.88 0.20 130 / 0.15) 8px 9px);
}
.a-shield::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed oklch(0.88 0.20 130 / 0.5);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.a-cloud { position: absolute; inset: 15px; }
.a-cloud .p {
  position: absolute;
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  background: oklch(0.97 0.005 90 / 0.5);
}
.dark .a-cloud .p { background: oklch(0.18 0.02 250 / 0.5); }
.a-cloud .p:nth-child(1) { inset: 30% 20% 20% 30%; transform: translateZ(-10px); }
.a-cloud .p:nth-child(2) { inset: 20% 30% 30% 20%; transform: translateZ(8px); border-color: var(--lime); }
.a-cloud .p:nth-child(3) { inset: 40% 10% 10% 40%; transform: translateZ(20px); }
.a-phone {
  position: absolute;
  left: 30%; right: 30%; top: 10%; bottom: 10%;
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  background: oklch(0.97 0.005 90 / 0.85);
  transform-style: preserve-3d;
}
.dark .a-phone { background: oklch(0.18 0.02 250 / 0.85); }
.a-phone::before {
  content: "";
  position: absolute; inset: 8px 4px;
  border-top: 1px solid var(--lime);
  background: repeating-linear-gradient(to bottom, transparent 0 6px, var(--ink-3) 6px 7px);
  border-radius: 6px;
  opacity: 0.6;
}
.a-neural { position: absolute; inset: 15px; }
.a-neural svg { width: 100%; height: 100%; overflow: visible; }
.a-neural .node { fill: var(--ivory); stroke: var(--ink-3); stroke-width: 1; }
.dark .a-neural .node { fill: var(--ink); }
.a-neural .node.hot { fill: var(--lime); stroke: var(--lime); }
.a-neural .edge { stroke: var(--ink-3); stroke-width: 1; fill: none; }
.a-neural .edge.hot { stroke: var(--lime); stroke-width: 1.4; }
.a-mega { position: absolute; inset: 15px; }
.a-mega .p {
  position: absolute;
  border: 1px solid var(--ink-3);
  background: oklch(0.97 0.005 90 / 0.85);
}
.dark .a-mega .p { background: oklch(0.18 0.02 250 / 0.85); }
.a-mega .p:nth-child(1) {
  left: 10%; right: 40%; top: 30%; bottom: 30%;
  border-radius: 4px;
}
.a-mega .p:nth-child(2) {
  left: 55%; right: 10%; top: 15%; bottom: 15%;
  transform: translateZ(10px);
  clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0 70%);
  background: var(--lime);
  border-color: var(--lime);
}
.a-mega .p:nth-child(3) {
  right: 5%; top: 40%; width: 8px; height: 20%;
  transform: translateZ(18px);
  background: var(--lime);
  border-color: var(--lime);
  border-radius: 2px;
}
