:root {
  --ink: #121815;
  --ink-soft: #2a332e;
  --paper: #eef2ec;
  --paper-2: #e2e8df;
  --mist: #d5ddd4;
  --line: #b7c2b6;
  --signal: #0f7a52;
  --signal-ink: #085c3c;
  --phosphor: #1fa870;
  --term: #0c1210;
  --term-text: #c5d6c8;
  --term-dim: #6f8576;
  --agent: #dce8df;
  --shadow-soft: 0 24px 60px rgba(18, 24, 21, 0.14);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(31, 168, 112, 0.16), transparent 55%),
    radial-gradient(900px 600px at 90% 8%, rgba(183, 194, 182, 0.55), transparent 50%),
    linear-gradient(180deg, #f5f7f3 0%, var(--paper) 42%, #e7ede5 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(10px);
  background: rgba(238, 242, 236, 0.72);
  border-bottom: 1px solid rgba(183, 194, 182, 0.45);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark img {
  border-radius: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.35rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-external {
  color: var(--signal-ink);
  font-weight: 500;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1.85rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  min-height: auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 0;
}

.hero-copy {
  max-width: 40rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.9rem;
  margin: 0 0 1rem;
  width: 100%;
  max-width: none;
}

.brand-hero {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 11vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-rule {
  flex: 1 1 auto;
  min-width: 1.25rem;
  height: 1px;
  align-self: center;
  background: var(--line);
}

.brand-aside {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  opacity: 0.78;
  white-space: nowrap;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink-soft);
}

.lede,
.support {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

.lede {
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--signal);
  color: #f4faf6;
}

.btn-primary:hover {
  background: var(--signal-ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.35);
}

.hero-stage {
  width: min(100%, 920px);
  margin: 0 auto;
  min-height: clamp(180px, 28vh, 300px);
  display: flex;
  align-items: stretch;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1.5rem;
  animation: rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.product-shell {
  width: 100%;
  border: 1px solid rgba(18, 24, 21, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--term);
  box-shadow: var(--shadow-soft);
  transform-origin: center bottom;
  transition: transform 0.25s ease;
}

.product-chrome {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #151c18;
  border-bottom: 1px solid rgba(197, 214, 200, 0.08);
}

.product-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a4740;
}

.product-chrome span:nth-child(1) {
  background: #6d7a72;
}
.product-chrome span:nth-child(2) {
  background: #556359;
}
.product-chrome span:nth-child(3) {
  background: #3f4c44;
}

.product-chrome p {
  margin: 0;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--term-dim);
}

.product-body {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) minmax(9rem, 13rem);
  min-height: clamp(180px, 28vh, 300px);
}

.product-rail {
  padding: 0.85rem 0.55rem;
  border-right: 1px solid rgba(197, 214, 200, 0.08);
  background: #101612;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--term-dim);
}

.rail-item {
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.rail-item.is-active {
  background: rgba(31, 168, 112, 0.14);
  color: var(--phosphor);
}

.product-terminal {
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  color: var(--term-text);
  background:
    linear-gradient(180deg, rgba(31, 168, 112, 0.05), transparent 40%),
    var(--term);
}

.term-lines {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.65;
}

.prompt {
  color: var(--phosphor);
  margin-right: 0.35rem;
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--phosphor);
  animation: blink 1.1s steps(1) infinite;
}

.product-agent {
  padding: 0.95rem;
  background: #142019;
  border-left: 1px solid rgba(197, 214, 200, 0.08);
}

.agent-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--term-dim);
}

.agent-bubble {
  margin: 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(31, 168, 112, 0.1);
  color: var(--term-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.agent-meta {
  margin: 0.7rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--phosphor);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(183, 194, 182, 0.55);
}

.band-alt {
  background: linear-gradient(180deg, rgba(226, 232, 223, 0.55), transparent);
}

.band-inner {
  max-width: 34rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-ink);
}

.band h2,
.download h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.feature-visual,
.agent-strip {
  min-height: 12rem;
}

.grid-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cell {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.cell.wide {
  grid-column: 1 / -1;
}

.cell span {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--signal-ink);
}

.cell code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink);
}

.naming-strip {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
}

.naming-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.naming-item span {
  color: var(--signal-ink);
}

.naming-item code {
  color: var(--ink);
}

.split-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 0.55rem;
  min-height: 14rem;
}

.split-pane {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
}

.split-pane.bottom {
  grid-column: 1 / -1;
}

.split-pane span {
  font-size: 0.72rem;
  color: var(--signal-ink);
}

.split-pane code {
  font-size: 0.84rem;
  color: var(--ink);
}

.split-pane code.dim {
  color: var(--ink-soft);
  opacity: 0.85;
}

.perf-strip {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
}

.perf-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.perf-item span {
  color: var(--signal-ink);
}

.perf-item code {
  color: var(--ink);
}

.theme-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.swatch {
  display: flex;
  align-items: flex-end;
  min-height: 5.5rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(18, 24, 21, 0.12);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.swatch-ink {
  background: linear-gradient(160deg, #1a2220 0%, #0d1210 100%);
  color: #cfe0d4;
}

.swatch-dawn {
  background: linear-gradient(160deg, #f7f1e8 0%, #e8dccb 100%);
  color: #4a3f34;
}

.swatch-forest {
  background: linear-gradient(160deg, #1f3d32 0%, #123028 100%);
  color: #b7d9c6;
}

.swatch-slate {
  background: linear-gradient(160deg, #e8eef2 0%, #cfd8e0 100%);
  color: #2c3640;
}

.agent-strip {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.strip-line span {
  display: inline-block;
  min-width: 4.5rem;
  margin-right: 0.75rem;
  color: var(--signal-ink);
}

.download {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(183, 194, 182, 0.55);
}

.download-inner {
  max-width: 40rem;
}

.install-hint {
  margin: 1.4rem 0 0;
  padding: 0.9rem 1rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--term);
  color: var(--term-text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid rgba(183, 194, 182, 0.55);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.footer-brand img {
  border-radius: 5px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.delay-1 {
  transition-delay: 0.12s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .band {
    grid-template-columns: 1fr;
  }

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

  .product-rail {
    display: flex;
    gap: 0.35rem;
    border-right: 0;
    border-bottom: 1px solid rgba(197, 214, 200, 0.08);
    overflow-x: auto;
  }

  .rail-item {
    margin: 0;
    white-space: nowrap;
  }

  .product-agent {
    border-left: 0;
    border-top: 1px solid rgba(197, 214, 200, 0.08);
  }
}

@media (max-width: 720px) {
  .site-nav a:not(.nav-external) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .brand-hero {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .brand-row {
    gap: 0.55rem;
  }

  .brand-aside {
    font-size: 0.78rem;
  }
}
