:root {
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Outfit", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --canvas: #0c0c0c;
  --surface: #141414;
  --elevated: #1c1c1c;
  --ink: #f4f4f4;
  --subtle: #b3b3b3;
  --muted: #8a8a8a;
  --faint: #5c5c5c;
  --accent: #7c8fe0;
  --accent-dim: #6b7bcf;
  --accent-glow: rgba(124, 143, 224, 0.16);
  --line: rgb(255 255 255 / 0.08);
  --border: rgb(255 255 255 / 0.12);
  --pink: #ff66aa;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #9aabf0;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--elevated);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
}

/* Atmosphere */
.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(255, 102, 170, 0.06), transparent 50%),
    var(--canvas);
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgb(12 12 12 / 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
}

.nav-links {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: var(--subtle);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0c0c0c !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: #9aabf0;
  color: #0c0c0c !important;
}

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

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
  text-align: center;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  animation: rise 0.8s var(--ease) both;
}

.hero-brand img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.08), 0 12px 40px rgb(0 0 0 / 0.45);
}

.hero-brand span {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--subtle);
  animation: rise 0.8s var(--ease) 0.08s both;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise 0.8s var(--ease) 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  animation: rise 0.8s var(--ease) 0.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #0c0c0c;
}

.btn-primary:hover {
  background: #9aabf0;
  color: #0c0c0c;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--elevated);
  color: var(--ink);
}

.hero-shot {
  position: relative;
  margin: 0 auto;
  max-width: 58rem;
  animation: rise 1s var(--ease) 0.28s both;
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: 12% 8% -8%;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  z-index: -1;
  filter: blur(8px);
}

.shot-frame {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.03) inset,
    0 24px 80px rgb(0 0 0 / 0.55);
}

.shot-frame img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.shot-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  text-align: inherit;
  font: inherit;
}

.shot-zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shot-zoom:hover img {
  filter: brightness(1.04);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  margin: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(0 0 0 / 0.92);
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.7);
}

.lightbox[open] {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 96vw);
  height: min(100%, 96vh);
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 96vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 16px 64px rgb(0 0 0 / 0.55);
}

.lightbox-close {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(20 20 20 / 0.85);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--elevated);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox-hint {
  position: fixed;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgb(20 20 20 / 0.8);
  color: var(--muted);
  font-size: 0.8rem;
  pointer-events: none;
}

@media (max-width: 640px) {
  .lightbox-hint {
    display: none;
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Feature blocks */
.feature {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature-copy h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 0 0 1rem;
  color: var(--subtle);
}

.feature-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.feature-copy li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
  }

  .feature.reverse {
    grid-template-columns: 1.15fr 1fr;
  }

  .feature.reverse .feature-copy {
    order: 2;
  }

  .feature.reverse .feature-media {
    order: 1;
  }
}

/* Pill grid for principles */
.pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar {
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, var(--elevated), var(--surface));
}

.pillar h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Query examples */
.query-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .query-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.query-chip {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-decoration: none;
}

.query-chip span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Gallery strip */
.gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Getting started */
.start-paths {
  display: grid;
  gap: 1.25rem;
}

.start-path {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, var(--accent-glow), transparent 55%),
    var(--surface);
  padding: 1.75rem 1.5rem;
}

.start-path-label {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.start-path h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.start-path > p {
  margin: 0 0 1.1rem;
  color: var(--subtle);
}

.start-subhead {
  margin: 1.35rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.start-path .start-subhead:first-of-type {
  margin-top: 0.25rem;
}

.start-path ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--subtle);
}

.start-path li {
  margin-bottom: 0.55rem;
}

.start-path li:last-child {
  margin-bottom: 0;
}

.start-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.terminal {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.65rem;
  background: #080808;
  border: 1px solid var(--line);
  overflow-x: auto;
  color: #d7dce8;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.65;
}

.terminal .prompt {
  color: var(--accent);
  user-select: none;
}

.terminal .comment {
  color: var(--faint);
}

.start-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--subtle);
  text-decoration: none;
}

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .reveal,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-shot,
  .shot-zoom:hover img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }
}
