:root {
  --bg: #06110a;
  --bg-elevated: rgba(9, 24, 15, 0.84);
  --panel: rgba(11, 28, 18, 0.86);
  --panel-strong: #0d1f14;
  --card: rgba(13, 34, 21, 0.82);
  --card-border: rgba(103, 255, 160, 0.14);
  --text: #effaf2;
  --muted: #a6c5b0;
  --soft: #6e8f79;
  --brand: #1db954;
  --brand-strong: #29d868;
  --brand-dim: rgba(29, 185, 84, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
  --hover-in-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-out-ease: cubic-bezier(0.37, 0, 0.63, 1);
  --hover-in-duration: 820ms;
  --hover-out-duration: 980ms;
  --demo-loop: 4.2s;
  --hero-autoplay: 7s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 185, 84, 0.22), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(29, 185, 84, 0.14), transparent 20%),
    linear-gradient(180deg, #07120b 0%, #040806 100%);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 70%);
  pointer-events: none;
}

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

button,
a,
.feature-card,
.use-case-card,
.trust-item,
.product-card,
.github-card,
.download-panel,
.demo-window {
  transition:
    border-color var(--hover-out-duration) ease-in-out,
    background-color var(--hover-out-duration) ease-in-out,
    box-shadow var(--hover-out-duration) ease-in-out,
    opacity var(--hover-out-duration) ease-in-out,
    filter var(--hover-out-duration) ease-in-out;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #8bf4a8, transparent 34%),
    linear-gradient(135deg, var(--brand), #11863c);
  box-shadow: 0 0 22px rgba(29, 185, 84, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  transition:
    color var(--hover-out-duration) ease-in-out,
    box-shadow var(--hover-out-duration) ease-in-out,
    border-color var(--hover-out-duration) ease-in-out,
    background-color var(--hover-out-duration) ease-in-out;
}

.nav-label,
.button-label,
.trust-text,
.feature-card > *,
.use-case-card > *,
.product-card > *,
.download-panel > *,
.github-card > *,
.demo-window > * {
  display: block;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  transition:
    transform var(--hover-out-duration) var(--hover-out-ease),
    opacity var(--hover-out-duration) ease-in-out;
}

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

.nav a:hover .nav-label,
.nav a:focus-visible .nav-label {
  transform: translate3d(0, -1px, 0);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 rgba(29, 185, 84, 0);
}

.nav-support {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.nav-support-badge {
  display: block;
  width: 124px;
  height: auto;
}

.nav-cta:hover {
  border-color: rgba(103, 255, 160, 0.2);
  box-shadow:
    0 16px 32px rgba(29, 185, 84, 0.12),
    0 0 22px rgba(29, 185, 84, 0.12);
}

.section {
  position: relative;
  padding: 48px 0;
}

.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 18%, rgba(29, 185, 84, 0.12) 50%, rgba(255, 255, 255, 0.04) 82%, transparent 100%);
  pointer-events: none;
}

.section-divider {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 46px;
  padding-top: 56px;
  padding-bottom: 18px;
  min-height: clamp(620px, 78vh, 760px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(93, 255, 155, 0.2);
  background: rgba(29, 185, 84, 0.08);
  color: #b8f4ca;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero h1,
.section-heading h2,
.download-panel h2,
.github-card h2 {
  margin: 18px 0 16px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6.4rem);
  max-width: 11ch;
}

.hero-text,
.section-heading p,
.download-panel p,
.github-card p,
.use-case-card p,
.feature-card p,
.demo-caption {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 18px;
}

.download-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
  color: #d6efe0;
  font-size: 0.98rem;
  font-weight: 600;
}

.download-proof span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(29, 185, 84, 0.55);
  vertical-align: middle;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  isolation: isolate;
}

.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(29, 185, 84, 0.22), transparent 68%);
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity var(--hover-out-duration) ease-in-out,
    transform var(--hover-out-duration) var(--hover-out-ease);
  z-index: -2;
}

.button::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -26%;
  width: 40%;
  height: 320%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0;
  transition:
    transform 1080ms var(--hover-out-ease),
    opacity var(--hover-out-duration) ease-in-out;
  z-index: -1;
}

