/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --blue: #369BC4;
  --blue-95: rgba(54, 155, 196, 0.95);
  --surface: #333;
  --text: #f5f5f5;
  --text-muted: #d8d8d8;
  --radius: 16px;
  --gap: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #191919;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--gap);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ---- Hero ---- */
.hero {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-img-left {
  object-position: center;
}

.hero-img-right {
  object-position: 70% center;
}

.hero-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--blue-95);
  border-radius: var(--radius);
  padding: 28px 36px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  max-width: 400px;
  width: 85%;
}

.hero-cta h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 10px;
}

.hero-sub {
  display: inline-block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.hero-sub:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* ---- Info Card (Why + How) ---- */
.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 44px;
}

.info-card h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.zipline-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.zipline-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.zipline-logo {
  height: 40px;
  width: auto;
  filter: invert(1);
}

.zipline-tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: -0.01em;
}

.why-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stat {
  background: rgba(54, 155, 196, 0.08);
  border: 1px solid rgba(54, 155, 196, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.section-rule {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 32px 0;
}

.how-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.how-step {
  display: grid;
  grid-template-columns: 36px 130px 1fr;
  align-items: center;
  gap: 8px;
}

.how-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(54, 155, 196, 0.15);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.how-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.how-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Form Section ---- */
.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.scene-banner {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  max-height: 340px;
}

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 40px;
}

.form-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-incentive {
  font-size: 16px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 16px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 18px;
  color: var(--text);
}

.form-label input {
  display: block;
  margin-top: 10px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s;
}

.form-label input:focus {
  border-color: var(--blue);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(54, 155, 196, 0.3);
}

.form-label input.error {
  border-color: #e74c3c;
}

.form-label input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.submit-btn {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  font-family: inherit;
  cursor: pointer;
  background: var(--blue);
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.3s;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(54, 155, 196, 0.2);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  margin-top: 12px;
  color: var(--text-muted);
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

.form-status.pending { color: var(--text-muted); opacity: 1; }
.form-status.error { color: #e74c3c; opacity: 1; }

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success state */
.form-success {
  text-align: center;
  padding: 30px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  background: rgba(54, 155, 196, 0.15);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 32px;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.safety-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  text-align: center;
}

.safety-body p {
  margin-bottom: 6px;
}

.safety-body .mission {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 12px;
  object-fit: contain;
}

.footer-credit {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .page {
    padding: 12px;
    gap: 12px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-img-left {
    display: none;
  }

  .hero-img {
    height: 320px;
  }

  .hero-cta {
    padding: 28px 24px;
  }

  .info-card {
    padding: 28px 20px;
  }

  .info-card h2 {
    font-size: 24px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    flex-direction: column;
    gap: 8px;
  }

  .how-step {
    grid-template-columns: 32px 1fr;
    gap: 4px;
  }

  .how-desc {
    grid-column: 1 / -1;
    padding-left: 36px;
    margin-top: -4px;
  }

  .how-title {
    font-size: 18px;
  }

  .form-card {
    padding: 24px 20px;
  }

  .form-card h2 {
    font-size: 24px;
  }
}

/* ---- Test Mode ---- */
.test-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #e67e22;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  letter-spacing: 0.04em;
}

.test-results {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(230, 126, 34, 0.5);
  border-radius: 14px;
  padding: 20px;
}

.test-results h4 {
  font-size: 16px;
  font-weight: 700;
  color: #e67e22;
  margin-bottom: 12px;
}

.test-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.test-row span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.test-row span:last-child {
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
}

.test-payload {
  margin-top: 12px;
  font-size: 13px;
}

.test-payload summary {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
}

.test-payload pre {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}
