/* The landing page is one screen: the hero, and a terminal under it. */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 74px var(--gutter) 56px;
  text-align: center;
}

.hero-inner { width: 100%; min-width: 0; max-width: 820px; }

/* The wordmark is one SVG: the word is outlined and the fin is drawn with it, so nothing can drift. */
.wordmark { margin: 0 0 22px; }
.wordmark svg {
  display: block;
  width: auto;
  height: 132px;
  margin: 0 auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

h1 {
  margin: 0 0 38px;
  font-size: clamp(36px, 6.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 600;
  background: linear-gradient(180deg, #fff 8%, #b9c0d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 .em {
  background: linear-gradient(180deg, var(--accent) 10%, #d98c2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-bottom: 42px;
}

/* The install command is the primary action, and clicking it copies. */
.install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 18px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.install:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--bg-raised); }
.install .sigil { color: var(--accent); user-select: none; }
.install .cmd { white-space: nowrap; }
.install .copy {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--text-faint);
  background: color-mix(in srgb, #fff 4%, transparent);
}
.install:hover .copy { color: var(--text); }
.install .copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.install .copy .tick { display: none; }
.install.copied .copy { color: #6ee7a8; }
.install.copied .copy .tick { display: block; }
.install.copied .copy .clip { display: none; }

.docs-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #ffc46e, var(--accent));
  color: #1a1204;
  font-size: 14.5px;
  font-weight: 600;
}
.docs-cta:hover { text-decoration: none; filter: brightness(1.07); }
.docs-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.demo { width: 100%; min-width: 0; max-width: 1000px; margin: 0 auto; }
.demo .terminal pre { min-height: 378px; }

.caret {
  display: inline-block;
  width: 8px;
  margin-left: 1px;
  background: var(--accent);
  color: transparent;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.footer {
  padding: 0 var(--gutter) 40px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
.footer a { color: var(--text-dim); }
.footer .sep { margin: 0 10px; opacity: 0.45; }

@media (max-width: 720px) {
  .hero { padding-top: 78px; }
  .install { font-size: 12.5px; padding-left: 14px; }
  .actions { gap: 10px; }
  .demo .terminal pre { min-height: 330px; }
}

/* Perch Cloud: what is not built yet, and the box for hearing when it is. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cloud {
  position: relative;
  padding: 0 var(--gutter) 96px;
}
.cloud-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 40px 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(90% 120% at 50% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--bg-panel);
  text-align: center;
}

.soon {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cloud h2 {
  margin: 0 0 34px;
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.026em;
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 0 0 38px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.features li { display: flex; gap: 12px; }
.features svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.features h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.features p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}

.notify {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.notify input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
}
.notify input::placeholder { color: var(--text-faint); }
.notify input:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.notify button {
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffc46e, var(--accent));
  color: #1a1204;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.notify button:hover { filter: brightness(1.07); }
.notify button:disabled { opacity: 0.55; cursor: default; filter: none; }

.notify-said {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--text-dim);
}
.notify-said.bad { color: var(--red); }
.notify-said.good { color: #6ee7a8; }

@media (max-width: 760px) {
  .cloud { padding-bottom: 72px; }
  .cloud-inner { padding: 34px 22px 30px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 30px; }
  .notify { flex-direction: column; }
  .notify button { width: 100%; }
}