.button-primary {
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #031108;
  box-shadow:
    0 18px 40px rgba(29, 185, 84, 0.28),
    0 0 18px rgba(29, 185, 84, 0.24),
    0 0 36px rgba(29, 185, 84, 0.18),
    0 0 0 1px rgba(182, 255, 206, 0.16) inset;
  animation: cta-breathe 3.4s ease-in-out infinite;
}

.button-primary::before {
  display: none;
}

.button-primary::after {
  display: none;
}

.button-primary:hover {
  box-shadow:
    0 26px 56px rgba(29, 185, 84, 0.34),
    0 0 24px rgba(29, 185, 84, 0.3),
    0 0 46px rgba(29, 185, 84, 0.24),
    0 0 0 1px rgba(214, 255, 228, 0.22) inset;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button-large {
  min-height: 62px;
  padding: 0 28px;
  font-size: 1.02rem;
  white-space: nowrap;
}

.button-xl {
  min-height: 68px;
  padding: 0 32px;
  font-size: 1.08rem;
}

.button:hover::before,
.button:focus-visible::before {
  opacity: 1;
  transform: scale(1.12);
}

.button:hover::after,
.button:focus-visible::after {
  opacity: 1;
  transform: translateX(250%) rotate(18deg);
}

.button:hover .button-label,
.button:focus-visible .button-label {
  transform: translate3d(0, -2px, 0);
}

.button:active .button-label {
  transform: translate3d(0, 0, 0);
}

.micro-proof {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  padding-left: 6px;
  color: var(--soft);
  font-size: 0.94rem;
}

.micro-proof span {
  white-space: nowrap;
}

.micro-proof span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 14px rgba(29, 185, 84, 0.6);
  vertical-align: middle;
}

.hero-visual {
  position: relative;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
}

.orb-one {
  width: 160px;
  height: 160px;
  top: -24px;
  right: 8%;
  background: rgba(29, 185, 84, 0.24);
}

.orb-two {
  width: 220px;
  height: 220px;
  bottom: -28px;
  left: 0;
  background: rgba(29, 185, 84, 0.14);
}

.product-card,
.demo-window,
.feature-card,
.use-case-card,
.trust-item,
.download-panel,
.github-card {
  background: linear-gradient(180deg, rgba(17, 40, 26, 0.9), rgba(10, 22, 15, 0.84));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.product-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-card::after,
.download-panel::after,
.github-card::after,
.demo-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.product-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.product-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-proof-panel,
.scene-game,
.scene-overlay {
  border-radius: 24px;
}

.hero-proof-panel {
  min-height: 356px;
  padding: 22px 22px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(29, 185, 84, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(16, 39, 25, 0.92), rgba(9, 21, 15, 0.9));
}

.hero-carousel {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-carousel-track {
  position: relative;
  min-height: 244px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 560ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-proof-copy {
  max-width: 32ch;
  display: grid;
  align-content: start;
  row-gap: 6px;
  min-height: 74px;
}

.hero-proof-copy h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #1db954;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.3),
    0 0 10px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(29, 185, 84, 0.12);
}

.hero-proof-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28ch;
  min-height: 2.8em;
}

.compare-label {
  display: none;
  align-self: flex-start;
  justify-self: start;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #cde9d6;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  max-width: 344px;
  min-height: 140px;
  padding-bottom: 8px;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  padding-bottom: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
}

.hero-dot,
.carousel-arrow {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    transform 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease;
}

.hero-dot.is-active {
  background: var(--brand);
  box-shadow: 0 0 18px rgba(29, 185, 84, 0.32);
  transform: scale(1.18);
}

.carousel-arrow {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9efe0;
  font-weight: 800;
  transition:
    transform 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
  overflow: hidden;
  isolation: isolate;
}

.carousel-arrow-icon {
  position: relative;
  z-index: 1;
}

.carousel-arrow:hover,
.hero-dot:hover {
  transform: translateY(-1px);
}

.carousel-arrow:hover {
  background: rgba(29, 185, 84, 0.1);
  border-color: rgba(132, 255, 176, 0.18);
  box-shadow: 0 0 18px rgba(29, 185, 84, 0.12);
}

.carousel-progress {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.carousel-progress-track,
.carousel-progress-ring {
  fill: none;
  stroke-width: 2;
}

.carousel-progress-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.carousel-progress-ring {
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(29, 185, 84, 0.35));
}

.hero-flow-badge,
.hero-flow-arrow {
  display: none;
}

.hotkey-chip,
.toast-card,
.scene-keypress,
.scene-toast {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.hotkey-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 18px;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.key {
  min-width: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  color: #dff3e4;
  font-size: 0.88rem;
  font-weight: 700;
}

.hotkey-chip .key:last-child {
  min-width: 56px;
}

.active-key {
  background: rgba(29, 185, 84, 0.26);
  box-shadow: inset 0 0 0 1px rgba(136, 255, 177, 0.25);
}

.plus {
  color: var(--soft);
  font-weight: 700;
}

.pulse-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(29, 185, 84, 0.8), transparent);
  opacity: 0.8;
  animation: pulse-move 2.8s linear infinite;
}

