:root {
  --ink: #1a2218;
  --ink-soft: #3d4a38;
  --paper: #eef3ea;
  --paper-deep: #dfe8d8;
  --lime: #8fce4a;
  --lime-deep: #6fad32;
  --mist: rgba(143, 206, 74, 0.18);
  --line: rgba(26, 34, 24, 0.12);
  --white: #f7faf4;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space: clamp(1.25rem, 3vw, 2rem);
  --max: 68rem;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(120% 80% at 85% -10%, var(--mist), transparent 55%),
    radial-gradient(90% 60% at -10% 30%, rgba(111, 173, 50, 0.12), transparent 50%),
    linear-gradient(165deg, var(--white) 0%, var(--paper) 45%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

body.lang-fade main {
  animation: copy-fade 0.35s var(--ease);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.paper-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--space);
  backdrop-filter: blur(10px);
  background: rgba(247, 250, 244, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 250, 244, 0.9);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-lockup img {
  width: 1.85rem;
  height: 1.85rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav > a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  overflow: hidden;
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0.3rem 0.55rem;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-switch__btn.is-active,
.lang-switch__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--lime-deep);
  outline-offset: -2px;
}

/* ——— Hero ——— */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: calc(100svh - var(--header-h));
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--space) clamp(3rem, 8vh, 5rem);
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__mark {
  width: clamp(2.75rem, 6vw, 4rem);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero__headline {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.hero__support {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #0f160e;
}

.btn--ghost {
  border: 1px solid var(--line);
  background: rgba(247, 250, 244, 0.55);
  color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--ink-soft);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(16rem, 42vw, 24rem);
  isolation: isolate;
}

.hero__fold {
  position: absolute;
  border-radius: 0.25rem;
  transform-origin: center;
}

.hero__fold--a {
  width: 78%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(143, 206, 74, 0.35), transparent 60%),
    linear-gradient(225deg, var(--paper-deep), var(--white));
  transform: rotate(-8deg);
  box-shadow: 0 18px 40px rgba(26, 34, 24, 0.08);
}

.hero__fold--b {
  width: 62%;
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--white), rgba(143, 206, 74, 0.22));
  transform: rotate(7deg) translate(8%, 4%);
  opacity: 0.9;
}

.hero__frog {
  position: relative;
  z-index: 1;
  width: clamp(10rem, 27vw, 16rem);
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(26, 34, 24, 0.14));
}

body.is-ready .hero__brand {
  animation: rise-in 0.8s var(--ease) both;
}

body.is-ready .hero__headline {
  animation: rise-in 0.8s var(--ease) 0.08s both;
}

body.is-ready .hero__support,
body.is-ready .hero__actions {
  animation: rise-in 0.8s var(--ease) 0.16s both;
}

body.is-ready .hero__visual {
  animation: float-in 1s var(--ease) 0.12s both;
}

/* ——— Sections ——— */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6rem) var(--space);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-deep);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__lede {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.product__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.product__title-row img {
  width: 2.75rem;
  height: 2.75rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.product__title-row h2 {
  margin: 0;
}

.product__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: clamp(1.5rem, 4vh, 2.25rem);
  border-top: 1px solid var(--line);
}

.product__pane h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product__pane p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.cli-sample {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--lime);
  background: rgba(26, 34, 24, 0.04);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  overflow-x: auto;
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--lime-deep);
  border-bottom-color: var(--lime-deep);
}

.about {
  padding-bottom: clamp(4rem, 12vh, 7rem);
}

.about__inner {
  max-width: 38rem;
}

.about__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.about__contact a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.about__contact a:hover,
.about__contact a:focus-visible {
  border-bottom-color: var(--lime-deep);
  color: var(--lime-deep);
}

/* ——— Footer ——— */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem var(--space) 1.75rem;
  border-top: 1px solid var(--line);
  background: rgba(247, 250, 244, 0.65);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.site-footer__brand img {
  width: 1.35rem;
  height: 1.35rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.site-footer__copy {
  margin: 0;
}

.site-footer__product {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.site-footer__product:hover,
.site-footer__product:focus-visible {
  color: var(--lime-deep);
}

/* ——— Motion helpers ——— */

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes copy-fade {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.lang-fade main,
  body.is-ready .hero__brand,
  body.is-ready .hero__headline,
  body.is-ready .hero__support,
  body.is-ready .hero__actions,
  body.is-ready .hero__visual,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ——— Responsive ——— */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.25rem;
  }

  .hero__visual {
    order: -1;
    min-height: 14rem;
  }

  .hero__frog {
    width: clamp(8.5rem, 40vw, 11.5rem);
  }

  .product__split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-nav > a {
    display: none;
  }

  .hero__brand {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
