:root {
  --bg: #0a0912;
  --bg-soft: #171422;
  --panel: rgba(13, 14, 22, 0.74);
  --panel-strong: rgba(15, 17, 27, 0.92);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #f4f3f8;
  --muted: #b4b0c2;
  --accent: #86f06c;
  --accent-soft: #b7ffa2;
  --secondary: #69d3ff;
  --gold: #f7e698;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(134, 240, 108, 0), 0 28px 80px rgba(0, 0, 0, 0.45);
  }

  50% {
    box-shadow: 0 0 36px rgba(134, 240, 108, 0.12), 0 28px 80px rgba(0, 0, 0, 0.48);
  }
}

@keyframes beamFlow {
  0% {
    transform: scaleX(0.7);
    opacity: 0.45;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }

  100% {
    transform: scaleX(0.7);
    opacity: 0.45;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(134, 240, 108, 0.1), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(105, 211, 255, 0.1), transparent 22%),
    radial-gradient(circle at 50% 70%, rgba(247, 230, 152, 0.06), transparent 26%),
    linear-gradient(180deg, #0a0912 0%, #12101b 50%, #0a0912 100%);
}

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

.page-shell {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.reveal {
  opacity: 0;
  animation: riseIn 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rise-1 {
  animation-delay: 60ms;
}

.rise-2 {
  animation-delay: 140ms;
}

.rise-3 {
  animation-delay: 220ms;
}

.rise-4 {
  animation-delay: 300ms;
}

.rise-5 {
  animation-delay: 380ms;
}

.rise-6 {
  animation-delay: 460ms;
}

.floating-card {
  animation: floatCard 6s ease-in-out infinite, pulseGlow 6s ease-in-out infinite;
}

.floating-card-delayed {
  animation-delay: 1.2s, 1.2s;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, white 0 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, white 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, white 0 1px, transparent 1px);
  background-size: 180px 180px;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.6;
  pointer-events: none;
}

.ambient-one {
  top: 120px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: rgba(134, 240, 108, 0.14);
}

.ambient-two {
  left: -30px;
  top: 420px;
  width: 260px;
  height: 260px;
  background: rgba(105, 211, 255, 0.1);
}

.ambient-three {
  right: 20%;
  bottom: 120px;
  width: 240px;
  height: 240px;
  background: rgba(134, 240, 108, 0.1);
}

.topbar,
.hero-grid,
.feature-section,
.tester-section,
.signup-section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: #08110d;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 34px;
  align-items: center;
  padding: 34px 0 86px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.signup-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.hero-copy h1 {
  max-width: 10.2ch;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
  text-shadow: 0 0 36px rgba(255, 255, 255, 0.06);
  animation: riseIn 720ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
  opacity: 0;
}

.hero-accent {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(134, 240, 108, 0.25);
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: #d7d2e6;
  font-size: 0.92rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-badges span:hover {
  transform: translateY(-2px);
  border-color: rgba(134, 240, 108, 0.28);
  background: rgba(134, 240, 108, 0.06);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #63db49 100%);
  color: #08110d;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.trust-strip article,
.terminal-card,
.stack-card,
.proof-card,
.feature-card,
.tester-card,
.involve-card,
.signup-section {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.trust-strip article {
  padding: 18px;
  border-radius: 20px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.trust-strip article:hover,
.feature-card:hover,
.tester-card:hover,
.involve-card:hover,
.proof-card:hover {
  transform: translateY(-6px);
  border-color: rgba(134, 240, 108, 0.2);
  background: rgba(18, 21, 32, 0.92);
}

.trust-strip strong {
  display: block;
  margin-bottom: 6px;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.terminal-card,
.stack-card,
.proof-card {
  border-radius: 28px;
  overflow: hidden;
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

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

.terminal-dots span:nth-child(1) {
  animation: pulseGlow 4s ease-in-out infinite;
}

.terminal-dots span:nth-child(2) {
  animation: pulseGlow 4s ease-in-out 0.5s infinite;
}

.terminal-dots span:nth-child(3) {
  animation: pulseGlow 4s ease-in-out 1s infinite;
}

.terminal-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.terminal-body {
  padding: 22px;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.8;
  color: #dfe8f7;
  background:
    radial-gradient(circle at bottom left, rgba(134, 240, 108, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.terminal-body p {
  margin: 0;
}

.terminal-body p + p {
  margin-top: 4px;
}

.terminal-body span,
.highlight {
  color: var(--accent-soft);
}

.sql-preview {
  margin: 14px 0 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.sql-preview p {
  color: #e8efc8;
}

.prompt {
  color: var(--accent);
}

.schema-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  margin-top: 18px;
  align-items: center;
}

.schema-node {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.schema-node strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
}

.schema-node span {
  color: var(--muted);
}

.schema-arrow {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 700;
  animation: beamFlow 2.8s ease-in-out infinite;
}

.stack-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(134, 240, 108, 0.07), transparent 30%),
    var(--panel);
}

.stack-item {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.stack-icon {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.mongo .stack-icon {
  color: var(--accent);
}

.postgres .stack-icon {
  color: var(--secondary);
}

.stack-flow {
  display: grid;
  gap: 12px;
}

.stack-flow span {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
  box-shadow: 0 0 18px rgba(134, 240, 108, 0.4);
  transform-origin: left center;
  animation: beamFlow 2.4s ease-in-out infinite;
}

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

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

.proof-card {
  padding: 22px 24px;
  background:
    linear-gradient(180deg, rgba(105, 211, 255, 0.1), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.proof-kicker {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
}

.proof-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-section,
.tester-section {
  padding: 36px 0 20px;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 26px;
}

.section-heading h2,
.signup-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
}

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

.feature-card,
.tester-card,
.involve-card {
  border-radius: 24px;
  padding: 24px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.feature-card h3,
.tester-card h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.24rem;
}

.feature-card p,
.tester-card p,
.signup-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tester-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tester-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.8;
}

.highlight-card {
  border-color: rgba(134, 240, 108, 0.2);
  background: linear-gradient(180deg, rgba(134, 240, 108, 0.08), rgba(255, 255, 255, 0.03));
}

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

.involve-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.32rem;
}

.involve-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.accent-card {
  border-color: rgba(105, 211, 255, 0.22);
  background: linear-gradient(180deg, rgba(105, 211, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.signup-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  margin: 38px auto 22px;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at left center, rgba(134, 240, 108, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
}

.signup-form {
  display: grid;
  gap: 12px;
  align-content: center;
}

.signup-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.signup-form input::placeholder {
  color: #8d88a1;
}

.signup-form button {
  min-height: 56px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: #06111a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(105, 211, 255, 0.18);
}

.signup-form small {
  color: var(--muted);
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .trust-strip,
  .feature-grid,
  .tester-grid,
  .involve-grid,
  .schema-flow {
    grid-template-columns: 1fr;
  }

  .schema-arrow,
  .stack-flow {
    display: none;
  }

  .stack-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .topnav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .hero-copy h1 {
    opacity: 1;
  }
}
