/* LunaPay marketing home */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Syne:wght@700;800&display=swap");

:root {
  --lp-bg: #070b14;
  --lp-ink: #f4f7fb;
  --lp-muted: #9aa8bd;
  --lp-line: rgba(255, 255, 255, 0.08);
  --lp-blue: #2f7bff;
  --lp-blue-2: #4d93ff;
  --lp-glass: rgba(16, 24, 40, 0.55);
  --lp-glass-border: rgba(255, 255, 255, 0.1);
  --lp-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --lp-font: "Manrope", "Segoe UI", sans-serif;
  --lp-display: "Syne", "Manrope", sans-serif;
  --lp-light-bg: #eef1f5;
  --lp-light-ink: #141b29;
  --lp-light-muted: #66748a;
  --lp-light-line: #e3e8ef;
  --lp-foot: #05070c;
}

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

html { scroll-behavior: smooth; }

body.lp-home {
  margin: 0;
  min-height: 100%;
  font-family: var(--lp-font);
  color: var(--lp-ink);
  background: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
}

body.lp-home a { color: inherit; }

.lp-skip { position: absolute; left: -9999px; }
.lp-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10000;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
}

.lp-home .site-preloader { background: var(--lp-bg); }
.lp-home .site-preloader-track { background: rgba(255, 255, 255, 0.08); }
.lp-home .site-preloader-bar { background: var(--lp-blue); }
.lp-home .site-preloader-logo { width: min(240px, 72vw); }

/* ---- 1) Dark full viewport ---- */
.lp-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: clip;
  background: var(--lp-bg);
}

