:root {
  --ink: #0b1518;
  --foam: #e8f3f1;
  --mist: #9cb8b3;
  --teal: #1f8a78;
  --line: rgba(232, 243, 241, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--foam);
  background: var(--ink);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1400px 800px at 70% 10%, rgba(31, 138, 120, 0.38), transparent 58%),
    radial-gradient(900px 600px at 10% 80%, rgba(217, 164, 65, 0.14), transparent 55%),
    linear-gradient(165deg, #071114 0%, #102329 45%, #0b1518 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(232, 243, 241, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(232, 243, 241, 0.05) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(circle at 70% 40%, #000 20%, transparent 72%);
  animation: gridPulse 8s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes gridPulse {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 0.9;
  }
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 6vw;
  position: relative;
  z-index: 2;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--foam);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--mist);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--foam);
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: flex-end;
  padding: 2rem 6vw 18vh;
  overflow: hidden;
}

.hero-copy {
  max-width: 38rem;
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  position: relative;
  z-index: 1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--foam);
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  color: #cfe3df;
}

.lede {
  margin: 0 0 1.6rem;
  color: var(--mist);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 32rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 0.35rem;
  background: var(--teal);
  color: #041210;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.cta:hover {
  background: #27a891;
  transform: translateY(-1px);
}

.cta.ghost {
  background: transparent;
  color: var(--foam);
  border: 1px solid var(--line);
}

.cta.ghost:hover {
  border-color: rgba(232, 243, 241, 0.35);
  background: rgba(232, 243, 241, 0.04);
}

.meta {
  margin-top: 1rem;
  color: var(--mist);
  font-size: 0.9rem;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.75;
}

.orb-a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  right: 8%;
  top: 18%;
  background: radial-gradient(circle at 30% 30%, #3ec4ae, transparent 70%);
  animation: float 7s ease-in-out infinite;
}

.orb-b {
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  right: 28%;
  bottom: 18%;
  background: radial-gradient(circle at 40% 40%, rgba(217, 164, 65, 0.8), transparent 70%);
  animation: float 9s ease-in-out infinite reverse;
}

.grid-plane {
  display: none;
}

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-18px);
  }
}

.install {
  padding: 0 6vw 5rem;
  max-width: 48rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 1.2fr);
  gap: 0.65rem 1.25rem;
  align-items: baseline;
  margin: 1.5rem 0 0;
}

.platform-link {
  color: var(--foam);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 138, 120, 0.55);
  padding-bottom: 0.15rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.platform-link:hover {
  color: #b8ebe0;
  border-color: #b8ebe0;
}

.platform-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  border-bottom-style: dashed;
}

.install h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
}

.install p {
  color: var(--mist);
  line-height: 1.55;
}

.install pre {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  background: rgba(4, 18, 16, 0.65);
  border: 1px solid var(--line);
  overflow-x: auto;
}

.install code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92rem;
  color: #d7efe9;
}

.note {
  font-size: 0.95rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 6vw 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.88rem;
}

footer a {
  color: var(--mist);
}

@media (max-width: 900px) {
  .hero {
    align-items: center;
    padding-bottom: 10vh;
  }

  .brand-mark {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .orb-a {
    top: 8%;
    opacity: 0.55;
  }
}
