/* CUSTOMIZE: BRAND_NAME, HERO_TEXT, YEAR */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #334155;
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 0.5rem;
}

nav a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover {
  color: #1e293b;
  background: #f1f5f9;
}

nav a.active {
  color: #1e293b;
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #e0e7ff 0%, #f0f9ff 50%, #e0f2fe 100%);
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1rem;
  color: #475569;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* Member Cards */
.section {
  padding: 2rem 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.card-name {
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.card-status {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

/* Signup Form */
.signup {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.signup h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.signup p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
}

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

.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: #4f46e5;
  color: #fff;
}

.btn-primary:hover {
  background: #4338ca;
}

.btn-primary:disabled {
  background: #a5b4fc;
  cursor: not-allowed;
}

.form-success {
  display: none;
  color: #059669;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.75rem;
}

.form-success.visible {
  display: block;
}

.form-error {
  display: none;
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.form-error.visible {
  display: block;
}

/* Page Content */
.page-content {
  flex: 1;
  padding: 2rem 0;
}

.page-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.page-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  color: #475569;
}

.page-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: #475569;
}

.page-content li {
  margin-bottom: 0.25rem;
}

/* Contact Form */
.contact-form {
  max-width: 500px;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.25rem;
  text-align: left;
}

.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}

.contact-form textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: auto;
}

footer p {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

footer nav {
  justify-content: center;
  margin-bottom: 0.5rem;
}

/* Avatar gradients */
.avatar-0 { background: linear-gradient(135deg, #6366f1, #818cf8); }
.avatar-1 { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.avatar-2 { background: linear-gradient(135deg, #059669, #34d399); }
.avatar-3 { background: linear-gradient(135deg, #d97706, #fbbf24); }
.avatar-4 { background: linear-gradient(135deg, #dc2626, #f87171); }
.avatar-5 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.avatar-6 { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.avatar-7 { background: linear-gradient(135deg, #be185d, #f472b6); }

/* Responsive */
@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .form-group input {
    flex: 1;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .section {
    padding: 3rem 0;
  }

  nav a {
    padding: 0.5rem 0.75rem;
  }
}
