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

:root {
  --purple: #7c3aed;
  --purple-light: #6d28d9;
  --purple-dark: #5b21b6;
  --dark: #e5e5e5;
  --dark-soft: #d4d4d4;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --radius: 12px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Ambient glow */
.bg-glow {
  position: fixed;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Nav */
header {
  position: relative;
  z-index: 10;
  padding: 2rem 2rem 0;
}

nav {
  max-width: 1000px;
  margin: 0 auto;
}

.nav-logo {
  height: 40px;
  width: auto;
}

/* Hero */
main {
  position: relative;
  z-index: 10;
  flex: 1;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-content {
  max-width: 640px;
}

.hero-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.hero-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Subscribe */
.subscribe {
  max-width: 480px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  text-align: center;
}

.subscribe h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.subscribe > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.form-group input[type="email"] {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--dark-soft);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.form-group input[type="email"]::placeholder {
  color: var(--text-muted);
}

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

.form-group button {
  padding: 0.8rem 1.5rem;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.form-group button:hover {
  background: var(--purple-light);
}

.form-group button:active {
  transform: scale(0.98);
}

.form-group button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-success p {
  color: var(--purple);
  font-size: 1.05rem;
  font-weight: 500;
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.5;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 520px) {
  .form-group {
    flex-direction: column;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .subscribe {
    padding: 2rem 1.5rem 4rem;
  }
}
