/* Layout: one full-viewport canvas of drifting code glyphs behind a centred, quiet column of content.
   Palette: deep forest to lake-teal, with a living green accent that only appears near the cursor. */
:root {
  --bg-0: #06211c;        /* deep forest */
  --bg-1: #0b3a3a;        /* lake teal   */
  --fg: #eef6f1;
  --fg-dim: rgba(238, 246, 241, 0.68);
  --fg-faint: rgba(238, 246, 241, 0.42);
  --accent: #7ee2a5;      /* living green */
  --accent-soft: rgba(126, 226, 165, 0.35);
  --line: rgba(238, 246, 241, 0.22);
  --font-text: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: #041611; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-text);
  font-weight: 300;
  color: var(--fg);
  background: #041611;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* The gradient lives on a fixed backdrop, so it always fills the screen and never repeats below the content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 20% 10%, var(--bg-1) 0%, var(--bg-0) 60%, #041611 100%);
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 48%, rgba(4, 22, 17, 0.72) 0%, rgba(4, 22, 17, 0.35) 55%, rgba(4, 22, 17, 0) 100%);
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  padding-block: 3rem 5rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.logo {
  width: clamp(200px, 32vw, 360px);
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both;
}

.intro {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.3rem);
  line-height: 1.55;
  color: var(--fg-dim);
  text-wrap: balance;
  animation: rise 1.1s .15s cubic-bezier(.2,.7,.2,1) both;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .75em 1.2em;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--fg);
  text-decoration: none;
  background: rgba(4, 22, 17, 0.35);
  backdrop-filter: blur(6px);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  animation: rise 1.1s .3s cubic-bezier(.2,.7,.2,1) both;
}
.cta:hover, .cta:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 30px rgba(0,0,0,.35);
  transform: translateY(-1px);
  outline: none;
}
.cta .prompt { color: var(--accent); }
.cta .cmd { color: var(--fg-dim); }
.cta .arg { color: var(--fg); }
.cta .caret {
  width: .55em; height: 1.1em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

.ids {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 2.5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--fg-faint);
  animation: rise 1.1s .45s cubic-bezier(.2,.7,.2,1) both;
}
.ids div { display: flex; gap: .6em; }
.ids dt { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; align-self: center; }
.ids dd { margin: 0; color: var(--fg-dim); font-variant-numeric: tabular-nums; }

.copy {
  position: relative;
  appearance: none;
  border: 0;
  padding: .15em .35em;
  margin: -.15em -.35em;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.copy:hover, .copy:focus-visible { color: var(--fg); background: rgba(238, 246, 241, 0.08); outline: none; }
.copy:focus-visible { box-shadow: 0 0 0 2px var(--accent-soft); }
.copy .val { display: inline-block; }
.copy .done {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .4em);
  transform: translate(-50%, 4px);
  padding: .25em .6em;
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg-0);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.copy.is-copied .done { opacity: 1; transform: translate(-50%, 0); }
.copy.is-copied .val { color: var(--accent); }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.foot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding-block: 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  text-align: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--fg-faint);
  pointer-events: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .logo, .intro, .cta, .ids { animation: none; }
  .cta .caret { animation: none; }
}
