:root {
  color-scheme: dark;
  --bg: #06111f;
  --bg-2: #091a2f;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f9ff;
  --muted: #a8bad1;
  --line: rgba(190, 220, 255, 0.16);
  --blue: #2d7dff;
  --blue-dark: #0b4ea2;
  --teal: #19d3bd;
  --green: #20c77a;
  --sun: #ffb020;
  --red: #ff5d5d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(45, 125, 255, 0.34), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(25, 211, 189, 0.24), transparent 28rem),
    radial-gradient(circle at 55% 45%, rgba(255, 176, 32, 0.08), transparent 26rem),
    linear-gradient(180deg, #06111f 0%, #091827 42%, #06111f 100%);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.shell,
.nav-shell,
.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(190, 220, 255, 0.11);
  background: rgba(6, 17, 31, 0.76);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(25, 211, 189, 0.22);
}

.brand span,
.footer-brand strong {
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand strong,
.footer-brand strong span {
  color: #eaf5ff;
}

.brand span,
.footer-brand strong {
  background: linear-gradient(90deg, #f5fbff 0%, #f5fbff 44%, var(--teal) 45%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  gap: clamp(32px, 7vw, 78px);
  align-items: center;
  padding: clamp(56px, 8vw, 92px) 0 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid rgba(25, 211, 189, 0.26);
  border-radius: 999px;
  background: rgba(25, 211, 189, 0.09);
  color: #78f0df;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2.1vw, 1.35rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.expense-options button:hover,
.game-top button:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 20px 50px rgba(25, 211, 189, 0.22);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--text);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof span,
.signal-strip span,
.trust-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7eaff;
  padding: 8px 11px;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.phone-card,
.expense-game,
.trust-card,
.final-cta,
.split-section,
.feature-card,
.timeline article,
figure,
.receipt-section,
.developer-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.phone-card {
  width: min(100%, 390px);
  padding: 18px;
  border-radius: 34px;
  animation: phoneFloat 5s ease-in-out infinite;
}

.phone-bar,
.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d9ebff;
  margin-bottom: 16px;
}

.phone-bar span {
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.trip-card-mini,
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(190, 220, 255, 0.15);
  border-radius: 18px;
  background: rgba(7, 21, 39, 0.76);
}

.trip-card-mini img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.trip-card-mini span,
.member-row small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.money-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.money-grid div,
.game-stats div {
  padding: 12px;
  border: 1px solid rgba(190, 220, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.money-grid span,
.game-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.money-grid strong,
.game-stats strong {
  display: block;
  margin-top: 3px;
  font-size: 1.05rem;
}

.warm {
  color: var(--sun);
}

.good {
  color: #66f0b4;
}

.progress-track {
  height: 10px;
  margin: 2px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-track span {
  display: block;
  width: 54%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  animation: progressPulse 2.8s ease-in-out infinite;
}

.member-row {
  margin-top: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 176, 32, 0.14);
  color: var(--sun);
  font-weight: 950;
}

.avatar.teal {
  background: rgba(25, 211, 189, 0.14);
  color: var(--teal);
}

.member-row div {
  flex: 1;
}

.member-row b {
  color: var(--sun);
}

.phone-card button,
.game-apply {
  width: 100%;
  margin-top: 14px;
}

.phone-card button {
  border: 0;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  font-weight: 950;
}

.floating-tile {
  position: absolute;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.floating-tile span {
  display: block;
  color: var(--teal);
  font-weight: 950;
}

.tile-one {
  right: 0;
  top: 110px;
}

.tile-two {
  left: 0;
  bottom: 120px;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 0 32px;
}

.section {
  padding-top: clamp(72px, 10vw, 128px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
}

.split-section p,
.feature-card p,
.timeline p,
.receipt-section p,
.trust-card p,
figcaption,
.footer-brand p {
  color: var(--muted);
}

.problem-grid,
.feature-grid,
.timeline,
.trust-grid {
  display: grid;
  gap: 14px;
}

.problem-grid {
  grid-template-columns: repeat(2, 1fr);
}

.problem-grid article {
  padding: 18px;
  border: 1px solid rgba(190, 220, 255, 0.14);
  border-radius: 18px;
  background: rgba(6, 17, 31, 0.58);
}

.problem-grid strong,
.problem-grid span {
  display: block;
}

.problem-grid span {
  margin-top: 5px;
  color: var(--muted);
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  min-height: 230px;
  padding: 20px;
  border-radius: 24px;
}

.feature-card span,
.timeline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 125, 255, 0.95), rgba(25, 211, 189, 0.85));
  color: white;
  font-weight: 950;
}

.feature-card h3 {
  margin-top: 34px;
}

.game-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 28px;
  align-items: center;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.expense-game {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 30px;
}

.expense-game::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(25, 211, 189, 0.12);
  filter: blur(8px);
}

.game-top button,
.expense-options button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
}

.expense-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.expense-options button.active {
  border-color: rgba(25, 211, 189, 0.65);
  background: linear-gradient(135deg, rgba(45, 125, 255, 0.45), rgba(25, 211, 189, 0.35));
}

.game-members {
  display: grid;
  gap: 10px;
}

.game-member {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(190, 220, 255, 0.14);
  border-radius: 18px;
  background: rgba(7, 21, 39, 0.7);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.game-member.active {
  border-color: rgba(25, 211, 189, 0.45);
  background: rgba(25, 211, 189, 0.08);
}

.game-member.bump {
  animation: bump 420ms ease;
}

.game-member button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  color: white;
  cursor: pointer;
  font-weight: 950;
}

.game-member small {
  display: block;
  color: var(--muted);
}

.game-member b {
  color: var(--teal);
}

.game-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.game-result strong {
  color: var(--sun);
}

.timeline {
  grid-template-columns: repeat(4, 1fr);
}

.timeline article {
  padding: 20px;
  border-radius: 24px;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

figure {
  margin: 0;
  padding: 12px;
  border-radius: 28px;
}

figure img {
  display: block;
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(190, 220, 255, 0.12);
}

figcaption {
  padding: 12px 4px 4px;
  font-size: 0.94rem;
}

.receipt-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
}

.receipt-stack {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: start;
  gap: 14px;
}

.receipt-stack img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(190, 220, 255, 0.13);
  box-shadow: var(--shadow);
}

