:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-border: #000000;
  --text: #000000;
  --muted: #000000;
  --accent: #000000;
  --accent-soft: #f3f3f3;
  --shadow: 0 0 0 1px #000000;
  --pattern: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #000000;
    --surface: #000000;
    --surface-border: #ffffff;
    --text: #ffffff;
    --muted: #ffffff;
    --accent: #ffffff;
    --accent-soft: #121212;
    --shadow: 0 0 0 1px #ffffff;
    --pattern: rgba(255, 255, 255, 0.12);
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    ui-monospace,
    "SF Mono",
    "SFMono-Regular",
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.background-aurora {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--pattern) 1px, transparent 1px),
    linear-gradient(90deg, var(--pattern) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: -1;
  opacity: 0.45;
}

.site-header,
main,
.site-footer {
  width: min(1024px, 92vw);
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo-glyph {
  display: inline-block;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--accent-soft);
  line-height: 1;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  padding: 1.3rem 0 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(200px, 0.9fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  padding: clamp(1.4rem, 2vw, 2rem);
}

.hero-copy {
  max-width: 60ch;
}

.hero-icon {
  display: flex;
  justify-content: center;
}

.hero-icon img {
  width: min(100%, 260px);
  display: block;
  border-radius: 24px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1,
h2 {
  line-height: 1.15;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  margin-bottom: 0.8rem;
}

h2 {
  margin: 0;
  font-size: 1.2rem;
}

p {
  color: var(--muted);
}

code {
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 6px;
  padding: 0.06rem 0.35rem;
  border: 1px solid var(--surface-border);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

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

.btn.primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--surface-border);
  box-shadow: none;
}

.btn.ghost {
  color: var(--text);
  border: 1px solid var(--surface-border);
  background: var(--accent-soft);
}

.screenshots {
  margin-top: 1rem;
  padding: clamp(1.2rem, 2vw, 1.7rem);
}

.screenshots h2 {
  margin-bottom: 0.45rem;
}

.screenshots p {
  margin-top: 0;
}

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

.screenshot {
  margin: 0;
}

.screenshot img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.grid article {
  padding: 1.1rem;
}

.grid p {
  margin-bottom: 0;
}

.page-panel {
  padding: clamp(1.3rem, 2vw, 1.8rem);
}

ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

.support-contact {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--text);
}

a {
  color: var(--text);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.fade-in {
  animation: fadeIn 700ms ease both;
}

.slide-up {
  animation: slideUp 700ms ease both;
}

.delay-1 {
  animation-delay: 100ms;
}

.delay-2 {
  animation-delay: 200ms;
}

.delay-3 {
  animation-delay: 300ms;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-icon {
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .site-footer {
    flex-direction: column;
  }

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