/*
  CoreShift CodeLabs premium visual system
  ----------------------------------------
  This is a static CSS system: no build tools, no frameworks, and no server dependency.

  Editing guide:
  - Brand colors live in :root.
  - Most cards use the shared glass-panel styling.
  - Motion uses transform/opacity for smoother performance.
  - Breakpoints are at 1024px, 820px, and 640px.
*/
:root {
  --ink: #f7fbff;
  --paper: #ffffff;
  --bg: #050813;
  --bg-2: #08111f;
  --panel: rgba(12, 24, 42, 0.72);
  --panel-strong: rgba(15, 30, 52, 0.9);
  --line: rgba(143, 169, 199, 0.18);
  --line-strong: rgba(64, 213, 255, 0.34);
  --muted: #9ab0c8;
  --muted-2: #c6d5e6;
  --cyan: #00eaff;
  --blue: #2f7cff;
  --green: #7cff6b;
  --violet: #9a7cff;
  --amber: #ffbf69;
  --danger: #ff7b7b;
  --success: #7cffb2;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --glow: 0 0 34px rgba(0, 234, 255, 0.22);
  --radius: 8px;
  --header-height: 78px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-ui: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-micro: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-fast: 160ms;
  --motion-base: 280ms;
  --motion-section: 640ms;
  --motion-distance: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Sora, "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 4%, rgba(47, 124, 255, 0.22), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(0, 234, 255, 0.16), transparent 32%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 52%, #050813);
  line-height: 1.6;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px);
  mix-blend-mode: soft-light;
}

body.is-loading {
  overflow: hidden;
}

body.page-leaving {
  opacity: 0;
  transform: translateY(-14px) scale(0.992);
  transition: opacity 220ms var(--ease-exit), transform 220ms var(--ease-exit);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(0, 234, 255, 0.82);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  background:
    linear-gradient(115deg, rgba(0, 234, 255, 0.12), transparent 42%),
    radial-gradient(circle at center, rgba(124, 255, 107, 0.12), transparent 38%),
    #050813;
  clip-path: inset(0 0 0 0);
  transition: clip-path 520ms var(--ease-entrance), opacity 360ms var(--ease-entrance), visibility 360ms var(--ease-entrance);
}

.loader span {
  position: relative;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(0, 234, 255, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 234, 255, 0.18), rgba(124, 255, 107, 0.12)),
    url("../brand/coreshift-logo-mark.svg") center / 52px 52px no-repeat;
  box-shadow: var(--glow);
  animation: brandPulse 760ms var(--ease-ui) both;
}

.loader span::after {
  content: "CoreShift CodeLabs";
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  width: max-content;
  color: var(--muted-2);
  font-size: 0.9rem;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

body:not(.is-loading) .loader {
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

/*
  Scroll progress indicator.
  The width starts at 0 and main.js expands it based on how far down the page is.
*/
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 850;
  width: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--violet));
  box-shadow: 0 0 22px rgba(0, 234, 255, 0.48);
  transition: width 120ms var(--ease-micro);
}

@keyframes brandPulse {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(5, 8, 19, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  transition: background var(--motion-base) var(--ease-micro), box-shadow var(--motion-base) var(--ease-micro), border-color var(--motion-base) var(--ease-micro);
}

.site-header.is-scrolled {
  background: rgba(5, 8, 19, 0.9);
  border-color: rgba(0, 234, 255, 0.2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.nav-shell {
  width: min(1220px, calc(100% - 36px));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  filter: drop-shadow(0 0 14px rgba(0, 234, 255, 0.18));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-menu a {
  position: relative;
  padding: 10px 13px;
  border-radius: var(--radius);
  color: var(--muted-2);
  font-weight: 700;
  transition: color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta,
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 820;
  transition: transform var(--motion-fast) var(--ease-ui), box-shadow var(--motion-base) var(--ease-micro), border-color var(--motion-base) var(--ease-micro), background var(--motion-base) var(--ease-micro);
}

.nav-cta::before,
.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-70%);
  transition: opacity 240ms var(--ease), transform 620ms var(--ease);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px) scale(1.03);
}

.nav-cta:hover::before,
.button:hover::before {
  opacity: 1;
  transform: translateX(70%);
}

.nav-cta:active,
.button:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.button-ripple {
  position: absolute;
  left: var(--ripple-x);
  top: var(--ripple-y);
  z-index: -1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.58);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut 620ms var(--ease-entrance) forwards;
}

@keyframes rippleOut {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(24);
  }
}

.button svg,
.nav-cta svg,
.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-cta,
.button.primary {
  color: #021019;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 14px 34px rgba(0, 234, 255, 0.18);
}

