:root {
  color-scheme: dark;
  --black: #050806;
  --panel: #0a100c;
  --panel-light: #111a13;
  --line: #253229;
  --muted: #9cac9f;
  --soft: #d5dfd7;
  --white: #f4f8f4;
  --green: #79ff78;
  --green-bright: #b4ff79;
  --amber: #ffad4a;
  --blue: #52a4ff;
  --cyan: #59e7d2;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--black);
  transform: translateY(-180%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: max-content;
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-header nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a,
.header-contact,
footer a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--green);
}

.header-contact {
  justify-self: end;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 0.74fr) minmax(520px, 1.26fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 76px 0 90px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
}

.eyebrow span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--green);
}

.hero h1,
.intro h2,
.phosphor-copy h2,
.section-heading h2,
.privacy-grid h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(3.25rem, 6.2vw, 5.9rem);
  font-weight: 540;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.hero h1 {
  max-width: 7ch;
}

.hero h1 em {
  display: block;
  margin-top: 0.18em;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lede {
  max-width: 510px;
  margin: 30px 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.5vw, 1.17rem);
}

.hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-width: 190px;
  padding: 13px 17px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #041006;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: transparent;
  color: var(--green);
  transform: translateY(-2px);
}

.hero-actions p {
  max-width: 190px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.hero-actions p strong {
  color: var(--white);
  font-weight: 650;
}

.scope-shell {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 1px solid #314737;
  background: #070b08;
  box-shadow:
    0 0 0 8px rgba(27, 44, 31, 0.22),
    0 34px 90px rgba(0, 0, 0, 0.5);
}

.scope-topline,
.scope-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

.scope-topline {
  border-bottom: 1px solid #1f2d23;
}

.scope-topline span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
}

.scope-topline i,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 11px rgba(121, 255, 120, 0.85);
}

.scope-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #020503;
}

#scope-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 590px;
}

.scope-stage::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 10px solid rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 0 54px rgba(0, 0, 0, 0.72);
  content: "";
  pointer-events: none;
}

.scope-label {
  position: absolute;
  z-index: 3;
  color: rgba(154, 182, 160, 0.54);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.scope-label-x {
  right: 18px;
  top: 50%;
}

.scope-label-y {
  top: 16px;
  left: 50%;
  writing-mode: vertical-rl;
}

.tuner-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 150px;
  padding: 13px;
  border: 1px solid rgba(121, 255, 120, 0.26);
  background: rgba(2, 7, 3, 0.84);
  text-align: center;
  backdrop-filter: blur(10px);
}

.tuner-frequency {
  display: flex;
  gap: 5px;
  align-items: baseline;
  justify-content: center;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
}

.tuner-frequency .live-dot {
  align-self: center;
  margin-right: 3px;
}

.tuner-frequency strong {
  font-size: 0.98rem;
}

.note-name {
  margin: 3px 0 -5px;
  color: #ffe16a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.cents-dial {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 31px;
  margin: 4px 5px 0;
  border-bottom: 1px solid #405043;
}

.cents-dial i {
  width: 1px;
  height: 8px;
  background: #405043;
}

.cents-dial i:nth-child(2),
.cents-dial i:nth-child(3) {
  height: 13px;
}

.cents-dial b {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 27px;
  background: #ffe16a;
  box-shadow: 0 0 8px rgba(255, 225, 106, 0.7);
  transform: rotate(0deg);
  transform-origin: bottom;
}

.cents-value {
  margin-top: 5px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.scope-controls {
  min-height: 54px;
  border-top: 1px solid #1f2d23;
}

.signal-options {
  display: flex;
  gap: 6px;
  align-items: center;
}

.signal-options > span {
  margin-right: 7px;
}

.signal-button,
.motion-button {
  padding: 5px 8px;
  border: 1px solid #314237;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.62rem;
}

.signal-button:hover,
.signal-button:focus-visible,
.signal-button.is-active,
.motion-button:hover,
.motion-button:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.hero-index {
  position: absolute;
  right: -4px;
  bottom: 28px;
  margin: 0;
  color: #4d6253;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.section-shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.intro {
  padding: 132px 0 110px;
  border-top: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
}

.intro h2,
.phosphor-copy h2,
.section-heading h2,
.privacy-grid h2,
.contact-section h2 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1;
}

