@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --ink: #090d0b;
  --ink-soft: #111713;
  --paper: #f1f0e9;
  --paper-deep: #e6e4db;
  --bone: #fbfaf4;
  --mint: #68d7b6;
  --mint-deep: #14785e;
  --muted: #747c76;
  --line-dark: rgba(241, 240, 233, 0.16);
  --line-light: rgba(9, 13, 11, 0.16);
  --risk: #c7694d;
  --display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --pad: clamp(20px, 4.3vw, 72px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body[data-lang="tr"] [data-lang-copy="en"],
body[data-lang="en"] [data-lang-copy="tr"] {
  display: none !important;
}

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

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: var(--ink);
  background: var(--mint);
}

.product-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 var(--pad);
  color: var(--bone);
  mix-blend-mode: difference;
}

.product-header a,
.product-header button {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-header > a:first-child {
  justify-self: start;
}

.product-header strong {
  justify-self: center;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.product-header div {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-self: end;
}

.product-header button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.product-hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 100svh;
}

.product-hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 64px;
  color: var(--ink);
  background: var(--paper);
}

.product-hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: -30px;
  width: 64px;
  height: 100%;
  background: linear-gradient(90deg, var(--paper), transparent);
}

.product-kicker,
.section-kicker,
.instrument-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mint-deep);
}

.product-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--mint-deep);
  transform: rotate(45deg);
}

.product-hero h1 {
  max-width: 8ch;
  margin: 42px 0 0;
  font-family: var(--display);
  font-size: clamp(64px, 7.8vw, 130px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.product-hero h1 em {
  display: block;
  color: var(--mint-deep);
  font-style: normal;
}

.product-summary {
  max-width: 500px;
  margin: 34px 0 0;
  color: #545c56;
  font-size: 18px;
  line-height: 1.65;
}

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

.primary-action,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-action {
  min-width: 224px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--mint);
  transition: transform 180ms var(--ease), background 180ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #8be7cb;
  transform: translateY(-2px);
}

.text-action {
  border-bottom: 1px solid currentColor;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: auto 0 0;
  padding-top: 54px;
}

.product-meta dt {
  color: #858a85;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.product-meta dd {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.product-instrument {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 120px var(--pad) 70px;
  color: var(--bone);
  background: var(--ink);
  overflow: hidden;
}

.instrument {
  width: min(760px, 100%);
}

.instrument-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(241, 240, 233, 0.48);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.instrument-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
}

.instrument-head strong::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--mint);
  transform: rotate(45deg);
  animation: ping 1.8s ease-in-out infinite;
}

@keyframes ping {
  50% {
    opacity: 0.36;
    transform: rotate(45deg) scale(0.72);
  }
}

.scenario-tabs {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.scenario-tabs button {
  min-height: 38px;
  border: 1px solid rgba(241, 240, 233, 0.24);
  padding: 0 13px;
  background: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.52;
}

.scenario-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--mint);
  background: var(--mint);
  opacity: 1;
}

.instrument-main {
  margin-top: 54px;
}

.instrument-main > header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-dark);
}

.instrument-main small,
.instrument-main dt {
  color: rgba(241, 240, 233, 0.38);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.instrument-main h2 {
  max-width: 18ch;
  margin: 9px 0 0;
  font-family: var(--display);
  font-size: clamp(30px, 3.5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.instrument-main code {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9px;
}

.instrument-rows {
  margin: 0;
}

.instrument-rows div {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr auto;
  gap: 24px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line-dark);
}

.instrument-rows dd {
  margin: 0;
  font-size: 13px;
}

.instrument-rows strong {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.seam-mark {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  width: clamp(84px, 9vw, 142px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.2));
}

.seam-mark img {
  width: 100%;
  animation: float 5.2s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-7px);
  }
}

.metric-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--bone);
  background: #0d120f;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.metric-rail div {
  min-height: 150px;
  padding: 28px var(--pad);
  border-right: 1px solid var(--line-dark);
}

.metric-rail div:last-child {
  border-right: 0;
}

