/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0d11;
  color: #e4e8ef;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(11, 13, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f0a1b5, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #e4e8ef;
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #e4e8ef !important;
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e4e8ef;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #a78bfa;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #f0a1b5, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: #9ca3af;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e8ef;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Preview card */
.hero-preview {
  display: flex;
  justify-content: center;
}

.preview-card {
  width: 380px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.preview-bar strong {
  font-size: 14px;
  font-weight: 700;
}

.preview-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #a78bfa;
  font-size: 13px;
  font-weight: 700;
  font-family: "Inter", monospace;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preview-grid button {
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #e4e8ef;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.preview-grid button:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.1);
  transform: translateY(-1px);
}

/* Hero bg shapes */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: #7c3aed;
  top: -200px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #a78bfa;
  bottom: -150px;
  left: -150px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: #f0a1b5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
  color: #9ca3af;
  font-size: 16px;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.65;
}

/* ===== Steps ===== */
.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.7;
}

/* ===== Causes ===== */
.causes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.cause-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s;
}

.cause-card:hover {
  border-color: rgba(167, 139, 250, 0.2);
}

.cause-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a78bfa;
  opacity: 0.7;
}

.cause-card strong {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.cause-card span:last-child {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.4;
}

/* ===== CTA ===== */
.cta {
  padding-bottom: 80px;
}

.cta-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 36px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.06), rgba(124, 58, 237, 0.04));
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.cta-card h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 15px;
  color: #9ca3af;
  margin-bottom: 28px;
  line-height: 1.7;
}

.cta-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e8ef;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input::placeholder {
  color: #6b7280;
}

.cta-form input:focus {
  border-color: rgba(167, 139, 250, 0.4);
}

.cta-note {
  font-size: 12px !important;
  color: #6b7280 !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

.cta-note.success {
  color: #34d399 !important;
}

/* ===== Footer ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
}

.footer-brand {
  font-weight: 700;
  color: #9ca3af;
}

/* ===== Mobile Nav ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 80px 24px 24px;
    background: rgba(11, 13, 17, 0.96);
    backdrop-filter: blur(24px);
    transition: right 0.35s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 16px;
    padding: 8px 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-preview {
    transform: scale(0.85);
  }

  .cta-form {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .causes-grid {
    grid-template-columns: 1fr;
  }

  .cause-card {
    flex-wrap: wrap;
  }
}
