:root {
  --ink: #17211b;
  --muted: #5f685f;
  --paper: #f4f0e5;
  --paper-strong: #fffaf0;
  --line: #d5cdbb;
  --forest: #123d34;
  --moss: #6c8f45;
  --teal: #0e766d;
  --amber: #d98b2b;
  --rust: #a84922;
  --blueprint: #13293d;
  --shadow: 0 24px 70px rgba(28, 36, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 18%, rgba(217, 139, 43, 0.24), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(14, 118, 109, 0.22), transparent 24rem),
    linear-gradient(135deg, #f7f2e7 0%, #e9dfcb 46%, #d7ded1 100%);
  color: var(--ink);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
}

body {
  margin: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 22px;
}

.site-header,
.browser-topbar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.site-header {
  margin: 0 auto;
  max-width: 1180px;
}

.site-header nav,
.browser-topbar nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: -0.03em;
}

.brand-mark {
  align-items: center;
  background: var(--forest);
  border-radius: 16px;
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.08);
  color: #f9eed5;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.7fr);
  margin: 90px auto 48px;
  max-width: 1180px;
}

.hero-copy h1,
.pricing-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.7rem);
  letter-spacing: -0.075em;
  line-height: 0.88;
  margin: 0;
  max-width: 980px;
}

.hero-text,
.pricing-intro p,
.strategy-band p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 720px;
}

.eyebrow {
  color: var(--rust);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  border: 1px solid var(--forest);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 13px 18px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  box-shadow: 0 12px 28px rgba(18, 61, 52, 0.16);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--forest);
  color: #fff6df;
}

.button.ghost {
  background: rgba(255, 250, 240, 0.48);
  color: var(--forest);
}

.button.compact {
  padding: 9px 12px;
}

.hero-card {
  animation: rise-in 700ms ease both;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(225, 235, 221, 0.84)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(18, 61, 52, 0.04) 22px 23px);
  border: 1px solid rgba(18, 61, 52, 0.18);
  border-radius: 32px;
  box-shadow: var(--shadow);
  min-height: 430px;
  padding: 28px;
  position: relative;
  transform: rotate(1.5deg);
}

.chromosome-strip {
  align-items: center;
  background: #efe5d0;
  border-radius: 999px;
  display: flex;
  gap: 4px;
  height: 42px;
  overflow: hidden;
  padding: 7px;
}

.chromosome-strip span {
  background: var(--forest);
  border-radius: 999px;
  height: 100%;
}

.chromosome-strip span:nth-child(2n) {
  background: var(--amber);
}

.chromosome-strip .chromosome-a { width: 18%; }
.chromosome-strip .chromosome-b { width: 34%; }
.chromosome-strip .chromosome-c { width: 14%; }
.chromosome-strip .chromosome-d { width: 24%; }

.signal-card {
  background: var(--blueprint);
  border-radius: 24px;
  color: #fdf1d4;
  display: grid;
  gap: 8px;
  margin: 32px 0;
  padding: 24px;
}

.signal-card span {
  color: #c6d7d2;
  font-size: 0.9rem;
}

.signal-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
}

.mini-track {
  background: rgba(18, 61, 52, 0.09);
  border-radius: 18px;
  height: 58px;
  margin: 18px 0;
  overflow: hidden;
  position: relative;
}

.mini-track.genes i {
  background: var(--teal);
  border-radius: 999px;
  height: 14px;
  position: absolute;
  top: 22px;
}

.mini-track.genes i:nth-child(1) { left: 8%; width: 8%; }
.mini-track.genes i:nth-child(2) { left: 22%; width: 12%; }
.mini-track.genes i:nth-child(3) { left: 42%; width: 7%; }
.mini-track.genes i:nth-child(4) { left: 58%; width: 16%; }
.mini-track.genes i:nth-child(5) { left: 82%; width: 9%; }

.mini-track.variants b {
  background: var(--rust);
  height: 16px;
  position: absolute;
  top: 20px;
  transform: rotate(45deg);
  width: 16px;
}

.mini-track.variants b:nth-child(1) { left: 18%; }
.mini-track.variants b:nth-child(2) { left: 51%; }
.mini-track.variants b:nth-child(3) { left: 73%; }