.button.primary:hover,
.nav-cta:hover {
  box-shadow: 0 18px 48px rgba(0, 234, 255, 0.3);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.button.light {
  background: var(--ink);
  color: #050813;
}

.button.outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.24);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

/*
  Desktop cursor, section dots, and back-to-top affordance.
  These are injected by main.js so static HTML stays clean.
*/
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity var(--motion-base) var(--ease-micro), width var(--motion-fast) var(--ease-ui), height var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-micro), background var(--motion-fast) var(--ease-micro);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.7);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 234, 255, 0.52);
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring {
  opacity: 1;
}

body.cursor-hover .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(124, 255, 107, 0.72);
  background: rgba(0, 234, 255, 0.08);
}

.section-dots {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 760;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.section-dots button {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: transform var(--motion-fast) var(--ease-ui), background var(--motion-fast) var(--ease-micro), border-color var(--motion-fast) var(--ease-micro);
}

.section-dots button::after {
  content: attr(aria-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 780;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 8, 19, 0.92);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-50%) scale(0.92);
  transform-origin: right center;
  transition: opacity var(--motion-fast) var(--ease-micro), transform var(--motion-fast) var(--ease-ui);
}

.section-dots button:hover::after,
.section-dots button:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.section-dots button:hover,
.section-dots button.is-active {
  transform: scale(1.45);
  border-color: rgba(0, 234, 255, 0.78);
  background: var(--cyan);
  box-shadow: var(--glow);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 760;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    conic-gradient(var(--cyan) calc(var(--scroll-progress-ring, 0) * 1%), rgba(255, 255, 255, 0.12) 0),
    rgba(5, 8, 19, 0.76);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition: opacity var(--motion-base) var(--ease-micro), visibility var(--motion-base) var(--ease-micro), transform var(--motion-base) var(--ease-ui);
  backdrop-filter: blur(16px);
}

.back-to-top::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: rgba(5, 8, 19, 0.9);
}

.back-to-top svg {
  position: relative;
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.hero {
  position: relative;
  min-height: min(800px, calc(100svh - var(--header-height) - 24px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
}

.hero-particles,
.hero-bg,
.hero-overlay,
.hero-mesh {
  position: absolute;
  inset: 0;
}

.hero-particles {
  z-index: 1;
  opacity: 0.78;
}

.hero-bg {
  z-index: -2;
  opacity: 0.34;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.1);
}

.hero-mesh {
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(5, 8, 19, 0.98) 0%, rgba(5, 8, 19, 0.83) 48%, rgba(5, 8, 19, 0.52) 100%),
    linear-gradient(140deg, rgba(0, 234, 255, 0.16), transparent 34%),
    linear-gradient(24deg, transparent 52%, rgba(255, 191, 105, 0.1) 72%, rgba(154, 124, 255, 0.14) 100%);
  animation: meshShift 13s var(--ease) infinite alternate;
}

@keyframes meshShift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.05) translate3d(-14px, 10px, 0);
  }
}

.hero-overlay {
  z-index: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 19, 0.86) 100%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.86fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(68px, 8vw, 104px) clamp(52px, 7vw, 82px);
}

.hero-content {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.04;
}

h1 {
  max-width: 820px;
  font-size: 4.75rem;
  font-weight: 900;
}

.hero-home h1 {
  max-width: 760px;
  font-size: clamp(4.1rem, 7.2vw, 6.5rem);
  line-height: 0.94;
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.52);
}

.hero-home h1 .split-word:first-child {
  background: linear-gradient(135deg, var(--ink) 0%, var(--cyan) 46%, var(--green) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: none;
}

h2 {
  font-size: 2.75rem;
  font-weight: 880;
}

h3 {
  font-size: 1.1rem;
  font-weight: 820;
}

.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: wordIn 720ms var(--ease) forwards;
  animation-delay: calc(var(--word-index, 0) * 58ms + 170ms);
}

@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted-2);
  font-size: 1.14rem;
}

.hero-statement {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  line-height: 1.13;
  font-weight: 840;
}

.hero-statement::after {
  content: "";
  display: block;
  width: min(340px, 64%);
  height: 3px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  box-shadow: 0 0 24px rgba(0, 234, 255, 0.28);
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted-2);
  font-size: 0.94rem;
  font-weight: 780;
  backdrop-filter: blur(14px);
}

