:root {
  --bg: #07040f;
  --bg-raise: #120b26;
  --bg-panel: #0d0820;
  --line: #2d2154;
  --text: #e8e3f8;
  --muted: #a79fd0;
  --purple: #a855f7;
  --purple-hot: #c44bff;
  --magenta: #e879f9;
  --cyan: #45e3ff;
  --glow-purple: rgba(168, 85, 247, 0.55);
  --display: "Chakra Petch", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(232, 121, 249, 0.10), transparent 55%),
    radial-gradient(800px 600px at 110% 80%, rgba(69, 227, 255, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

/* faint dot-matrix over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(168, 85, 247, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.15));
}

a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; text-shadow: 0 0 12px var(--glow-purple); }

code {
  font-family: var(--mono);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.88em;
  color: var(--cyan);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 10px;
  text-shadow: 0 0 14px rgba(69, 227, 255, 0.45);
}
.eyebrow a { color: inherit; }

h1, h2, h3, nav .brand { font-family: var(--display); }

/* ---- nav ---- */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
nav .brand img { filter: drop-shadow(0 0 8px var(--glow-purple)); }
nav .links { display: flex; align-items: center; gap: 22px; }
nav .links a:not(.btn) {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
nav .links a:not(.btn):hover { color: var(--cyan); text-decoration: none; }

/* ---- buttons ---- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 26px;
  border: 1px solid var(--line);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 55%, var(--magenta) 130%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.45), inset 0 0 14px rgba(255, 255, 255, 0.08);
}
.btn.primary:hover { box-shadow: 0 0 34px rgba(196, 75, 255, 0.7), inset 0 0 14px rgba(255, 255, 255, 0.12); }
.btn.ghost {
  color: var(--text);
  background: rgba(168, 85, 247, 0.07);
  border-color: var(--purple);
}
.btn.ghost:hover { box-shadow: 0 0 22px rgba(168, 85, 247, 0.35); }
.btn.small { padding: 8px 16px; font-size: 13px; }

/* ---- hero ---- */

.hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 84px 24px 64px;
}
.hero .mark {
  border-radius: 28px;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.55), 0 0 140px rgba(168, 85, 247, 0.25);
  animation: markPulse 4.5s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(168, 85, 247, 0.55), 0 0 140px rgba(168, 85, 247, 0.25); }
  50% { box-shadow: 0 0 75px rgba(196, 75, 255, 0.7), 0 0 160px rgba(168, 85, 247, 0.35); }
}
.hero h1 {
  font-size: 54px;
  font-weight: 700;
  margin: 22px 0 8px;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, #f3edff 20%, var(--purple-hot) 55%, var(--magenta) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(168, 85, 247, 0.4));
}
.hero .tagline {
  font-family: var(--display);
  font-size: 21px;
  color: var(--purple-hot);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px var(--glow-purple);
}
.hero .sub { color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.hero .cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 20px; }
.hero .meta {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

/* ---- sections ---- */

main { max-width: 1060px; margin: 0 auto; padding: 0 24px; position: relative; }
section { padding: 52px 0; border-top: 1px solid var(--line); }
section h2 {
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 26px;
  letter-spacing: 0.02em;
  padding-left: 16px;
  border-left: 3px solid var(--purple);
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

/* ---- feature cards ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.grid article {
  position: relative;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.08), rgba(13, 8, 32, 0.6) 45%);
  border: 1px solid var(--line);
  padding: 22px 24px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.7;
}
.grid article:hover {
  border-color: var(--purple);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.28);
  transform: translateY(-2px);
}
.grid h3 {
  margin: 0 0 9px;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f0eafe;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(69, 227, 255, 0.4);
  border-radius: 3px;
  padding: 2px 7px;
  margin-left: 10px;
  vertical-align: 2px;
  text-shadow: 0 0 10px rgba(69, 227, 255, 0.4);
}
.grid p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- screenshots ---- */

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.15), 0 14px 44px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
}
.shots img:hover { border-color: var(--purple); box-shadow: 0 0 30px rgba(168, 85, 247, 0.35); }

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 2, 12, 0.92);
  backdrop-filter: blur(6px);
  z-index: 100;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  border: 1px solid var(--purple);
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.5), 0 20px 80px rgba(0, 0, 0, 0.8);
  cursor: default;
}
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(8, 5, 26, 0.8);
  border: 1px solid var(--purple);
  border-radius: 4px;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--purple); color: #0a0618; }

/* ---- terminal ---- */

pre {
  font-family: var(--mono);
  background: #08051a;
  border: 1px solid var(--purple);
  border-left: 3px solid var(--purple);
  border-radius: 4px;
  padding: 20px 22px;
  overflow-x: auto;
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.18), inset 0 0 40px rgba(168, 85, 247, 0.05);
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #cfc4f2;
}

/* ---- license / footer ---- */

#license p { color: var(--muted); max-width: 760px; }
#license strong { color: var(--text); }

footer {
  border-top: 1px solid var(--line);
  max-width: 1060px;
  margin: 28px auto 0;
  padding: 28px 24px 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
footer img { filter: drop-shadow(0 0 6px var(--glow-purple)); }

@media (prefers-reduced-motion: reduce) {
  .hero .mark { animation: none; }
  .btn, .grid article { transition: none; }
}

@media (max-width: 640px) {
  nav .links a:not(.btn) { display: none; }
  .hero h1 { font-size: 36px; }
  .hero .cta { flex-direction: column; align-items: stretch; }
  section h2 { font-size: 25px; }
}
