:root {
  --bg: #ecf7fb;
  --navy: #062848;
  --blue: #0068b7;
  --blue-2: #00a3e0;
  --green: #22b573;
  --mint: #e7fff5;
  --yellow: #ffd24d;
  --white: #ffffff;
  --text: #112033;
  --muted: #6d7c8d;
  --line: rgba(17, 32, 51, 0.12);
  --shadow: 0 26px 80px rgba(4, 35, 71, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 163, 224, 0.22), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(34, 181, 115, 0.2), transparent 24rem),
    linear-gradient(135deg, #eefaff 0%, #f8fbff 48%, #e8f7f1 100%);
  overflow-x: hidden;
}

button {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 104, 183, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 28px rgba(0, 104, 183, 0.08);
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34, 181, 115, 0.13);
}

h1 {
  margin: 22px 0 14px;
  font-size: clamp(46px, 7vw, 82px);
  letter-spacing: -0.07em;
  line-height: 0.92;
  color: var(--navy);
}

.lead {
  max-width: 610px;
  margin: 0;
  color: #415268;
  font-size: 20px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 28px;
}

.feature-grid article {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 45px rgba(5, 43, 74, 0.08);
  backdrop-filter: blur(18px);
}

.feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e5f5ff;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
}

.feature-grid strong {
  display: block;
  color: var(--navy);
  margin-bottom: 7px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 18px;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 18px 32px rgba(0, 104, 183, 0.28);
}

.ghost-btn {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 104, 183, 0.14);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover,
.complete-btn:hover,
.redeem-btn:hover,
.quick-card:hover {
  transform: translateY(-2px);
}

.phone-zone {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-shadow {
  position: absolute;
  width: 360px;
  height: 80px;
  bottom: 8px;
  border-radius: 50%;
  background: rgba(4, 28, 48, 0.22);
  filter: blur(24px);
}

.phone {
  position: relative;
  width: 385px;
  height: 720px;
  padding: 13px;
  border-radius: 56px;
  background: linear-gradient(145deg, #1c2a38, #03111f 52%, #43515f);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.12);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.phone-side {
  position: absolute;
  width: 4px;
  background: #233142;
  border-radius: 8px;
}

.phone-side-left {
  height: 68px;
  left: -3px;
  top: 148px;
}

.phone-side-right {
  height: 92px;
  right: -3px;
  top: 214px;
}

.phone-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 45px;
  background: #f6fbff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.notch {
  position: absolute;
  z-index: 10;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 31px;
  border-radius: 0 0 18px 18px;
  background: #07111c;
}

.status-bar {
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 12px 26px 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.status-icons {
  font-size: 11px;
  letter-spacing: -1px;
}

.app-screen {
  position: absolute;
  inset: 52px 0 82px;
  padding: 18px 18px 0;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  scrollbar-width: none;
}

.app-screen::-webkit-scrollbar {
  display: none;
}

.app-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.app-header,
.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.app-header h2,
.sub-header h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.mini-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(6, 40, 72, 0.08);
}

.brand-pill span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-size: 11px;
}

.balance-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 132px;
  padding: 21px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--navy), #005ba8 56%, var(--blue-2));
  color: white;
  box-shadow: 0 22px 42px rgba(0, 104, 183, 0.23);
}

.balance-copy span,
.balance-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.balance-copy strong {
  display: block;
  margin: 7px 0;
  font-size: 44px;
  letter-spacing: -0.05em;
}

.coin-stack {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 900;
  font-size: 28px;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08), 0 14px 26px rgba(0, 0, 0, 0.14);
}

.steps-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
  padding: 16px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 16px 34px rgba(6, 40, 72, 0.08);
}

.circle-progress {
  --progress: 0%;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--progress), #e6eef5 0);
}

.circle-core {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: white;
}

.circle-core span {
  font-size: 23px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.05em;
}

.circle-core small {
  margin-top: -16px;
  color: var(--muted);
  font-weight: 700;
}

.steps-info h3,
.impact-card h3,
.task-card h3,
.reward-card h3,
.profile-card h3,
.badge-card h3 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.steps-info p,
.impact-card p,
.task-card p,
.reward-card p,
.profile-card p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.small-btn,
.complete-btn,
.redeem-btn {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 9px 12px;
  color: white;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(0, 104, 183, 0.2);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 0;
  border-radius: 24px;
  padding: 16px;
  background: white;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(6, 40, 72, 0.07);
  text-align: left;
  transition: transform 0.2s ease;
}

.quick-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  border-radius: 16px;
  background: #eef8ff;
  font-size: 19px;
}

.quick-card strong {
  color: var(--navy);
}

.quick-card small {
  color: var(--muted);
  font-weight: 700;
}

.impact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 18px;
  border-radius: 26px;
  background: var(--mint);
  border: 1px solid rgba(34, 181, 115, 0.13);
}

.leaf-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: white;
  font-size: 26px;
}

.back-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 16px;
  background: white;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(6, 40, 72, 0.08);
}

.sub-header {
  justify-content: flex-start;
}

.task-list,
.reward-list {
  display: grid;
  gap: 12px;
}

.task-card,
.reward-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 14px 28px rgba(6, 40, 72, 0.07);
}

.task-icon,
.reward-visual {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 19px;
  background: #eef8ff;
  font-size: 24px;
}

.task-card span,
.reward-card span {
  color: var(--green);
  font-weight: 900;
  font-size: 12px;
}

.complete-btn.completed,
.redeem-btn.redeemed {
  background: #dce8ef;
  color: #607082;
  box-shadow: none;
  cursor: default;
}