.hero-proof-row svg {
  width: 17px;
  height: 17px;
  color: var(--cyan);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-console,
.showcase-window,
.showcase-panel,
.showcase-code,
.product-stage,
.signal-panel,
.orbital-card,
.flow-panel,
.service-card,
.testimonial-card,
.value-card,
.team-card,
.service-detail,
.faq-item,
.contact-form,
.contact-info,
.story-panel,
.expertise-list,
.timeline,
.founder-card,
.case-card,
.before-after-panel,
.case-modal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-console {
  position: relative;
  min-height: 420px;
  padding: 24px;
  overflow: hidden;
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.console-topline,
.console-metric,
.console-bars,
.console-grid,
.console-status {
  position: relative;
  z-index: 1;
}

.console-topline {
  display: flex;
  gap: 7px;
}

.console-topline span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 234, 255, 0.5);
}

.console-topline span:nth-child(2) {
  background: var(--blue);
}

.console-topline span:nth-child(3) {
  background: var(--green);
}

.console-metric {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 34px;
}

.console-metric small {
  color: var(--muted);
  font-weight: 760;
}

.console-metric strong {
  color: var(--cyan);
  font-size: 3.5rem;
  line-height: 0.95;
  text-shadow: 0 0 20px rgba(0, 234, 255, 0.25);
}

.console-bars {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.console-bars span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.console-bars span::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  animation: loadBar 1.8s var(--ease) both;
}

@keyframes loadBar {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 32px;
}

.console-grid span {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.console-grid span:nth-child(3n) {
  background: rgba(0, 234, 255, 0.16);
  box-shadow: var(--glow);
}

.console-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted-2);
  font-weight: 760;
}

.console-status svg {
  color: var(--green);
}

/*
  Hero command-center visual.
  The parent stays unframed while separate panels overlap to create a more custom,
  premium product-interface impression.
*/
.hero-showcase {
  position: relative;
  min-height: 560px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 54px 14px 18px 44px;
  opacity: 0.46;
  border: 1px solid rgba(0, 234, 255, 0.12);
  border-radius: var(--radius);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: rotateX(62deg) rotateZ(-18deg) translateY(48px);
  transform-origin: center;
}

.showcase-window,
.showcase-panel,
.showcase-code {
  position: absolute;
  overflow: hidden;
}

.showcase-main {
  inset: 58px 34px 70px 18px;
  padding: 24px;
  transform: rotateX(4deg) rotateY(-7deg) rotateZ(0.5deg);
  animation: floatPanel 7s var(--ease) infinite alternate;
}

.showcase-main::before,
.showcase-code::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.showcase-topline,
.showcase-head,
.showcase-bars,
.system-map,
.showcase-code span,
.showcase-panel > * {
  position: relative;
  z-index: 1;
}

.showcase-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.86rem;
  font-weight: 820;
}

.showcase-topline span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.52);
}

.showcase-topline span:nth-child(2) {
  background: var(--green);
}

.showcase-topline span:nth-child(3) {
  background: var(--amber);
}

.showcase-topline strong {
  margin-left: 8px;
}

.showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-top: 32px;
}

.showcase-head small,
.showcase-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.showcase-head strong {
  display: block;
  color: var(--cyan);
  font-size: 4.45rem;
  line-height: 0.9;
  text-shadow: 0 0 28px rgba(0, 234, 255, 0.32);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  color: #06121c;
  font-size: 0.82rem;
  font-weight: 850;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.showcase-bars {
  display: grid;
  gap: 11px;
  margin-top: 28px;
}

.showcase-bars span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.showcase-bars span::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  transform-origin: left;
  animation: loadBar 1.6s var(--ease) both;
}

.system-map {
  min-height: 190px;
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 234, 255, 0.08), rgba(255, 255, 255, 0.025));
}

.map-node,
.map-line,
.map-core {
  position: absolute;
}

.map-node {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 234, 255, 0.46);
  animation: pulseNode 2.2s var(--ease) infinite alternate;
}

.node-a {
  top: 34px;
  left: 16%;
}

.node-b {
  top: 122px;
  left: 28%;
  background: var(--green);
}

.node-c {
  top: 42px;
  right: 22%;
  background: var(--amber);
}

.node-d {
  right: 14%;
  bottom: 28px;
  background: var(--violet);
}

.map-core {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #04111a;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 34px rgba(0, 234, 255, 0.36);
  transform: translate(-50%, -50%);
}

.map-core svg {
  width: 25px;
  height: 25px;
}

.map-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  transform-origin: left center;
  animation: flowTrace 1.8s var(--ease) infinite alternate;
}

.line-a {
  top: 78px;
  left: 20%;
  width: 44%;
  transform: rotate(15deg);
}

.line-b {
  top: 104px;
  left: 34%;
  width: 42%;
  transform: rotate(-18deg);
}

