:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --grad-start: #5770fd;
  --grad-end: #ff66c6;
  --border: #e6e6e6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.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;
}

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 6vw 0;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo img {
  height: 22px;
  width: auto;
  display: block;
}

.header-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.95rem;
  color: var(--muted);
}

.header-links a {
  text-decoration: none;
}

.header-links a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 6vw 72px;
}

.brain {
  width: clamp(110px, 16vw, 200px);
  height: auto;
  margin-bottom: 20px;
  opacity: 0.92;
}

.headline {
  margin: 0;
  line-height: 0.95;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.75rem);
  letter-spacing: -0.02em;
}

.headline span {
  display: block;
}

.headline em {
  display: block;
  font-style: italic;
  font-weight: 600;
}

.gradient-bar {
  width: min(280px, 36vw);
  height: 8px;
  border-radius: 999px;
  margin: 20px 0 28px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
}

.subhead {
  margin: 0 0 32px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
}

.subhead strong {
  display: block;
  margin-top: 6px;
  font-weight: 700;
}

.cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Interest / email capture */

.interest {
  border-top: 1px solid var(--border);
  padding: 56px 6vw 72px;
  text-align: center;
}

.interest h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
}

.interest p {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1rem;
}

#interest-form {
  max-width: 480px;
  margin: 0 auto;
}

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

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.form-row input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-row input[type="email"]:focus {
  border-color: var(--ink);
}

.form-row button {
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.form-row button:hover {
  opacity: 0.85;
}

.form-row button:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-status {
  min-height: 1.4em;
  margin: 16px 0 0;
  font-size: 0.9rem;
}

.form-status[data-state="success"] {
  color: #1a8a4a;
}

.form-status[data-state="error"] {
  color: #c23b3b;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 6vw 40px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
  }

  .header-links {
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
