/* ============================================================
   WiPulse · Photon Pythia — one-page site
   Light theme.  Sphere-Semi-style content flow + a centered,
   scroll-driven, rotating photonic-chip object with light pulses
   propagating through its waveguides.
   ============================================================ */

:root {
  /* core palette (LIGHT) */
  --bg:           #ffffff;
  --bg-2:         #f6f9fc;
  --bg-3:         #eef3f9;
  --line:         #dbe3ee;
  --line-strong:  #c3cfdf;
  --text:         #0e1726;
  --muted:        #5c6678;
  --dim:          #8c95a6;

  /* accent gradient */
  --accent:       #0b66c2;
  --accent-2:     #3a8be8;
  --accent-3:     #5cb6ff;
  --grad:         linear-gradient(120deg, #0b66c2 0%, #3a8be8 50%, #5cb6ff 100%);

  /* layout */
  --max:          1200px;
  --r-sm:         8px;
  --r:            14px;
  --r-lg:         24px;

  /* misc */
  --transition:   220ms cubic-bezier(.4,.0,.2,1);
  --shadow-soft:  0 1px 2px rgba(14,23,38,0.04), 0 8px 30px rgba(14,23,38,0.06);
  --shadow-glow:  0 12px 40px rgba(11,102,194,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #07396f; }

img, svg { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* gradient text helper */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ----------------------------------------------------------
   NAV
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav__brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text);
}
.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  border: 1px solid var(--line-strong);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--text) !important;
  font-weight: 500 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.nav__cta:hover {
  border-color: var(--accent);
  background: rgba(11,102,194,0.05);
  color: var(--accent) !important;
}

/* ============================================================
   SCROLL-STAGE — sticky photonic-chip object
   ============================================================ */
.scroll-stage {
  position: relative;
  /* tall enough to host the hero + 2 content sections; the chip is
     sticky inside this and rotates as the user scrolls through it. */
}

.chip-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  /* margin-bottom pulls subsequent content up so it overlaps */
  margin-bottom: -100vh;
}

.chip-perspective {
  perspective: 1400px;
  perspective-origin: 50% 50%;
  width: min(880px, 92vw);
}

.chip-rotor {
  transform-style: preserve-3d;
  transform: rotateX(28deg) rotateY(0deg) rotateZ(0deg);
  /* JS overrides this transform on scroll. Keep the tilt so the
     rotation looks 3D from the start. */
  transition: transform 80ms linear;
  /* Higher opacity since the dark die self-contains its contrast
     and doesn't bleed into body copy. */
  opacity: .92;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35))
          drop-shadow(0 0 24px rgba(103,232,249,0.10));
}

.chip-svg {
  width: 100%;
  height: auto;
}

/* subtle ambient shimmer on rings */
.rings circle:nth-child(3n+2) { animation: ringShimmer 4s ease-in-out infinite; }
@keyframes ringShimmer {
  0%, 100% { opacity: 1; }
  50%      { opacity: .85; }
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  z-index: 2;
}
.hero__inner {
  text-align: left;
  max-width: 720px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(11,102,194,0.04);
}
.hero__eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

.hero__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
}
.hero__gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  font-weight: 600;
}

.hero__sub {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn__arrow { display: inline-block; transition: transform var(--transition); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(11,102,194,0.05);
  color: var(--accent);
}

/* scroll indicator at bottom of hero */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .25; }
  50%      { opacity: 1; }
}

/* ----------------------------------------------------------
   SECTIONS
   ---------------------------------------------------------- */
.section {
  padding: 140px 0;
  position: relative;
  z-index: 2;
}
.section--card {
  /* stays in flow, but sits on top of the sticky chip */
  padding: 100px 0;
}

.card {
  /* Fully opaque white so cards stay legible when overlapping the
     dark photonic chip behind them. */
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 56px 48px;
  box-shadow: 0 1px 2px rgba(14,23,38,0.06),
              0 12px 40px rgba(14,23,38,0.08);
}
.card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 920px;
}
.card__lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 32px;
}

/* ----------------------------------------------------------
   PIPELINE (Approach: Ingest → Generate → Simulate → Iterate)
   ---------------------------------------------------------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 8px;
}
.step {
  background: var(--bg);
  padding: 32px 26px;
  transition: background var(--transition);
}
.step:hover { background: var(--bg-2); }
.step__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.step__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.4px;
  color: var(--text);
  margin-bottom: 10px;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   CHECKLIST (Technology section)
   ---------------------------------------------------------- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.checklist li {
  display: flex;
  gap: 14px;
  font-size: 15.5px;
  color: var(--text);
  align-items: flex-start;
}
.check {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

/* ----------------------------------------------------------
   MOATS (Why us)
   ---------------------------------------------------------- */
