* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050916;
  --bg-2: #0a1020;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #eef5ff;
  --muted: #b5c2dd;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #53d3ff;
  --cyan-2: #1fa8ff;
  --navy: #0e2f5d;
  --glow: rgba(83, 211, 255, 0.28);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius: 26px;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(31, 168, 255, 0.12), transparent 18%),
    radial-gradient(circle at 80% 10%, rgba(83, 211, 255, 0.1), transparent 20%),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(180deg, #030611 0%, #071021 45%, #091425 100%);
  overflow-x: hidden;
  line-height: 1.6;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -5;
  background:
    radial-gradient(circle at 50% 18%, rgba(83, 211, 255, 0.08), transparent 18%),
    radial-gradient(circle at 30% 40%, rgba(14, 47, 93, 0.14), transparent 22%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.03), transparent 25%);
  filter: blur(22px);
}

.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  animation: drift 90s linear infinite;
}

.stars-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: 0.22;
}

.stars-small::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1.5px);
  background-size: 120px 120px;
}

.stars-medium::before {
  background-image: radial-gradient(circle, rgba(83,211,255,0.55) 1px, transparent 1.5px);
  background-size: 190px 190px;
  animation: driftReverse 120s linear infinite;
}

.stars-large::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1.3px, transparent 1.8px);
  background-size: 280px 280px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.narrow {
  max-width: 840px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(4, 8, 20, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-image {
  width: 120px;   /* bigger */
  height: 120px;
  object-fit: contain;
  
  position: relative;
  top: 10px; /* pushes it down so it overflows nicely */
}

.logo-image:hover {
  transform: scale(1.1);
}


.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.4rem;
}

@media (min-width: 761px) {
  .nav-links {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-light-one {
  width: 420px;
  height: 420px;
  background: rgba(83, 211, 255, 0.12);
  top: 8%;
  left: 48%;
  transform: translateX(-50%);
}

.hero-light-two {
  width: 480px;
  height: 480px;
  background: rgba(14, 47, 93, 0.18);
  bottom: -5%;
  right: 8%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow,
.section-label,
.panel-label {
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.hero-copy {
  margin-top: 1.35rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #07121f;
  box-shadow: 0 12px 30px rgba(31, 168, 255, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.star-core-wrap {
  position: relative;
  width: min(100%, 530px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.guiding-star {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(190,245,255,0.3), rgba(83,211,255,0.12) 45%, rgba(255,255,255,0.03) 70%, transparent 72%);
  box-shadow:
    0 0 50px rgba(83, 211, 255, 0.18),
    0 0 110px rgba(83, 211, 255, 0.1);
  animation: floatCore 5.5s ease-in-out infinite;
}

.guiding-star span {
  font-size: 5rem;
  color: var(--cyan);
  text-shadow:
    0 0 18px rgba(83, 211, 255, 0.6),
    0 0 40px rgba(83, 211, 255, 0.28);
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  inset: 50%;
  transform: translate(-50%, -50%);
}

.ring-one {
  width: 240px;
  height: 240px;
  animation: rotateSlow 20s linear infinite;
}

.ring-two {
  width: 360px;
  height: 360px;
  animation: rotateReverse 28s linear infinite;
}

.ring-three {
  width: 470px;
  height: 470px;
  border-style: dashed;
  border-color: rgba(83, 211, 255, 0.18);
  animation: rotateSlow 36s linear infinite;
}

.orbit-label {
  position: absolute;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(7, 12, 25, 0.76);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
  animation: floatTag 4.5s ease-in-out infinite;
}

.orbit-label-one { top: 14%; left: 10%; }
.orbit-label-two { top: 22%; right: 6%; animation-delay: 0.8s; }
.orbit-label-three { bottom: 18%; left: 10%; animation-delay: 1.1s; }
.orbit-label-four { bottom: 11%; right: 5%; animation-delay: 0.4s; }

.constellation {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(83,211,255,0.22), transparent);
  opacity: 0.7;
}

.constellation-a {
  width: 180px;
  top: 28%;
  left: 26%;
  transform: rotate(18deg);
}

.constellation-b {
  width: 160px;
  bottom: 34%;
  right: 22%;
  transform: rotate(-22deg);
}

.constellation-c {
  width: 120px;
  top: 52%;
  right: 12%;
  transform: rotate(55deg);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.8;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(83,211,255,0.9), rgba(255,255,255,0));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.section p {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 235px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  transform-style: preserve-3d;
}

.card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(83,211,255,0.08), transparent 38%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: rgba(83, 211, 255, 0.32);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(83,211,255,0.12);
  color: var(--cyan);
  font-size: 1.2rem;
}

.card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

/* Interactive Pathfinder */
.interactive-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.03));
}

.pathfinder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.pathfinder-options {
  display: grid;
  gap: 0.9rem;
}

.path-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.path-btn:hover,
.path-btn.active {
  border-color: rgba(83,211,255,0.35);
  background: rgba(83,211,255,0.1);
  transform: translateY(-2px);
}

.pathfinder-panel {
  padding: 1.6rem;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.pathfinder-panel h3 {
  font-size: 1.8rem;
  line-height: 1.05;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.panel-tags span {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(83,211,255,0.12);
  border: 1px solid rgba(83,211,255,0.18);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.92rem;
}

.panel-cta {
  align-self: flex-start;
}

/* Workflow */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.workflow-step {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.workflow-step span {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.85rem;
}

.workflow-step h3 {
  margin-bottom: 0.55rem;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7, 13, 26, 0.75);
  color: var(--text);
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8ea0be;
}

.site-footer {
  padding: 1.5rem 0 2.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p {
  color: #91a3c0;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.shooting-star {
  position: fixed;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(206,248,255,1));
  border-radius: 999px;
  transform: rotate(-30deg);
  animation: shoot 2s linear forwards;
  pointer-events: none;
  z-index: 15;
  box-shadow: 0 0 16px rgba(255,255,255,0.45);
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(40px); }
}

@keyframes driftReverse {
  from { transform: translateY(30px); }
  to { transform: translateY(-30px); }
}

@keyframes floatCore {
  0%, 100% { transform: translateY(0px) scale(1); }
  25% { transform: translateY(-10px) scale(1.015); }
  50% { transform: translateY(-20px) scale(1.03); }
  75% { transform: translateY(-8px) scale(1.012); }
}

@keyframes floatTag {
  0% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-6px) translateX(4px); }
  50% { transform: translateY(-14px) translateX(0px); }
  75% { transform: translateY(-7px) translateX(-4px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.8); opacity: 0.55; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

@keyframes shoot {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-32deg) scaleX(0.35);
  }
  12% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(300px, -150px) rotate(-32deg) scaleX(1);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid,
  .workflow,
  .contact-wrap,
  .pathfinder {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 84px;
    right: 1rem;
    width: min(270px, calc(100% - 2rem));
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(5, 10, 22, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-grid,
  .card-grid,
  .workflow,
  .contact-wrap,
  .form-row,
  .pathfinder {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
    min-height: auto;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero h1 {
    max-width: 100%;
  }

  .star-core-wrap {
    max-width: 430px;
    margin-inline: auto;
  }

  .ring-three {
    width: 400px;
    height: 400px;
  }

.logo-image {
  width: 70px;
  height: 70px;
}

  .logo-text {
    font-size: 1rem;
  }

  .pathfinder-panel h3 {
    font-size: 1.45rem;
  }
}

/* =========================
   INSANE CASE STUDY SECTION
========================= */

.case-study-insane {
  position: relative;
  overflow: visible; /* FIX */
}

.case-study-insane::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(83, 211, 255, 0.08), transparent 20%),
    radial-gradient(circle at 82% 35%, rgba(14, 47, 93, 0.16), transparent 24%);
  opacity: 0.95;
}

.case-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: flex-start; /* instead of start */
}

.case-story-left {
  position: relative;
  padding-left: 3rem;
}

.story-progress {
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(83, 211, 255, 0.15),
    rgba(83, 211, 255, 0.3),
    rgba(83, 211, 255, 0.12)
  );
  border-radius: 999px;
}

.progress-dot {
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin: 0.45rem 0 10.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.02);
  transition: 0.3s ease;
}

