:root {
  --bg: #0a0f12;
  --panel: #111a21;
  --panel-2: #0f161d;
  --text: #ecf0f3;
  --muted: #9fb0bd;
  --line: #22313d;
  --brand: #e53935;
  --brand-dark: #ac2323;
  --ok: #4ade80;
  --gold: #c9a227;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 12% -8%, #1a2a35 0%, transparent 60%),
              radial-gradient(900px 500px at 92% -10%, #332014 0%, transparent 60%),
              var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.22;
}

.glow-a {
  background: #2c5f6f;
  top: 10%;
  left: -120px;
  animation: driftA 11s ease-in-out infinite alternate;
}

.glow-b {
  background: #8c3a2a;
  right: -150px;
  bottom: -100px;
  animation: driftB 13s ease-in-out infinite alternate;
}

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(25px, 30px) scale(1.08); }
}

@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-20px, -25px) scale(1.05); }
}

.hero {
  padding: 1.25rem 1rem 2.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

h1 {
  margin: 0.3rem 0 0.7rem;
  font-size: clamp(2rem, 6vw, 3.7rem);
  line-height: 1.02;
}

.subtitle {
  margin: 0 0 1.25rem;
  color: #d5dce1;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.meta {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.meta a {
  color: #b9d7eb;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card.in {
  transform: translateY(0);
  opacity: 1;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
}

h3 {
  margin: 0.9rem 0 0.3rem;
}

h4 {
  margin: 0;
}

p,
li {
  color: #d5dde3;
}

ul,
ol {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode,
.profile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
}

.mode-human {
  background: linear-gradient(145deg, rgba(74, 222, 128, 0.08), rgba(74, 222, 128, 0.02));
}

.mode-burst {
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.02));
}

.mode-const {
  background: linear-gradient(145deg, rgba(229, 57, 53, 0.1), rgba(229, 57, 53, 0.02));
}

code {
  font-family: "JetBrains Mono", Consolas, monospace;
  background: #0a1319;
  border: 1px solid #1f303a;
  border-radius: 6px;
  padding: 0.08rem 0.35rem;
  color: #ecf7ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  padding: 0.6rem 0.92rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}

.btn-ghost {
  color: #d9e4ec;
  background: #13202a;
  border: 1px solid #203342;
}

.btn-big {
  margin-top: 0.5rem;
  padding: 0.85rem 1.2rem;
}

.download {
  text-align: center;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

footer a {
  color: #b9d7eb;
  text-decoration: none;
}

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

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

  .hero {
    padding-top: 0.9rem;
  }

  .topbar {
    margin-bottom: 1.3rem;
  }
}
