:root {
  /* Brand palette sampled from the Stockaroo logo (forest green #25863A) */
  --green:       #25863a;
  --green-deep:  #1b6a2c;
  --green-dark:  #134d20;
  --green-tint:  #e8f1e9;
  --green-tint2: #f2f7f1;

  --paper:   #fbfcfa;
  --card:    #ffffff;
  --line:    #dfe6dd;
  --line-soft: #eaefe7;

  --ink:    #15241a;
  --text:   #2c3a30;
  --muted:  #5f6f64;
  --muted-2:#8a978c;

  --display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --body:    "Satoshi", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Atmospheric background (solid colours only) ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--paper); }

/* Soft solid-colour glows — blurred so edges read as light, not gradients */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.aurora--1 {
  width: 46vmax; height: 46vmax;
  top: -20vmax; right: -12vmax;
  background: var(--green-tint);
  opacity: 0.9;
  animation: drift1 24s var(--ease) infinite alternate;
}
.aurora--2 {
  width: 40vmax; height: 40vmax;
  bottom: -18vmax; left: -14vmax;
  background: var(--green-tint);
  opacity: 0.75;
  animation: drift2 30s var(--ease) infinite alternate;
}
.aurora--3 {
  width: 26vmax; height: 26vmax;
  top: 45%; left: 58%;
  background: var(--green);
  opacity: 0.06;
  animation: drift3 27s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate(-6vmax, 5vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(6vmax, -4vmax) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-8vmax, -3vmax) scale(0.88); } }

/* Faint technical grid */
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 134, 58, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 134, 58, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 0%, transparent 78%);
}

/* Film grain */
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.03;
  animation: grain 6s steps(6) infinite;
  pointer-events: none;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-3%, 4%); }
  80% { transform: translate(5%, 2%); }
}

/* ---------- Layout shell ---------- */
.shell {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 5vw, 3rem);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vh, 4rem);
}

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo {
  height: clamp(64px, 11vw, 104px);
  width: auto;
  display: block;
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-3px); } }

.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600;
  color: var(--green-deep);
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.status__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(37, 134, 58, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,134,58,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(37,134,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,134,58,0); }
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 52ch;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.4rem;
}
.eyebrow__tick { font-size: 0.6rem; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.7rem, 8.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.headline span { display: block; }
.headline__accent { color: var(--green); }

.lede {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 2.1rem;
}
.lede strong { color: var(--ink); font-weight: 700; }
.lede em { color: var(--green-deep); font-style: normal; font-weight: 600; }

/* ---------- Notify form ---------- */
.notify { margin-bottom: 2.6rem; width: 100%; }
.notify__field {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  max-width: 30rem;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(19, 77, 32, 0.04);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.notify__field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(37, 134, 58, 0.12);
}
.notify input {
  flex: 1;
  min-width: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--ink);
  font-family: var(--body); font-size: 1rem;
  padding: 0.7rem 0.85rem;
}
.notify input::placeholder { color: var(--muted-2); }
.notify button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: 0.95rem;
  color: #ffffff;
  padding: 0 1.15rem;
  border-radius: 10px;
  background: var(--green);
  box-shadow: 0 6px 16px -6px rgba(37, 134, 58, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.notify button:hover { transform: translateY(-1px); background: var(--green-deep); box-shadow: 0 10px 22px -6px rgba(37,134,58,0.55); }
.notify button:active { transform: translateY(0); }
.notify__arrow { transition: transform 0.25s var(--ease); }
.notify button:hover .notify__arrow { transform: translateX(3px); }

.notify__note {
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-top: 0.8rem;
  padding-left: 0.2rem;
  transition: color 0.3s var(--ease);
}
.notify__note.is-ok { color: var(--green); }
.notify__note.is-err { color: #c0392b; }

/* ---------- Pillars ---------- */
.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 0.6rem 1.75rem;
  text-align: left;
}
@media (max-width: 680px) {
  .pillars {
    grid-template-columns: 1fr;
    justify-items: start;
    max-width: 320px;
    margin-inline: auto;
  }
}
.pillar {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.5rem 0;
}
.pillar__icon {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--green);
  background: var(--green-tint);
  border: 1px solid rgba(37, 134, 58, 0.18);
}
.pillar__txt { font-size: 0.92rem; color: var(--muted); }
.pillar__txt b { display: block; color: var(--ink); font-weight: 700; font-size: 0.95rem; }

/* ---------- Footer / marquee ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.marquee { width: 100%; }
.footer__label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted-2); font-weight: 700;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 0.6rem;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  white-space: nowrap;
}
.chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.footer__legal {
  font-size: 0.76rem; color: var(--muted-2);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .notify__field { flex-direction: column; padding: 0.5rem; }
  .notify button { justify-content: center; padding: 0.8rem; }
  .status { display: none; }
  .hero { padding: 1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
