:root {
  --bg: #071411;
  --bg-2: #0d221c;
  --ink: #e8f2ec;
  --muted: #9bb5aa;
  --line: rgba(232, 184, 109, 0.22);
  --amber: #e8b86d;
  --amber-2: #f3d39a;
  --teal: #2f8f74;
  --panel: rgba(12, 36, 30, 0.78);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 143, 116, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(232, 184, 109, 0.14), transparent 55%),
    linear-gradient(165deg, var(--bg), var(--bg-2) 48%, #081714);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.glow {
  pointer-events: none;
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}

.glow-a {
  top: -8%;
  right: -8%;
  background: rgba(47, 143, 116, 0.45);
}

.glow-b {
  bottom: 10%;
  left: -12%;
  background: rgba(232, 184, 109, 0.22);
  animation-delay: -6s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.top,
main,
footer {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--amber);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-cta {
  color: var(--bg) !important;
  background: var(--amber);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  min-height: calc(100vh - 88px);
  display: grid;
  align-content: center;
  gap: 18px;
}

.brand-hero {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--amber);
  animation: rise 0.9s ease both;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: rise 0.9s ease 0.08s both;
}

.lead {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  animation: rise 0.9s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  animation: rise 0.9s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #142018;
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.btn.wide {
  width: 100%;
  margin-top: 4px;
}

.hero-stage {
  margin-top: 28px;
  animation: rise 1s ease 0.32s both;
}

.panel {
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(232, 184, 109, 0.45);
}

.panel-bar span:nth-child(2) { background: rgba(47, 143, 116, 0.7); }
.panel-bar span:nth-child(3) { background: rgba(232, 242, 236, 0.35); }

.panel-bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.panel pre,
.cmd {
  margin: 0;
  padding: 18px 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.55;
  color: #d7ebe2;
  overflow-x: auto;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.6;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-list li {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 28, 23, 0.65);
  display: grid;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app-list li:hover {
  border-color: rgba(232, 184, 109, 0.5);
  transform: translateY(-2px);
}

.app-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  word-break: break-word;
}

.app-list span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(47, 143, 116, 0.12), rgba(8, 28, 23, 0.55));
}

.num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.steps h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.steps code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--amber-2);
}

.download-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 28, 23, 0.72);
  box-shadow: var(--shadow);
}

.download-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.cmd {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
  word-break: break-all;
}

.fineprint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.fineprint a {
  color: var(--amber);
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

@media (max-width: 900px) {
  .app-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

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

  .steps li {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
