/* bunny landing — palette from logo */
:root {
  --bg: #050508;
  --bg-elevated: #0d0d14;
  --bg-card: #12121c;
  --navy: #1a0b40;
  --purple: #9d8af2;
  --purple-dim: #6b5cad;
  --purple-glow: rgba(157, 138, 242, 0.25);
  --teal: #48cbb9;
  --teal-dim: #2a8f82;
  --teal-glow: rgba(72, 203, 185, 0.2);
  --white: #f4f2ff;
  --muted: #8b87a8;
  --border: rgba(157, 138, 242, 0.15);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", monospace;
  --max-width: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

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

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow--purple {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: var(--purple-glow);
}

.glow--teal {
  width: 400px;
  height: 400px;
  bottom: 20%;
  left: -120px;
  background: var(--teal-glow);
}

/* header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

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

.btn--primary {
  background: var(--purple);
  color: var(--navy);
  border-color: var(--purple);
}

.btn--primary:hover {
  background: #b0a0f5;
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  padding: 0.5rem 1rem;
}

.btn--ghost:hover {
  color: var(--white);
  border-color: var(--purple-dim);
}

.btn--large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* hero */
main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
}

.hero__content {
  max-width: 560px;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 48ch;
}

.hero__tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  max-width: 48ch;
  background: linear-gradient(135deg, rgba(157, 138, 242, 0.12), rgba(72, 203, 185, 0.08));
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: 8px;
  box-shadow: 0 0 32px rgba(157, 138, 242, 0.08);
}

.hero__tagline-accent {
  color: var(--teal);
}

.hero__tagline-github {
  color: var(--purple);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo {
  position: relative;
  z-index: 2;
  width: min(280px, 70vw);
  height: auto;
  filter: drop-shadow(0 0 40px var(--purple-glow));
}

/* decorative orbit (echoes logo) */
.orbit {
  position: absolute;
  width: min(360px, 85vw);
  height: min(360px, 85vw);
  animation: spin 60s linear infinite;
}

.orbit__ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(157, 138, 242, 0.2);
  border-radius: 50%;
}

.orbit__icon {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.orbit__icon--chat {
  top: 8%;
  left: 18%;
  background: var(--purple);
}

.orbit__icon--graph {
  top: 8%;
  right: 18%;
  background: linear-gradient(135deg, var(--purple), var(--teal));
}

.orbit__icon--person-left {
  bottom: 22%;
  left: 10%;
  background: var(--purple);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.orbit__icon--code {
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  width: 14px;
  height: 10px;
}

.orbit__icon--person-right {
  bottom: 22%;
  right: 10%;
  background: var(--teal);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(26, 11, 64, 0.15), transparent);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__header p,
.section__footer-note {
  color: var(--muted);
  font-size: 1.05rem;
}

.section__footer-note {
  text-align: center;
  max-width: 640px;
  margin: 2.5rem auto 0;
}

/* cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(157, 138, 242, 0.35);
  transform: translateY(-3px);
}

.card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card__icon--purple {
  background: rgba(157, 138, 242, 0.12);
  color: var(--purple);
}

.card__icon--teal {
  background: rgba(72, 203, 185, 0.12);
  color: var(--teal);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* split layout */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split__text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.split__text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.split__text p:last-child {
  margin-bottom: 0;
}

.split__panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.split__caption {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--purple-dim);
  font-family: var(--font-mono);
}

/* flow list */
.flow-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.flow-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  background: rgba(157, 138, 242, 0.05);
  border-radius: 6px;
  border-left: 2px solid var(--purple);
}

.flow-list__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--purple);
  flex-shrink: 0;
}

.flow-list__dot--teal {
  background: var(--teal);
}

/* queries */
.queries {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.query {
  font-size: 1rem;
  font-style: italic;
  color: var(--white);
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--teal);
  transition: border-color 0.2s;
}

.query:hover {
  border-left-color: var(--purple);
}

/* timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline__item {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 2px solid var(--border);
}

.timeline__item:last-child {
  border-left-color: transparent;
}

.timeline__item--active {
  border-left-color: var(--teal);
}

.timeline__item--active::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
}

.timeline__item--muted {
  opacity: 0.45;
}

.timeline__item--muted::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--muted);
}

.timeline__label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.timeline__desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* cta */
.cta {
  padding-bottom: 6rem;
}

.cta__inner {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(26, 11, 64, 0.5), rgba(72, 203, 185, 0.08));
  border: 1px solid var(--border);
  border-radius: 16px;
}

.cta__logo {
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 20px var(--purple-glow));
}

.cta__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta__inner p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.brand--footer .brand__name {
  font-size: 1rem;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__link {
  font-size: 0.85rem;
  color: var(--purple);
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--teal);
}

/* responsive */
@media (min-width: 640px) {
  .cards--three {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .split--reverse .split__text {
    order: 2;
  }

  .split--reverse .split__panel {
    order: 1;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 0 2rem;
  }

  .hero,
  .section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