.metric-rail dt {
  color: rgba(241, 240, 233, 0.42);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.metric-rail dd {
  margin: 34px 0 0;
  color: var(--mint);
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.method-section {
  padding: clamp(100px, 13vw, 190px) var(--pad);
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  max-width: 1500px;
  margin: 0 auto;
}

.section-heading h2 {
  max-width: 11ch;
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(50px, 6vw, 100px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.section-heading > p {
  max-width: 52ch;
  margin: 0;
  color: #59605a;
  font-size: 17px;
  line-height: 1.65;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1500px;
  margin: 84px auto 0;
  border-top: 1px solid var(--line-light);
}

.method-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  min-height: 190px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-light);
}

.method-list article:nth-child(odd) {
  padding-right: 40px;
  border-right: 1px solid var(--line-light);
}

.method-list article:nth-child(even) {
  padding-left: 40px;
}

.method-list span {
  color: var(--mint-deep);
  font-family: var(--mono);
  font-size: 9px;
}

.method-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.method-list p {
  margin: 12px 0 0;
  color: #666d67;
  font-size: 14px;
}

.live-lab {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  min-height: 82vh;
  color: var(--bone);
  background: var(--ink);
}

.lab-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(90px, 11vw, 150px) var(--pad);
  border-right: 1px solid var(--line-dark);
}

.lab-copy h2 {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.lab-copy > p:last-child {
  max-width: 42ch;
  color: rgba(241, 240, 233, 0.55);
}

.lab-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px var(--pad);
}

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

.lab-shell > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.lab-shell > header strong {
  color: var(--mint);
}

.lab-stage {
  position: relative;
  min-height: 380px;
  margin-top: 34px;
  overflow: hidden;
}

.lab-stage::before,
.lab-stage::after {
  content: "";
  position: absolute;
  right: 7%;
  left: 7%;
  height: 1px;
  background: rgba(104, 215, 182, 0.22);
}

.lab-stage::before {
  top: 32%;
}

.lab-stage::after {
  top: 68%;
}

.lab-world {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(520px, 86%);
  min-height: 110px;
  place-items: center;
  border: 1px solid rgba(104, 215, 182, 0.38);
  background: #0f1713;
  transform: translate(-50%, -50%) perspective(700px) rotateX(58deg) rotateZ(-4deg);
  transition: transform 700ms var(--ease);
}

.lab-shell[data-state="running"] .lab-world {
  transform: translate(-50%, -50%) perspective(700px) rotateX(51deg) rotateZ(2deg) translateY(-10px);
}

.lab-world strong {
  color: var(--mint);
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 58px);
  letter-spacing: -0.06em;
}

.lab-crystal {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: var(--mint);
  transform: translateX(-50%) rotate(45deg);
  transition: top 900ms var(--ease), box-shadow 900ms ease;
}

.lab-shell[data-state="running"] .lab-crystal {
  top: 82%;
  box-shadow: 0 0 0 14px rgba(104, 215, 182, 0.07);
}

.lab-output {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.lab-output small {
  color: rgba(241, 240, 233, 0.38);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.lab-output strong {
  display: block;
  margin-top: 8px;
  color: var(--mint);
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 58px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.lab-output button {
  min-height: 48px;
  border: 0;
  padding: 0 17px;
  color: var(--ink);
  background: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.evidence-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 76vh;
  color: var(--ink);
  background: var(--paper-deep);
}

.evidence-copy,
.evidence-sheet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(90px, 11vw, 150px) var(--pad);
}

.evidence-copy {
  border-right: 1px solid var(--line-light);
}

.evidence-copy h2 {
  max-width: 9ch;
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.evidence-copy p:last-child {
  max-width: 46ch;
  margin-top: 34px;
  color: #59605a;
}

.proof-sheet {
  width: min(600px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px);
  background: var(--bone);
  box-shadow: 0 32px 80px rgba(9, 13, 11, 0.12);
  transform: rotate(-1deg);
}

.proof-sheet > header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.proof-sheet h3 {
  margin: 50px 0;
  color: var(--mint-deep);
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 80px);
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.proof-sheet dl {
  margin: 0;
}

.proof-sheet dl div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line-light);
}

.proof-sheet dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.proof-sheet dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-align: right;
}

.product-closing {
  min-height: 74vh;
  padding: clamp(100px, 13vw, 190px) var(--pad) 54px;
  color: var(--bone);
  background: var(--ink);
}

.product-closing h2 {
  max-width: 12ch;
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(52px, 7.5vw, 120px);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.86;
}

.product-closing h2 em {
  color: var(--mint);
  font-style: normal;
}

.closing-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 52px;
}

.product-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: end;
  margin-top: clamp(120px, 16vw, 220px);
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  color: rgba(241, 240, 233, 0.44);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-footer nav {
  display: flex;
  gap: 20px;
}