.lp-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70vh;
  background:
    radial-gradient(ellipse 55% 50% at 50% 35%, rgba(47, 123, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(90, 167, 220, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(56, 111, 179, 0.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.lp-top {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: none;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.lp-brand img {
  display: block;
  height: 34px;
  width: auto;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.lp-nav a {
  color: var(--lp-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.lp-nav a:hover { color: var(--lp-ink); }

.lp-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 18px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary {
  background: linear-gradient(180deg, var(--lp-blue-2), var(--lp-blue));
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 123, 255, 0.35);
}
.lp-btn-ghost {
  background: transparent;
  color: var(--lp-ink);
  border: 1px solid var(--lp-line);
}
.lp-btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 14px; }

.lp-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 20px 64px;
}

.lp-hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lp-float {
  position: absolute;
  width: min(280px, 34vw);
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--lp-glass);
  border: 1px solid var(--lp-glass-border);
  box-shadow: var(--lp-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  animation: lp-float-in 0.9s ease forwards, lp-drift 8s ease-in-out infinite;
}
.lp-float:nth-child(1) { top: 10%; left: 6%; animation-delay: 0.15s, 0.15s; }
.lp-float:nth-child(2) { top: 14%; right: 7%; animation-delay: 0.3s, 0.8s; }
.lp-float:nth-child(3) { bottom: 12%; left: 10%; animation-delay: 0.45s, 1.2s; }
.lp-float:nth-child(4) { bottom: 10%; right: 8%; animation-delay: 0.55s, 1.6s; }

.lp-float h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-muted);
  font-weight: 700;
}
.lp-float .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--lp-line);
  font-size: 0.92rem;
  font-weight: 650;
}
.lp-float .row:first-of-type { border-top: 0; padding-top: 0; }
.lp-float .ok { color: #4ade80; }
.lp-float .warn { color: #fbbf24; }
.lp-float .mono { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lp-spark {
  height: 54px;
  margin-top: 4px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(47, 123, 255, 0.18), transparent),
    radial-gradient(120% 80% at 10% 80%, transparent 40%, rgba(47, 123, 255, 0.35) 41%, transparent 42%),
    radial-gradient(120% 80% at 35% 55%, transparent 40%, rgba(77, 147, 255, 0.45) 41%, transparent 42%),
    radial-gradient(120% 80% at 60% 70%, transparent 40%, rgba(47, 123, 255, 0.35) 41%, transparent 42%),
    radial-gradient(120% 80% at 85% 40%, transparent 40%, rgba(90, 167, 220, 0.5) 41%, transparent 42%);
}

.lp-hero-core {
  position: relative;
  z-index: 3;
  width: min(720px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.lp-hero-logo {
  width: min(280px, 72vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(47, 123, 255, 0.25));
  opacity: 0;
  transform: translateY(12px);
  animation: lp-rise 0.8s ease 0.1s forwards;
}

.lp-hero h1 {
  margin: 0;
  font-family: var(--lp-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  opacity: 0;
  transform: translateY(14px);
  animation: lp-rise 0.8s ease 0.22s forwards;
}

.lp-hero-lead {
  margin: 0;
  max-width: 34rem;
  color: var(--lp-muted);
  font-size: 1.12rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(14px);
  animation: lp-rise 0.8s ease 0.34s forwards;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(14px);
  animation: lp-rise 0.8s ease 0.46s forwards;
}

/* ---- 2) Light block ---- */
.lp-light {
  background: var(--lp-light-bg);
  color: var(--lp-light-ink);
  padding: 48px 0 64px;
}

.lp-light-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.lp-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-areas:
    "wide rates"
    "pay invoices"
    "pay api";
  gap: 18px;
}

.lp-card {
  background: #fff;
  border: 1px solid var(--lp-light-line);
  border-radius: 28px;
  padding: 28px 28px 24px;
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lp-card-wide { grid-area: wide; }
.lp-card:nth-child(2) { grid-area: rates; }
.lp-card-tall { grid-area: pay; }
.lp-card:nth-child(4) { grid-area: invoices; }
.lp-card-dark { grid-area: api; }

.lp-card h2,
.lp-card h3 {
  margin: 0 0 10px;
  font-family: var(--lp-display);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.lp-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
.lp-card h3 { font-size: 1.35rem; }
.lp-card p {
  margin: 0;
  color: var(--lp-light-muted);
  line-height: 1.55;
  font-size: 1rem;
}

.lp-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 22px;
}
.lp-card-links a,
.lp-card-links button,
.lp-card > a,
.lp-card > button[type="button"] {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--lp-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  width: fit-content;
}
.lp-card-links button,
.lp-card-links a { margin-top: 0; }
.lp-card-links i,
.lp-card > a i,
.lp-card > button i { font-size: 0.75rem; }

.lp-rate-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.lp-rate-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lp-light-line);
  font-size: 0.98rem;
}
.lp-rate-list li:last-child { border-bottom: 0; }
.lp-rate-list strong { font-weight: 750; }
.lp-rate-list span { color: var(--lp-light-muted); font-weight: 600; }

.lp-card-visual {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  place-items: center;
}
.lp-mini-pay {
  width: min(100%, 220px);
  aspect-ratio: 0.72;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7f9fc, #eef3fa);
  border: 1px solid var(--lp-light-line);
  box-shadow: 0 18px 40px rgba(16, 32, 51, 0.1);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding: 22px 18px;
  text-align: center;
}
.lp-mini-badge {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--lp-blue);
  background: rgba(47, 123, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
}
.lp-mini-pay strong {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}
.lp-mini-pay em {
  font-style: normal;
  color: var(--lp-light-muted);
  font-size: 0.85rem;
  font-weight: 650;
}
.lp-mini-pay i {
  width: 118px;
  height: 118px;
  margin-top: 8px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(0deg, #141b29 0 3px, transparent 3px 7px),
    repeating-linear-gradient(90deg, #141b29 0 3px, transparent 3px 7px);
  opacity: 0.85;
}

.lp-coin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}
.lp-coin-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--lp-light-line);
}

.lp-card-dark {
  background: #10141d;
  border-color: #10141d;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lp-card-dark p { color: #a7b0c0; }
.lp-card-dark > button { color: var(--lp-blue-2); }
.lp-api-chip {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--lp-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(77, 147, 255, 0.35), rgba(16, 20, 29, 0.2)),
    #182033;
  border: 1px solid rgba(77, 147, 255, 0.35);
  box-shadow: 0 0 40px rgba(47, 123, 255, 0.35);
}

/* ---- 3) Dark footer ---- */
.lp-foot {
  background: var(--lp-foot);
  color: #9aa3b2;
  padding: 56px 0 40px;
}
.lp-foot-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px 24px;
}
.lp-foot-brand p {
  margin: 14px 0 18px;
  max-width: 22rem;
  line-height: 1.5;
  font-size: 0.95rem;
}
.lp-foot-brand small {
  display: block;
  font-size: 0.82rem;
  color: #6f7888;
}
.lp-foot h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
}
.lp-foot a,
.lp-foot button {
  display: block;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 10px;
  color: #9aa3b2;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.lp-foot a:hover,
.lp-foot button:hover { color: #fff; }
.lp-foot-contact {
  margin: 0 0 14px;
  display: grid;
  gap: 2px;
  font-size: 0.92rem;
}
.lp-foot-contact span:first-child { color: #6f7888; }
.lp-foot .lp-brand img { height: 30px; }

/* Gate modal */
.lp-home .gate {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--lp-glass-border);
  border-radius: 22px;
  background: #101827;
  color: var(--lp-ink);
  padding: 22px;
  box-shadow: var(--lp-shadow);
}
.lp-home .gate::backdrop {
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(8px);
}
.lp-home .gate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lp-home .gate-head h2 {
  margin: 0;
  font-family: var(--lp-display);
  font-size: 1.35rem;
}
.lp-home .modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 14px;
}
.lp-home .modes button {
  border: 0;
  background: transparent;
  color: var(--lp-muted);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lp-home .modes button[aria-selected="true"] {
  background: rgba(47, 123, 255, 0.18);
  color: #fff;
}
.lp-home .gate-note,
.lp-home .aside { color: var(--lp-muted); font-size: 0.9rem; }
.lp-home .aside a { color: var(--lp-blue-2); }
.lp-home .fault { color: #f87171; }
.lp-home .field {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  position: relative;
}
.lp-home .field input {
  width: 100%;
  border: 1px solid var(--lp-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--lp-ink);
  border-radius: 12px;
  padding: 12px 42px;
  font: inherit;
}
.lp-home .field-icon,
.lp-home .eye {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--lp-muted);
}
.lp-home .field-icon { left: 4px; }
.lp-home .eye {
  right: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.lp-home .field-icon svg,
.lp-home .eye svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.lp-home .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.lp-home .solid.wide {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  background: linear-gradient(180deg, var(--lp-blue-2), var(--lp-blue));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lp-home .close.icon-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lp-ink);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}
html.modal-open body.lp-home { overflow: hidden; }

@keyframes lp-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lp-float-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lp-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 960px) {
  .lp-nav { display: none; }
  .lp-float { display: none; }
  .lp-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "wide"
      "rates"
      "pay"
      "invoices"
      "api";
  }
  .lp-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .lp-foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-logo,
  .lp-hero h1,
  .lp-hero-lead,
  .lp-hero-actions,
  .lp-float {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
