@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary:       #1B4F8A;
  --primary-dark:  #0F2D50;
  --primary-light: #2563EB;
  --accent:        #3B82F6;
  --blue-50:       #EFF6FF;
  --blue-100:      #DBEAFE;
  --blue-200:      #BFDBFE;
  --white:         #FFFFFF;
  --gray-50:       #F8FAFC;
  --gray-100:      #F1F5F9;
  --gray-200:      #E2E8F0;
  --gray-400:      #94A3B8;
  --gray-500:      #64748B;
  --gray-600:      #475569;
  --gray-800:      #1E293B;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg:     0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 10px -5px rgba(0,0,0,0.04);
  --shadow-blue:   0 8px 25px -5px rgba(27,79,138,0.25);
  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --transition:    all 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── HEADER ─── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 22px; height: 22px; fill: white; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.logo-text .tagline-small {
  font-size: 0.68rem;
  color: var(--gray-400);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav a:hover { color: var(--primary); background: var(--blue-50); }
.nav a.active { color: var(--primary); background: var(--blue-100); }

.nav .btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.nav .btn-nav:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-600);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge span.dot {
  width: 7px;
  height: 7px;
  background: #60efb0;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero h1 span {
  background: linear-gradient(90deg, #93c5fd, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-blue:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27,79,138,0.35);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── WAVE ─── */
.wave {
  display: block;
  width: 100%;
  margin-bottom: -2px;
}

/* ─── SECTIONS ─── */
.section {
  padding: 70px 24px;
}

.section-sm { padding: 48px 24px; }

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── ABOUT GRID ─── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}

.about-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.about-icon {
  width: 50px;
  height: 50px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.about-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ─── JOIN CARDS ─── */
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.join-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.join-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.join-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}

.join-card:hover::before { transform: scaleX(1); }

.join-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 100%);
}

.join-card.featured::before { transform: scaleX(1); }

.featured-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.join-card-icon {
  width: 68px;
  height: 68px;
  background: var(--blue-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.join-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.join-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.join-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 26px;
  line-height: 1.65;
}

.join-features {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
}

.join-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 5px 0;
}

.join-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--blue-100);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%231B4F8A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ─── STATS ─── */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 60px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #fff, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

/* ─── FORM PAGE ─── */
.form-page {
  background: var(--gray-50);
  flex: 1;
  padding: 60px 24px 80px;
}

.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 36px;
}

.form-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.form-header p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Type Toggle */
.type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.type-option {
  position: relative;
}

.type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.type-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.type-label:hover {
  border-color: var(--blue-200);
  background: var(--blue-50);
}

.type-option input[type="radio"]:checked + .type-label {
  border-color: var(--primary);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(27,79,138,0.08);
}

.type-label svg {
  width: 28px;
  height: 28px;
  stroke: var(--gray-400);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

.type-option input[type="radio"]:checked + .type-label svg {
  stroke: var(--primary);
}

.type-label strong {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
}

.type-option input[type="radio"]:checked + .type-label strong {
  color: var(--primary);
}

.type-label span {
  font-size: 0.775rem;
  color: var(--gray-400);
  line-height: 1.45;
}

/* Form Card */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin: 24px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}

.form-section-title:first-child { margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-group label .req {
  color: var(--accent);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 11px 15px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--gray-800);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-control::placeholder { color: var(--gray-400); }

.form-control.error {
  border-color: #EF4444;
  background: #FFF5F5;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2394A3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.error-msg {
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 4px;
  display: none;
}

.error-msg.visible { display: block; }

.form-footer {
  margin-top: 28px;
  text-align: center;
}

.form-footer .btn {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 1rem;
}

.privacy-note {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 14px;
  line-height: 1.55;
}

.privacy-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Fields shown/hidden by JS */
.fields-business, .fields-supporter { display: none; }
.fields-business.active, .fields-supporter.active { display: block; }

/* ─── SUCCESS PAGE ─── */
.success-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.success-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  stroke: #16a34a;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.success-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ─── ALERT ─── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}

.alert-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
}

.footer-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo .brand { color: white; }
.footer-brand .logo .tagline-small { color: rgba(255,255,255,0.45); }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 290px;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: white; padding-left: 4px; }

.footer-contact p {
  font-size: 0.875rem;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255,255,255,0.65);
}

.footer-contact p svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,0.4);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
}

.footer-bottom-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

.footer-bottom a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-bottom a:hover { color: white; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--gray-200); padding: 12px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 14px; }
  .hamburger { display: flex; }

  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }

  .form-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }

  .join-grid { grid-template-columns: 1fr; }

  .success-card { padding: 40px 28px; }

  .hero { padding: 60px 24px 80px; }
}

@media (max-width: 480px) {
  .type-toggle { grid-template-columns: 1fr; }
}
