:root {
  color-scheme: light;
  --ink: #050807;
  --ink-soft: #1f2723;
  --paper: #f7f9f5;
  --paper-strong: #ffffff;
  --line: #d9e2dc;
  --muted: #5d6b63;
  --moss: #1f8f4d;
  --moss-dark: #0f5f34;
  --blue: #315fba;
  --amber: #c98919;
  --shadow: 0 28px 80px rgba(5, 8, 7, 0.22);
  --header-height: 74px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

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;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 2rem;
  color: #f4f7f1;
}

.brand-mark,
.nav-links,
.site-footer nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 0.72rem;
  font-weight: 760;
  font-size: 1rem;
}

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

.nav-links {
  gap: 1.35rem;
  color: rgba(244, 247, 241, 0.76);
  font-size: 0.94rem;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: #ffffff;
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 760;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.header-action {
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.55rem 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.header-action:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 7, 0.98) 0%, rgba(5, 8, 7, 0.9) 38%, rgba(5, 8, 7, 0.56) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 74px),
    #07100d;
  color: #ffffff;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 15rem;
  background: linear-gradient(180deg, rgba(5, 8, 7, 0), rgba(5, 8, 7, 0.88));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(620px, calc(100% - 3rem));
  padding: 9.8rem 0 8rem 6.5vw;
  animation: rise-in 720ms ease both;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7ee2a8;
}

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

h1 {
  margin-bottom: 0.9rem;
  font-size: 6.1rem;
  line-height: 0.92;
  font-weight: 860;
}

.hero-line {
  max-width: 33rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.22rem;
}

.hero-actions {
  gap: 0.9rem;
  flex-wrap: wrap;
}

.primary-action {
  background: #ffffff;
  color: var(--ink);
  padding: 0.78rem 1.25rem;
}

.primary-action:hover {
  background: #e9f7ed;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.23);
  color: #ffffff;
  background: rgba(5, 8, 7, 0.28);
  padding: 0.72rem 1.1rem;
}

.secondary-action:hover {
  border-color: rgba(255, 255, 255, 0.54);
}

.hero-workspace {
  position: absolute;
  z-index: 1;
  right: -18vw;
  bottom: -6rem;
  width: min(900px, 68vw);
  transform: rotate(-2deg);
  transform-origin: center;
  animation: workspace-in 900ms 120ms ease both;
}

.app-window {
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #f8fbf8;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 38px;
  padding: 0 1rem;
  background: #172133;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  white-space: nowrap;
}

.window-brand {
  color: #ffffff;
  font-weight: 800;
}

.window-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 522px;
}

.window-rail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-right: 1px solid #dae3df;
  background: #eef4f0;
  padding: 1rem 0.8rem;
}

.window-rail strong {
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  color: #37423c;
}

.window-rail span {
  border-radius: 7px;
  padding: 0.45rem 0.55rem;
  color: #52635a;
  font-size: 0.82rem;
}

.window-rail .is-active {
  background: #d9ece0;
  color: var(--moss-dark);
  font-weight: 760;
}

.window-main {
  padding: 1.15rem;
}

.window-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.window-heading p,
.window-heading h2 {
  margin: 0;
}

.window-heading p {
  color: #66746d;
  font-size: 0.82rem;
}

.window-heading h2 {
  color: #111917;
  font-size: 1.42rem;
  line-height: 1.12;
}

.status-pill {
  flex: none;
  border: 1px solid #a7ddbb;
  border-radius: 999px;
  background: #e2f7e9;
  color: var(--moss-dark);
  padding: 0.35rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.metric-strip div {
  border: 1px solid #d8e4df;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.78rem;
}

.metric-strip span,
.migration-panel span,
.mini-window span {
  display: block;
  color: #637269;
  font-size: 0.72rem;
}

.metric-strip strong {
  display: block;
  margin-top: 0.3rem;
  color: #121a17;
  font-size: 1.08rem;
}

.table-surface {
  overflow: hidden;
  border: 1px solid #d5dfda;
  border-radius: 8px;
  background: #ffffff;
}

.table-row {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1.4fr 1fr;
  min-height: 45px;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid #e8eeeb;
  padding: 0 0.8rem;
  font-size: 0.82rem;
}

.table-row span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table-head {
  min-height: 38px;
  border-top: 0;
  background: #eaf0ee;
  color: #506058;
  font-size: 0.72rem;
  font-weight: 800;
}

.migration-panel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
  border: 1px solid #dbe6e1;
  border-radius: 8px;
  background: #f4f8f5;
  padding: 0.75rem;
}

.migration-panel img {
  width: 156px;
  height: auto;
  border-radius: 6px;
}

.migration-panel strong {
  display: block;
  color: #19231f;
  font-size: 0.86rem;
}