.moats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 8px;
}
.moat {
  background: var(--bg);
  padding: 36px 28px;
  transition: background var(--transition);
}
.moat:hover { background: var(--bg-2); }
.moat__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.moat h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.3px;
  color: var(--text);
  margin-bottom: 12px;
}
.moat p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   METRICS BAND
   ---------------------------------------------------------- */
.section--metrics {
  padding: 90px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.metric {
  text-align: left;
  padding-left: 22px;
  border-left: 2px solid var(--line);
  transition: border-color var(--transition);
}
.metric:hover { border-left-color: var(--accent); }
.metric__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  line-height: 1;
}
.metric__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   CONTACT
   ---------------------------------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-wrap__left .card__lede { max-width: 480px; }

.contact-wrap__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 30px;
  display: block;
  color: var(--text);
  transition: all var(--transition);
}
a.contact-card { color: inherit; }
a.contact-card:hover {
  border-color: var(--accent);
  background: rgba(11,102,194,0.03);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.contact-card--primary {
  background: linear-gradient(135deg,
              rgba(11,102,194,0.06) 0%,
              rgba(92,182,255,0.04) 100%);
}
.contact-card__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact-card__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  margin-bottom: 4px;
}
.contact-card__hint {
  font-size: 13px;
  color: var(--muted);
}
.contact-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 36px;
  background: var(--bg);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text);
}
.footer__links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.footer__links a:hover { color: var(--text); }
.footer__copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .5px;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 960px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 50px; }
  .card { padding: 40px 28px; }
  /* on smaller screens, drop the sticky 3D chip — the page reads
     better without it */
  .chip-stage { position: relative; height: 40vh; margin-bottom: 0; }
  .chip-rotor { transform: rotateX(15deg); }
}
@media (max-width: 720px) {
  .nav__links { gap: 14px; }
  .nav__links li { display: none; }
  .nav__links li:last-child { display: list-item; }
  .section { padding: 90px 0; }
  .hero { padding: 120px 0 60px; }
  .hero__sub { font-size: 16px; }
  .card { padding: 32px 22px; }
}

/* ============================================================
   HERO — three-line headline with holographic middle line
   ============================================================ */

.hero__headline--v3 {
  display: block;
  margin-bottom: 0;            /* sub-paragraph margin handles spacing */
  line-height: 1.04;
  letter-spacing: -2px;
}
.hero__line {
  display: block;
}
/* line 3 — pushed all the way to the right edge of the headline column */
.hero__line--right {
  text-align: right;
}

/* "with AI." uses a deep indigo that picks up the indigo stop of the
   holographic gradient on line 2 — visually links the two while staying
   highly readable on the white background. Easy to swap to a different
   color (see comments) without touching the rest of the page. */
.hero__line--ai {
  color: #000000;
}

/* ----------------------------------------------------------
   Holographic gradient on "silicon photonic chips"
   Sharp iridescent palette that animates left-to-right, like an
   EM wave propagating through a 3D circuit visualization.
   The drop-shadow stack underneath is the "fitting" shadow:
     · two dark depth shadows lift the text off the page
     · two faint colored halos preserve the iridescent feel
   ---------------------------------------------------------- */
.hero__gradient--holo {
  /* Iridescent gradient with a slow, single-pattern color change.
     background-size = 200% means the gradient is twice the text
     width; sliding background-position smoothly cycles through the
     palette without any second animation or directional artefact. */
  background: linear-gradient(
    100deg,
    #22d3ee 0%,    /* cyan       */
    #818cf8 18%,   /* indigo     */
    #ec4899 36%,   /* magenta    */
    #f59e0b 54%,   /* amber      */
    #34d399 72%,   /* emerald    */
    #22d3ee 90%,
    #818cf8 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: normal;
  font-weight: 700;
  /* Emphasized shadow stack:
     · large / dark depth drop-shadow (pronounced lift)
     · tight underlay (crisp letter definition)
     · color-matched halos (emissive holographic glow) */
  filter:
    drop-shadow(0 20px 48px rgba(15, 23, 42, 0.42))
    drop-shadow(0 4px 8px   rgba(15, 23, 42, 0.36))
    drop-shadow(0 0 48px    rgba(129, 140, 248, 0.42))
    drop-shadow(0 0 96px    rgba(34, 211, 238, 0.24));
  /* Slow single-direction gradient slide — 14 s per cycle. */
  animation: holoShift 14s linear infinite;
}

@keyframes holoShift {
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__gradient--holo { animation: none; }
}

/* breathing room between headline and the descriptive paragraph */
.hero__sub--v3 {
  margin-top: 46px;
}


/* ----------------------------------------------------------
   On-scroll reveal
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