.points-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  padding: 15px 17px;
  border-radius: 22px;
  background: linear-gradient(135deg, #eaf7ff, #ffffff);
  border: 1px solid rgba(0, 104, 183, 0.12);
}

.points-strip span {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.points-strip strong {
  color: var(--blue);
  font-size: 25px;
}

.profile-card {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, white, #edf9ff);
  box-shadow: 0 16px 34px rgba(6, 40, 72, 0.08);
}

.avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
  font-size: 38px;
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.stats-grid article {
  padding: 16px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 28px rgba(6, 40, 72, 0.07);
}

.stats-grid span {
  display: block;
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.stats-grid small {
  color: var(--muted);
  font-weight: 700;
}

.badge-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 14px 28px rgba(6, 40, 72, 0.07);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badges span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef8ff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.bottom-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(6, 40, 72, 0.08);
  box-shadow: 0 -12px 28px rgba(6, 40, 72, 0.08);
  backdrop-filter: blur(18px);
}

.nav-btn {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 54px;
  border: 0;
  border-radius: 22px;
  color: #788697;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.nav-btn span {
  font-size: 19px;
}

.nav-btn.active {
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 104, 183, 0.22);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translate(-50%, 18px);
  max-width: calc(100% - 30px);
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 18px 36px rgba(6, 40, 72, 0.25);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    justify-items: center;
    padding-top: 34px;
  }

  .hero-copy {
    text-align: center;
  }

  .lead {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 22px, 480px);
  }

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

  .phone {
    width: min(385px, 100%);
    height: 740px;
  }

  .phone-zone {
    width: 100%;
  }
}

@media (max-width: 410px) {
  .phone {
    height: 710px;
    border-radius: 46px;
  }

  .phone-inner {
    border-radius: 37px;
  }

  .steps-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .task-card,
  .reward-card {
    grid-template-columns: 45px 1fr;
  }

  .task-card button,
  .reward-card button {
    grid-column: 1 / -1;
  }
}


.reward-panel {
  position: relative;
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,250,244,0.98));
  border: 1px solid rgba(132, 181, 93, 0.18);
  box-shadow: 0 14px 30px rgba(6, 40, 72, 0.07);
  overflow: hidden;
}

.reward-panel::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 35%, rgba(173, 216, 230, 0.17) 0 34%, transparent 35%),
    radial-gradient(circle at 65% 66%, rgba(146, 196, 125, 0.2) 0 32%, transparent 33%),
    radial-gradient(circle at 40% 70%, rgba(146, 196, 125, 0.15) 0 17%, transparent 18%);
  opacity: 0.75;
  pointer-events: none;
}

.reward-panel > * {
  position: relative;
  z-index: 1;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-title-row h3 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.rewards-points-strip {
  align-items: center;
}

.rewards-points-strip strong {
  display: block;
  margin-top: 4px;
}

.reward-points-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dff4dd, #f7fff4);
  font-size: 24px;
}

.current-level-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff2d8;
  color: #9b6b00;
  font-size: 12px;
  font-weight: 800;
}

.level-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.level-card {
  padding: 12px 10px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(6, 40, 72, 0.08);
  box-shadow: 0 8px 20px rgba(6, 40, 72, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.level-card.active {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(6, 40, 72, 0.11);
  border-color: rgba(0, 104, 183, 0.25);
}

.level-card strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 13px;
}

.level-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.level-medal {
  font-size: 26px;
}

.level-card.bronze.active {
  background: linear-gradient(180deg, #fff6ee, #fffdfb);
}

.level-card.silver.active {
  background: linear-gradient(180deg, #f7f8fb, #ffffff);
}

.level-card.gold.active {
  background: linear-gradient(180deg, #fff8dc, #fffdf7);
}

.level-card.green-ambassador.active {
  background: linear-gradient(180deg, #e9f8eb, #ffffff);
}

.reward-category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  margin: 6px 0 12px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.digital-pill {
  background: linear-gradient(135deg, #2d64c7, #204ca2);
}

.lifestyle-pill {
  background: linear-gradient(135deg, #77b857, #5ea53d);
}

.reward-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.reward-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  min-height: 205px;
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(6, 40, 72, 0.08);
  box-shadow: 0 10px 22px rgba(6, 40, 72, 0.06);
}

.reward-box.reward-card {
  display: flex;
  grid-template-columns: none;
}

.reward-box-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #edf6ff;
  font-size: 25px;
}

.reward-box h4 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.reward-box p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.reward-box span {
  display: inline-block;
  margin-top: auto;
  color: #6ea447;
  font-size: 13px;
  font-weight: 900;
}

.reward-box .redeem-btn {
  margin-top: 2px;
  min-width: 72px;
}

@media (max-width: 410px) {
  .reward-grid,
  .level-grid {
    grid-template-columns: 1fr;
  }

  .reward-box {
    min-height: auto;
  }
}


.reward-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 40, 72, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.reward-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.reward-modal-card {
  position: relative;
  width: min(330px, 100%);
  padding: 28px 22px 24px;
  border-radius: 28px;
  background: white;
  text-align: center;
  box-shadow: 0 26px 80px rgba(4, 35, 71, 0.28);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.2s ease;
}

.reward-modal.show .reward-modal-card {
  transform: translateY(0) scale(1);
}

.reward-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef8ff;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  font-weight: 800;
}

.reward-modal-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, #e7fff5, #eef8ff);
  font-size: 32px;
}

.reward-modal-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.reward-modal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
