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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #0a0a14 0%, #12121f 100%);
  color: #fff;
  min-height: 100vh;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.nav-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover {
  color: #fff;
}

/* Hero Section */
.hero {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  text-align: left;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  white-space: nowrap;
}

.hero-tagline {
  font-size: 16px;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-form {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  max-width: 460px;
}

.hero-form input {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border: none;
  border-radius: 6px 0 0 6px;
  background: #fff;
  color: #000;
  outline: none;
}

.hero-form input::placeholder {
  color: #9ca3af;
}

.hero-form button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-form button:hover {
  background: #7c3aed;
}

.hero-note {
  font-size: 14px;
  color: #6b7280;
}

.hero-note a {
  color: #9ca3af;
  text-decoration: underline;
}

/* Newsletters Section */
.newsletters {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

/* Grid */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

@media (max-width: 500px) {
  .grid { grid-template-columns: 1fr; }
  .nav { padding: 16px 20px; }
  .hero { padding: 40px 20px 60px; }
  .hero-title { font-size: 28px; white-space: normal; }
  .hero-tagline { font-size: 14px; }
  .hero-form { flex-direction: column; }
  .hero-form input { border-radius: 6px; }
  .hero-form button { border-radius: 6px; }
}

/* Cards */
.card {
  background: #1a1a2e;
  border: 1px solid #2a2a40;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.card:not(.disabled):hover {
  border-color: #6366f1;
  transform: translateY(-2px);
}

.card.disabled {
  opacity: 0.5;
  cursor: default;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}

.card-soon {
  margin-top: 12px;
  font-size: 12px;
  color: #6b7280;
}

.card-status {
  margin-top: 12px;
  font-size: 12px;
  color: #6b7280;
}

.card-status.active {
  color: #10b981;
  font-weight: 600;
}

.card-form {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.card-form input {
  flex: 1;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #374151;
  border-radius: 5px;
  background: #1f2937;
  color: #fff;
  outline: none;
  min-width: 0;
}

.card-form input:focus {
  border-color: #6366f1;
}

.card-form input::placeholder {
  color: #6b7280;
}

.card-form button {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.card-form button:hover {
  background: #7c3aed;
}

/* Preferences Page */
.prefs-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  text-align: center;
}

.prefs-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.prefs-subtitle {
  font-size: 15px;
  color: #9ca3af;
  margin-bottom: 32px;
}

.prefs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.pref-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1a1a2e;
  border: 1px solid #2a2a40;
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  position: relative;
}

.pref-item.disabled {
  opacity: 0.5;
}

.pref-info {
  flex: 1;
}

.pref-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pref-desc {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.4;
}

.pref-soon {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 11px;
  color: #6b7280;
  background: #2a2a40;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #374151;
  border-radius: 28px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
  background-color: #8b5cf6;
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle input:disabled + .toggle-slider {
  cursor: not-allowed;
  opacity: 0.5;
}

.save-btn {
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 600;
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.save-btn:hover {
  background: #7c3aed;
}

.prefs-email {
  margin-top: 16px;
  font-size: 13px;
  color: #6b7280;
}

/* Signup Page */
.signup-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
  text-align: center;
}

.signup-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.signup-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

.signup-tagline {
  font-size: 18px;
  color: #a78bfa;
  margin-bottom: 16px;
}

.signup-desc {
  font-size: 16px;
  color: #9ca3af;
  max-width: 450px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.signup-form {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.signup-form input {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #374151;
  border-radius: 6px;
  background: #1f2937;
  color: #fff;
  width: 260px;
  outline: none;
}

.signup-form input:focus {
  border-color: #6366f1;
}

.signup-form input::placeholder {
  color: #6b7280;
}

.signup-form button {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.signup-form button:hover {
  background: #7c3aed;
}

.signup-note {
  font-size: 14px;
  color: #6b7280;
}

.signup-note a {
  color: #9ca3af;
  text-decoration: underline;
}

@media (max-width: 500px) {
  .signup-form {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .signup-form input {
    width: 100%;
  }
  .signup-title {
    font-size: 32px;
  }
}
