:root {
  --navy-950: #070b18;
  --navy-900: #0c1021;
  --navy-800: #151936;
  --indigo: #211e51;
  --paper: #f7f8f2;
  --surface: #ffffff;
  --ink: #11142f;
  --muted: #666a7e;
  --line: rgba(17, 20, 47, 0.13);
  --line-dark: rgba(255, 255, 255, 0.15);
  --amber: #f5a531;
  --heyfield-a: #2767e8;
  --heyfield-b: #7048ff;
  --revtune-a: #8b73e6;
  --revtune-b: #df62a0;
  --revtune-c: #f4a33a;
  --shadow: 0 24px 70px rgba(13, 17, 39, 0.18);
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
  width: 100%;
  max-width: 100vw;
  padding: 0 clamp(1rem, 4vw, 3.8rem);
  color: var(--ink);
  background: rgba(247, 248, 242, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    height 240ms ease;
}

.site-header.nav-on-dark {
  color: #fffdf7;
  background: linear-gradient(180deg, rgba(7, 11, 24, 0.86), rgba(7, 11, 24, 0));
}

.is-scrolled .site-header,
.menu-open .site-header {
  height: 64px;
  color: var(--ink);
  background: rgba(247, 248, 242, 0.9);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(13, 17, 39, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 0;
  max-width: calc(100% - 4rem);
  font-size: 0.92rem;
  font-weight: 800;
}

.brand img {
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0 0.85rem;
  border: 0;
  background: transparent;
  color: currentColor;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
}

.nav-link::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0.48rem;
  left: 0.8rem;
  height: 2px;
  background: var(--amber);
  border-radius: 99px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  display: grid;
  width: 19.5rem;
  gap: 0.45rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  display: grid;
  grid-template-columns: 2.45rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 0.75rem;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(17, 20, 47, 0.055);
  outline: 0;
}

.nav-dropdown img {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.65rem;
}

.nav-dropdown span {
  display: grid;
  gap: 0.05rem;
}

.nav-dropdown small {
  color: var(--muted);
  font-size: 0.78rem;
}

.menu-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 0.75rem;
  background: transparent;
  color: currentColor;
}

.menu-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  border-radius: 9px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle span + span {
  margin-top: -0.72rem;
}

.menu-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.section {
  width: min(var(--max), calc(100% - clamp(2rem, 8vw, 7rem)));
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.dark-panel {
  background:
    radial-gradient(circle at 77% 28%, rgba(245, 165, 49, 0.18), transparent 22rem),
    radial-gradient(circle at 8% 20%, rgba(112, 72, 255, 0.18), transparent 25rem),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 62%, #090d1c);
  color: #fffdf7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(28rem, 1.06fr);
  align-items: center;
  gap: clamp(2.5rem, 5.5vw, 6rem);
  min-height: 100vh;
  padding: clamp(7.5rem, 10vw, 9rem) clamp(1rem, 4vw, 3.8rem) clamp(4rem, 7vw, 6rem);
}

.hero-copy {
  max-width: 43rem;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin-bottom: 1rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9.2ch;
  margin-bottom: 1.35rem;
  font-size: clamp(4.2rem, 8.5vw, 8.2rem);
  line-height: 0.88;
}

.hero-lead {
  max-width: 42rem;
  color: rgba(255, 253, 247, 0.74);
  font-size: clamp(1.12rem, 1.5vw, 1.38rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.62rem;
  font-weight: 820;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible,
.signal-node:hover,
.product-panel:hover,
.contact-primary:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #fffdf7;
  color: var(--navy-950);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fffdf7;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.button-dark {
  background: var(--ink);
  color: #fffdf7;
}

.product-button {
  background: var(--ink);
  color: #fffdf7;
}

.command-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: min(44rem, 70vh);
  border: 1px solid var(--line-dark);
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  isolation: isolate;
}

.diagram-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(circle at center, #000 52%, transparent 82%);
}

.diagram-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.ring-one {
  inset: 17% 13%;
}

.ring-two {
  inset: 31% 28%;
}

.diagram-line {
  position: absolute;
  z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 247, 0.55), transparent);
  transform-origin: left center;
}

