:root {
  --bg: #f3efe6;
  --bg-deep: #e9dfd0;
  --text: #1e1a17;
  --muted: #4a433c;
  --accent: #d94f2b;
  --accent-dark: #b43e21;
  --card: rgba(255, 250, 242, 0.86);
  --border: rgba(30, 26, 23, 0.15);
  --shadow: 0 18px 40px rgba(68, 45, 25, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, #ffd7b8 0%, transparent 32%),
    radial-gradient(circle at 80% 5%, #e8c8ff 0%, transparent 26%),
    linear-gradient(155deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
}

.brand {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 4.5rem 0 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

h1 {
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.03;
  max-width: 15ch;
  margin: 0;
}

.hero-copy {
  max-width: 58ch;
  margin-top: 1.4rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-cta {
  margin-top: 2rem;
  max-width: 700px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.signup-form {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
}

.signup-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.75rem 1rem;
  font-size: 0.98rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.signup-form input::placeholder {
  color: #7a6d61;
}

.signup-form input:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 79, 43, 0.2);
}

.signup-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.signup-note.success {
  color: #1f6b36;
}

.signup-note.error {
  color: #a93318;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.2rem auto 4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

.card h2 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 1.25rem;
}

.card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 2.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.bg-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.3;
  pointer-events: none;
}

.bg-orb-left {
  top: -90px;
  left: -80px;
  background: #ff936d;
}

.bg-orb-right {
  right: -120px;
  bottom: -140px;
  background: #5ac4ff;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 700ms ease forwards;
}

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

.delay-1 {
  animation-delay: 140ms;
}

.delay-2 {
  animation-delay: 280ms;
}

.delay-3 {
  animation-delay: 420ms;
}

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

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .signup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-form .btn {
    text-align: center;
  }
}
