:root {
  --bg: #f7f5f1;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #181818;
  --muted: #5b5b5b;
  --border: rgba(24, 24, 24, 0.1);
  --accent: #181818;
  --accent-contrast: #ffffff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.03), transparent 30%),
    linear-gradient(180deg, #faf8f4 0%, #f2eee8 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.page-shell {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

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

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.hero-content,
.info-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-content {
  padding: clamp(2rem, 4vw, 4rem);
}

.eyebrow,
.modal-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.hero-copy {
  margin: 1.4rem 0 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.signup-form {
  margin-top: 2rem;
}

.form-row {
  display: flex;
  gap: 0.8rem;
  align-items: stretch;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.signup-form input[type="email"]::placeholder {
  color: #8a8a8a;
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(24, 24, 24, 0.3);
  box-shadow: 0 0 0 4px rgba(24, 24, 24, 0.06);
}

.signup-form input[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

.signup-form button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-contrast);
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.signup-form button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.signup-form button:active {
  transform: translateY(0);
}

.form-message {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: #b42318;
}

.info-panel {
  display: flex;
}

.info-card {
  width: 100%;
  padding: 2rem;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.info-card p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.honeypot,
.sr-only {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 11, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 1000;
  animation: fadeIn 220ms ease;
}

.modal {
  position: relative;
  width: min(100%, 34rem);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 1.5rem;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  animation: modalRise 260ms ease;
}

.modal h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.modal p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-delay-1 {
  animation-delay: 0.12s;
}

.fade-delay-2 {
  animation-delay: 0.22s;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .hero h1 {
    max-width: none;
  }

  .info-card {
    padding: 1.75rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, var(--max-width));
    padding-top: 1rem;
  }

  .hero-content,
  .info-card {
    border-radius: 1.4rem;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .form-row {
    flex-direction: column;
  }

  .signup-form button {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .modal {
    padding: 1.6rem 1.25rem 1.4rem;
    border-radius: 1.2rem;
  }

  .modal h2 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}