.line-c {
  right: 18%;
  bottom: 58px;
  width: 38%;
  transform: rotate(18deg);
}

.showcase-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 17px;
}

.showcase-panel svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--cyan);
}

.showcase-panel strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.showcase-security {
  top: 12px;
  right: 0;
  width: min(260px, 46%);
  animation: floatPanel 6.4s var(--ease) infinite alternate-reverse;
}

.showcase-delivery {
  right: 18px;
  bottom: 18px;
  width: min(280px, 50%);
  animation: floatPanel 6.8s var(--ease) infinite alternate;
}

.showcase-code {
  left: 0;
  bottom: 28px;
  display: grid;
  gap: 8px;
  width: min(310px, 58%);
  padding: 18px;
  color: var(--muted-2);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  animation: floatPanel 7.4s var(--ease) infinite alternate-reverse;
}

.showcase-code span {
  display: block;
}

.showcase-code span:first-child {
  color: var(--cyan);
}

@keyframes floatPanel {
  to {
    transform: translateY(-10px) rotateX(4deg) rotateY(-5deg);
  }
}

@keyframes pulseNode {
  to {
    transform: scale(1.22);
    opacity: 0.78;
  }
}

@keyframes flowTrace {
  to {
    opacity: 0.48;
    filter: saturate(1.6);
  }
}

.section {
  position: relative;
  padding: 102px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.section-immersive {
  background:
    linear-gradient(180deg, rgba(0, 234, 255, 0.035), rgba(124, 255, 107, 0.025)),
    rgba(255, 255, 255, 0.015);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 38px;
}

.section-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.07rem;
}

.stats-band {
  padding: 28px 0;
  background: rgba(255, 255, 255, 0.035);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  transition: transform var(--motion-base) var(--ease-ui), border-color var(--motion-base) var(--ease-micro), box-shadow var(--motion-base) var(--ease-micro), background var(--motion-base) var(--ease-micro);
}

.stat:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--glow);
}

.stat strong {
  display: block;
  color: var(--cyan);
  font-size: 2.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat[data-static-stat] strong {
  max-width: 12ch;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.12;
  font-variant-numeric: normal;
}

.stat span {
  display: block;
  margin-top: 9px;
  color: var(--muted-2);
  font-weight: 740;
}

/*
  Capability marquee.
  This gives the homepage motion and immediate service clarity without adding
  heavy assets or slowing the first impression.
*/
.capability-marquee {
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(0, 234, 255, 0.08), rgba(255, 191, 105, 0.06), rgba(154, 124, 255, 0.07)),
    rgba(255, 255, 255, 0.025);
}

.capability-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marqueeMove 28s linear infinite;
}

.capability-track span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 15px;
  color: var(--muted-2);
  font-size: 0.94rem;
  font-weight: 820;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
}

.capability-track svg {
  width: 17px;
  height: 17px;
  color: var(--cyan);
}

@keyframes marqueeMove {
  to {
    transform: translateX(-50%);
  }
}

/*
  Product-style outcome showcase.
  It helps visitors picture the kind of operational software CoreShift creates.
*/
.section-product {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 234, 255, 0.055), transparent 35%),
    linear-gradient(225deg, rgba(255, 191, 105, 0.07), transparent 30%),
    rgba(255, 255, 255, 0.014);
}

.section-product::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 22%, rgba(0, 234, 255, 0.32) 22.2% 22.5%, transparent 22.7% 100%),
    linear-gradient(120deg, transparent 0 58%, rgba(255, 191, 105, 0.24) 58.2% 58.5%, transparent 58.7% 100%);
}

.product-showcase-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.15fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}

.product-copy h2 {
  max-width: 680px;
}

.showcase-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.showcase-tab {
  min-height: 42px;
  padding: 9px 13px;
  color: var(--muted-2);
  font-weight: 820;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.showcase-tab:hover,
.showcase-tab.is-active {
  color: #041019;
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  transform: translateY(-1px);
}

.product-stage {
  position: relative;
  min-height: 520px;
  padding: 22px;
  overflow: hidden;
  transform-style: preserve-3d;
  background:
    linear-gradient(150deg, rgba(0, 234, 255, 0.16), rgba(255, 255, 255, 0.065) 42%, rgba(124, 255, 107, 0.1)),
    rgba(10, 22, 39, 0.88);
  transition: border-color 260ms var(--ease), box-shadow 260ms var(--ease), transform 260ms var(--ease);
}

.product-stage:hover {
  border-color: var(--line-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42), var(--glow);
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}

.product-stage::after {
  content: "";
  position: absolute;
  inset: 12% -16% auto 40%;
  height: 220px;
  opacity: 0.18;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  filter: blur(18px);
  transform: rotate(-12deg);
}

.stage-toolbar,
.stage-grid {
  position: relative;
  z-index: 1;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--muted-2);
  font-size: 0.88rem;
  font-weight: 840;
}

