:root {
  --ink: #0b2430;
  --ink-soft: #3a5563;
  --mist: #f2f7fa;
  --paper: #ffffff;
  --sky: #4aa3c7;
  --sky-deep: #1a6f92;
  --ember: #d45a1a;
  --ember-hover: #b84a12;
  --line: rgba(11, 36, 48, 0.12);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Atmospheric sky */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(165deg, #c8e4f0 0%, #e8f2f7 42%, #f2f7fa 100%);
  pointer-events: none;
}

.sky__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.sky__glow--a {
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, #7ec8e3 0%, transparent 70%);
  animation: drift 18s var(--ease) infinite alternate;
}

.sky__glow--b {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  bottom: 10%;
  left: -6%;
  background: radial-gradient(circle, #f0c4a8 0%, transparent 70%);
  opacity: 0.35;
  animation: drift 22s var(--ease) infinite alternate-reverse;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  filter: blur(2px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud--1 {
  width: 180px;
  height: 56px;
  top: 18%;
  left: 8%;
  animation: float 28s linear infinite;
}

.cloud--1::before {
  width: 90px;
  height: 90px;
  top: -48px;
  left: 20px;
}

.cloud--1::after {
  width: 70px;
  height: 70px;
  top: -36px;
  left: 90px;
}

.cloud--2 {
  width: 220px;
  height: 64px;
  top: 28%;
  right: 6%;
  opacity: 0.7;
  animation: float 36s linear infinite reverse;
}

.cloud--2::before {
  width: 110px;
  height: 110px;
  top: -58px;
  left: 30px;
}

.cloud--2::after {
  width: 80px;
  height: 80px;
  top: -40px;
  left: 120px;
}

.cloud--3 {
  width: 140px;
  height: 44px;
  top: 52%;
  left: 42%;
  opacity: 0.45;
  animation: float 40s linear infinite;
}

.cloud--3::before {
  width: 70px;
  height: 70px;
  top: -38px;
  left: 16px;
}

.cloud--3::after {
  width: 56px;
  height: 56px;
  top: -28px;
  left: 70px;
}

@keyframes float {
  from { transform: translateX(-8vw); }
  to { transform: translateX(8vw); }
}

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

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

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:not(.nav__cta) {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.nav__cta {
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Hero — full first viewport composition */
.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--sky-deep);
  animation: rise 0.9s var(--ease) 0.12s both;
}

.lede {
  margin: 0 0 2rem;
  max-width: 38ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
  animation: rise 0.9s var(--ease) 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.32s both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn--primary {
  background: var(--ember);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--ember-hover);
}

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

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section__lead {
  margin: 0 0 2.5rem;
  max-width: 42ch;
  color: var(--ink-soft);
}

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

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--line);
}

.step__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sky-deep);
}

.step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9875rem;
}

.section--deploy {
  background: rgba(255, 255, 255, 0.55);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--deploy h2,
.section--deploy .section__lead,
.section--deploy .terminal,
.section--deploy .hint {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section--deploy .section__lead {
  margin-bottom: 2rem;
}

.terminal {
  margin-bottom: 1.25rem;
  background: var(--ink);
  color: #d5e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.terminal__bar em {
  margin-left: 0.75rem;
  font-style: normal;
  font-size: 0.75rem;
  color: rgba(213, 232, 240, 0.55);
}

.terminal pre {
  margin: 0;
  padding: 1.25rem 1.35rem 1.5rem;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.terminal code {
  color: inherit;
}

.hint {
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.section--contact {
  text-align: center;
  padding-bottom: 6rem;
}

.section--contact .section__lead {
  margin-left: auto;
  margin-right: auto;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.foot .logo {
  color: var(--ink);
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero {
    min-height: calc(100svh - 4rem);
    padding-top: 1rem;
  }

  .brand {
    font-size: clamp(2.75rem, 16vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
