/*
Theme Name: Market Gamma Ray Local V2
Theme URI: https://marketgammaray.com/
Author: Market Gamma Ray
Description: Local approved Market Gamma Ray visual rebuild deployed as a WordPress theme.
Version: 2.0.0
Text Domain: marketgammaray-local-v2
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0d1117; color: #f0f6fc; min-width: 1180px; }
img, svg, canvas { display: block; max-width: 100%; }

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap");

html {
  scroll-behavior: smooth;
}

:root {
  --live-radius: 24px;
  --live-radius-sm: 14px;
  --live-max: 1160px;
  --live-font-display: "Sora", "IBM Plex Sans", sans-serif;
  --live-font-body: "IBM Plex Sans", sans-serif;
  --live-font-mono: "IBM Plex Mono", monospace;
}

body {
  font-family: var(--live-font-body) !important;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--live-font-display);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.052em;
}

[data-motion-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-motion-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

a[href],
button,
.feature-card,
.buyer-card,
.panel,
.signal-strip article,
.process-rail article {
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

a[href]:hover,
button:hover {
  transform: translateY(-2px);
}

.feature-card:hover,
.buyer-card:hover,
.panel:hover,
.signal-strip article:hover,
.process-rail article:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 211, 83, 0.72);
  background: #141d25;
}

.container {
  width: min(var(--live-max), calc(100% - 48px));
  max-width: var(--live-max);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: #0d1117;
}

.hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: clamp(68px, 8vw, 112px) 0;
  border-bottom: 1px solid #21262d;
}

.hero::before,
.radar-grid-bg {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(57, 211, 83, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 211, 83, 0.032) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 1;
}

.local-hero-canvas,
.radar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  max-width: 920px;
}

.eyebrow,
.kicker {
  font-family: var(--live-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #39d353;
  margin: 0 0 18px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(3rem, 5.5vw, 5.1rem);
  margin: 0;
  color: #f0f6fc;
  max-width: 860px;
}

.page-hero h1 {
  font-size: clamp(2.45rem, 4.6vw, 4.35rem);
  max-width: 900px;
}

.hero-lede {
  font-size: clamp(1.13rem, 1.55vw, 1.34rem);
  line-height: 1.58;
  color: rgba(246, 241, 230, 0.82);
  margin: 24px 0 0;
  max-width: 720px;
}

.hero-sublede,
.page-hero p:not(.eyebrow) {
  font-size: 1rem;
  line-height: 1.62;
  color: rgba(246, 241, 230, 0.63);
  margin: 0;
  max-width: 690px;
}

.hero-sublede {
  margin-top: 16px;
}

.hero-actions,
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #30363d;
  border-radius: 13px;
  color: #f0f6fc;
  background: transparent;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
}

.button.light {
  background: #39d353;
  border-color: #39d353;
  color: #0d1117;
}

.button.ghost,
.button.paper-ghost {
  background: rgba(13, 17, 23, 0.4);
  border-color: rgba(139, 148, 158, 0.45);
}

.proof-line {
  display: grid;
  gap: 7px;
  border-top: 1px solid #30363d;
  margin-top: 28px;
  padding: 16px 0 0;
  max-width: 650px;
  color: rgba(246, 241, 230, 0.54);
  font-size: 0.92rem;
}

.proof-line span {
  display: block;
  color: #8b949e;
  font-size: inherit;
  line-height: 1.62;
  margin: 0;
}

.proof-line strong {
  display: block;
  color: rgba(246, 241, 230, 0.82);
  font-size: inherit;
  line-height: 1.62;
  font-weight: 650;
}

.page-hero {
  padding: clamp(62px, 8vw, 98px) 0 clamp(46px, 6vw, 76px);
  border-bottom: 1px solid #21262d;
}

.radar-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(57, 211, 83, 0.95) 50%, transparent 100%);
  box-shadow: 0 0 18px rgba(57, 211, 83, 0.38);
  pointer-events: none;
  z-index: 3;
  animation: scan-hero 6.2s linear infinite;
}

@keyframes scan-hero {
  0% {
    transform: translateY(-8px);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  68% {
    transform: translateY(620px);
    opacity: 0.88;
  }
  69%,
  100% {
    transform: translateY(620px);
    opacity: 0;
  }
}

.section {
  background: #0d1117;
  border-top: 1px solid #21262d;
  padding: clamp(68px, 8vw, 106px) 0;
}

.section.dark {
  background: #161b22;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.42fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.section h2 {
  font-size: clamp(2rem, 3.35vw, 3.45rem);
  color: #f0f6fc;
  margin: 0;
}

.section-heading p:not(.eyebrow),
.large-copy,
.muted {
  color: #a8b3c2;
  font-size: 1rem;
  line-height: 1.66;
  margin: 0;
}

.large-copy {
  margin-top: 20px;
  max-width: 720px;
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(330px, 0.66fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.split:has(> .panel.pad:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.split:has(> .panel.pad:nth-child(2):last-child) > .panel.pad {
  min-height: 100%;
}

.panel {
  background: #111820;
  border: 1px solid #26313a;
  border-radius: var(--live-radius);
}

.pad {
  padding: clamp(25px, 3.8vw, 44px);
}

.panel h2 {
  font-size: clamp(2rem, 3.35vw, 3.45rem);
  margin-bottom: 0;
}

.panel p:last-child {
  margin-bottom: 0;
}

.signal-strip,
.feature-matrix,
.buyer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-strip article,
.feature-card,
.buyer-card {
  background: #111820;
  border: 1px solid #26313a;
  border-radius: var(--live-radius);
  padding: 26px;
  min-height: 220px;
}

.signal-strip article {
  min-height: 190px;
}

.signal-strip span,
.number,
.process-rail span,
.evidence-top span,
.evidence-side span,
.evidence-table span {
  display: block;
  font-family: var(--live-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #39d353;
}

.signal-strip h3,
.feature-card h3,
.buyer-card h3,
.process-rail h3 {
  color: #f0f6fc;
  font-size: clamp(1.18rem, 1.6vw, 1.5rem);
  margin: 18px 0 0;
}

.feature-card h3,
.buyer-card h3 {
  margin-top: 0;
}

.feature-card p,
.buyer-card p,
.signal-strip p,
.process-rail p,
.simple-list p,
.scope span {
  color: #a8b3c2;
  font-size: 1rem;
  line-height: 1.62;
  margin: 12px 0 0;
}

.number {
  display: inline-flex;
  margin-bottom: 18px;
}

.scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.scope span {
  border: 1px solid rgba(57, 211, 83, 0.28);
  border-radius: 999px;
  color: #f0f6fc;
  padding: 7px 10px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #26313a;
  border-radius: var(--live-radius);
  background: #26313a;
}

.process-rail article {
  background: #111820;
  border: 0;
  padding: 26px;
  min-height: 250px;
}

.process-rail h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.5rem);
  margin: 42px 0 0;
}

.process-rail p {
  font-size: 1rem;
  margin-top: 12px;
}

.evidence-map {
  background: #111820;
  border: 1px solid #26313a;
  border-radius: 28px;
  overflow: hidden;
  padding: 0;
  min-height: 430px;
}

.evidence-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #26313a;
  padding: 20px 22px;
  margin-bottom: 0;
}

.evidence-top strong,
.evidence-side strong {
  display: block;
  color: #f0f6fc;
  font-size: 16px;
  line-height: 1.4;
  margin-top: 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: stretch;
  padding: 18px;
}

.mini-graph {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(57, 211, 83, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 46%, rgba(57, 211, 83, 0.14), transparent 38%),
    #0d1117;
}

.g-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #39d353;
  box-shadow: 0 0 16px rgba(57, 211, 83, 0.5);
}

.g-node.master {
  width: 18px;
  height: 18px;
  background: #f0f6fc;
}

.n1 { left: 19%; top: 22%; }
.n2 { left: 63%; top: 18%; }
.n3 { left: 73%; top: 58%; }
.n4 { left: 31%; top: 70%; }
.n5 { left: 48%; top: 42%; }
.master { left: 51%; top: 54%; }

.g-line {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: rgba(57, 211, 83, 0.32);
}

.g1 { left: 22%; top: 25%; width: 43%; transform: rotate(-5deg); }
.g2 { left: 52%; top: 48%; width: 27%; transform: rotate(24deg); }
.g3 { left: 35%; top: 69%; width: 36%; transform: rotate(-24deg); }
.g4 { left: 49%; top: 44%; width: 18%; transform: rotate(68deg); }

.evidence-side {
  display: grid;
  gap: 12px;
}

.evidence-side div {
  border: 1px solid #26313a;
  border-radius: var(--live-radius-sm);
  padding: 18px;
  background: rgba(13, 17, 23, 0.5);
}

.evidence-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 18px 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #26313a;
}

.evidence-table span {
  color: #8b949e;
  background: #0d1117;
  padding: 14px 12px;
  font-size: 10px;
}

.simple-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.simple-list p {
  border-top: 1px solid #26313a;
  padding-top: 16px;
  margin-top: 16px;
}

.cta-section .panel {
  min-height: 350px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #f0f6fc;
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #30363d;
  border-radius: var(--live-radius-sm);
  background: #0d1117;
  color: #f0f6fc;
  padding: 12px 14px;
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 900px) {
  body {
    min-width: 0 !important;
  }

  .hero,
  .page-hero,
  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-heading,
  .split,
  .signal-strip,
  .feature-matrix,
  .buyer-grid,
  .process-rail,
  .evidence-grid,
  .evidence-table {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-motion-reveal] {
    opacity: 1;
    transform: none;
  }
}