.mini-track.signal::before {
  background: linear-gradient(90deg, var(--moss), var(--amber), var(--teal));
  border-radius: 18px;
  content: "";
  inset: 22px 24px 14px;
  position: absolute;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 44px;
  max-width: 1180px;
}

.feature-grid article,
.strategy-band,
.price-card,
.control-panel,
.browser-stage,
.insight-panel,
.panel-section,
.table-card {
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(18, 61, 52, 0.14);
  box-shadow: 0 18px 50px rgba(28, 36, 28, 0.08);
}

.feature-grid article {
  border-radius: 26px;
  padding: 26px;
}

.feature-index {
  color: var(--amber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
}

.feature-grid h2,
.strategy-band h2,
.price-card h2,
.panel-section h2,
.table-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.05em;
  margin: 8px 0 10px;
}

.feature-grid p,
.price-card p,
.price-card li,
.panel-section,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.strategy-band {
  align-items: end;
  border-radius: 30px;
  display: grid;
  gap: 28px;
  grid-template-columns: 0.8fr 1fr;
  margin: 0 auto 40px;
  max-width: 1180px;
  padding: 34px;
}

.pricing-page {
  margin: 78px auto;
  max-width: 1180px;
}

.pricing-intro {
  margin-bottom: 34px;
}

.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.price-card {
  border-radius: 28px;
  padding: 26px;
}

.price-card.highlighted {
  background: var(--forest);
  color: #fff6df;
  transform: translateY(-12px);
}

.price-card.highlighted p,
.price-card.highlighted li {
  color: #d8e4d8;
}

.price {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  margin: 10px 0;
}

.highlighted .price {
  color: #fff6df;
}

.price span {
  font-size: 1rem;
  letter-spacing: 0;
}

.browser-shell {
  background:
    radial-gradient(circle at top left, rgba(217, 139, 43, 0.18), transparent 28rem),
    linear-gradient(160deg, #eee5d1, #dde8dd);
  min-height: 100vh;
}

.browser-topbar {
  background: rgba(255, 250, 240, 0.86);
  border-bottom: 1px solid rgba(18, 61, 52, 0.12);
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.search-box {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  flex: 1;
  gap: 8px;
  max-width: 780px;
  padding: 7px;
}

.search-box input,
.search-box select,
.control-panel input,
.control-panel textarea,
.insight-panel select {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  min-width: 0;
  padding: 10px 12px;
}

.search-box input {
  border: 0;
  flex: 1;
  outline: 0;
}

.browser-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 280px minmax(0, 1fr) 310px;
  padding: 16px;
}

.control-panel,
.insight-panel {
  align-self: start;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 14px;
}

.panel-section,
.browser-stage,
.table-card {
  border-radius: 22px;
  padding: 18px;
}

.panel-section label {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.auth-panel {
  display: grid;
  gap: 10px;
}

.browser-stage {
  min-width: 0;
}

.stage-toolbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stage-toolbar h1 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.06em;
  margin: 0;
}

#browser-canvas {
  background:
    repeating-linear-gradient(90deg, rgba(18, 61, 52, 0.03) 0 1px, transparent 1px 52px),
    #fffaf0;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: block;
  height: 520px;
  width: 100%;
}

.message-box {
  color: var(--forest);
  min-height: 28px;
  padding: 10px 2px;
}

.message-box.error {
  color: var(--rust);
}

.table-card {
  margin-top: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

th {
  color: var(--forest);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-card {
  background: var(--blueprint);
  color: #fff6df;
}

.plan-card p,
.plan-card .eyebrow {
  color: #d8e4d8;
}

.insight-output {
  background: rgba(18, 61, 52, 0.07);
  border-radius: 16px;
  color: var(--ink);
  line-height: 1.58;
  padding: 14px;
}

.workspace-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.workspace-list li {
  background: rgba(18, 61, 52, 0.06);
  border-radius: 14px;
  margin: 8px 0;
  padding: 10px;
}

.hidden {
  display: none !important;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(1.5deg);
  }
}

@media (max-width: 1050px) {
  .hero,
  .strategy-band,
  .browser-layout {
    grid-template-columns: 1fr;
  }

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

  .control-panel,
  .insight-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  .browser-topbar,
  .stage-toolbar,
  .search-box {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-copy h1,
  .pricing-intro h1 {
    font-size: 3rem;
  }

  .feature-grid,
  .pricing-grid,
  .control-panel,
  .insight-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 52px;
  }
}
