:root {
  --ink: #0a0a0a;
  --concrete: #202022;
  --concrete-mid: #39393c;
  --concrete-light: #7a7a80;
  --paper: #eceae5;
  --paper-dim: #b9b7b2;
  --accent-line: rgba(255, 255, 255, 0.08);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans Hebrew", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-stack);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */

#hero {
  position: relative;
  width: 100%;
  min-height: 62vh;
  min-height: 62svh;
  overflow: hidden;
  background-color: var(--concrete);
  background-image: radial-gradient(ellipse at 50% 28%, rgba(255, 255, 255, 0.05), transparent 62%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.55), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.hero-logo-fallback {
  position: relative;
  width: min(62vw, 360px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
}

/* ---------- Copy ---------- */

.hero-copy {
  text-align: center;
  padding: 56px 0 40px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--concrete-light);
  margin: 0 0 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

h1 {
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.08s, transform 0.6s ease 0.08s;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 480px;
  margin: 0 auto 32px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.16s, transform 0.6s ease 0.16s;
}

html.is-loaded .eyebrow,
html.is-loaded h1,
html.is-loaded .hero-desc,
html.is-loaded .signup {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Form ---------- */

.signup {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.24s, transform 0.6s ease 0.24s;
  max-width: 420px;
  margin: 0 auto;
}

.signup-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  flex: 1 1 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--paper);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 6px;
  outline: none;
  min-width: 0;
}

.signup input[type="email"]::placeholder {
  color: var(--paper-dim);
}

.signup input[type="email"]:focus {
  border-color: var(--concrete-light);
}

.signup button {
  background: var(--paper);
  color: var(--ink);
  border: none;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  flex: 0 0 auto;
}

.signup button:hover {
  opacity: 0.86;
}

.signup button:disabled {
  opacity: 0.5;
  cursor: default;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
}

.form-status--success {
  color: #8fd19e;
}

.form-status--error {
  color: #e08b8b;
}

.form-status--pending {
  color: var(--paper-dim);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--accent-line);
  padding: 26px 0 40px;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 13px;
  color: var(--paper-dim);
}

footer a {
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 183, 178, 0.35);
}

footer a:hover {
  color: var(--paper);
}

@media (min-width: 640px) {
  #hero {
    min-height: 68vh;
    min-height: 68svh;
  }

  .hero-copy {
    padding: 72px 0 48px;
  }
}
