:root {
  --bg0: #0b1210;
  --bg1: #14201b;
  --ink: #e7f2ec;
  --muted: #9bb5a8;
  --accent: #d7f06a;
  --accent-ink: #10160f;
  --line: #2c4338;
  --glow: rgba(215, 240, 106, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--font-body);
}

body {
  position: relative;
  overflow-x: hidden;
}

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, #1d3a2e 0%, transparent 55%),
    radial-gradient(700px 420px at 90% 10%, rgba(215, 240, 106, 0.12) 0%, transparent 50%),
    linear-gradient(165deg, #0b1210 0%, #121c18 42%, #0a100e 100%);
  z-index: -1;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

nav a.buy {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.45rem 0.85rem;
  font-weight: 600;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
  min-height: calc(100vh - 5rem);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.45;
  margin: 0 0 0.85rem;
  max-width: 28ch;
  color: var(--ink);
}

.lede {
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--glow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow);
}

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

.btn.ghost:hover {
  border-color: var(--accent);
}

.btn.wide {
  width: min(100%, 360px);
}

.hero-visual {
  min-height: 280px;
  display: flex;
  align-items: stretch;
}

.terminal {
  margin: 0;
  width: 100%;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(160deg, rgba(8, 14, 12, 0.95), rgba(18, 30, 25, 0.92));
  border-top: 1px solid #3d5a4a;
  border-left: 3px solid var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink);
  animation: rise 700ms ease both;
}

.terminal .dim {
  color: var(--muted);
}

.terminal .ok {
  color: var(--accent);
}

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

.hero-copy {
  animation: rise 600ms ease both;
}

.install,
.buy-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

.install h2,
.buy-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.install p,
.buy-section p {
  color: var(--muted);
  line-height: 1.55;
}

.codeblock {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
}

.fine {
  font-size: 0.82rem;
  margin-top: 0.85rem;
}

.fine code {
  color: var(--accent);
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .brand-mark {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .hero h1 {
    max-width: none;
  }
}