.line-voice {
  left: 20%;
  top: 58%;
  width: 39%;
  transform: rotate(-18deg);
}

.line-revenue {
  left: 54%;
  top: 64%;
  width: 31%;
  transform: rotate(12deg);
}

.line-output {
  left: 56%;
  top: 35%;
  width: 32%;
  transform: rotate(-10deg);
}

.core-node,
.signal-node,
.output-node {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.25);
}

.core-node {
  top: 29%;
  left: 40%;
  display: grid;
  place-items: center;
  width: clamp(9.5rem, 18vw, 13.4rem);
  aspect-ratio: 1;
  background: #211e51;
  border-radius: 2.2rem;
}

.core-node img {
  width: 60%;
  height: 60%;
}

.core-node span {
  color: rgba(255, 253, 247, 0.76);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.signal-node {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 0.75rem;
  align-items: center;
  width: min(52%, 19rem);
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.55);
  border-radius: 1rem;
  color: var(--ink);
  transition: transform 180ms ease;
  min-width: 0;
}

.signal-node img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.75rem;
}

.signal-node span {
  display: grid;
  gap: 0.05rem;
}

.signal-node small,
.output-node small {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.voice-node {
  left: 4%;
  bottom: 21%;
}

.revenue-node {
  right: 4%;
  bottom: 9%;
}

.output-node {
  top: 7%;
  right: 4%;
  width: min(48%, 17rem);
  padding: 1rem;
  background: rgba(21, 25, 54, 0.92);
  border-radius: 1rem;
}

.output-node span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.output-node strong {
  display: block;
  margin: 0.15rem 0;
}

.output-node small {
  color: rgba(255, 253, 247, 0.68);
}

.pulse-dot {
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--amber);
  border-radius: 999px;
  box-shadow: 0 0 0 0.55rem rgba(245, 165, 49, 0.15);
}

.dot-one {
  top: 24%;
  left: 20%;
}

.dot-two {
  right: 18%;
  top: 26%;
  background: var(--heyfield-a);
  box-shadow: 0 0 0 0.55rem rgba(39, 103, 232, 0.15);
}

.dot-three {
  right: 18%;
  bottom: 26%;
  background: var(--revtune-b);
  box-shadow: 0 0 0 0.55rem rgba(223, 98, 160, 0.16);
}

.section-header {
  max-width: 52rem;
  margin-bottom: 2.2rem;
}

.split-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.72fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  max-width: none;
}

.section-header h2,
.company-band h2,
.inner-hero h1,
.contact-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 0.95;
}

.section-header p,
.company-band p,
.inner-hero p,
.contact-hero p {
  color: var(--muted);
  font-size: 1.08rem;
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-panel {
  min-height: 35rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: 0 22px 54px rgba(13, 17, 39, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-panel:hover {
  box-shadow: 0 30px 70px rgba(13, 17, 39, 0.13);
}

.product-panel-top,
.product-logo-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 860;
}

.product-panel-top img,
.product-logo-line img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.75rem;
}

.product-panel h3 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 4.5vw, 4.6rem);
  line-height: 0.94;
}

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

.heyfield-panel {
  background:
    radial-gradient(circle at 95% 0%, rgba(39, 103, 232, 0.16), transparent 18rem),
    var(--surface);
}

.revtune-panel {
  background:
    radial-gradient(circle at 95% 0%, rgba(223, 98, 160, 0.16), transparent 18rem),
    var(--surface);
}

.mini-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 2rem 0 1.2rem;
}