.toast-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  transform-origin: center bottom;
  width: min(100%, 320px);
  min-height: 72px;
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.toast-icon,
.scene-toast-led {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.3), rgba(29, 185, 84, 0.1));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast-icon svg,
.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: #8cf2a7;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.toast-text {
  color: var(--muted);
  font-size: 0.84rem;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.mini-stats div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-stats strong,
.use-case-card h3,
.feature-card h3 {
  display: block;
  font-size: 0.96rem;
  letter-spacing: -0.03em;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.84rem;
}

.trust-section {
  padding-top: 12px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.problem-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 40, 26, 0.9), rgba(10, 22, 15, 0.84));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.problem-card h2 {
  margin: 18px 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.problem-card p {
  color: var(--muted);
  font-size: 1.02rem;
}

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

.problem-list li,
.fix-step {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.problem-list li::before {
  content: ">";
  margin-right: 10px;
  color: #9fe8b7;
}

.fix-card {
  background:
    radial-gradient(circle at right top, rgba(29, 185, 84, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(18, 49, 30, 0.96), rgba(9, 23, 15, 0.96));
}

.fix-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.fix-arrow {
  color: #95d8aa;
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.section-heading h2,
.download-panel h2,
.github-card h2 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
}

.trust-grid,
.feature-grid,
.use-case-grid {
  display: grid;
  gap: 18px;
}

.trust-grid {
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  padding: 20px 22px;
  border-radius: 20px;
  color: #d8eee0;
  font-weight: 600;
}

.demo-frame {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-section {
  padding-top: 65px;
}

.demo-label {
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  margin-bottom: 14px;
}

.demo-window {
  position: relative;
  padding: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 28px 88px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(126, 255, 173, 0.12) inset,
    0 0 28px rgba(29, 185, 84, 0.14);
}

.demo-scene {
  min-height: 500px;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(29, 185, 84, 0.16), transparent 25%),
    linear-gradient(180deg, #08110c 0%, #0b1d13 100%);
}

.scene-game,
.scene-game-image {
  position: absolute;
  inset: 0;
}

.scene-game {
  background:
    radial-gradient(circle at 62% 42%, rgba(29, 185, 84, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%) -24px 0/48px 48px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%) -24px 0/48px 48px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%) 0 0/48px 48px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%) 0 0/48px 48px;
  opacity: 0.9;
}

.scene-game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(0.8px);
  transform: scale(1.02);
}

.scene-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 7, 0.12) 0%, rgba(4, 10, 7, 0.18) 58%, rgba(4, 10, 7, 0.76) 100%),
    radial-gradient(circle at 76% 18%, rgba(29, 185, 84, 0.16), transparent 22%);
}

.scene-hud {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 1;
}

