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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #7c3aed;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 12px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Newsletter Page */
.newsletter-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0f4ff 50%, var(--bg) 100%);
}

.newsletter-card {
  background: white;
  border-radius: 16px;
  padding: 48px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  text-align: center;
}

.newsletter-card h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.signup-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-card .signup-form {
  flex-direction: column;
  gap: 12px;
}

.newsletter-card .signup-form input[type="email"],
.newsletter-card .signup-form input[type="text"] {
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-card .signup-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-card .signup-form input:focus {
  border-color: var(--primary);
}

.newsletter-card .signup-form button {
  width: 100%;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.newsletter-card .signup-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.newsletter-card .signup-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 24px;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--error);
}

.form-message.loading {
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

  .newsletter-card {
    padding: 32px 24px;
  }
}
