/* ════════════════════════════════════════════
   GigTaker — CSS
   ════════════════════════════════════════════ */

/* ── Variables ────────────────────────────── */
:root {
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --blue: #2563EB;
  --neon: #22D3EE;
  --neon-green: #34D399;
  --pink: #F472B6;
  --bg: #0A0A0F;
  --surface: #13131A;
  --surface-2: #1C1C27;
  --border: rgba(255,255,255,.08);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Utility ──────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.text-gradient {
  background: linear-gradient(135deg, var(--purple-light), var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section { padding: 120px 0; position: relative; }
.section__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section__title--left { text-align: left; }
.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 60px;
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,.5);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  backdrop-filter: blur(4px);
}
.btn--outline:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
  transform: translateY(-2px);
}
.btn--lg { padding: 16px 36px; font-size: 1.05rem; gap: 8px; }
.btn--sm { padding: 10px 24px; font-size: .9rem; }

/* ── Navbar ───────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-icon { font-size: 1.6rem; }
.navbar__logo-img { height: 40px; width: auto; }
.navbar.scrolled .navbar__logo-img { height: 34px; }
.navbar__links {
  display: flex;
  gap: 32px;
}
.navbar__links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.navbar__links a:hover { color: var(--text); }
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
#heroCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__mascot {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 28px;
  display: block;
  box-shadow: 0 8px 40px rgba(124,58,237,.3);
  animation: float 6s ease-in-out infinite;
}

/* Floating cards */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
.floating-card--alt {
  animation-delay: -3s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero__card {
  position: absolute;
  z-index: 3;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  font-size: .88rem;
  white-space: nowrap;
}
.hero__card--profile { top: 22%; left: 5%; }
.hero__card--earnings { top: 30%; right: 5%; }
.hero__card--progress { bottom: 18%; left: 8%; flex-direction: column; align-items: flex-start; gap: 8px; }

.card-avatar { font-size: 2rem; }
.card-meta { display: block; color: var(--text-muted); font-size: .78rem; }
.card-badge { background: rgba(124,58,237,.2); color: var(--purple-light); padding: 4px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }

.earnings-icon { font-size: 1.6rem; }
.earnings-amount { font-weight: 700; color: var(--neon-green); font-size: 1.1rem; }

.progress-label { font-weight: 600; }
.progress-bar {
  width: 180px;
  height: 6px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--neon));
  border-radius: 10px;
  transition: width 1.5s ease;
}
.progress-eta { color: var(--text-muted); font-size: .78rem; }

/* ── How It Works ─────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps__line {
  position: absolute;
  top: 60px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--purple-light) 0, var(--purple-light) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step__number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 16px;
}
.step__icon { font-size: 2.8rem; margin-bottom: 16px; }
.step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .95rem; max-width: 280px; margin: 0 auto; }

/* ── Why GigTaker / Features ──────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.feature:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124,58,237,.15);
}
.feature__icon { font-size: 2.8rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}
.stat { text-align: center; }
.stat__number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__suffix {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label {
  display: block;
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: 4px;
}

/* ── Social Proof ─────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.testimonial:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}
.testimonial__stars { font-size: 1rem; margin-bottom: 16px; }
.testimonial__quote {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--text-muted);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial__avatar { font-size: 2rem; }
.testimonial__author strong { display: block; font-size: .95rem; }
.testimonial__author span { color: var(--text-muted); font-size: .82rem; }

/* ── Live Feed ────────────────────────────── */
.live-feed { overflow: hidden; }
.feed-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding: 20px 0;
}
.feed-marquee__track {
  display: flex;
  gap: 20px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.feed-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 20px;
  font-size: .9rem;
  white-space: nowrap;
}
.feed-item__avatar { font-size: 1.5rem; }
.feed-item__time { color: var(--text-muted); font-size: .78rem; }

/* ── Earn ─────────────────────────────────── */
.earn__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.earn__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}
.earn__perks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.earn__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .98rem;
}
.perk-icon { font-size: 1.3rem; }