.mini-flow span {
  display: grid;
  place-items: center;
  min-height: 3rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.text-link {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.dark-strip {
  width: 100%;
  max-width: none;
  padding-right: clamp(1rem, 4vw, 3.8rem);
  padding-left: clamp(1rem, 4vw, 3.8rem);
  background: var(--navy-900);
  color: #fffdf7;
}

.dark-strip > * {
  width: min(var(--max), 100%);
  margin-right: auto;
  margin-left: auto;
}

.dark-strip .section-header p {
  color: rgba(255, 253, 247, 0.68);
}

.thesis-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.thesis-steps div,
.detail-list article,
.thesis-ledger article,
.inquiry-grid article {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
}

.thesis-steps div {
  min-height: 17rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
}

.thesis-steps span,
.thesis-ledger span {
  display: block;
  margin-bottom: 3.5rem;
  color: var(--amber);
  font-weight: 900;
}

.thesis-steps p {
  color: rgba(255, 253, 247, 0.66);
}

.company-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.product-hero,
.inner-hero,
.contact-hero {
  padding-top: clamp(8rem, 12vw, 11rem);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.product-hero h1,
.inner-hero h1,
.contact-hero h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 0.9;
}

.product-hero p {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

.workflow-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workflow-step {
  display: grid;
  gap: 0.2rem;
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(247, 248, 242, 0.72);
}

.workflow-step.active {
  color: #fffdf7;
}

.heyfield-workflow .workflow-step.active {
  background: linear-gradient(135deg, var(--heyfield-a), var(--heyfield-b));
}

.revtune-workflow .workflow-step.active {
  background: linear-gradient(135deg, var(--revtune-a), var(--revtune-b), var(--revtune-c));
}

.workflow-step span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.workflow-step.active span,
.workflow-step.active small {
  color: rgba(255, 253, 247, 0.76);
}

.workflow-step small {
  color: var(--muted);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.product-detail-grid h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.95;
}

.detail-list {
  display: grid;
  gap: 0.8rem;
}

.detail-list p,
.thesis-ledger p,
.inquiry-grid p {
  color: var(--muted);
}

.inner-hero {
  max-width: 980px;
  text-align: left;
}

.inner-hero p {
  max-width: 54rem;
  font-size: 1.18rem;
}

.thesis-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-hero {
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 0.55fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.contact-primary {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.contact-primary span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-primary strong {
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  overflow-wrap: anywhere;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.inquiry-grid img {
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 2.4rem clamp(1rem, 4vw, 3.8rem);
  background: var(--navy-950);
  color: rgba(255, 253, 247, 0.72);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  color: #fffdf7;
  font-weight: 850;
}

.footer-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
}

.site-footer p {
  margin-bottom: 0.2rem;
}

.site-footer a:hover {
  color: #fffdf7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-content: start;
  justify-content: flex-end;
  font-weight: 750;
}

@media (max-width: 980px) {
  .hero,
  .product-hero,
  .split-header,
  .product-detail-grid,
  .contact-hero,
  .company-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .command-visual {
    min-height: 34rem;
  }

  .product-showcase,
  .thesis-steps,
  .thesis-ledger,
  .inquiry-grid {
    grid-template-columns: 1fr;
  }

  .product-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    position: fixed;
    top: 50%;
    right: 1rem;
    z-index: 80;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    background: rgba(247, 248, 242, 0.98);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(13, 17, 39, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    margin-top: 0.25rem;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero h1,
  .product-hero h1,
  .inner-hero h1,
  .contact-hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.35rem);
  }

  .section {
    width: min(100% - 2rem, var(--max));
  }

  .hero {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-copy,
  .product-hero-copy,
  .inner-hero,
  .contact-hero > div {
    width: min(100%, 22.5rem);
  }

  .hero-lead,
  .product-hero p,
  .inner-hero p,
  .contact-hero p {
    max-width: 21.5rem;
  }

  .command-visual {
    min-height: 30rem;
  }

  .core-node {
    top: 26%;
    left: 50%;
    width: 10.8rem;
    transform: translateX(-50%);
  }

  .voice-node,
  .revenue-node,
  .output-node {
    width: 88%;
    right: auto;
    left: 6%;
  }

  .voice-node {
    bottom: 32%;
  }

  .revenue-node {
    bottom: 6%;
  }

  .output-node {
    top: 4%;
    max-width: 20rem;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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