:root {
  --bg: #030306;
  --ink: #f7f0df;
  --muted: #b9b1a2;
  --line: rgba(201, 168, 76, 0.2);
  --gold: #c9a84c;
  --gold-soft: #efd983;
  --cyan: #27f2ff;
  --violet: #8a63ff;
  --ember: #e84c30;
  --panel: rgba(12, 12, 18, 0.78);
  --panel-strong: rgba(18, 18, 27, 0.92);
  --max: 1180px;
  --theatre-pulse: 0.72;
  --theatre-bloom: 0.64;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scrollbar-color: rgba(39, 242, 255, 0.82) rgba(201, 168, 76, 0.12);
  scrollbar-width: auto;
}

::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

::-webkit-scrollbar-track {
  background: rgba(201, 168, 76, 0.12);
  border-left: 1px solid rgba(201, 168, 76, 0.16);
}

::-webkit-scrollbar-thumb {
  min-height: 72px;
  border: 3px solid rgba(3, 3, 6, 0.94);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(39, 242, 255, 0.5), inset 0 0 14px rgba(255, 255, 255, 0.16);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #050508 0%, #07070d 42%, #030306 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body::selection {
  color: #07070b;
  background: var(--gold-soft);
}

a {
  color: inherit;
}

img,
svg,
canvas,
video {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#root,
.mcp-stack-site {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

body > main {
  width: min(100% - 36px, 980px);
  margin: 0 auto;
  padding: 120px 0 72px;
}

body > main h1,
body > main h2,
body > main h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.06;
  letter-spacing: 0;
}

body > main h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 82px);
  color: var(--gold-soft);
}

body > main h2 {
  margin-top: 44px;
  color: var(--cyan);
}

body > main p,
body > main li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.grain,
.scanline,
.cursor-glow,
.scroll-progress,
.skyesol-living-field {
  pointer-events: none;
}

.skyesol-living-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22) 1px, transparent 1px, transparent 7px);
}

.cursor-glow {
  position: fixed;
  z-index: 4;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(39, 242, 255, 0.18), rgba(138, 99, 255, 0.08) 44%, transparent 72%);
  filter: blur(5px);
  mix-blend-mode: screen;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 4px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--violet));
  box-shadow: 0 0 22px rgba(39, 242, 255, 0.58);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.14);
  background: rgba(3, 3, 7, 0.76);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(201, 168, 76, 0.42));
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand small {
  color: rgba(245, 239, 226, 0.62);
  font-size: 12px;
}

.site-nav {
  gap: 24px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
  padding: 10px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.mcp-stack-site main {
  position: relative;
  z-index: 10;
}

.hero,
.metrics,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
  padding: 126px 0 82px;
  overflow: hidden;
}

.hero::after,
.section::after,
.metrics::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.36), rgba(39, 242, 255, 0.16), transparent);
}

.hero-copy {
  position: relative;
  z-index: 15;
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: 900;
}

.mcp-stack-site h1,
.mcp-stack-site h2,
.mcp-stack-site h3,
.mcp-stack-site p {
  margin-top: 0;
}

.mcp-stack-site h1,
.mcp-stack-site h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

.mcp-stack-site h1 {
  max-width: 900px;
  font-size: clamp(50px, 6.2vw, 86px);
  background: linear-gradient(120deg, #fff8e8, var(--gold-soft) 34%, var(--cyan) 64%, #fff8e8);
  background-size: 230% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShimmer 8s linear infinite;
}

.mcp-stack-site h2 {
  max-width: 850px;
  font-size: clamp(34px, 5vw, 64px);
}

.mcp-stack-site h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.15;
}

.lede,
.section-head p,
.proof-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 1.75vw, 20px);
  line-height: 1.62;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 5px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 900;
  white-space: normal;
}

.button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.button-primary {
  color: #07070b;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  box-shadow: 0 0 32px rgba(201, 168, 76, 0.28);
}

.button-ghost {
  color: var(--gold-soft);
  border: 1px solid rgba(201, 168, 76, 0.32);
  background: rgba(3, 3, 7, 0.46);
}