.intro h2 span {
  display: block;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.intro-copy {
  padding-top: 7px;
  color: var(--soft);
  font-size: 1.05rem;
}

.intro-copy p {
  margin: 0 0 22px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 80px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip div {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
}

.signal-strip div:first-child {
  padding-left: 0;
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip dt {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 2.5rem;
  line-height: 1;
}

.signal-strip dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phosphor-section {
  background: #0b110d;
}

.phosphor-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 100px;
  align-items: center;
  min-height: 680px;
  padding: 100px 0;
}

.phosphor-copy p:last-child {
  max-width: 510px;
  margin: 28px 0 0;
  color: var(--soft);
}

.trace-study {
  position: relative;
  aspect-ratio: 1.28;
  overflow: hidden;
  border: 1px solid #26362a;
  background: #030604;
  box-shadow: inset 0 0 90px #000;
}

.study-axis {
  position: absolute;
  background: rgba(142, 174, 149, 0.18);
}

.study-axis-x {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.study-axis-y {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.study-ring {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(121, 255, 120, 0.62);
  border-radius: 46% 54% 42% 58%;
  box-shadow:
    0 0 15px rgba(121, 255, 120, 0.35),
    inset 0 0 15px rgba(121, 255, 120, 0.16);
  transform: rotate(-16deg) skewX(-6deg);
}

.ring-two {
  inset: 17% 13% 13% 18%;
  border-color: rgba(255, 173, 74, 0.42);
  border-radius: 55% 45% 58% 42%;
  box-shadow: 0 0 20px rgba(255, 173, 74, 0.28);
  transform: rotate(21deg) skewY(5deg);
}

.study-caption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.study-caption strong {
  color: var(--green);
  font-size: 1rem;
}

.pitch-section {
  padding: 128px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--soft);
}

.pitch-demo {
  display: grid;
  grid-template-columns: 1fr 0.55fr 1.45fr;
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pitch-demo > div {
  min-height: 220px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.pitch-demo > div:last-child {
  border-right: 0;
}

.pitch-number,
.pitch-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pitch-demo span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.pitch-number strong,
.pitch-note strong {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 520;
  line-height: 1;
}

.pitch-number small {
  margin-left: 9px;
  color: var(--muted);
  font-size: 0.8rem;
}

.pitch-note strong {
  color: #ffe16a;
}

.pitch-meter {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
}

.meter-labels span:nth-child(2) {
  color: var(--green);
}

.meter-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  margin-top: 8px;
  border-bottom: 1px solid #4d5e51;
}

.meter-track i {
  width: 1px;
  height: 18px;
  background: #4d5e51;
}

.meter-track i:nth-child(3) {
  height: 30px;
  background: var(--green);
}

.meter-track b {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 52px;
  background: #ffe16a;
  box-shadow: 0 0 10px rgba(255, 225, 106, 0.7);
}

.pitch-meter p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.uses-section {
  padding: 30px 0 130px;
}

.uses-list {
  border-top: 1px solid var(--line);
}

.uses-list article {
  display: grid;
  grid-template-columns: 80px 1fr 1.3fr;
  gap: 34px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.uses-list article > span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.uses-list h3 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 520;
}

.uses-list p {
  margin: 0;
  color: var(--muted);
}

.privacy-section {
  border-top: 1px solid #314437;
  border-bottom: 1px solid #314437;
  background: #101a13;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  padding: 100px 0;
}

.privacy-grid > div:last-child {
  color: var(--soft);
  font-size: 1.06rem;
}

.native-stack {
  margin-top: 34px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.native-stack span {
  margin: 0 6px;
  color: #57705e;
}

.contact-section {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 45px;
  align-items: center;
  padding: 110px 0;
}

.contact-section img {
  width: 130px;
  height: 130px;
  border-radius: 28px;
}

.contact-section h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.contact-section p:not(.section-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-button {
  min-width: 215px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

footer p {
  margin: 0;
  text-align: center;
}

footer > a:last-child {
  justify-self: end;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero h1 {
    max-width: none;
  }

  .hero h1 em {
    display: inline;
  }

  .scope-shell {
    width: min(100%, 760px);
  }

  .intro-grid,
  .phosphor-grid,
  .section-heading,
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .phosphor-grid {
    min-height: 0;
  }

  .pitch-demo {
    grid-template-columns: 1fr 0.6fr;
  }

  .pitch-meter {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .pitch-demo > .pitch-note {
    border-right: 0;
  }

  .contact-section {
    grid-template-columns: 100px 1fr;
  }

  .contact-section img {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

  .contact-button {
    grid-column: 2;
    width: max-content;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section-shell,
  footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    padding: 15px 0;
  }

  .header-contact {
    font-size: 0;
  }

  .header-contact span {
    font-size: 1rem;
  }

  .hero {
    gap: 50px;
    padding: 60px 0 72px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 16vw, 4.6rem);
  }

  .hero h1 em {
    display: block;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions p {
    max-width: 270px;
  }

  .scope-stage,
  #scope-canvas {
    min-height: 480px;
  }

  .tuner-panel {
    top: 12px;
    right: 12px;
    width: 136px;
  }

  .scope-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .signal-options {
    flex-wrap: wrap;
  }

  .signal-options > span {
    width: 100%;
  }

  .motion-button {
    align-self: flex-start;
  }

  .hero-index {
    display: none;
  }

  .intro,
  .pitch-section {
    padding: 90px 0;
  }

  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 55px;
  }

  .signal-strip div:nth-child(2) {
    border-right: 0;
  }

  .signal-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:first-child,
  .signal-strip div {
    padding: 22px 16px;
  }

  .phosphor-grid {
    gap: 55px;
    padding: 85px 0;
  }

  .pitch-demo {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .pitch-demo > div {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pitch-demo > div:last-child {
    border-bottom: 0;
  }

  .pitch-meter {
    grid-column: auto;
  }

  .uses-section {
    padding-bottom: 90px;
  }

  .uses-list article {
    grid-template-columns: 46px 1fr;
    gap: 10px;
  }

  .uses-list p {
    grid-column: 2;
  }

  .privacy-grid {
    padding: 82px 0;
  }

  .contact-section {
    grid-template-columns: 74px 1fr;
    gap: 25px;
    padding: 85px 0;
  }

  .contact-section img {
    width: 74px;
    height: 74px;
    border-radius: 17px;
  }

  .contact-section .section-kicker {
    margin-bottom: 10px;
  }

  .contact-section h2 {
    font-size: 2.2rem;
  }

  .contact-button {
    grid-column: 1 / -1;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