/* Earnings mockup card */
.earnings-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.earnings-mockup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: .9rem;
  color: var(--text-muted);
}
.earnings-mockup__badge {
  background: rgba(251,146,60,.15);
  color: #FB923C;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}
.earnings-mockup__amount {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.earnings-mockup__amount span { font-size: 1.6rem; color: var(--text-muted); }
.earnings-mockup__bar-group {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 100px;
  margin-bottom: 20px;
}
.earnings-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--purple), var(--blue));
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height .6s ease;
}
.earnings-bar--muted { opacity: .35; }
.earnings-bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  color: var(--text-muted);
}
.earnings-mockup__footer {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── App Preview ──────────────────────────── */
.phones {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.phone {
  width: 280px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.phone__screen {
  background: var(--bg);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9/17;
}
.phone-ui { height: 100%; display: flex; flex-direction: column; }
.phone-ui__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.phone-ui__back { cursor: default; }
.phone-ui__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple);
}
.phone-ui__dot--green { background: var(--neon-green); }

/* Tracking screen */
.phone-ui__map {
  flex: 1;
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
}
.phone-ui__route {
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--purple) 0, var(--purple) 6px, transparent 6px, transparent 12px);
  transform: translateY(-50%);
}
.phone-ui__pin {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .75rem;
}
.phone-ui__pin--start { left: 12%; background: var(--purple); }
.phone-ui__pin--end { right: 12%; background: var(--neon); color: var(--bg); }
.phone-ui__courier {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  animation: courierMove 3s ease-in-out infinite alternate;
}
@keyframes courierMove {
  0% { left: 40%; }
  100% { left: 65%; }
}
.phone-ui__info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .82rem;
}
.phone-ui__info strong { font-size: .9rem; }
.phone-ui__info span { color: var(--text-muted); }
.phone-ui__info .progress-bar { width: 100%; }

/* Chat screen */
.phone-ui__chat {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .8rem;
  line-height: 1.5;
}
.chat-bubble time {
  display: block;
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.chat-bubble--them {
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble--me {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.phone-ui__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
}
.phone-ui__send {
  color: var(--purple-light);
  font-size: 1.1rem;
}

/* ── Safety ───────────────────────────────── */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}
.trust-card:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(34,211,238,.1);
}
.trust-card__icon { font-size: 3rem; margin-bottom: 16px; }
.trust-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.trust-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ── Final CTA ────────────────────────────── */
.final-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.final-cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(37,99,235,.15));
  z-index: 0;
}
.final-cta__bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.2), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}
.final-cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.final-cta__content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.final-cta__content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
}
.final-cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────── */
.footer {
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand p { color: var(--text-muted); font-size: .9rem; margin-top: 12px; max-width: 280px; }
.footer__brand .navbar__logo-img { height: 48px; }
.footer__col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 16px; }
.footer__col a {
  display: block;
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer__col a:hover { color: var(--text); }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .9rem;
  transition: var(--transition);
}
.footer__socials a:hover {
  border-color: var(--purple);
  background: rgba(124,58,237,.15);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
}
.footer__bottom a { margin-left: 20px; transition: var(--transition); }
.footer__bottom a:hover { color: var(--text); }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .navbar__links { display: none; }
  .navbar__cta { display: none; }
  .navbar__burger { display: flex; }

  /* mobile nav open */
  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10,10,15,.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .hero__card { display: none; }

  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps__line { display: none; }

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

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

  .earn__grid { grid-template-columns: 1fr; }
  .section__title--left { text-align: center; }
  .earn__desc { text-align: center; }
  .earn__perks { align-items: center; }
  .earn__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }

  .phones { gap: 24px; }
  .phone { width: 240px; }

  .trust-cards { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; max-width: 320px; }
  .final-cta__buttons { flex-direction: column; align-items: center; }
  .stats-bar { grid-template-columns: 1fr; padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
}
