:root {
  --bg: #eef4f8;
  --bg-soft: #e3eef6;
  --card: #ffffff;
  --ink: #0f2744;
  --muted: #64748b;
  --teal: #00a8cc;
  --teal-dark: #0891b2;
  --blue: #3b82f6;
  --red: #e85a5a;
  --red-soft: #f87171;
  --yellow: #f9d423;
  --warn: #b45309;
  --warn-bg: #fff7ed;
  --ok: #15803d;
  --ok-bg: #ecfdf5;
  --shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Outfit", "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #c8e7f5 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 90% 0%, #d4e8f8 0%, transparent 50%),
    linear-gradient(180deg, #f4f8fb 0%, var(--bg) 40%, #e8f1f7 100%);
  padding-bottom: 110px;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-text small {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.nav-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.pill:hover,
.pill.active {
  background: #fff;
  color: var(--ink);
  transform: translateY(-1px);
}

.top-actions {
  display: flex;
  gap: 0.5rem;
}

.ghost-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 600;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  gap: 1.25rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2.25rem;
  border-radius: 24px;
  background: linear-gradient(120deg, #d7ebf7 0%, #c5e0f2 55%, #b7d7ee 100%);
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 0.35rem 0 0.5rem;
  letter-spacing: -0.03em;
}

.lede {
  color: #334155;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.about {
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #dff3f8 0%, #e8f6fa 100%);
  box-shadow: var(--shadow);
  animation: rise 0.75s ease both;
}

.about h2 {
  font-family: var(--display);
  font-size: 2rem;
  margin: 0.4rem 0 0.75rem;
}

.about-text {
  max-width: 52ch;
  color: #475569;
  margin: 0 0 1.25rem;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.resources {
  padding: 0.5rem 0 1rem;
}

.section-head h2 {
  font-family: var(--display);
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.section-head p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.resource-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  animation: rise 0.85s ease both;
}

.resource-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.resource-top h3 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.resource-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.resource-icon.locked {
  background: #fee2e2;
  color: #dc2626;
}

.resource-icon.unlocked {
  background: #dcfce7;
  color: #16a34a;
  transform: scale(1.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(0);
}

.btn.full {
  width: 100%;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 168, 204, 0.28);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-yellow {
  background: var(--yellow);
  color: #1f2937;
  box-shadow: 0 8px 18px rgba(249, 212, 35, 0.35);
}

.btn-ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
  color: #fff;
  min-width: 120px;
}

.btn-yt {
  background: #ff0000;
  color: #fff;
  min-width: 120px;
}

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

.pay-box {
  text-align: center;
  padding: 0.5rem 0;
}

.pay-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.social-intro {
  margin: 0 0 1rem;
  color: #334155;
}

.task {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  background: #f8fafc;
}

.task.done {
  border-color: #86efac;
  background: var(--ok-bg);
}

.task-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.task-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: grid;
  place-items: center;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.check.on {
  border-color: #22c55e;
  background: #22c55e;
  color: #fff;
}

.warn {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.88rem;
  font-weight: 600;
}

.resource-link-box {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid #86efac;
  background: var(--ok-bg);
}

.resource-link-label {
  margin: 0;
  font-weight: 700;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-link-hint {
  margin: 0;
  font-size: 0.88rem;
}

.join-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(214, 236, 247, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  z-index: 20;
}

.join-bar p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.feedback-tab {
  position: fixed;
  right: 0;
  top: 45%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
  border: none;
  background: var(--teal);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 10px 10px 0 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  z-index: 25;
  box-shadow: var(--shadow);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav-pills,
  .top-actions {
    display: none;
  }

  .task-row {
    flex-wrap: wrap;
  }

  .join-bar {
    flex-direction: column;
    text-align: center;
  }

  .feedback-tab {
    display: none;
  }
}