.stage-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 234, 255, 0.42);
}

.stage-toolbar span:nth-child(2) {
  background: var(--green);
}

.stage-toolbar span:nth-child(3) {
  background: var(--amber);
}

.stage-toolbar strong {
  margin-left: 8px;
}

.stage-grid {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.stage-rail {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 406px;
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.stage-rail span {
  display: block;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.stage-rail span.active {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: var(--glow);
}

.stage-dashboard {
  min-height: 406px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(0, 234, 255, 0.12), rgba(255, 255, 255, 0.075) 46%, rgba(255, 191, 105, 0.075)),
    rgba(4, 12, 24, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stage-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.stage-dashboard-head small,
.stage-metrics span {
  color: var(--muted);
  font-weight: 780;
}

.stage-dashboard-head h3 {
  margin-top: 7px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.stage-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 11px;
  color: #041019;
  font-size: 0.82rem;
  font-weight: 860;
  white-space: nowrap;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.stage-metrics article {
  min-height: 106px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.stage-metrics article:nth-child(1) {
  background: linear-gradient(180deg, rgba(0, 234, 255, 0.13), rgba(255, 255, 255, 0.045));
}

.stage-metrics article:nth-child(2) {
  background: linear-gradient(180deg, rgba(124, 255, 107, 0.12), rgba(255, 255, 255, 0.045));
}

.stage-metrics article:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 191, 105, 0.12), rgba(255, 255, 255, 0.045));
}

.stage-metrics strong {
  display: block;
  color: var(--cyan);
  font-size: 2.15rem;
  line-height: 1;
}

.stage-flow {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.stage-flow span {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.stage-flow span::before {
  content: "";
  display: block;
  width: var(--flow);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  animation: loadBar 1.7s var(--ease) both;
}

.stage-activity {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.stage-activity div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--muted-2);
  font-weight: 760;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.stage-activity svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.product-stage.is-switching .stage-dashboard {
  animation: stageRefresh 360ms var(--ease);
}

@keyframes stageRefresh {
  from {
    opacity: 0.58;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.premium-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.premium-grid .service-card {
  grid-column: span 2;
}

.premium-grid .service-card:nth-child(1),
.premium-grid .service-card:nth-child(2) {
  grid-column: span 3;
  min-height: 282px;
}

.service-card,
.value-card,
.team-card,
.founder-card,
.testimonial-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.service-card,
.value-card,
.team-card,
.testimonial-card {
  min-height: 248px;
}

.service-card::before,
.value-card::before,
.team-card::before,
.founder-card::before,
.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 234, 255, 0.18), transparent 36%);
  transition: opacity 260ms var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  opacity: 0.64;
}

.service-card:hover,
.value-card:hover,
.team-card:hover,
.founder-card:hover,
.testimonial-card:hover,
.case-card:hover,
.before-after-panel:hover,
.service-detail:hover {
  border-color: var(--line-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42), var(--glow);
}

.service-card:hover::before,
.value-card:hover::before,
.team-card:hover::before,
.founder-card:hover::before,
.testimonial-card:hover::before {
  opacity: 1;
}

.service-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 1.08rem;
  font-weight: 860;
}

.service-card svg,
.choice-item svg,
.value-card svg,
.trust-item svg,
.service-detail-header svg,
.contact-info svg {
  width: 31px;
  height: 31px;
  color: var(--cyan);
  transition: transform 260ms var(--ease), color 260ms var(--ease);
}

.service-card:hover svg,
.choice-item:hover svg,
.value-card:hover svg,
.trust-item:hover svg,
.service-detail:hover svg {
  color: var(--green);
  transform: scale(1.06) rotate(3deg);
}

.service-card h3,
.value-card h3,
.team-card h3 {
  position: relative;
  margin-top: 16px;
}

.service-card h3 {
  font-size: 1.24rem;
}

.service-card p,
.value-card p,
.team-card p,
.founder-card p,
.service-detail p,
.faq-answer p,
.story-panel p,
.timeline p {
  color: var(--muted);
}

.split-layout,
.transformation-layout,
.story-layout,
.trust-grid,
.contact-layout,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.choice-grid,
.trust-list {
  display: grid;
  gap: 14px;
}

.choice-grid {
  grid-template-columns: repeat(2, 1fr);
}

.choice-item,
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted-2);
  font-weight: 780;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.choice-item:hover,
.trust-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.testimonial-grid,
.value-grid,
.team-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-grid {
  grid-template-columns: repeat(4, 1fr);
}

.testimonial-grid-single {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.testimonial-grid-single .testimonial-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 28px;
}

.testimonial-card picture,
.testimonial-card img {
  display: block;
}

.testimonial-card img {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(0, 234, 255, 0.34);
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card p {
  margin: 18px 0;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span,
.team-card span {
  color: var(--muted);
  font-size: 0.93rem;
}

.flow-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  min-height: 260px;
  padding: 24px;
}

.flow-node {
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-2);
  font-weight: 780;
  text-align: center;
}

.flow-node.active {
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}

.flow-node svg {
  color: var(--cyan);
}

.flow-line {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  animation: linePulse 1.8s var(--ease) infinite alternate;
}

/*
  Before/after transformation panel.
  It spans the full transformation grid so it reads as a single comparison story.
*/
.before-after-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  overflow: hidden;
}

.before-after-column {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.before-after-column.before {
  background:
    linear-gradient(180deg, rgba(255, 123, 123, 0.08), rgba(255, 255, 255, 0.035));
}

.before-after-column.after {
  background:
    linear-gradient(180deg, rgba(0, 234, 255, 0.1), rgba(124, 255, 107, 0.045));
}

.panel-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.before-after-column h3 {
  max-width: 360px;
  font-size: 1.38rem;
}

.before-after-column ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
}

.before-after-column li {
  position: relative;
  padding-left: 20px;
}

.before-after-column li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow);
}

