/* Excellent CMS – product page. Light, round and playful: emerald on white with drifting blurred orbs. No external fonts or libraries. */

:root {
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-400: #2dd4bf;
  --teal-600: #0d9488;
  --lime-300: #bef264;
  --accent: #047857;
  --green-band: linear-gradient(160deg, var(--emerald-600), var(--emerald-700) 55%, #065f46);

  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --border: rgba(6, 78, 59, 0.09);
  --border-strong: rgba(6, 78, 59, 0.16);
  --text: #11221b;
  --muted: #4b5b55;
  --dimmed: #75847e;

  --radius: 28px;
  --shadow: 0 24px 60px -28px rgba(6, 78, 59, 0.28), 0 2px 6px rgba(6, 78, 59, 0.05);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

::selection {
  background: var(--emerald-500);
  color: #04130d;
}

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------------------------------- */
/* Background */

/* Full width behind the hero (also behind the navigation) and the "why" section */
.hero__orbs,
.why__orbs {
  position: absolute;
  top: -72px;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  translate: -50% 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__orbs {
  background: var(--green-band);
}

/* Blurred colour orbs drifting around; --fast (0..1) speeds them up while something is pressed and eases back */
@property --fast { syntax: "<number>"; inherits: true; initial-value: 0; }
body { transition: --fast 0s 1.5s; }
body:has(.btn:active) { --fast: 1; transition: none; }

.aurora {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
  animation-duration: calc(var(--d) - var(--d) * 0.8 * var(--fast));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.aurora--one {
  --d: 18s;
  top: -18vmax;
  left: -12vmax;
  background: radial-gradient(circle, var(--emerald-400), transparent 62%);
  animation-name: drift-one;
}

.aurora--two {
  --d: 22s;
  top: 4vmax;
  right: -18vmax;
  background: radial-gradient(circle, var(--teal-400), transparent 62%);
  opacity: 0.4;
  animation-name: drift-two;
}

.aurora--three {
  --d: 26s;
  top: 16vmax;
  left: 22vmax;
  background: radial-gradient(circle, var(--lime-300), transparent 60%);
  opacity: 0.5;
  animation-name: drift-three;
}

/* Follows the pointer lazily (main.js sets --px / --py) */
.aurora--pointer {
  width: 34vmax;
  height: 34vmax;
  top: 0;
  left: 0;
  background: radial-gradient(circle, var(--emerald-300), transparent 62%);
  opacity: 0.45;
  translate: calc(var(--px, 50vw) - 17vmax) calc(var(--py, 40vh) - 17vmax);
  transition: translate 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes drift-one {
  to { transform: translate(22vmax, 14vmax) rotate(25deg) scale(1.2); }
}

@keyframes drift-two {
  to { transform: translate(-20vmax, 20vmax) scale(0.85); }
}

@keyframes drift-three {
  to { transform: translate(-16vmax, -20vmax) scale(1.15); }
}

/* A click leaves a ring */
.ripple {
  position: fixed;
  z-index: 100;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 1.5px solid var(--emerald-400);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
  animation: ripple 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes ripple {
  to { transform: scale(5); opacity: 0; }
}

/* ------------------------------------------------------------------------------------------- */
/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand em {
  font-style: normal;
  color: var(--emerald-600);
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--emerald-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ------------------------------------------------------------------------------------------- */
/* Buttons */

.btn {
  --x: 0px;
  --y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: translate(var(--x), var(--y));
  transition: transform 0.25s ease, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn:active {
  transform: translate(var(--x), var(--y)) scale(0.97);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--small {
  padding: 9px 14px;
  font-size: 14px;
}

.btn--large {
  padding: 15px 26px;
  font-size: 16px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--primary:hover {
  box-shadow: 0 16px 40px -10px rgba(16, 185, 129, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--primary svg {
  transition: transform 0.25s;
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--emerald-500);
  background: #fff;
}

/* ------------------------------------------------------------------------------------------- */
/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  min-height: calc(100svh - 72px);
  padding-block: 48px 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--emerald-400);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.hero__title {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(110deg, var(--emerald-600) 0%, var(--emerald-500) 30%, #65a30d 50%, var(--emerald-600) 70%, var(--teal-600) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to { background-position: -250% 0; }
}

.hero__lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero__rotator {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.rotator {
  display: inline-block;
  min-width: 10ch;
  color: var(--text);
  font-weight: 600;
  border-bottom: 2px solid var(--emerald-500);
}

.rotator::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--emerald-400);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  display: flex;
  flex-direction: column;
  color: var(--dimmed);
  font-size: 14px;
}

.hero__facts strong {
  color: var(--text);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Spreadsheet → JSON */

.hero__visual {
  position: relative;
  display: grid;
  gap: 18px;
  perspective: 1200px;
}

.window {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--bounce);
}

.window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(52, 211, 153, 0.6), transparent 40%, transparent 60%, rgba(45, 212, 191, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.window--sheet {
  width: 88%;
  background: var(--surface-strong);
}

.window--json {
  width: 88%;
  background: var(--surface-strong);
  justify-self: end;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--dimmed);
  font: 12px/1 var(--mono);
}

.window__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d8;
}

.window__bar i:first-child {
  background: #f87171;
}

.window__bar i:nth-child(2) {
  background: #fbbf24;
}

.window__bar i:nth-child(3) {
  background: var(--emerald-400);
}

.window__bar span {
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sheet th,
.sheet td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.sheet th {
  color: var(--accent);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.06);
}

.sheet td {
  color: var(--muted);
  transition: background 0.4s, color 0.4s;
}

.sheet tr.is-active td {
  background: rgba(16, 185, 129, 0.14);
  color: var(--text);
}

.flow {
  display: flex;
  justify-content: center;
  gap: 8px;
  height: 14px;
}

.flow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  animation: flow 1.4s ease-in-out infinite;
}

.flow span:nth-child(2) {
  animation-delay: 0.2s;
}

.flow span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes flow {
  0%,
  100% {
    transform: translateY(-3px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

.json {
  margin: 0;
  min-height: 236px;
  padding: 16px 18px;
  font: 13px/1.6 var(--mono);
  color: var(--muted);
  white-space: pre-wrap;
}

.json .k {
  color: var(--accent);
}

.json .s {
  color: #b45309;
}

.json .n {
  color: #2563eb;
}

.json .caret {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  vertical-align: -3px;
  background: var(--emerald-400);
  animation: blink 1s steps(1) infinite;
}

/* ------------------------------------------------------------------------------------------- */
/* Marquee */

.marquee {
  padding: 22px 0;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.marquee__track span:nth-child(3n) {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--accent);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------------------------------- */
/* Sections */

.section {
  padding-block: 120px 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.section__lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.center {
  margin-top: 32px;
  text-align: center;
}

/* Steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-500), var(--teal-400));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.steps::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--border);
  z-index: -1;
}

.step__number {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.5);
  background: var(--surface-strong);
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(16, 185, 129, 0.6);
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Feature cards with spotlight */

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

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(16, 185, 129, 0.07), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(52, 211, 153, 0.35), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

[data-spotlight]:hover .card::before,
[data-spotlight]:hover .card::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 64px -30px rgba(6, 78, 59, 0.34);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent);
}

.card__icon svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.card:hover .card__icon svg {
  transform: scale(1.06);
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* Why: copy, then everything that is included as chips, the technology in one quiet line */

.why__copy {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.why__copy > p:not(.kicker) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.why .checks {
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 12px 32px;
  text-align: left;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.included {
  max-width: 900px;
  margin: 48px auto 0;
  text-align: center;
}

.included__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included__chips li {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 14px -8px rgba(6, 78, 59, 0.3);
}

.included__tech {
  margin: 28px 0 0;
  color: var(--dimmed);
  font-size: 14px;
}

/* Code */

.code {
  max-width: 860px;
  margin: 0 auto 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 185, 129, 0.05);
}

.code__tab {
  color: var(--accent);
  font: 600 12px/1 var(--mono);
}

.copy {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font: 500 12px/1 var(--font);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.copy:hover,
.copy.is-done {
  color: var(--accent);
  border-color: var(--emerald-500);
}

.code pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font: 14px/1.7 var(--mono);
  color: var(--text);
}

.tok-k { color: #7c3aed; }
.tok-f { color: var(--accent); }
.tok-s { color: #b45309; }
.tok-v { color: #2563eb; }
.tok-n { color: #dc2626; }
.tok-c { color: var(--dimmed); font-style: italic; }
.tok-prompt { color: var(--emerald-600); user-select: none; }

/* License */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 34px;
}

.plan .btn {
  align-self: flex-start;
  margin-top: auto;
}

.plan--commercial {
  background:
    radial-gradient(500px circle at 100% 0%, rgba(16, 185, 129, 0.12), transparent 60%),
    var(--surface);
}

.plan .plan__name {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan .plan__price {
  margin: 10px 0 0;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan .plan__price--text {
  font-size: 40px;
  line-height: 1.4;
}

.plan .plan__for {
  margin: 16px 0 0;
  color: var(--muted);
}

.checks--small {
  margin-bottom: 30px;
  font-size: 15px;
}

.checks--small li::before {
  width: 18px;
  height: 18px;
  background-size: 12px;
}

.license-note {
  max-width: 860px;
  margin: 26px 0 0;
  color: var(--dimmed);
  font-size: 14px;
}

.license-note a {
  color: var(--accent);
}

/* Demo */

.demo {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 40px;
  background:
    radial-gradient(600px circle at 0% 0%, rgba(16, 185, 129, 0.22), transparent 60%),
    radial-gradient(500px circle at 100% 100%, rgba(45, 212, 191, 0.14), transparent 60%),
    var(--surface-strong);
  overflow: hidden;
}

.demo,
.plugin-card,
.plugin__facts {
  box-shadow: var(--shadow);
}

.demo__copy p:not(.kicker) {
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.logins {
  display: grid;
  gap: 12px;
}

.login {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s;
}

.login:hover {
  border-color: rgba(16, 185, 129, 0.5);
}

.login__role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login code {
  font: 14px/1.4 var(--mono);
  color: var(--text);
}

.login code + code {
  color: var(--muted);
}

/* Footer */

.footer {
  margin-top: 140px;
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer__made {
  margin: 14px 0 0;
}

.footer__made a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.footer__made a:hover {
  text-decoration: underline;
}

.footer__license {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--dimmed);
  font-size: 13px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.footer__links a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--accent);
}

/* Documentation (/docs): navigation on the left, the text of the CMS (Markdown) on the right */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 120px; }
.docs__nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 8px; }
.docs__link { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 10px 6px 22px; border-radius: 8px; }
.docs__link--top { color: var(--text); font-weight: 600; padding-left: 10px; margin-top: 10px; }
.docs__link:hover { color: var(--text); background: var(--surface); }
.docs__link.is-active { color: var(--accent); background: rgba(16, 185, 129, 0.12); }
.docs__body { min-width: 0; color: var(--text); line-height: 1.7; font-size: 16px; }
.docs__body h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; margin: 0 0 12px; }
.docs__summary { color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.docs__body h2 { font-size: 26px; margin: 48px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.docs__body h3 { font-size: 20px; margin: 32px 0 8px; }
.docs__body h4 { font-size: 17px; margin: 24px 0 6px; }
.docs__body h2[id], .docs__body h3[id], .docs__body h4[id] { scroll-margin-top: 96px; }
.docs__body a { color: var(--accent); }
.docs__body p, .docs__body ul, .docs__body ol { margin: 0 0 16px; }
.docs__body li { margin: 4px 0; }
.docs__body code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-strong); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.docs__body pre { background: var(--surface-strong); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 0 0 20px; }
.docs__body pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.6; }
.docs__body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; display: block; overflow-x: auto; }
.docs__body th, .docs__body td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.docs__body th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.docs__body blockquote { margin: 0 0 16px; padding: 4px 16px; border-left: 3px solid var(--emerald-500); color: var(--muted); }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 96px; }
  .docs__nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .docs__link, .docs__link--top { padding: 6px 10px; margin-top: 0; font-weight: 500; background: var(--surface); }
}

/* Plugins (/plugins): cards with download, a page per plugin with its README */
.plugins { padding-top: 120px; }
.plugins__page { padding-top: 72px; }
.plugins--after-page { padding-top: 0; }
.plugins__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.plugin-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.plugin-card h3 { margin: 0; font-size: 20px; }
.plugin-card h3 a { color: var(--text); text-decoration: none; }
.plugin-card h3 a:hover { color: var(--accent); }
.plugin-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.plugin-card__meta { font-size: 13px; }
.plugin-card__meta code { font-family: var(--mono); color: var(--accent); }
.plugin-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.plugin-card__size { opacity: .75; font-weight: 400; margin-left: 4px; }
.plugin { padding-top: 120px; max-width: 920px; }
.plugin__back a { color: var(--muted); text-decoration: none; font-size: 14px; }
.plugin__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.plugin__head h1 { font-size: clamp(32px, 4vw, 44px); margin: 8px 0 8px; }
.plugin__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 8px 0 32px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.plugin__facts dt { color: var(--dimmed); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.plugin__facts dd { margin: 2px 0 0; }
.plugin__install { margin: 0 0 32px; color: var(--muted); }
.plugin__install h2 { color: var(--text); font-size: 20px; margin: 0 0 8px; }
.plugin__install ol { margin: 0; padding-left: 20px; line-height: 1.8; }

/* ------------------------------------------------------------------------------------------- */
/* Hero on full green: white text, white buttons; the preview windows stay light */

.hero {
  margin-bottom: 24px;
}

.hero__copy {
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.85);
  --dimmed: rgba(255, 255, 255, 0.72);
  --accent: #d9f99d;
  color: var(--text);
}

.hero .gradient-text {
  background-image: linear-gradient(110deg, #d9f99d 0%, var(--emerald-300) 35%, #fff 50%, var(--lime-300) 70%, #d9f99d 100%);
}

.hero .eyebrow {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero .pulse,
.hero .pulse::after,
.hero .rotator::after,
.hero .flow span {
  background: var(--lime-300);
}

.hero .rotator {
  border-bottom-color: var(--lime-300);
}

.hero .btn--primary,
body:has(.hero) .nav:not(.is-scrolled) .btn--primary {
  background: #fff;
  color: var(--emerald-700);
  box-shadow: 0 12px 30px -12px rgba(2, 44, 34, 0.55);
}

.hero .btn--ghost,
body:has(.hero) .nav:not(.is-scrolled) .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
}

.hero .btn--ghost:hover,
body:has(.hero) .nav:not(.is-scrolled) .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero .window {
  box-shadow: 0 30px 70px -30px rgba(2, 44, 34, 0.7);
}

/* Navigation over the green hero (until scrolled) */
body:has(.hero) .nav:not(.is-scrolled) .brand {
  color: #fff;
}

body:has(.hero) .nav:not(.is-scrolled) .brand em {
  color: var(--lime-300);
}

body:has(.hero) .nav:not(.is-scrolled) .nav__links a {
  color: rgba(255, 255, 255, 0.85);
}

body:has(.hero) .nav:not(.is-scrolled) .nav__links a:hover {
  color: #fff;
}

body:has(.hero) .nav:not(.is-scrolled) .nav__links a::after {
  background: var(--lime-300);
}

/* White logo over the green hero, the green one everywhere else */
.brand__logo--white,
body:has(.hero) .nav:not(.is-scrolled) .brand img:not(.brand__logo--white) {
  display: none;
}

body:has(.hero) .nav:not(.is-scrolled) .brand__logo--white {
  display: block;
}

/* ------------------------------------------------------------------------------------------- */
/* Sections below the hero: clean white, soft tinted panels, a bento grid, one bold green band */

.marquee {
  border: 0;
  background: none;
}

.marquee__track span {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 4px 14px -8px rgba(6, 78, 59, 0.3);
}

.marquee__track span:nth-child(3n) {
  border-color: transparent;
  background: #d1fae5;
  color: var(--accent);
}

/* Steps: three pastel tiles, the number big and round */
.steps::before,
.steps::after {
  display: none;
}

.step {
  padding: 32px;
  border-radius: var(--radius);
  background: #ecfdf5;
}

.step:nth-child(3n + 2) {
  background: #f7fee7;
}

.step:nth-child(3n) {
  background: #f0fdfa;
}

.step__number {
  width: 64px;
  height: 64px;
  border: 0;
  background: #fff;
  color: var(--emerald-600);
  font-size: 28px;
  box-shadow: 0 10px 24px -12px rgba(6, 78, 59, 0.4);
}

/* Features: bento - every 1st, 7th and 11th card is wide and tinted */
.cards {
  grid-auto-flow: dense;
}

.cards > .card {
  background: #fff;
}

.cards > .card:nth-child(12n + 1),
.cards > .card:nth-child(12n + 7),
.cards > .card:nth-child(12n + 11) {
  grid-column: span 2;
  padding: 40px;
  background:
    radial-gradient(360px circle at 100% 100%, rgba(52, 211, 153, 0.35), transparent 70%),
    linear-gradient(140deg, #ecfdf5, #f7fee7);
}

.cards > .card:nth-child(12n + 7) {
  background:
    radial-gradient(360px circle at 0% 100%, rgba(45, 212, 191, 0.3), transparent 70%),
    linear-gradient(140deg, #f0fdfa, #ecfdf5);
}

.cards > .card:nth-child(12n + 1) h3,
.cards > .card:nth-child(12n + 7) h3,
.cards > .card:nth-child(12n + 11) h3 {
  font-size: 26px;
}

.cards > .card:nth-child(12n + 1) .card__icon,
.cards > .card:nth-child(12n + 7) .card__icon,
.cards > .card:nth-child(12n + 11) .card__icon {
  width: 60px;
  height: 60px;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 24px -12px rgba(6, 78, 59, 0.4);
}

/* Why: blurred orbs on white, full width behind the boxed content */
.why {
  position: relative;
  margin-top: 120px;
  padding-block: 96px;
}

.why__orbs {
  top: 0;
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}

/* SDK: text on the left, code on the right */
.sdk {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: 56px;
  align-items: start;
}

.sdk > .section__head {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.sdk > .center {
  grid-column: 2;
  grid-row: 3;
  margin: 6px 0 0;
  text-align: left;
}

.sdk > .code {
  grid-column: 2;
  width: 100%;
  margin: 0 0 18px;
}

/* License: the free plan as a deep green card */
.plan:not(.plan--commercial) {
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.82);
  --accent: #a7f3d0;
  border: 0;
  background:
    radial-gradient(420px circle at 100% 0%, rgba(190, 242, 100, 0.25), transparent 60%),
    linear-gradient(160deg, var(--emerald-700), #065f46);
  color: var(--text);
}

.plan--commercial {
  background: #fff;
}

/* Demo: the bold green band */
.demo {
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.85);
  --accent: #d1fae5;
  border: 0;
  background:
    radial-gradient(520px circle at 100% 0%, rgba(190, 242, 100, 0.45), transparent 60%),
    radial-gradient(520px circle at 0% 100%, rgba(45, 212, 191, 0.5), transparent 60%),
    linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  color: var(--text);
}

.demo .login {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
}

.plan:not(.plan--commercial) .btn--primary,
.demo .btn--primary {
  background: #fff;
  color: var(--emerald-700);
  box-shadow: 0 10px 30px -12px rgba(2, 44, 34, 0.5);
}

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

  .sdk > .center,
  .sdk > .code {
    grid-column: 1;
    grid-row: auto;
  }

  .sdk > .center {
    order: 1;
  }
}

@media (max-width: 760px) {
  .cards > .card:nth-child(n) {
    grid-column: auto;
  }

  .why {
    padding-block: 64px;
  }
}

/* Grid items may shrink below their content (tables, code), otherwise small screens overflow */
.hero > *,
.demo > *,
.cards > *,
.plans > *,
.steps > * {
  min-width: 0;
}

/* ------------------------------------------------------------------------------------------- */
/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s var(--bounce);
  transition-delay: var(--delay, 0s);
}

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

/* ------------------------------------------------------------------------------------------- */
/* Small screens */

@media (max-width: 980px) {
  .hero,
  .demo {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 32px;
  }

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

  .plans {
    grid-template-columns: 1fr;
  }

  .demo {
    padding: 36px 28px;
  }

}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav__links {
    display: none;
  }

  .nav .btn--ghost {
    display: none;
  }

  .steps,
  .cards {
    grid-template-columns: 1fr;
  }

  .steps::before,
  .steps::after {
    display: none;
  }

  .section {
    padding-top: 88px;
  }

  .window--sheet,
  .window--json {
    width: 100%;
  }

  .sheet th:nth-child(4),
  .sheet td:nth-child(4) {
    display: none;
  }

  .hero__facts {
    gap: 24px;
  }

  .why .checks {
    grid-template-columns: 1fr;
    justify-content: start;
  }
}

/* ------------------------------------------------------------------------------------------- */
/* Less motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