.scene-hud-pill,
.scene-hotkey-hint {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(7, 18, 12, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #d8efe0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.scene-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 28px;
}

.scene-hotkey-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scene-keypress {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(7, 18, 12, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.scene-keypress .scene-key {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 9px 12px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #dff3e4 !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.scene-keypress .scene-plus {
  display: inline-flex !important;
  align-items: center;
  color: var(--soft);
  font-weight: 700;
  line-height: 1;
}

.scene-keypress .scene-key-active {
  background: rgba(29, 185, 84, 0.32) !important;
  box-shadow:
    inset 0 0 0 1px rgba(136, 255, 177, 0.28),
    0 0 16px rgba(29, 185, 84, 0.12);
}

.scene-toast-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.scene-toast-title {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(29, 185, 84, 0.16);
  border: 1px solid rgba(132, 255, 176, 0.18);
  color: #cff7db;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.scene-toast {
  max-width: min(390px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
}

.scene-toast-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.scene-toast strong,
.scene-toast span {
  display: block;
}

.scene-toast span {
  color: var(--muted);
  font-size: 0.92rem;
}

.scene-keypress.is-animating {
  animation: demo-keypress var(--demo-loop) ease-in-out infinite;
}

.scene-toast.is-popping {
  animation: demo-toast var(--demo-loop) ease-in-out infinite;
}

.feature-grid,
.use-case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.use-case-card {
  border-radius: 26px;
  padding: 24px;
}

.feature-icon,
.use-case-tag {
  transition:
    transform var(--hover-out-duration) var(--hover-out-ease),
    box-shadow var(--hover-out-duration) ease-in-out,
    filter var(--hover-out-duration) ease-in-out,
    border-color var(--hover-out-duration) ease-in-out;
}

.button,
.feature-card,
.use-case-card,
.trust-item,
.product-card,
.github-card,
.download-panel,
.demo-window,
.nav a,
.feature-icon,
.use-case-tag {
  transition-timing-function: var(--hover-out-ease);
  transition-duration: var(--hover-out-duration);
}

.button:hover .button-label,
.button:focus-visible .button-label,
.feature-card:hover > *,
.use-case-card:hover > *,
.trust-item:hover > *,
.product-card:hover > *,
.download-panel:hover > *,
.github-card:hover > *,
.demo-window:hover > *,
.nav a:hover .nav-label,
.feature-card:hover .feature-icon,
.use-case-card:hover .use-case-tag {
  transition-timing-function: var(--hover-in-ease);
  transition-duration: var(--hover-in-duration);
}

.feature-card:hover,
.use-case-card:hover,
.trust-item:hover {
  border-color: rgba(103, 255, 160, 0.28);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.46),
    0 0 26px rgba(29, 185, 84, 0.12);
  background: linear-gradient(180deg, rgba(20, 49, 31, 0.94), rgba(10, 22, 15, 0.9));
}

.feature-card:hover > *,
.use-case-card:hover > *,
.trust-item:hover > * {
  transform: translate3d(0, -3px, 0);
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow:
    0 14px 30px rgba(29, 185, 84, 0.16),
    0 0 24px rgba(29, 185, 84, 0.14);
}

.use-case-card:hover .use-case-tag {
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(29, 185, 84, 0.14),
    0 0 18px rgba(29, 185, 84, 0.12);
}

.trust-item:hover {
  filter: saturate(1.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(103, 255, 160, 0.16);
}

.use-case-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(103, 255, 160, 0.14);
  color: #baf5cc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-section,
.github-section,
.support-section {
  padding-top: 38px;
}

.download-panel,
.github-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.github-card {
  padding: 28px;
}

.download-panel {
  background:
    radial-gradient(circle at right top, rgba(29, 185, 84, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(18, 49, 30, 0.96), rgba(9, 23, 15, 0.96));
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  margin-inline: auto;
}

.product-card:hover,
.download-panel:hover,
.github-card:hover,
.demo-window:hover {
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(29, 185, 84, 0.16);
}

.product-card:hover > *,
.download-panel:hover > *,
.github-card:hover > *,
.demo-window:hover > * {
  transform: translate3d(0, -3px, 0);
}

.download-meta {
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.support-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(29, 185, 84, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(17, 40, 26, 0.9), rgba(10, 22, 15, 0.84));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.support-card h2 {
  margin: 18px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.support-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 44ch;
}

.coffee-link {
  display: inline-flex;
  align-self: flex-start;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.coffee-badge {
  display: block;
  width: 170px;
  height: auto;
}

.coffee-link-compact {
  padding: 8px 10px;
}

.github-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.support-card-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.support-card-coffee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 153, 77, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(18, 49, 30, 0.96), rgba(9, 23, 15, 0.96));
}

.support-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.coffee-link-large {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  align-self: center;
  flex: 0 0 auto;
}

.coffee-badge-large {
  width: 350px;
  max-width: min(100%, 350px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 38px 0 48px;
  color: var(--soft);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.is-animating {
  animation: keypress 2.8s ease-in-out infinite;
}

.is-popping {
  animation: toast-pop 2.8s ease-in-out infinite;
}

@keyframes pulse-move {
  0% {
    transform: translateX(-24%);
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(24%);
    opacity: 0;
  }
}

@keyframes keypress {
  0%,
  58%,
  100% {
    transform: scale(1);
    box-shadow: none;
  }
  66% {
    transform: scale(0.96);
    box-shadow: 0 0 0 8px rgba(29, 185, 84, 0.12);
  }
  78% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
  }
}

@keyframes toast-pop {
  0%,
  52%,
  100% {
    opacity: 0.58;
    transform: translateY(10px) scale(0.98);
  }
  64%,
  84% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes state-live-loop {
  0%,
  42%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  52%,
  88% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes state-paused-loop {
  0%,
  44%,
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
  54%,
  88% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes demo-keypress {
  0%,
  44%,
  100% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(0.95);
    box-shadow: 0 0 0 8px rgba(29, 185, 84, 0.14);
  }
  58% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
  }
}

@keyframes demo-toast {
  0%,
  42%,
  100% {
    opacity: 0.42;
    transform: translateY(14px) scale(0.98);
  }
  54%,
  88% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes equalizer-one {
  0% { height: 28px; opacity: 1; }
  12% { height: 18px; }
  24% { height: 30px; }
  36% { height: 22px; }
  44% { height: 26px; opacity: 1; }
  54%, 88% { height: 6px; opacity: 0.24; }
  100% { height: 28px; opacity: 1; }
}

@keyframes equalizer-two {
  0% { height: 20px; opacity: 1; }
  14% { height: 30px; }
  28% { height: 14px; }
  40% { height: 24px; }
  44% { height: 20px; opacity: 1; }
  54%, 88% { height: 6px; opacity: 0.24; }
  100% { height: 20px; opacity: 1; }
}

@keyframes equalizer-three {
  0% { height: 32px; opacity: 1; }
  10% { height: 18px; }
  22% { height: 34px; }
  34% { height: 22px; }
  44% { height: 32px; opacity: 1; }
  54%, 88% { height: 6px; opacity: 0.24; }
  100% { height: 32px; opacity: 1; }
}

@keyframes equalizer-four {
  0% { height: 16px; opacity: 1; }
  16% { height: 26px; }
  28% { height: 12px; }
  40% { height: 20px; }
  44% { height: 16px; opacity: 1; }
  54%, 88% { height: 6px; opacity: 0.24; }
  100% { height: 16px; opacity: 1; }
}

@keyframes equalizer-five {
  0% { height: 24px; opacity: 1; }
  18% { height: 14px; }
  30% { height: 28px; }
  42% { height: 18px; }
  44% { height: 24px; opacity: 1; }
  54%, 88% { height: 6px; opacity: 0.24; }
  100% { height: 24px; opacity: 1; }
}

@keyframes cta-breathe {
  0%,
  100% {
    box-shadow:
      0 18px 40px rgba(29, 185, 84, 0.28),
      0 0 18px rgba(29, 185, 84, 0.22),
      0 0 36px rgba(29, 185, 84, 0.16),
      0 0 0 1px rgba(182, 255, 206, 0.16) inset;
  }
  50% {
    box-shadow:
      0 22px 48px rgba(29, 185, 84, 0.32),
      0 0 24px rgba(29, 185, 84, 0.3),
      0 0 48px rgba(29, 185, 84, 0.24),
      0 0 0 1px rgba(210, 255, 224, 0.2) inset;
  }
}

@keyframes hero-progress-ring {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

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

  .hero,
  .download-panel,
  .github-card {
    display: grid;
  }

  .topbar {
    position: static;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .trust-grid,
  .problem-grid,
  .feature-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof-flow {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-actions {
    min-width: 0;
    width: 100%;
  }

  .github-actions,
  .support-card-wide,
  .support-card-coffee {
    align-items: flex-start;
  }

  .support-card-wide,
  .support-card-coffee {
    display: flex;
    flex-direction: column;
  }

  .micro-proof {
    flex-wrap: wrap;
  }

  .download-meta {
    white-space: normal;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .section {
    padding: 34px 0;
  }

  .hero h1 {
    max-width: none;
  }

  .product-card,
  .feature-card,
  .use-case-card,
  .demo-window,
  .download-panel,
  .github-card {
    border-radius: 24px;
  }

  .product-card,
  .problem-card,
  .feature-card,
  .use-case-card,
  .download-panel,
  .github-card,
  .scene-overlay {
    padding: 20px;
  }

  .demo-frame {
    padding: 14px;
  }

  .demo-scene {
    min-height: 380px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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