.product-footer > span:last-child {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Calyra keeps one dark world rather than the split product hero. */
.calyra-page .product-hero {
  grid-template-columns: minmax(0, 0.74fr) minmax(620px, 1.26fr);
  color: var(--bone);
  background: var(--ink);
}

.calyra-page .product-hero-copy {
  color: var(--bone);
  background: var(--ink);
}

.calyra-page .product-hero-copy::after,
.calyra-page .seam-mark {
  display: none;
}

.calyra-page .product-summary {
  color: rgba(241, 240, 233, 0.58);
}

.calyra-page .product-meta dt {
  color: rgba(241, 240, 233, 0.36);
}

.calyra-page .product-instrument {
  background: #0d120f;
}

.calyra-page .official-lockup {
  width: min(520px, 88%);
  margin: 0 auto 54px;
}

.world-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 54px;
}

.world {
  position: relative;
  min-height: 230px;
  border: 1px solid var(--line-dark);
  padding: 20px;
  overflow: hidden;
}

.world::before {
  content: "";
  position: absolute;
  right: -20%;
  bottom: 20%;
  left: -20%;
  height: 1px;
  background: rgba(104, 215, 182, 0.42);
  transform: rotate(-7deg);
}

.world span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.world strong {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  color: var(--mint);
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 46px);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.world.changed strong {
  color: var(--risk);
}

@media (max-width: 1120px) {
  .product-hero,
  .calyra-page .product-hero {
    grid-template-columns: 1fr;
  }

  .product-hero-copy {
    min-height: 84svh;
  }

  .product-instrument {
    min-height: 760px;
  }

  .seam-mark {
    top: 84svh;
    left: 50%;
  }

  .live-lab {
    grid-template-columns: 1fr;
  }

  .lab-copy {
    gap: 80px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
}

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

  .product-header strong,
  .product-header a[href="#method"] {
    display: none;
  }

  .product-hero-copy {
    padding-top: 108px;
  }

  .product-hero h1 {
    font-size: clamp(58px, 18vw, 90px);
  }

  .product-meta,
  .metric-rail,
  .section-heading,
  .evidence-section {
    grid-template-columns: 1fr;
  }

  .metric-rail div {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .method-list {
    grid-template-columns: 1fr;
  }

  .method-list article:nth-child(odd),
  .method-list article:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .evidence-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

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

  .product-footer > span:last-child {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .product-actions,
  .closing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    width: 100%;
  }

  .product-instrument {
    min-height: 700px;
    padding: 100px 20px 54px;
  }

  .scenario-tabs {
    flex-wrap: wrap;
  }

  .instrument-main > header {
    grid-template-columns: 1fr;
  }

  .instrument-rows div {
    grid-template-columns: 74px 1fr;
    gap: 12px;
  }

  .instrument-rows strong {
    grid-column: 2;
    padding-bottom: 12px;
  }

  .world-pair {
    grid-template-columns: 1fr;
  }
}

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


/* QA: preserve the seam emblem without allowing it to cover product copy. */
.seam-mark {
  width: clamp(72px, 7.5vw, 112px);
}

@media (min-width: 1101px) {
  .product-instrument {
    padding-left: calc(var(--pad) + 78px);
  }
}


/* QA: the desktop paper seam must not create a horizontal mobile canvas. */
@media (max-width: 1100px) {
  .product-hero-copy::after {
    display: none;
  }
}


/* QA: allow the live lab grid to shrink below its desktop min-content width. */
.live-lab > *,
.lab-shell,
.lab-output > * {
  min-width: 0;
}

@media (max-width: 560px) {
  .lab-output {
    grid-template-columns: 1fr;
  }

  .lab-output button {
    width: 100%;
  }
}


/* Readability pass: no fused glyphs or compressed display lines. */
.product-hero h1 {
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.instrument-main h2,
.section-heading h2,
.lab-copy h2,
.evidence-copy h2,
.closing-section h2,
.receipt h3,
.lab-output strong {
  letter-spacing: -0.04em;
  line-height: 0.96;
}


/* Keep flagship statements in phrase-sized lines instead of poster-like fragments. */
.product-hero h1 {
  max-width: 100%;
  font-size: clamp(58px, 6.4vw, 104px);
  letter-spacing: -0.035em;
  line-height: 0.92;
}

@media (max-width: 560px) {
  .product-hero h1 {
    font-size: clamp(54px, 17vw, 72px);
    letter-spacing: -0.03em;
    line-height: 0.94;
  }
}


/* QA: product columns may shrink below long machine-readable verdict tokens. */
.product-hero > * {
  min-width: 0;
}