.shift-core {
  display: grid;
  place-items: center;
  align-self: center;
  gap: 8px;
  width: 86px;
  min-height: 86px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(0, 234, 255, 0.1);
  box-shadow: var(--glow);
}

.shift-core svg {
  color: var(--green);
}

@keyframes linePulse {
  to {
    opacity: 0.42;
    transform: scaleX(0.8);
  }
}

.case-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, rgba(0, 234, 255, 0.1), transparent 48%, rgba(255, 191, 105, 0.08));
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.case-card::before {
  content: "";
  position: absolute;
  inset: auto 22px 20px auto;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(0, 234, 255, 0.36) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(124, 255, 107, 0.28) 49% 51%, transparent 52%);
  opacity: 0.42;
  transform: rotate(18deg);
}

.case-card:hover {
  transform: translateY(-8px) scale(1.01);
}

.case-card span,
.case-card small {
  position: relative;
  display: block;
  color: var(--muted);
  font-weight: 760;
}

.case-card strong {
  position: relative;
  display: block;
  margin: 34px 0 12px;
  font-size: 1.28rem;
  line-height: 1.18;
}

.case-card em {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 7px 10px;
  color: #051019;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 860;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--ease), visibility 220ms var(--ease);
}

.case-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.case-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.case-modal-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 30px;
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms var(--ease);
}

.case-modal.is-open .case-modal-panel {
  transform: translateY(0) scale(1);
}

.case-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.page-hero {
  padding: 136px 0 82px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 234, 255, 0.08), rgba(124, 255, 107, 0.035)),
    rgba(255, 255, 255, 0.018);
}

.compact-hero h1 {
  max-width: 900px;
  font-size: 3.45rem;
}

.signal-panel,
.orbital-card {
  min-height: 230px;
  padding: 24px;
}

.signal-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.signal-panel span,
.orbital-card span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted-2);
  font-weight: 820;
  background: rgba(255, 255, 255, 0.05);
}

.orbital-card {
  display: grid;
  gap: 12px;
}

.service-detail-stack {
  display: grid;
  gap: 24px;
}

.service-detail {
  padding: 30px;
  scroll-margin-top: 100px;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.service-detail-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0;
  margin: 26px 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  counter-increment: process;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted-2);
  font-weight: 760;
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  color: var(--cyan);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.story-panel,
.expertise-list,
.timeline {
  padding: 30px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 2px solid rgba(0, 234, 255, 0.36);
}

.timeline span {
  color: var(--cyan);
  font-weight: 860;
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(0, 234, 255, 0.34);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 234, 255, 0.2), rgba(124, 255, 107, 0.12));
  color: var(--ink);
  font-weight: 900;
}

/*
  Founder cards.
  Photos are cropped with object-fit so portrait and landscape source images can
  sit together cleanly without manually editing the original files.
*/
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  scroll-margin-top: 110px;
}

.founder-card {
  display: grid;
  grid-template-rows: 300px 1fr;
  min-height: 100%;
  padding: 0;
}

.founder-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  opacity: 0.72;
}

