:root {
  --coffee-1: #1a120f;
  --coffee-2: #2a1b16;
  --coffee-3: #3b241d;
  --coffee-4: #5d4033;
  --gold: #d2a45e;
  --gold-soft: #f0d6ab;
  --text: #f7f1eb;
  --muted: rgba(255,255,255,0.74);
  --dark-text: #2b1d18;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  --shadow-heavy: 0 28px 70px rgba(0, 0, 0, 0.34);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(210,164,94,0.08), transparent 20%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 18%),
    linear-gradient(180deg, #130d0b 0%, #241712 28%, #3b241d 62%, #2a1b16 100%);
  min-height: 100vh;
  position: relative;
}

img {
  width: 100%;
  display: block;
}

/* PARTICLES */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.stars span {
  position: absolute;
  top: -10%;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  box-shadow:
    0 0 6px rgba(255,255,255,0.9),
    0 0 12px rgba(255,255,255,0.45);
  animation: starMove linear infinite;
  opacity: 0.95;
}

.stars span:nth-child(1)  { left: 4%;  animation-duration: 10s; animation-delay: 0s;   width: 4px; height: 4px; }
.stars span:nth-child(2)  { left: 10%; animation-duration: 13s; animation-delay: 1s;   width: 6px; height: 6px; }
.stars span:nth-child(3)  { left: 16%; animation-duration: 11s; animation-delay: 2s;   width: 5px; height: 5px; }
.stars span:nth-child(4)  { left: 22%; animation-duration: 14s; animation-delay: 0.5s; width: 7px; height: 7px; }
.stars span:nth-child(5)  { left: 29%; animation-duration: 12s; animation-delay: 1.5s; width: 5px; height: 5px; }
.stars span:nth-child(6)  { left: 36%; animation-duration: 15s; animation-delay: 2.5s; width: 6px; height: 6px; }
.stars span:nth-child(7)  { left: 43%; animation-duration: 11s; animation-delay: 0.7s; width: 4px; height: 4px; }
.stars span:nth-child(8)  { left: 51%; animation-duration: 14s; animation-delay: 1.7s; width: 6px; height: 6px; }
.stars span:nth-child(9)  { left: 58%; animation-duration: 10s; animation-delay: 2.4s; width: 5px; height: 5px; }
.stars span:nth-child(10) { left: 65%; animation-duration: 13s; animation-delay: 1.1s; width: 6px; height: 6px; }
.stars span:nth-child(11) { left: 72%; animation-duration: 12s; animation-delay: 0.4s; width: 5px; height: 5px; }
.stars span:nth-child(12) { left: 78%; animation-duration: 16s; animation-delay: 2.2s; width: 7px; height: 7px; }
.stars span:nth-child(13) { left: 84%; animation-duration: 11s; animation-delay: 0.8s; width: 4px; height: 4px; }
.stars span:nth-child(14) { left: 89%; animation-duration: 14s; animation-delay: 1.6s; width: 6px; height: 6px; }
.stars span:nth-child(15) { left: 94%; animation-duration: 15s; animation-delay: 2.8s; width: 5px; height: 5px; }
.stars span:nth-child(16) { left: 8%;  animation-duration: 17s; animation-delay: 3s;   width: 3px; height: 3px; }
.stars span:nth-child(17) { left: 33%; animation-duration: 16s; animation-delay: 3.4s; width: 4px; height: 4px; }
.stars span:nth-child(18) { left: 55%; animation-duration: 18s; animation-delay: 3.8s; width: 3px; height: 3px; }
.stars span:nth-child(19) { left: 74%; animation-duration: 17s; animation-delay: 4.2s; width: 4px; height: 4px; }
.stars span:nth-child(20) { left: 92%; animation-duration: 19s; animation-delay: 4.6s; width: 3px; height: 3px; }

@keyframes starMove {
  0% {
    transform: translateY(-12vh) translateX(0) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(110vh) translateX(24px) scale(1.02);
    opacity: 0.18;
  }
}

/* NAVBAR */
.topbar {
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 16px;
  z-index: 50;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--coffee-3), var(--coffee-4));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}

.brand-tag {
  font-size: 0.78rem;
  opacity: 0.72;
}

#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.navbar a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
  transform: translateY(-2px);
}