.progress-dot.active {
  background: var(--cyan);
  border-color: rgba(83, 211, 255, 0.75);
  box-shadow:
    0 0 0 8px rgba(83, 211, 255, 0.08),
    0 0 20px rgba(83, 211, 255, 0.35);
}

.story-step {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.story-step.active {
  opacity: 1;
  transform: translateY(0);
}

.story-kicker {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.story-step h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  max-width: 12ch;
}

.story-step p {
  max-width: 58ch;
  font-size: 1.02rem;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.story-tags span {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.case-story-right {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1.75rem;
}

.visual-glow {
  position: absolute;
  inset: auto auto 10% 50%;
  width: 340px;
  height: 340px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83,211,255,0.16), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.visual-screen {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.visual-screen.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mock-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

/* Metrics */
.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.metric-card {
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(18,28,52,0.88), rgba(10,18,38,0.84));
  border: 1px solid rgba(120,170,255,0.1);
  box-shadow:
    0 16px 32px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.metric-card p {
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.metric-card h4 {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
}

/* Responsive */
@media (max-width: 1080px) {
  .case-story {
    grid-template-columns: 1fr;
  }

  .case-story-right {
    position: relative;
    top: 0;
  }

  .story-step {
    min-height: auto;
    padding: 2rem 0;
    opacity: 1;
    transform: none;
  }

  .case-story-left {
    padding-left: 2rem;
  }

  .story-progress {
    left: 0;
  }

  .progress-dot {
    margin-bottom: 6rem;
  }

  .case-visual-shell {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .case-story-left {
    padding-left: 0;
  }

  .story-progress {
    display: none;
  }

  .story-step {
    padding: 1.4rem 0 2rem;
  }

  .story-step h3 {
    max-width: 100%;
    font-size: 1.7rem;
  }

  .case-visual-shell {
    min-height: 420px;
  }

  .case-metrics {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CASE STUDY VISUAL REDESIGN
========================= */

.premium-window {
  background:
    radial-gradient(circle at 50% 22%, rgba(83,211,255,0.08), transparent 24%),
    linear-gradient(180deg, rgba(4,10,24,0.98), rgba(5,12,28,0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.32);
}

.case-visual-shell {
  position: relative;
  min-height: 530px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 14%, rgba(83,211,255,0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.mock-window {
  height: 100%;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mock-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}

.visual-caption {
  padding: 1rem 1.25rem 1.1rem;
  color: #b3c7e8;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: auto;
  letter-spacing: 0.01em;
}

/* VISUAL 1 */
.hero-diagram {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(31,168,255,0.08), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

.hero-node {
  position: absolute;
  z-index: 3;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  min-width: 138px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #eef5ff;
  background: linear-gradient(180deg, rgba(27,40,72,0.92), rgba(19,31,60,0.9));
  border: 1px solid rgba(120,170,255,0.18);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-node-a { top: 12%; left: 10%; }
.hero-node-b { top: 10%; right: 9%; }
.hero-node-c { bottom: 24%; left: 50%; transform: translateX(-50%); }

.hero-connector {
  position: absolute;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, rgba(83,211,255,0), rgba(83,211,255,0.9), rgba(83,211,255,0));
  opacity: 0.65;
}

.hc-1 {
  top: 18%;
  left: 28%;
  width: 41%;
}

.hc-2 {
  top: 44%;
  left: 51%;
  width: 22%;
  transform: rotate(59deg);
  transform-origin: left center;
}

.hc-3 {
  top: 48%;
  left: 25%;
  width: 24%;
  transform: rotate(-58deg);
  transform-origin: left center;
}

.hero-mesh {
  position: absolute;
  inset: 18% 7% 14% 7%;
  z-index: 1;
}

.hero-mesh span {
  position: absolute;
  display: block;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, rgba(83,211,255,0), rgba(83,211,255,0.4), rgba(83,211,255,0));
  transform-origin: center;
  opacity: 0.48;
}

.hero-mesh span:nth-child(1) { top: 16%; left: 18%; transform: rotate(18deg); }
.hero-mesh span:nth-child(2) { top: 24%; right: 10%; transform: rotate(-10deg); }
.hero-mesh span:nth-child(3) { top: 38%; left: 32%; transform: rotate(36deg); }
.hero-mesh span:nth-child(4) { top: 49%; right: 24%; transform: rotate(72deg); }
.hero-mesh span:nth-child(5) { top: 58%; left: 20%; transform: rotate(-20deg); }
.hero-mesh span:nth-child(6) { top: 62%; left: 38%; transform: rotate(14deg); }
.hero-mesh span:nth-child(7) { bottom: 26%; left: 14%; transform: rotate(28deg); }
.hero-mesh span:nth-child(8) { bottom: 22%; right: 16%; transform: rotate(-24deg); }
.hero-mesh span:nth-child(9) { top: 35%; left: 50%; transform: rotate(-55deg); width: 110px; }
.hero-mesh span:nth-child(10) { top: 30%; left: 8%; transform: rotate(-32deg); width: 120px; }

/* VISUAL 2 */
.architecture-premium {
  flex: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.9rem;
  padding: 1rem;
}

.arch-panel {
  position: relative;
  border-radius: 20px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(19,31,58,0.92), rgba(12,22,44,0.9));
  border: 1px solid rgba(118,164,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}

.arch-panel p {
  font-size: 0.95rem;
  font-weight: 700;
  color: #eef5ff;
  margin-bottom: 0.2rem;
}

.arch-panel span {
  font-size: 0.82rem;
  color: #9bb6dc;
}

.arch-main {
  grid-row: span 2;
}

.arch-wide {
  grid-column: span 2;
}

.arch-grid-graphic {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  height: 100px;
}

.arch-grid-graphic i {
  position: absolute;
  display: block;
  border: 1px solid rgba(83,211,255,0.14);
  background: rgba(83,211,255,0.03);
  transform: rotate(-20deg);
}

.arch-grid-graphic i:nth-child(1) {
  width: 88px;
  height: 44px;
  left: 12px;
  bottom: 14px;
}
.arch-grid-graphic i:nth-child(2) {
  width: 88px;
  height: 44px;
  left: 34px;
  bottom: 28px;
}
.arch-grid-graphic i:nth-child(3) {
  width: 88px;
  height: 44px;
  left: 56px;
  bottom: 42px;
}
.arch-grid-graphic i:nth-child(4) {
  width: 88px;
  height: 44px;
  left: 78px;
  bottom: 56px;
}

.journey-flow {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  width: 180px;
  height: 62px;
}

.journey-flow i {
  position: absolute;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,180,255,0.16);
  background: linear-gradient(90deg, rgba(83,211,255,0.08), rgba(83,211,255,0.18));
}

.journey-flow i:nth-child(1) { width: 60px; left: 0; top: 28px; }
.journey-flow i:nth-child(2) { width: 52px; left: 40px; top: 14px; transform: rotate(-28deg); }
.journey-flow i:nth-child(3) { width: 64px; left: 82px; top: 18px; transform: rotate(24deg); }
.journey-flow i:nth-child(4) { width: 44px; right: 0; top: 30px; }

/* VISUAL 3 */
.docs-premium {
  flex: 1;
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 0;
}

.docs-side {
  padding: 0.95rem 0.8rem;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.docs-nav-item {
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  font-size: 0.86rem;
  color: #a5bbde;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
}

.docs-nav-item.active {
  background: rgba(83,211,255,0.08);
  color: #eef5ff;
  border-color: rgba(83,211,255,0.16);
}

.docs-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.docs-top-lines {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.docs-top-lines span,
.docs-text-card span,
.docs-bottom-code span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,190,255,0.22), rgba(83,211,255,0.35));
}

.w-95 { width: 95%; }
.w-88 { width: 88%; }
.w-82 { width: 82%; }
.w-66 { width: 66%; }

.docs-card-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.85rem;
  min-height: 130px;
}

.docs-text-card,
.docs-mini-card,
.docs-bottom-code {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.docs-text-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.docs-mini-stack {
  display: grid;
  gap: 0.85rem;
}

.docs-mini-card {
  min-height: 56px;
}

.docs-mini-code {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    radial-gradient(circle at 30% 40%, rgba(83,211,255,0.12), transparent 30%);
}

.docs-bottom-code {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.docs-bottom-code span:nth-child(1) { width: 62%; }
.docs-bottom-code span:nth-child(2) { width: 84%; }
.docs-bottom-code span:nth-child(3) { width: 56%; }
.docs-bottom-code span:nth-child(4) { width: 72%; }

/* VISUAL 4 */
.outcome-premium {
  position: relative;
  flex: 1;
  padding: 1rem;
  overflow: hidden;
}

.outcome-copy-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.outcome-card {
  min-height: 118px;
  border-radius: 20px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(19,31,58,0.9), rgba(12,22,44,0.88));
  border: 1px solid rgba(118,164,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.outcome-card strong {
  display: block;
  font-size: 1.02rem;
  color: #eef5ff;
  margin-bottom: 0.2rem;
}

.outcome-card span {
  display: block;
  color: #9bb6dc;
  font-size: 0.83rem;
  margin-bottom: 0.9rem;
}

.mini-icon {
  position: relative;
  width: 52px;
  height: 52px;
}

.icon-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px solid rgba(83,211,255,0.6);
  box-shadow: 0 0 18px rgba(83,211,255,0.18);
}

.icon-flow::before,
.icon-flow::after {
  content: "";
  position: absolute;
  height: 2px;
  background: rgba(83,211,255,0.7);
  top: 50%;
}

.icon-flow::before {
  left: 4px;
  width: 20px;
}
.icon-flow::after {
  right: 4px;
  width: 20px;
}
.icon-flow {
  border-radius: 50%;
}
.icon-flow span { display: none; }

.icon-doc::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 40px;
  left: 9px;
  top: 5px;
  border-radius: 8px;
  border: 2px solid rgba(83,211,255,0.58);
}

.icon-chart::before,
.icon-chart::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 6px;
  border-radius: 999px;
  background: rgba(83,211,255,0.72);
}

.icon-chart::before {
  left: 12px;
  height: 18px;
}

.icon-chart::after {
  left: 24px;
  height: 30px;
}

.outcome-beams {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 180px;
  height: 170px;
  z-index: 1;
  pointer-events: none;
}

.outcome-beams span {
  position: absolute;
  bottom: 0;
  width: 16px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(140,240,255,0.95), rgba(83,211,255,0.08));
  box-shadow: 0 0 20px rgba(83,211,255,0.22);
}

.outcome-beams span:nth-child(1) { left: 20px; height: 72px; }
.outcome-beams span:nth-child(2) { left: 52px; height: 108px; }
.outcome-beams span:nth-child(3) { left: 82px; height: 144px; width: 18px; }
.outcome-beams span:nth-child(4) { left: 114px; height: 104px; }
.outcome-beams span:nth-child(5) { left: 146px; height: 76px; }

/* better responsive */
@media (max-width: 760px) {
  .docs-premium {
    grid-template-columns: 1fr;
  }

  .docs-side {
    display: none;
  }

  .architecture-premium,
  .outcome-copy-grid {
    grid-template-columns: 1fr;
  }

  .arch-wide {
    grid-column: auto;
  }

  .docs-card-row {
    grid-template-columns: 1fr;
  }

  .hero-node {
    min-width: 112px;
    font-size: 0.82rem;
  }

  .hero-node-a { top: 10%; left: 4%; }
  .hero-node-b { top: 10%; right: 4%; }
  .hero-node-c { bottom: 18%; }

  .outcome-beams {
    width: 130px;
    height: 120px;
  }
}

/* ===== HERO SYSTEM MAP (RESTORED) ===== */
.system-map {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-node {
  position: absolute;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #dbeafe;
  backdrop-filter: blur(10px);
}

.node-a { top: 25%; left: 15%; }
.node-b { top: 25%; right: 15%; }
.node-c { bottom: 25%; left: 50%; transform: translateX(-50%); }

.map-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(83,211,255,0.6), transparent);
}

.line-ab {
  top: 30%;
  left: 30%;
  width: 40%;
}

.line-ac {
  top: 45%;
  left: 30%;
  width: 20%;
  transform: rotate(30deg);
}

.line-bc {
  top: 45%;
  right: 30%;
  width: 20%;
  transform: rotate(-30deg);
}

/* ===== HERO SYSTEM MAP (RESTORED) ===== */
.system-map {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-node {
  position: absolute;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #dbeafe;
  backdrop-filter: blur(10px);
}

.node-a { top: 25%; left: 15%; }
.node-b { top: 25%; right: 15%; }
.node-c { bottom: 25%; left: 50%; transform: translateX(-50%); }

.map-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(83,211,255,0.6), transparent);
}

.line-ab {
  top: 30%;
  left: 30%;
  width: 40%;
}

.line-ac {
  top: 45%;
  left: 30%;
  width: 20%;
  transform: rotate(30deg);
}

.line-bc {
  top: 45%;
  right: 30%;
  width: 20%;
  transform: rotate(-30deg);
}
/* =========================
   BUNDLE UPDATES
========================= */

:root {
  --bg-solid: #050916;
}

html[data-theme="light"] {
  --bg: #eff5ff;
  --bg-2: #f8fbff;
  --surface: rgba(12, 32, 76, 0.06);
  --surface-strong: rgba(12, 32, 76, 0.12);
  --text: #0f1a2f;
  --muted: #4c607d;
  --line: rgba(12, 32, 76, 0.12);
  --cyan: #157be8;
  --cyan-2: #44b1ff;
  --navy: #dfeaff;
  --glow: rgba(21, 123, 232, 0.2);
  --shadow: 0 18px 48px rgba(18, 38, 79, 0.12);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 20% 15%, rgba(68, 177, 255, 0.12), transparent 18%),
    radial-gradient(circle at 80% 10%, rgba(21, 123, 232, 0.08), transparent 20%),
    radial-gradient(circle at 50% 40%, rgba(15, 26, 47, 0.03), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #edf5ff 45%, #e8f1fd 100%);
}

html[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(248, 251, 255, 0.72));
  border-bottom: 1px solid rgba(12, 32, 76, 0.06);
  box-shadow: 0 10px 28px rgba(18, 38, 79, 0.06);
}

html[data-theme="light"] .background-glow {
  background:
    radial-gradient(circle at 50% 18%, rgba(68, 177, 255, 0.14), transparent 18%),
    radial-gradient(circle at 30% 40%, rgba(21, 123, 232, 0.08), transparent 22%),
    radial-gradient(circle at 70% 50%, rgba(15, 26, 47, 0.03), transparent 25%);
}

html[data-theme="light"] .stars-layer::before {
  opacity: 0.1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.theme-toggle-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  transition: transform 0.25s ease;
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(20px);
}

.theme-toggle-label {
  font-size: 0.88rem;
}

.png-card .mini-visual {
  margin-top: 0.2rem;
}

.png-slot {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  border: 1px dashed rgba(83,211,255,0.35);
  background: rgba(83,211,255,0.05);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.png-replaceable {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.png-slot.empty .png-replaceable,
.png-replaceable.is-missing {
  display: none;
}

.png-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.45rem;
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.png-slot.empty .png-fallback {
  display: flex;
}

.case-study-link-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.case-study-link-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.case-detail-page .hero {
  min-height: auto;
  padding: 8rem 0 4rem;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: center;
}

.detail-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.detail-kpi {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}

.detail-kpi strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.detail-kpi span {
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-panel,
.gallery-card,
.timeline-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-panel {
  padding: 1.5rem;
}

.detail-panel p + p {
  margin-top: 1rem;
}

.case-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery-card {
  padding: 1rem;
}

.gallery-card h3 {
  margin-bottom: 0.3rem;
}

.gallery-media {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px dashed rgba(83,211,255,0.35);
  background: rgba(83,211,255,0.05);
  overflow: hidden;
  margin-top: 0.9rem;
  position: relative;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-media.empty img,
.gallery-media img.is-missing {
  display: none;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--cyan);
  font-weight: 700;
}

.gallery-media.empty .gallery-placeholder {
  display: flex;
}

.timeline-list {
  display: grid;
  gap: 1rem;
}

.timeline-card {
  padding: 1.1rem;
}

.timeline-card p {
  margin-top: 0.45rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 1rem;
}

.thanks-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.thanks-card {
  max-width: 720px;
  text-align: center;
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .case-detail-grid,
  .case-layout,
  .detail-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .theme-toggle-label {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
   LIGHT MODE POLISH FIXES
========================= */

html:not([data-theme="light"]) {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255,255,255,0.82);
  border-color: rgba(21,123,232,0.14);
  box-shadow: 0 10px 24px rgba(18,38,79,0.08);
}

html[data-theme="light"] .theme-toggle-track {
  background: rgba(21,123,232,0.12);
  border-color: rgba(21,123,232,0.12);
}

html[data-theme="light"] .nav-links {
  border-color: rgba(21,123,232,0.12);
  box-shadow: 0 16px 34px rgba(18,38,79,0.10);
}

html[data-theme="light"] .nav-links a {
  color: #526783;
}

html[data-theme="light"] .nav-links a:hover {
  color: #0f1a2f;
}

@media (min-width: 761px) {
  html[data-theme="light"] .nav-links {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
}


html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .path-btn,
html[data-theme="light"] .workflow-step,
html[data-theme="light"] .card,
html[data-theme="light"] .pathfinder-panel,
html[data-theme="light"] .detail-kpi,
html[data-theme="light"] .detail-panel,
html[data-theme="light"] .gallery-card,
html[data-theme="light"] .timeline-card,
html[data-theme="light"] .thanks-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(239,246,255,0.92));
  border-color: rgba(21,123,232,0.12);
  box-shadow: 0 18px 42px rgba(18,38,79,0.10);
}

html[data-theme="light"] .section-alt,
html[data-theme="light"] .interactive-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(68,177,255,0.06));
  border-top-color: rgba(21,123,232,0.08);
  border-bottom-color: rgba(21,123,232,0.08);
}

html[data-theme="light"] .orbit-label {
  background: rgba(255,255,255,0.84);
  border-color: rgba(21,123,232,0.12);
  color: var(--text);
  box-shadow: 0 14px 30px rgba(18,38,79,0.10);
}

html[data-theme="light"] .guiding-star {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.92), rgba(131,199,255,0.26) 44%, rgba(68,177,255,0.08) 68%, transparent 72%);
  box-shadow:
    0 0 42px rgba(68,177,255,0.16),
    0 0 84px rgba(68,177,255,0.10);
}

html[data-theme="light"] .guiding-star span {
  color: #157be8;
  text-shadow:
    0 0 16px rgba(68,177,255,0.34),
    0 0 34px rgba(21,123,232,0.14);
}

html[data-theme="light"] .pulse-ring {
  border-color: rgba(21,123,232,0.10);
}

html[data-theme="light"] .ring-three {
  border-color: rgba(21,123,232,0.18);
}

html[data-theme="light"] .constellation {
  background: linear-gradient(90deg, transparent, rgba(21,123,232,0.16), transparent);
  opacity: 0.55;
}

html[data-theme="light"] .scroll-indicator span {
  background: linear-gradient(180deg, rgba(21,123,232,0), rgba(21,123,232,0.62), rgba(21,123,232,0));
}

html[data-theme="light"] .panel-tags span,
html[data-theme="light"] .story-tags span {
  background: rgba(21,123,232,0.08);
  border-color: rgba(21,123,232,0.12);
  color: var(--text);
}

html[data-theme="light"] .contact-form {
  background: rgba(255,255,255,0.64);
  border-color: rgba(21,123,232,0.12);
  box-shadow: 0 18px 48px rgba(18,38,79,0.10);
}

html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form textarea {
  background: rgba(255,255,255,0.95);
  border-color: rgba(21,123,232,0.16);
  color: #0f1a2f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

html[data-theme="light"] .contact-form input::placeholder,
html[data-theme="light"] .contact-form textarea::placeholder {
  color: #6d7f9c;
}

html[data-theme="light"] .contact-form input:focus,
html[data-theme="light"] .contact-form textarea:focus {
  outline: none;
  border-color: rgba(21,123,232,0.32);
  box-shadow: 0 0 0 4px rgba(68,177,255,0.10);
}

html[data-theme="light"] .case-study-insane::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(68,177,255,0.14), transparent 20%),
    radial-gradient(circle at 82% 35%, rgba(21,123,232,0.08), transparent 24%);
}

html[data-theme="light"] .case-visual-shell {
  background:
    radial-gradient(circle at 50% 14%, rgba(68,177,255,0.16), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(235,243,255,0.94));
  border-color: rgba(21,123,232,0.12);
  box-shadow: 0 20px 46px rgba(18,38,79,0.12);
}

html[data-theme="light"] .premium-window {
  background:
    radial-gradient(circle at 50% 22%, rgba(68,177,255,0.18), transparent 24%),
    linear-gradient(180deg, rgba(248,251,255,0.98), rgba(232,240,252,0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 18px 40px rgba(18,38,79,0.10);
}

html[data-theme="light"] .mock-window {
  border-color: rgba(21,123,232,0.10);
}

html[data-theme="light"] .mock-topbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(235,243,255,0.58));
  border-bottom-color: rgba(21,123,232,0.08);
}

html[data-theme="light"] .mock-topbar span {
  background: rgba(21,123,232,0.18);
}

html[data-theme="light"] .visual-caption {
  color: #556a88;
  border-top-color: rgba(21,123,232,0.08);
}

html[data-theme="light"] .visual-glow {
  background: radial-gradient(circle, rgba(68,177,255,0.24), transparent 68%);
}

html[data-theme="light"] .hero-diagram {
  background:
    radial-gradient(circle at 50% 52%, rgba(68,177,255,0.20), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.08));
}

html[data-theme="light"] .hero-node {
  color: #0f1a2f;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(231,239,255,0.96));
  border-color: rgba(21,123,232,0.16);
  box-shadow:
    0 12px 28px rgba(18,38,79,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

html[data-theme="light"] .hero-connector {
  background: linear-gradient(90deg, rgba(21,123,232,0), rgba(21,123,232,0.62), rgba(21,123,232,0));
  opacity: 0.85;
}

html[data-theme="light"] .hero-mesh span {
  background: linear-gradient(90deg, rgba(21,123,232,0), rgba(21,123,232,0.22), rgba(21,123,232,0));
  opacity: 0.55;
}

html[data-theme="light"] .arch-panel,
html[data-theme="light"] .outcome-card,
html[data-theme="light"] .metric-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(233,241,255,0.94));
  border-color: rgba(21,123,232,0.12);
  box-shadow:
    0 12px 28px rgba(18,38,79,0.08),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

html[data-theme="light"] .arch-panel p,
html[data-theme="light"] .outcome-card strong,
html[data-theme="light"] .metric-card h4 {
  color: #0f1a2f;
}

html[data-theme="light"] .arch-panel span,
html[data-theme="light"] .outcome-card > span {
  color: #607493;
}

html[data-theme="light"] .arch-grid-graphic i {
  border-color: rgba(21,123,232,0.14);
  background: rgba(21,123,232,0.04);
}

html[data-theme="light"] .journey-flow i {
  border-color: rgba(21,123,232,0.12);
  background: linear-gradient(90deg, rgba(21,123,232,0.08), rgba(68,177,255,0.18));
}

html[data-theme="light"] .docs-side {
  border-right-color: rgba(21,123,232,0.08);
  background: rgba(255,255,255,0.18);
}

html[data-theme="light"] .docs-nav-item {
  color: #607493;
  background: rgba(255,255,255,0.72);
  border-color: rgba(21,123,232,0.08);
}

html[data-theme="light"] .docs-nav-item.active {
  background: rgba(21,123,232,0.10);
  color: #0f1a2f;
  border-color: rgba(21,123,232,0.14);
}

html[data-theme="light"] .docs-text-card,
html[data-theme="light"] .docs-mini-card,
html[data-theme="light"] .docs-bottom-code {
  background: rgba(255,255,255,0.76);
  border-color: rgba(21,123,232,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

html[data-theme="light"] .docs-top-lines span,
html[data-theme="light"] .docs-text-card span,
html[data-theme="light"] .docs-bottom-code span {
  background: linear-gradient(90deg, rgba(68,177,255,0.18), rgba(21,123,232,0.32));
}

html[data-theme="light"] .png-slot,
html[data-theme="light"] .gallery-media {
  background: rgba(68,177,255,0.08);
  border-color: rgba(21,123,232,0.20);
}

html[data-theme="light"] .png-fallback,
html[data-theme="light"] .gallery-placeholder {
  color: #157be8;
}

html[data-theme="light"] .outcome-beams span {
  background: linear-gradient(180deg, rgba(68,177,255,0.58), rgba(68,177,255,0.08));
  box-shadow: 0 0 20px rgba(68,177,255,0.18);
}

html[data-theme="light"] .back-link,
html[data-theme="light"] .footer-inner p {
  color: #607493;
}

.page-toolbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1200;
}

.page-toolbar .theme-toggle {
  backdrop-filter: blur(14px);
}

@media (max-width: 760px) {
  .page-toolbar {
    top: 0.8rem;
    right: 0.8rem;
  }
}

.case-visual-flow {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.visual-block {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.visual-block.full img {
  width: 100%;
}

.visual-block.full img.cost-chart {
  width: 60%;
  max-width: 500px;
  margin: 24px auto 0;
  display: block;
}

.visual-block img {
  width: 100%;
  border-radius: 16px;
  margin-top: 16px;
  display: block;
}

.visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.visual-copy h3 {
  margin-bottom: 10px;
}

.visual-copy p {
  margin-bottom: 0;
}

.image-caption {
  font-size: 13px;
  opacity: 0.72;
  margin-top: 10px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .visual-row {
    grid-template-columns: 1fr;
  }
}

.visual-block {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  border: 1px solid rgba(120, 160, 220, 0.14);
}

.visual-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20, 40, 90, 0.12);
  border-color: rgba(70, 140, 255, 0.22);
}

.visual-block {
  overflow: hidden;
}

.visual-block img {
  transition: transform 0.45s ease, filter 0.45s ease;
}

.visual-block:hover img {
  transform: scale(1.018);
}
body:not(.light-mode) .visual-block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(70, 170, 255, 0.08);
}

body:not(.light-mode) .visual-block:hover {
  box-shadow:
    0 18px 40px rgba(10, 20, 45, 0.42),
    0 0 24px rgba(40, 150, 255, 0.08);
}

.image-caption {
  position: relative;
  padding-top: 12px;
}

.image-caption::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(100, 130, 180, 0.35);
  margin-bottom: 10px;
}

