:root {
  --navy-900: #001d36;
  --navy-800: #0a2540;
  --royal-600: #0061a4;
  --royal-100: #d1e4ff;
  --emerald-500: #059669;
  --emerald-600: #006c4c;
  --amber-500: #f59e0b;
  --ink: #1b1b1f;
  --line: rgba(209, 228, 255, 0.28);
  --muted: rgba(255, 255, 255, 0.72);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --pad-x: clamp(1.25rem, 4vw, 2.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: #fff;
  background: var(--navy-900);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 70% 10%, rgba(5, 150, 105, 0.32), transparent 58%),
    radial-gradient(ellipse 70% 55% at 10% 90%, rgba(0, 97, 164, 0.4), transparent 55%),
    linear-gradient(165deg, #001d36 0%, #0a2540 50%, #05261f 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem var(--pad-x);
  background: linear-gradient(180deg, rgba(0, 29, 54, 0.92), rgba(0, 29, 54, 0.65) 70%, transparent);
  backdrop-filter: blur(8px);
}

.mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #fff;
}

.lang {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.lang button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: 600 0.85rem/1 var(--font-body);
  padding: 0.4rem 0.7rem;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.lang button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ledger-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(0, 29, 54, 0.72) 0%, rgba(0, 29, 54, 0.35) 45%, rgba(5, 150, 105, 0.22) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(255, 255, 255, 0.045) 32px
    );
}

.ledger-glow {
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(42vw, 22rem);
  height: min(42vw, 22rem);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 68%);
  animation: pulse 4.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.ledger-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, 28rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(0, 97, 164, 0.28), rgba(0, 29, 54, 0.15));
  animation: slide-in 1s 0.25s ease both;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sheet-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-500);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.sheet-party {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.sheet-rows {
  display: grid;
  gap: 0.45rem;
}

.sheet-rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
}

.sheet-rows .balance {
  margin-top: 0.3rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem var(--pad-x) 8rem;
  max-width: 40rem;
  animation: rise 0.85s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.25rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--royal-100);
}

.lede {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 0.4rem;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--emerald-500);
  color: #fff;
}

.btn.primary:hover:not(:disabled) {
  background: var(--emerald-600);
}

.btn.secondary {
  background: var(--royal-600);
  color: #fff;
}

.btn.secondary:hover:not(:disabled) {
  background: #004d84;
}

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

.cta-hint {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--amber-500);
}

.trustband {
  position: relative;
  z-index: 1;
  padding: 1.5rem var(--pad-x) 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 29, 54, 0.55);
}

.trustband ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  max-width: 68rem;
}

.trustband li {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--royal-100);
  padding-left: 0.9rem;
  border-left: 2px solid var(--amber-500);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.section-head p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.features,
.why,
.safeguards,
.download,
.closing {
  position: relative;
  z-index: 1;
  padding: 4rem var(--pad-x);
  max-width: 72rem;
  margin: 0 auto;
}

.features {
  background: linear-gradient(180deg, rgba(0, 29, 54, 0.35), transparent 40%);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  animation: rise 0.7s ease both;
}

.feature-list li:nth-child(2) {
  animation-delay: 0.05s;
}
.feature-list li:nth-child(3) {
  animation-delay: 0.1s;
}
.feature-list li:nth-child(4) {
  animation-delay: 0.15s;
}
.feature-list li:nth-child(5) {
  animation-delay: 0.2s;
}
.feature-list li:nth-child(6) {
  animation-delay: 0.25s;
}

.feat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--amber-500);
  letter-spacing: 0.04em;
}

.feature-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-list p {
  margin: 0;
  max-width: 40rem;
  line-height: 1.55;
  color: var(--muted);
}

.why {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.why-grid article {
  padding: 0;
  background: none;
  border: none;
}

.why-grid h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--royal-100);
}

.why-grid p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.safeguards {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.safe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.safe-list li {
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.safe-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--emerald-500);
  border-radius: 0.1rem;
}

.download {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.download-cta {
  margin-top: 0;
}

.store-note {
  display: inline-block;
  margin: 1.1rem 0 0;
  padding: 0.55rem 0;
  color: var(--amber-500);
  font-weight: 600;
  border-bottom: 1px solid rgba(245, 158, 11, 0.45);
}

.closing {
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(120deg, rgba(0, 97, 164, 0.18), rgba(5, 150, 105, 0.12));
  max-width: none;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.closing h2 {
  margin: 0 0 0.75rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.closing p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  line-height: 1.55;
  color: var(--muted);
}

.text-link {
  color: var(--amber-500);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 158, 11, 0.5);
}

.text-link:hover {
  color: #ffc24b;
}

footer {
  position: relative;
  z-index: 1;
  padding: 2rem var(--pad-x) 2.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  background: rgba(0, 13, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

footer a {
  color: var(--royal-100);
}

@media (max-width: 900px) {
  .trustband ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
  }

  .ledger-sheet {
    width: 100%;
    border-left: none;
  }

  .hero {
    padding-bottom: 12rem;
  }

  .trustband ul {
    grid-template-columns: 1fr;
  }

  .feature-list li {
    grid-template-columns: 2.5rem 1fr;
  }
}