.hero-scene-shell {
  position: absolute;
  z-index: 11;
  inset: 72px -11vw 36px 38%;
  min-height: 0;
  overflow: visible;
  pointer-events: none;
  opacity: calc(0.72 + (var(--theatre-pulse) * 0.18));
  mask-image: radial-gradient(circle at 54% 48%, #000 0 42%, rgba(0, 0, 0, 0.82) 55%, transparent 79%);
}

.hero-canvas {
  position: absolute !important;
  inset: -8%;
  width: 116% !important;
  height: 116% !important;
}

.metrics {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 32px 0 58px;
}

.metric,
.service-card,
.system-panel,
.proof-board {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(18, 18, 28, 0.82), rgba(6, 6, 10, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 56px rgba(0, 0, 0, 0.22);
}

.metric {
  padding: 24px 16px;
  text-align: center;
}

.metric strong {
  display: block;
  color: var(--gold-soft);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}

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

.section-head {
  margin-bottom: 34px;
}

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

.service-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  text-decoration: none;
  transform-style: preserve-3d;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), transparent);
}

.service-card > svg:not(.card-arrow),
.system-panel > svg {
  width: 26px;
  height: 26px;
  margin-bottom: 22px;
  color: var(--cyan);
}

.service-card span,
.system-panel span,
.proof-row span {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 900;
}

.service-card p,
.system-panel p,
.proof-row strong,
.site-footer p {
  color: var(--muted);
  line-height: 1.55;
}

.card-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 18px;
  height: 18px;
  color: var(--gold-soft);
}

.split,
.proof {
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 112px;
}

.system-stack {
  display: grid;
  gap: 14px;
}

.system-panel {
  padding: 24px;
}

.proof {
  align-items: center;
}

.proof-stage {
  display: grid;
  gap: 12px;
}

.proof-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(39, 242, 255, 0.18);
  border-radius: 6px;
  background: #050509;
  object-fit: cover;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.proof-board {
  padding: 10px;
  transform-origin: center;
}

.proof-row {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.proof-row:last-child {
  border-bottom: 0;
}

.full-stack-proof-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.ogl-plate,
.pixi-strip,
.dotlottie-signal,
.rive-signal {
  width: 100%;
  min-height: 112px;
  border: 1px solid rgba(39, 242, 255, 0.16);
  border-radius: 6px;
  background: rgba(3, 3, 7, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rive-signal {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.rive-canvas {
  width: 100%;
  height: 118px;
  display: block;
}

.contact {
  text-align: center;
}

.contact .section-head,
.contact .section-head p {
  margin-inline: auto;
}

.contact-actions {
  justify-content: center;
}

.site-footer {
  position: relative;
  z-index: 12;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 60px 0 44px;
  text-align: center;
}

.site-footer img {
  width: 92px;
  opacity: 0.75;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.3));
}

.site-footer p {
  max-width: 680px;
  font-size: 13px;
}

@keyframes titleShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 230% center; }
}

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

  .cursor-glow,
  .skyesol-living-field,
  .scanline {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .proof {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-scene-shell {
    inset: 72px -24vw 24% 14%;
    min-height: 0;
    opacity: 0.64;
  }

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

  .full-stack-proof-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand small,
  .site-nav {
    display: none;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero,
  .metrics,
  .section,
  .site-footer,
  body > main {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: 760px;
    display: block;
    padding: 112px 0 48px;
  }

  .hero-scene-shell {
    inset: 58px -48vw 22% -8vw;
    margin: 0;
    opacity: 0.48;
  }

  .hero-canvas {
    inset: -16% -12%;
    width: 124% !important;
    height: 130% !important;
  }

  .eyebrow {
    margin-bottom: 10px;
    letter-spacing: 0.18em;
    font-size: 10px;
  }

  .mcp-stack-site h1 {
    max-width: 390px;
    margin-bottom: 14px;
    font-size: clamp(38px, 10.4vw, 46px);
  }

  .mcp-stack-site h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .lede,
  .section-head p,
  .proof-copy p {
    font-size: 15px;
    line-height: 1.52;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    margin-top: 22px;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .metrics,
  .full-stack-proof-rail {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 230px;
  }
}