.ticker {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
  color: #33423b;
  font-size: 0.86rem;
  font-weight: 760;
}

.ticker::-webkit-scrollbar {
  display: none;
}

.section {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 7.2rem 0;
}

.split-section,
.workflow-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 5rem;
}

.section-copy h2,
.final-cta h2 {
  margin-bottom: 1.15rem;
  color: var(--ink);
  font-size: 3.25rem;
  line-height: 1.03;
  font-weight: 840;
}

.section-copy p:not(.eyebrow),
.final-cta p {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.migration-flow {
  display: grid;
  border-top: 1px solid var(--line);
}

.flow-step {
  display: grid;
  grid-template-columns: 3rem 0.7fr 1.3fr;
  align-items: start;
  gap: 1.15rem;
  border-bottom: 1px solid var(--line);
  padding: 1.45rem 0;
}

.flow-step span {
  color: var(--moss);
  font-weight: 840;
}

.flow-step strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.ledger-section {
  border-top: 1px solid var(--line);
}

.ledger-section .section-copy {
  max-width: 850px;
  margin-bottom: 3rem;
}

.ledger-lines {
  border-top: 1px solid var(--line);
}

.ledger-lines article {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding: 1.45rem 0;
}

.ledger-lines span {
  color: var(--moss-dark);
  font-weight: 840;
}

.ledger-lines h3 {
  margin: 0;
  color: #15211b;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 720;
}

.workflow-section {
  border-top: 1px solid var(--line);
  grid-template-columns: 1.08fr 0.92fr;
}

.workflow-visual {
  position: relative;
  min-height: 440px;
}

.mini-window {
  position: absolute;
  width: min(390px, 88%);
  border: 1px solid #d7e3dc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(5, 8, 7, 0.12);
  padding: 1rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.mini-window:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(5, 8, 7, 0.16);
}

.mini-window strong {
  display: block;
  margin: 0.4rem 0 0.3rem;
  color: #121a17;
  font-size: 1.08rem;
}

.mini-window p {
  margin-bottom: 0;
  color: var(--muted);
}

.mini-window.one {
  top: 1rem;
  left: 1rem;
}

.mini-window.two {
  top: 9.5rem;
  right: 0;
}

.mini-window.three {
  left: 5rem;
  bottom: 2rem;
}

.final-cta {
  width: min(960px, calc(100% - 3rem));
  margin: 0 auto 6rem;
  border-top: 1px solid var(--line);
  padding: 5rem 0 0;
  text-align: center;
}

.final-cta p {
  margin: 0 auto 1.7rem;
}

.final-cta .primary-action {
  background: var(--ink);
  color: #ffffff;
}

.final-cta .primary-action:hover {
  background: var(--moss-dark);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem 2rem;
  color: #48574f;
}

.site-footer span {
  color: var(--ink);
  font-weight: 820;
}

.site-footer nav {
  gap: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes workspace-in {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-2deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-2deg) scale(1);
  }
}

@media (max-width: 1040px) {
  .hero-copy {
    padding-left: 2rem;
  }

  h1 {
    font-size: 4.9rem;
  }

  .hero-workspace {
    right: -18rem;
    width: 880px;
    opacity: 0.76;
  }

  .split-section,
  .workflow-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .workflow-visual {
    order: 2;
  }
}

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

  .site-header {
    padding: 0.9rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .header-action {
    min-height: 40px;
    padding: 0.48rem 0.75rem;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-copy {
    width: min(100% - 2rem, 520px);
    padding: 7.8rem 0 13.5rem 1rem;
  }

  h1 {
    font-size: 3.7rem;
  }

  .hero-line {
    font-size: 1.04rem;
  }

  .hero-workspace {
    right: -18rem;
    bottom: -18rem;
    width: 720px;
    opacity: 0.6;
  }

  .app-window {
    min-height: 510px;
  }

  .ticker {
    justify-content: flex-start;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.9rem 1rem;
    scrollbar-width: none;
  }

  .ticker span {
    flex: none;
  }

  .section {
    width: min(100% - 2rem, 680px);
    padding: 4.6rem 0;
  }

  .section-copy h2,
  .final-cta h2 {
    font-size: 2.25rem;
  }

  .flow-step,
  .ledger-lines article {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .workflow-visual {
    min-height: 540px;
  }

  .mini-window {
    width: 92%;
  }

  .mini-window.one {
    left: 0;
  }

  .mini-window.two {
    top: 11rem;
  }

  .mini-window.three {
    left: 0;
    bottom: 1rem;
  }

  .final-cta {
    width: min(100% - 2rem, 680px);
    margin-bottom: 4rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.2rem 1rem;
  }
}

@media (max-width: 430px) {
  .brand-mark span {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 260px);
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-workspace {
    right: -22rem;
    bottom: -18rem;
  }
}

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