/* ---------- Tokens ---------- */
:root {
  --navy: #10233F;
  --navy-deep: #0A1830;
  --teal: #2C7A8C;
  --green: #34A66B;
  --green-light: #5FC98A;
  --mint: #E3F5E9;
  --bg: #F7FAF9;
  --text: #16202B;
  --text-soft: #4B5A66;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16,35,63,0.06);
  --font-display: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: var(--text-soft); }

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  padding: 0.65em 1.3em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: #2c9560; }
.btn-primary:active { transform: translateY(1px); }
.btn-text {
  background: transparent;
  color: var(--navy);
  padding: 0.65em 0.9em;
}
.btn-text:hover { color: var(--teal); }
.btn-large {
  font-size: 1.05rem;
  padding: 0.85em 1.8em;
}
.btn-full { width: 100%; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247,250,249,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16,35,63,0.08);
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 40px;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.header-links a:hover {
  color: var(--teal);
}
@media (max-width: 860px) {
  .header-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 34ch;
  margin-bottom: 1.6em;
}
.hero-cta { display: flex; gap: 12px; }

.hero-graphic {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 280px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 100%;
}
.bar {
  width: 34px;
  border-radius: 6px 6px 0 0;
  transform-origin: bottom;
  animation: grow 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.bar-1 { height: 38%;  background: var(--navy);       animation-delay: 0.02s; }
.bar-2 { height: 58%;  background: #1c4f6b;            animation-delay: 0.10s; }
.bar-3 { height: 78%;  background: var(--teal);        animation-delay: 0.18s; }
.bar-4 { height: 94%;  background: #2f9873;            animation-delay: 0.26s; }
.bar-5 { height: 112%; background: var(--green);       animation-delay: 0.34s; }

@keyframes grow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bar { animation: none; }
}

/* ---------- Categories ---------- */
.categories {
  padding: 40px 0 110px;
}
.categories h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 0.9em;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: end;
}
.category-card {
  background: var(--white);
  border: 1px solid rgba(16,35,63,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 30px;
}
.category-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}
.card-apps .category-icon   { color: var(--navy); }
.card-games .category-icon  { color: var(--teal); }
.card-surveys .category-icon{ color: var(--green); }

.category-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.category-card p { margin-bottom: 0; }

/* staggered "ascending bars" rhythm, echoing the mark */
.card-apps    { transform: translateY(28px); }
.card-games   { transform: translateY(0); }
.card-surveys { transform: translateY(-16px); }

/* ---------- Offer carousel ---------- */
.offer-carousel {
  padding: 0 0 100px;
}
.offer-carousel h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 0.9em;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb { background: rgba(16,35,63,0.15); border-radius: 999px; }

.offer-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid rgba(16,35,63,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 22px;
  position: relative;
}
.payout-badge {
  display: inline-block;
  background: var(--mint);
  color: #1e7a4b;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  margin-bottom: 14px;
}
.offer-kind {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin-bottom: 6px;
}
.offer-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text);
}

/* ---------- Redeem ---------- */
.redeem {
  padding: 0 0 100px;
}
.redeem h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 0.9em;
}
.redeem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.redeem-card {
  background: var(--white);
  border: 1px solid rgba(16,35,63,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 30px;
}
.redeem-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--navy);
}
.redeem-card:nth-child(2) .redeem-icon { color: var(--teal); }
.redeem-card:nth-child(3) .redeem-icon { color: var(--green); }
.redeem-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.redeem-card p { margin-bottom: 0; }

/* ---------- About ---------- */
.about {
  padding: 0 0 110px;
}
.about h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 0.6em;
}
.about p {
  max-width: 68ch;
  font-size: 1.05rem;
  color: var(--text-soft);
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  display: none;
}

/* ---------- Cookie consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 18px 24px;
  box-shadow: 0 -4px 20px rgba(10,24,48,0.25);
}
.consent-banner[hidden] { display: none; }
.consent-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.consent-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  max-width: 60ch;
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.consent-actions .btn-text {
  color: rgba(255,255,255,0.75);
}
.consent-actions .btn-text:hover {
  color: var(--white);
}

@media (max-width: 860px) {
  .consent-banner {
    padding-bottom: calc(18px + 64px);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.8);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.footer-logo {
  height: 34px;
  display: block;
}
.footer-tag {
  color: var(--green-light);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
}
.footer-social a {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover {
  color: var(--green-light);
}
.footer-social svg {
  width: 20px;
  height: 20px;
}
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-legal span {
  color: rgba(255,255,255,0.35);
}
.footer-copy {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,24,48,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-backdrop[hidden] { display: none; }

.modal {
  background: var(--white);
  width: 100%;
  max-width: 400px;
  border-radius: 14px;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(10,24,48,0.28);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  padding: 4px;
}
.modal-close:hover { color: var(--navy); }

.modal-tabs {
  display: flex;
  background: var(--mint);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
}
.modal-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55em 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.modal-tab.is-active {
  background: var(--green);
  color: var(--white);
}

.modal-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65em 0.2em;
  border: none;
  border-bottom: 1.5px solid rgba(16,35,63,0.2);
  background: transparent;
  color: var(--text);
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--green);
}
.modal-switch {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 4px 0 0;
}

.modal-success { text-align: center; padding-top: 8px; }
.modal-success h2 { margin-bottom: 0.3em; }
.modal-success .btn { margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { height: 190px; order: -1; }
  .hero { padding: 48px 0 64px; text-align: left; }
  .category-grid { grid-template-columns: 1fr; }
  .card-apps, .card-games, .card-surveys { transform: none; }
  .redeem-grid { grid-template-columns: 1fr; }

  body { padding-bottom: 64px; }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(16,35,63,0.1);
    box-shadow: 0 -2px 12px rgba(16,35,63,0.06);
    z-index: 30;
    padding: 6px 0 8px;
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    cursor: pointer;
    padding: 4px 0;
  }
  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
  }
  .bottom-nav-item:active,
  .bottom-nav-item:focus-visible {
    color: var(--green);
  }
}