.receipt-stack img:last-child {
  margin-top: 38px;
}

.trust-card {
  padding: clamp(24px, 5vw, 46px);
  border-radius: 34px;
}

.trust-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

.final-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 32px;
}

.final-cta img {
  width: 84px;
  height: 84px;
  border-radius: 24px;
}

.site-footer {
  margin-top: 92px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 125, 255, 0.18), transparent 22rem),
    rgba(3, 10, 20, 0.76);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.95fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
}

.footer-brand p {
  margin: 4px 0 0;
}

.developer-card {
  padding: 18px;
  border-radius: 22px;
}

.developer-card span,
.developer-card a {
  display: block;
  color: var(--muted);
  text-decoration: none;
}

.developer-card strong {
  display: block;
  margin: 3px 0;
  font-size: 1.24rem;
}

.developer-card a:hover,
.footer-links a:hover {
  color: var(--teal);
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.footer-links a {
  text-decoration: none;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 10px;
}

.legal-page section {
  padding: 22px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.legal-page .lead,
.legal-page p {
  color: var(--muted);
}

.legal-page a {
  color: var(--teal);
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes progressPulse {
  0%, 100% { width: 54%; }
  50% { width: 62%; }
}

@keyframes bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

@media (max-width: 980px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero,
  .split-section,
  .game-section,
  .receipt-section,
  .final-cta,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 540px;
    order: -1;
  }

  .feature-grid,
  .timeline,
  .trust-grid,
  .screen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .final-cta .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 10px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: 3.25rem;
  }

  .hero-stage {
    min-height: auto;
  }

  .floating-tile {
    display: none;
  }

  .money-grid,
  .problem-grid,
  .feature-grid,
  .timeline,
  .trust-grid,
  .screen-grid,
  .game-stats,
  .receipt-stack {
    grid-template-columns: 1fr;
  }

  .receipt-stack img:last-child {
    margin-top: 0;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }
}