.founder-photo {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 234, 255, 0.16), rgba(124, 255, 107, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  filter: saturate(1.04) contrast(1.03);
}

.founder-photo-portrait {
  background:
    linear-gradient(135deg, #f7fbff, #e3edf7),
    rgba(255, 255, 255, 0.92);
}

.founder-photo-portrait img {
  object-fit: contain;
  object-position: center bottom;
}

.founder-photo-wide img {
  object-position: center 32%;
}

.founder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 64%, rgba(5, 8, 19, 0.16));
}

.founder-photo-portrait::after {
  background: linear-gradient(180deg, transparent 76%, rgba(5, 8, 19, 0.1));
}

.founder-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.founder-role {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 860;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.founder-content h3 {
  font-size: 1.62rem;
  line-height: 1.08;
  margin-top: 6px;
}

.founder-content p {
  margin-top: 12px;
}

.founder-credentials {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.founder-credentials li {
  position: relative;
  padding-left: 24px;
  color: var(--muted-2);
  font-weight: 720;
}

.founder-credentials li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: var(--glow);
}

.contact-form,
.contact-info {
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

select option {
  color: #07111f;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 4px rgba(0, 234, 255, 0.11);
  outline: none;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 123, 123, 0.1);
}

input[aria-invalid="false"],
select[aria-invalid="false"],
textarea[aria-invalid="false"] {
  border-color: rgba(124, 255, 178, 0.46);
}

.floating-field {
  position: relative;
}

.floating-field label {
  position: absolute;
  top: 13px;
  left: 14px;
  margin: 0;
  color: var(--muted);
  pointer-events: none;
  transition: transform 180ms var(--ease), color 180ms var(--ease), font-size 180ms var(--ease);
}

.floating-field input,
.floating-field textarea {
  padding-top: 22px;
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:focus + label,
.floating-field textarea:not(:placeholder-shown) + label {
  color: var(--cyan);
  font-size: 0.76rem;
  transform: translateY(-9px);
}

.field-error {
  display: block;
  min-height: 20px;
  margin-top: 5px;
  color: var(--danger);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity var(--motion-fast) var(--ease-micro), transform var(--motion-fast) var(--ease-ui);
}

.field-error:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--success);
  font-weight: 760;
  transition: transform var(--motion-base) var(--ease-ui), opacity var(--motion-base) var(--ease-micro);
}

.contact-form.is-success {
  border-color: rgba(124, 255, 178, 0.48);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42), 0 0 38px rgba(124, 255, 178, 0.18);
}

.contact-form.is-success .form-status {
  transform: translateY(-2px);
}

.contact-info {
  display: grid;
  gap: 14px;
}

.contact-info article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-info article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-info h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info p,
.contact-info a {
  color: var(--muted);
}

.faq-wrap {
  max-width: 940px;
}

.faq-item {
  overflow: hidden;
  margin-bottom: 14px;
}

.faq-question {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 860;
  text-align: left;
}

.faq-question svg {
  flex: 0 0 auto;
  transition: transform 220ms var(--ease), color 220ms var(--ease);
}

.faq-question:hover svg,
.faq-question[aria-expanded="true"] svg {
  color: var(--cyan);
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms var(--ease);
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  padding: 0 22px;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
}

.faq-question[aria-expanded="true"] + .faq-answer p {
  padding-bottom: 22px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  background:
    linear-gradient(135deg, rgba(0, 234, 255, 0.12), rgba(124, 255, 107, 0.08)),
    rgba(255, 255, 255, 0.035);
  color: var(--ink);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  opacity: 0.22;
  pointer-events: none;
  background: conic-gradient(from 90deg, transparent, var(--cyan), var(--green), var(--violet), transparent);
  filter: blur(42px);
  animation: ctaGlow 7s var(--ease-entrance) infinite alternate;
}