/* PAGE */
.payment-page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title.left {
  text-align: left;
}

.section-title p {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

/* HERO */
.payment-hero {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  margin-top: 8px;
  border-radius: 34px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 54px 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    linear-gradient(135deg, #1a120f, #2f1f19 55%, #3d281f);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-heavy);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(210,164,94,0.12), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.06), transparent 22%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  animation: floatGlow 8s ease-in-out infinite;
}

.glow-1 {
  width: 220px;
  height: 220px;
  background: rgba(210,164,94,0.18);
  top: 28px;
  left: 30px;
}

.glow-2 {
  width: 260px;
  height: 260px;
  background: rgba(255,255,255,0.07);
  bottom: 20px;
  right: 30px;
  animation-delay: 1s;
}

.glow-3 {
  width: 160px;
  height: 160px;
  background: rgba(210,164,94,0.12);
  top: 45%;
  left: 52%;
  animation-delay: 2s;
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.hero-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1.04;
  margin-bottom: 18px;
}

.hero-desc {
  color: var(--muted);
  line-height: 1.95;
  max-width: 660px;
  margin-bottom: 22px;
}

.hero-tags,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.hero-stats {
  margin-top: 18px;
}

.stat-chip {
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-chip strong {
  display: block;
  color: var(--gold-soft);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.stat-chip span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* VISUAL */
.payment-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 470px;
  min-height: 540px;
}

.glass-card,
.mock-device {
  position: absolute;
  border-radius: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.payment-card-main {
  inset: 0 auto auto 0;
  width: 100%;
  padding: 28px;
  animation: floatCard 4.4s ease-in-out infinite;
}

.payment-card-mini {
  right: -10px;
  top: 58%;
  width: 220px;
  padding: 20px;
  animation: floatCard 4.4s ease-in-out infinite 0.8s;
}

.mock-device {
  right: 18px;
  top: 160px;
  width: 220px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
  animation: floatCard 5s ease-in-out infinite 1.3s;
}

.floating-badge {
  position: absolute;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.badge-1 {
  left: -6px;
  top: 32px;
}

.badge-2 {
  right: -8px;
  top: 104px;
}

.payment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-label {
  color: var(--gold-soft);
  letter-spacing: 2px;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.payment-card-main h3,
.payment-card-mini h4 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1.05;
}

.payment-text,
.processor-status {
  color: var(--muted);
  line-height: 1.85;
  margin-top: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: #83ffb1;
  box-shadow: 0 0 16px rgba(131,255,177,0.55);
}

.payment-bar {
  height: 12px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
}

.payment-bar-fill {
  height: 100%;
  width: 65%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #f0d6ab, #83ffb1);
  animation: barFlow 2.5s ease-in-out infinite alternate;
}

.payment-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.payment-icons div {
  padding: 14px 8px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,0.08);
  color: var(--gold-soft);
  font-weight: 700;
}

.processor {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.processor-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(210,164,94,0.45), rgba(255,255,255,0.08));
  background-size: 200% 100%;
  animation: shimmer 2.2s linear infinite;
}

.mock-device-top {
  padding: 10px 10px 14px;
  text-align: center;
  color: var(--gold-soft);
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.mock-screen {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf6, #f1e4d8);
  padding: 16px;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  top: 20px;
  background: rgba(131,255,177,0.7);
  box-shadow: 0 0 16px rgba(131,255,177,0.5);
  animation: scanMove 2.4s ease-in-out infinite;
}

.qr-box {
  width: 150px;
  height: 150px;
  margin: 12px auto 16px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.qr-pattern {
  width: 98px;
  height: 98px;
  background:
    linear-gradient(90deg, #000 10px, transparent 10px) 0 0/20px 20px,
    linear-gradient(#000 10px, transparent 10px) 0 0/20px 20px;
  opacity: 0.85;
}

.device-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.device-lines span {
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.1);
}

.pay-btn {
  width: 100%;
  border: none;
  padding: 13px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #e4bf86);
  color: var(--dark-text);
  font-weight: 700;
}

/* MARQUEE */
.payment-marquee-wrap {
  margin-top: 24px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.payment-marquee {
  display: flex;
  width: max-content;
  animation: marqueeMove 22s linear infinite;
}

.payment-marquee span {
  white-space: nowrap;
  padding: 16px 20px;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 1px;
}

/* METHODS */
.payment-methods,
.payment-process,
.payment-showcase {
  margin-top: 30px;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.method-card,
.process-step,
.showcase-left,
.showcase-right,
.payment-cta {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.method-card {
  padding: 26px;
  border-radius: 26px;
  transition: 0.35s ease;
}

.method-card:hover,
.process-step:hover,
.showcase-left:hover,
.showcase-right:hover,
.payment-cta:hover {
  transform: translateY(-8px);
}

.method-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(210,164,94,0.25), rgba(255,255,255,0.08));
  margin-bottom: 16px;
}

.method-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.method-card p {
  color: var(--muted);
  line-height: 1.85;
}

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-step {
  padding: 26px;
  border-radius: 26px;
  text-align: center;
  transition: 0.35s ease;
}

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(210,164,94,0.16);
  color: var(--gold-soft);
  font-weight: 700;
  margin-bottom: 14px;
}

.process-step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--muted);
  line-height: 1.8;
}

/* SHOWCASE */
.payment-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.showcase-left,
.showcase-right {
  padding: 30px;
  border-radius: 30px;
  transition: 0.35s ease;
}

.feature-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
}

.feature-item span {
  color: var(--gold-soft);
  font-weight: 700;
}

.feature-item p {
  color: var(--muted);
  line-height: 1.8;
}

.showcase-right {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.secure-orb {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
}

.secure-core {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210,164,94,0.95), rgba(210,164,94,0.25));
  box-shadow: 0 0 28px rgba(210,164,94,0.28);
}

.secure-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
}

.ring-a {
  width: 130px;
  height: 130px;
  animation: spinSlow 10s linear infinite;
}

.ring-b {
  width: 170px;
  height: 170px;
  border-style: dashed;
  animation: spinSlowReverse 16s linear infinite;
}

.ring-c {
  width: 220px;
  height: 220px;
  animation: pulseRing 2.6s ease-in-out infinite;
}

.shield-icon {
  position: relative;
  z-index: 2;
  font-size: 2.4rem;
}

.showcase-right h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.showcase-right p {
  color: var(--muted);
  line-height: 1.9;
  max-width: 420px;
}

/* CTA */
.payment-cta {
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 52px 28px;
  text-align: center;
}

.payment-cta-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(210,164,94,0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
}

.payment-cta-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.cta-mini {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.payment-cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

.payment-cta-content p {
  color: var(--muted);
  line-height: 1.9;
}

/* FOOTER */
.footer {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto;
  padding: 22px;
  text-align: center;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

/* ANIMATIONS */
.card-animate {
  animation: fadeUp 1s ease both;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-16px) scale(1.04);
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes barFlow {
  from { width: 48%; }
  to { width: 92%; }
}

@keyframes scanMove {
  0% { top: 16px; opacity: 0; }
  15% { opacity: 1; }
  100% { top: calc(100% - 16px); opacity: 0; }
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinSlowReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseRing {
  0%, 100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.18;
  }
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .methods-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .payment-showcase,
  .payment-hero {
    grid-template-columns: 1fr;
  }

  .payment-visual {
    min-height: 620px;
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 99px;
  }

  .navbar {
    width: 100%;
    display: none;
    flex-direction: column;
  }

  #nav-toggle:checked ~ .navbar {
    display: flex;
  }

  .payment-hero,
  .showcase-left,
  .showcase-right,
  .payment-cta {
    padding-left: 22px;
    padding-right: 22px;
  }

  .payment-card-mini {
    right: 0;
  }

  .mock-device {
    right: 0;
  }
}

@media (max-width: 600px) {
  .methods-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-left h2,
  .section-title h2,
  .payment-cta-content h2 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
  }

  .payment-icons {
    grid-template-columns: 1fr 1fr;
  }

  .payment-visual {
    min-height: 700px;
  }

  .payment-card-main,
  .payment-card-mini,
  .mock-device {
    position: relative;
    inset: auto;
    right: auto;
    top: auto;
    width: 100%;
    margin-bottom: 16px;
  }

  .card-stack {
    max-width: 100%;
    min-height: auto;
  }

  .floating-badge {
    display: none;
  }
}