@keyframes ctaGlow {
  to {
    transform: rotate(18deg) scale(1.08);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.cta-content h2 {
  max-width: 760px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.42);
  color: var(--muted);
  padding: 58px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
  content: "CORESHIFT";
  position: absolute;
  left: 50%;
  bottom: -0.34em;
  color: rgba(255, 255, 255, 0.035);
  font-size: 12rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: var(--ink);
  margin-bottom: 12px;
}

.site-footer h2 {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: var(--muted);
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

.site-footer a:hover {
  color: var(--cyan);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(var(--motion-distance)) scale(0.985);
  transition: opacity var(--motion-section) var(--ease-entrance), transform var(--motion-section) var(--ease-entrance);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1024px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero-layout,
  .page-hero-grid,
  .product-showcase-layout,
  .split-layout,
  .transformation-layout,
  .story-layout,
  .trust-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    width: min(100%, 720px);
    min-height: 520px;
    margin-inline: auto;
  }

  .product-showcase-layout {
    align-items: start;
  }

  .product-stage {
    width: min(100%, 760px);
    min-height: auto;
    margin-inline: auto;
  }

  .stats-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid,
  .case-grid,
  .detail-columns,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-grid .service-card,
  .premium-grid .service-card:nth-child(1),
  .premium-grid .service-card:nth-child(2) {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Switch navigation before its labels crowd the wordmark on small laptops.
   Keep this breakpoint aligned with closeNavigation() in main.js. */
@media (max-width: 1100px) {
  .nav-shell {
    position: relative;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 8, 19, 0.94);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms var(--ease);
  }

  .section-dots,
  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 12px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    padding-block: 68px 54px;
  }

  .compact-hero h1,
  h1 {
    font-size: 2.65rem;
  }

  .hero-home h1 {
    font-size: clamp(3.15rem, 12vw, 4.8rem);
  }

  .hero-showcase {
    min-height: 500px;
  }

  .showcase-main {
    inset: 46px 18px 86px;
  }

  .showcase-security {
    top: 0;
    right: 10px;
    width: min(260px, 48%);
  }

  .showcase-delivery {
    right: 18px;
    bottom: 0;
    width: min(270px, 48%);
  }

  .showcase-code {
    left: 10px;
    bottom: 14px;
    width: min(300px, 56%);
  }

  .flow-panel {
    grid-template-columns: 1fr;
  }

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

  .flow-line {
    width: 2px;
    height: 38px;
    margin-inline: auto;
  }

  .stage-grid {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .stage-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .before-after-panel {
    grid-template-columns: 1fr;
  }

  .shift-core {
    width: 100%;
    min-height: 64px;
  }

  .cta-content,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-shell {
    width: min(100% - 28px, 1180px);
  }

  .brand span {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section {
    padding: 72px 0;
  }

  .page-hero {
    padding: 112px 0 64px;
  }

  .compact-hero h1,
  h1 {
    font-size: 2.18rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-layout {
    gap: 34px;
    padding-block: 42px 30px;
  }

  .hero-home h1 {
    font-size: clamp(2.85rem, 13vw, 3.45rem);
  }

  .hero-statement {
    font-size: 1.14rem;
    line-height: 1.24;
  }

  .hero-statement::after {
    width: min(280px, 72%);
    margin-top: 18px;
  }

  .hero-proof-row {
    display: none;
  }

  .hero-showcase {
    display: none;
  }

  .showcase-main {
    inset: 30px 0 76px;
    padding: 18px;
  }

  .showcase-head {
    margin-top: 22px;
  }

  .showcase-head strong {
    font-size: 3.2rem;
  }

  .system-map {
    min-height: 145px;
    margin-top: 20px;
  }

  .showcase-security {
    top: 0;
    right: 0;
    width: 68%;
    min-height: 74px;
  }

  .showcase-delivery {
    display: none;
  }

  .showcase-code {
    left: 0;
    bottom: 0;
    width: 74%;
    padding: 14px;
    font-size: 0.76rem;
  }

  .capability-track {
    animation-duration: 24s;
  }

  .product-showcase-layout {
    gap: 28px;
  }

  .showcase-switcher {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .stage-rail {
    display: none;
  }

  .stage-dashboard {
    min-height: auto;
    padding: 18px;
  }

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

  .stage-metrics article {
    min-height: auto;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }

  .site-footer::before {
    font-size: 5.5rem;
  }

  .service-grid,
  .premium-grid,
  .stats-grid,
  .testimonial-grid,
  .value-grid,
  .team-grid,
  .founders-grid,
  .case-grid,
  .detail-columns,
  .process-list,
  .choice-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-console,
  .product-stage,
  .service-detail,
  .contact-form,
  .contact-info,
  .story-panel,
  .before-after-panel,
  .timeline,
  .case-modal-panel {
    padding: 22px;
  }

  .before-after-column {
    min-height: auto;
    padding: 18px;
  }

  .service-card {
    min-height: auto;
  }

  .founder-card {
    grid-template-rows: 260px 1fr;
  }

  .signal-panel {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .split-word {
    opacity: 1;
    transform: none;
  }

  .cursor-dot,
  .cursor-ring,
  .section-dots {
    display: none;
  }

  .capability-track,
  .showcase-main,
  .showcase-security,
  .showcase-delivery,
  .showcase-code,
  .map-node,
  .map-line,
  .hero-mesh {
    animation: none !important;
  }
}
