/* =====================================================================
   ECLIPSE GATEWAY — CYBER CRIMSON THEME (ESCLIPSTEAM AUTH FULL SPEC)
   Palette: #060609 (Canvas) | #0d0d16 (Glass Card) | #ff2449 (Neon Crimson)
   Accents: #be123c (Dark Crimson) | #22c55e (Status Green) | #ffffff (Text)
===================================================================== */

:root {
  --ink: #ffffff;
  --ink-2: #0d0d16;
  --paper: #060609;
  --white: #ffffff;
  --lime: #ff2449;
  --lime-dark: #be123c;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --dark-line: rgba(255, 255, 255, 0.06);
  --red: #ff2449;
  --accent: #ff2449;
  --accent-dark: #be123c;
  --accent-glow: rgba(255, 36, 73, 0.45);
  --accent-subtle: rgba(255, 36, 73, 0.12);
  --surface: #0d0d16;
  --surface-2: #13131f;
  --border-glass: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  background: #060609;
}

body {
  margin: 0;
  color: #e2e8f0;
  background: #060609;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

/* ================= NAV ================= */
.nav {
  height: 90px;
  padding-top: 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--white);
  display: flex;
  align-items: center;
  background: rgba(6, 6, 9, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: height 0.3s ease, padding 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.nav-sticky {
  height: 70px;
  padding-top: 0;
  background: rgba(6, 6, 9, 0.88);
  border-bottom: 1px solid rgba(255, 36, 73, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 36, 73, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.4px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 36, 73, 0.5);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #ff2449;
  background: rgba(255, 36, 73, 0.12);
  box-shadow: 0 0 14px rgba(255, 36, 73, 0.3);
}

.links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.links a:hover {
  color: #ff2449;
  text-shadow: 0 0 10px rgba(255, 36, 73, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
}

.nav-actions .login {
  color: #cbd5e1;
  transition: color 0.2s;
}

.nav-actions .login:hover {
  color: #ff2449;
}

.nav-cta,
.primary {
  background: linear-gradient(135deg, #ff2449 0%, #be123c 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 9px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 36, 73, 0.6) !important;
  box-shadow: 0 0 20px rgba(255, 36, 73, 0.4) !important;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  cursor: pointer;
}

.nav-cta:hover,
.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 0 28px rgba(255, 36, 73, 0.65) !important;
}

.menu {
  display: none;
  padding: 8px;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

/* ================= HERO ================= */
.hero {
  min-height: 760px;
  padding: 154px 0 84px;
  color: var(--white);
  background: #060609;
  overflow: hidden;
  position: relative;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 36, 73, .4) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(255, 36, 73, .4) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
}

.hero:after {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 36, 73, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 36, 73, 0.4);
  color: #ff8598;
  background: rgba(255, 36, 73, 0.08);
  box-shadow: 0 0 16px rgba(255, 36, 73, 0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.hero-fampay-mark {
  width: 17px;
  height: 17px;
  fill: #ff2449;
}

.pulse {
  width: 7px;
  height: 7px;
  background: #ff2449;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 36, 73, 0.25);
}

h1 {
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -2.8px;
  margin: 22px 0;
  max-width: 650px;
  color: #ffffff;
  font-weight: 800;
}

h1 em {
  color: #ff2449;
  font-style: normal;
  text-shadow: 0 0 24px rgba(255, 36, 73, 0.45);
}

.hero-copy {
  max-width: 515px;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 31px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}

.secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.secondary:hover {
  background: rgba(255, 36, 73, 0.12);
  border-color: rgba(255, 36, 73, 0.4);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 36, 73, 0.2);
}

.proof {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  color: #94a3b8;
  font-size: 12px;
  flex-wrap: wrap;
}

.proof span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.proof b {
  color: #ff2449;
  font-size: 14px;
}

/* ================= PRODUCT PREVIEW CARD (HERO) ================= */
.product {
  background: rgba(13, 13, 22, 0.94);
  border: 1px solid rgba(255, 36, 73, 0.35);
  border-radius: 20px;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 36, 73, 0.25);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff2449, transparent);
}

.product-head {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  background: rgba(6, 6, 9, 0.6);
}

.product-head span {
  color: #94a3b8;
  font-weight: 500;
}

.product-head span:last-child {
  position: absolute;
  right: 18px;
  color: #4ade80;
  font-size: 10px;
  letter-spacing: 1px;
}

.dots {
  display: flex;
  gap: 6px;
  position: absolute;
  left: 18px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.dots i:first-child {
  background: #ff2449;
  box-shadow: 0 0 8px rgba(255, 36, 73, 0.6);
}

.product-main {
  padding: 24px;
}

.gateway-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.gateway-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 36, 73, 0.15);
  border: 1px solid rgba(255, 36, 73, 0.4);
  color: #ff2449;
}

.gateway-mark svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.gateway-brand b {
  display: block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -.3px;
  color: #ffffff;
}

.gateway-brand small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.product-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #94a3b8;
}

.money {
  margin: 6px 0 20px;
  font-size: 38px;
  letter-spacing: -1.5px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.money small {
  color: #64748b;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
}

.pay-card {
  background: #09090f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #cbd5e1;
}

.pay-row:last-child {
  border: 0;
}

.status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #4ade80;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .4px;
}

.status i {
  height: 6px;
  width: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
}

.flow {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 25px 1fr 25px 1fr;
  align-items: center;
  font-size: 10px;
  text-align: center;
  gap: 4px;
}

.flow div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 9px 4px;
  color: #94a3b8;
  font-weight: 700;
}

.flow div.active {
  background: rgba(255, 36, 73, 0.15);
  border-color: rgba(255, 36, 73, 0.5);
  color: #ff2449;
  box-shadow: 0 0 12px rgba(255, 36, 73, 0.3);
}

.flow span {
  color: #64748b;
}

.hero-note {
  position: absolute;
  right: -16px;
  bottom: -20px;
  background: linear-gradient(135deg, #ff2449 0%, #be123c 100%);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  transform: rotate(-4deg);
  box-shadow: 0 10px 25px rgba(255, 36, 73, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ================= TICKER ================= */
.ticker {
  background: #0d0d16;
  border-top: 1px solid rgba(255, 36, 73, 0.25);
  border-bottom: 1px solid rgba(255, 36, 73, 0.25);
  color: #ff2449;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 14px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.ticker-track span:after {
  content: "✦";
  margin-left: 34px;
  color: rgba(255, 36, 73, 0.5);
}

/* ================= SECTIONS COMMON ================= */
.section {
  padding: 100px 0;
  background: #060609;
  color: #e2e8f0;
}

.section-dark {
  background: #060609;
  color: #ffffff;
}

.kicker {
  color: #ff2449;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 36, 73, 0.3);
}

.section-dark .kicker {
  color: #ff2449;
}

.section h2 {
  max-width: 670px;
  margin: 14px 0 0;
  letter-spacing: -1.8px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.1;
  color: #ffffff;
  font-weight: 800;
}

.section-intro {
  max-width: 520px;
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.75;
  margin: 18px 0 0;
}

.section-dark .section-intro {
  color: #94a3b8;
}

/* ================= STEPS ================= */
.steps {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.step {
  padding: 32px 30px 0 0;
  min-height: 230px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: 25px;
}

.step:last-child {
  border: 0;
}

.step-no {
  font-size: 13px;
  color: #ff2449;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.step h3 {
  font-size: 20px;
  letter-spacing: -.6px;
  margin: 36px 0 10px;
  color: #ffffff;
}

.step p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0;
  max-width: 290px;
}

/* ================= API FLOW CARD ================= */
.flow-intro {
  display: grid;
  grid-template-columns: 1fr minmax(480px, 560px);
  gap: 55px;
  align-items: end;
}

.api-flow-card {
  background: rgba(13, 13, 22, 0.95);
  border: 1px solid rgba(255, 36, 73, 0.35);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 36, 73, 0.15);
}

.api-flow-card > b {
  display: block;
  color: #cbd5e1;
  font: 11px 'JetBrains Mono', monospace;
  margin-bottom: 16px;
  letter-spacing: .5px;
}

.api-flow-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-flow-node {
  flex: 1;
  background: #09090f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.api-flow-node small {
  display: block;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 500;
  margin-top: 4px;
}

.api-flow-arrow {
  color: #ff2449;
  font-weight: 700;
  font-size: 16px;
}

.api-flow-result {
  margin-top: 14px;
  padding: 12px 14px;
  background: #060609;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #4ade80;
  font: 11px/1.6 'JetBrains Mono', monospace;
}

/* ================= INTEGRATION CODE BLOCK ================= */
.integration {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 65px;
  align-items: center;
}

.code {
  background: #09090f;
  border: 1px solid rgba(255, 36, 73, 0.3);
  border-radius: 16px;
  margin-top: 32px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 36, 73, 0.12);
}

.code-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font: 12px 'JetBrains Mono', monospace;
  background: rgba(13, 13, 22, 0.9);
}

.code pre {
  padding: 22px;
  margin: 0;
  color: #e2e8f0;
  overflow: auto;
  font: 13px/1.8 'JetBrains Mono', monospace;
}

.code .green {
  color: #4ade80;
}

.code .dim {
  color: #64748b;
}

.code .orange {
  color: #ff2449;
}

.feature-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
}

.feature {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-num {
  font: 13px 'JetBrains Mono', monospace;
  color: #ff2449;
  font-weight: 800;
}

.feature h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.3px;
  color: #ffffff;
}

.feature p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.arrow {
  color: #ff2449;
  font-size: 20px;
}

/* ================= USE CASES ================= */
.use-cases {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  margin-top: 56px;
}

.case-big {
  background: rgba(13, 13, 22, 0.9);
  border: 1px solid rgba(255, 36, 73, 0.28);
  border-radius: 20px;
  padding: 38px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.case-big .mini {
  background: rgba(255, 36, 73, 0.12);
  border: 1px solid rgba(255, 36, 73, 0.4);
  border-radius: 8px;
  color: #ff2449;
  padding: 8px 14px;
  width: max-content;
  font: 12px 'JetBrains Mono', monospace;
  font-weight: 700;
}

.case-big h3,
.case-small h3 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.8px;
  margin: 0;
  max-width: 370px;
  color: #ffffff;
}

.case-small {
  padding: 32px;
  background: #0d0d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: var(--white);
  min-height: 145px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.case-small + .case-small {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(255, 36, 73, 0.15) 0%, rgba(13, 13, 22, 0.9) 100%);
  border-color: rgba(255, 36, 73, 0.45);
  box-shadow: 0 10px 30px rgba(255, 36, 73, 0.15);
}

.case-small h3 {
  font-size: 20px;
}

.case-small p {
  margin: 8px 0 0;
  max-width: 390px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.65;
}

.case-small + .case-small p {
  color: #cbd5e1;
}

/* ================= CLOSING CTA ================= */
.closing {
  background: transparent;
  padding: 80px 0 120px;
}

.closing-grid {
  background: rgba(13, 13, 22, 0.95);
  border: 1px solid rgba(255, 36, 73, 0.4);
  border-radius: 28px;
  padding: 60px 70px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 36, 73, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.closing-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff2449, transparent);
}

.closing h2 {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -2px;
  margin: 0;
  font-weight: 800;
}

.closing p {
  color: #94a3b8;
  font-size: 16px;
  margin-top: 16px;
  max-width: 480px;
  line-height: 1.7;
}

.closing .primary {
  background: linear-gradient(135deg, #ff2449 0%, #be123c 100%);
  color: #fff;
  border-radius: 12px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(255, 36, 73, 0.6);
  box-shadow: 0 0 24px rgba(255, 36, 73, 0.45);
}

.closing .primary:hover {
  box-shadow: 0 0 32px rgba(255, 36, 73, 0.7);
  filter: brightness(1.1);
}

/* ================= CHECKOUT SHOWCASE ================= */
.checkout-showcase {
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 420px);
  gap: 60px;
  align-items: center;
}

.checkout-side {
  display: grid;
  gap: 16px;
  align-content: center;
}

.checkout-card {
  background: #0d0d16;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.checkout-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.7px;
  color: #ffffff;
}

.checkout-card p {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}

.checkout-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-metric {
  background: #0d0d16;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.checkout-metric b {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.checkout-metric span {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.7px;
  color: #ff2449;
  font-family: 'JetBrains Mono', monospace;
}

.checkout-panel {
  background: #0d0d16;
  border: 1px solid rgba(255, 36, 73, 0.35);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 28px rgba(255, 36, 73, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.checkout-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-preview {
  margin-top: 25px;
  background: #0d0d16;
  border: 1px solid rgba(255, 36, 73, 0.3);
  border-radius: 20px;
  width: min(100%, 280px);
  min-height: 255px;
  padding: 27px 18px;
  text-align: center;
  align-self: end;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 36, 73, 0.15);
}

.checkout-check {
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2449 0%, #be123c 100%);
  color: #fff;
  font-size: 25px;
  box-shadow: 0 0 20px rgba(255, 36, 73, 0.5);
}

.checkout-preview span {
  display: inline-block;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 99px;
  padding: 4px 10px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
}

.checkout-preview b {
  display: block;
  margin: 15px 0 8px;
  font-size: 22px;
  letter-spacing: -.8px;
  color: #ffffff;
}

.checkout-preview p {
  margin: 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.checkout-preview small {
  display: block;
  margin-top: 22px;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
}

.checkout-preview strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
  letter-spacing: -1px;
  color: #ff2449;
  font-family: 'JetBrains Mono', monospace;
}

/* ================= FOOTER ================= */
footer {
  background: #060609;
  color: #94a3b8;
  padding: 65px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-brand p {
  font-size: 13px;
  max-width: 270px;
  line-height: 1.7;
  color: #94a3b8;
}

.foot-col b {
  color: var(--white);
  font-size: 12px;
  display: block;
  margin-bottom: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.foot-col a {
  display: block;
  font-size: 12px;
  margin: 10px 0;
  color: #94a3b8;
}

.foot-col a:hover {
  color: #ff2449;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  font-size: 11px;
  color: #64748b;
}

.footer-end {
  background: #060609;
  color: #94a3b8;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-end-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-end p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.footer-end a {
  color: #ff2449;
  font-size: 12px;
  font-weight: 700;
}

.fampay-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 800;
}

.fampay-wordmark svg {
  width: 21px;
  height: 21px;
  fill: #ff2449;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #ff2449 0%, #be123c 100%);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 36, 73, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 99;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(255, 36, 73, 0.75);
}

/* Container locking */
.nav > .shell {
  width: calc(100% - 48px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ================= RESPONSIVE ================= */
@media(max-width:850px) {
  .shell {
    width: min(100% - 36px, 650px)
  }

  .links,
  .nav-actions {
    display: none
  }

  .menu {
    display: block
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    z-index: 104;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: min(86vw, 340px);
    padding: 84px 22px 24px;
    flex-direction: column;
    gap: 5px;
    background: #09090f;
    color: #fff;
    border-right: 1px solid rgba(255, 36, 73, 0.3);
    box-shadow: 16px 0 40px rgba(0, 0, 0, .8);
    overflow-y: auto;
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, visibility 0s linear .28s;
  }

  .mobile-nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .28s ease;
  }

  .mobile-nav a {
    padding: 13px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-actions {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
  }

  .mobile-nav .mobile-menu-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-nav .mobile-register {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .mobile-nav .mobile-login {
    color: #fff;
    background: linear-gradient(135deg, #ff2449 0%, #be123c 100%);
    border: 1px solid rgba(255, 36, 73, 0.6) !important;
    box-shadow: 0 0 20px rgba(255, 36, 73, 0.4);
  }

  .mobile-overlay {
    display: block;
    position: fixed;
    z-index: 103;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(4px);
    transition: opacity .28s ease;
  }

  .mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 120px;
    min-height: auto
  }

  .hero-grid,
  .integration,
  .use-cases,
  .flow-intro,
  .checkout-showcase {
    grid-template-columns: 1fr !important;
    gap: 48px
  }

  .api-flow-card {
    max-width: 500px
  }

  .hero-visual {
    max-width: 540px
  }

  .steps {
    grid-template-columns: 1fr
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
    padding: 27px 0;
    min-height: 0
  }

  .step h3 {
    margin-top: 20px
  }

  .closing-grid {
    align-items: start;
    flex-direction: column;
    padding: 40px 30px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr
  }

  .foot-brand {
    grid-column: 1/-1
  }
}

@media(max-width:500px) {
  .shell {
    width: calc(100% - 32px)
  }

  .nav {
    height: 64px
  }

  .hero {
    padding: 106px 0 63px
  }

  .hero-note {
    right: -6px;
    bottom: -18px;
    transform: rotate(-3deg);
    z-index: 5;
  }

  .product-main {
    padding: 16px
  }

  .money {
    font-size: 30px
  }

  .proof {
    gap: 10px 15px
  }

  .section {
    padding: 75px 0
  }

  .use-cases {
    margin-top: 36px
  }

  .case-big {
    padding: 25px;
    min-height: 260px
  }

  .case-small {
    padding: 25px
  }

  .foot-grid {
    grid-template-columns: 1fr
  }

  .legal {
    flex-direction: column
  }

  .ticker-track {
    padding: 12px 0
  }

  .flow {
    grid-template-columns: 1fr 16px 1fr 16px 1fr
  }
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-fade-up,
.anim-fade-in,
.anim-slide-left,
.anim-slide-right {
  opacity: 0;
  will-change: opacity, transform;
}
.anim-fade-up.visible     { animation: fadeUp .65s cubic-bezier(.22,1,.36,1) forwards; }
.anim-fade-in.visible     { animation: fadeIn .7s ease forwards; }
.anim-slide-left.visible  { animation: slideInLeft .65s cubic-bezier(.22,1,.36,1) forwards; }
.anim-slide-right.visible { animation: slideInRight .65s cubic-bezier(.22,1,.36,1) forwards; }

.anim-stagger > *       { opacity: 0; will-change: opacity, transform; }
.anim-stagger.visible > *:nth-child(1) { animation: fadeUp .6s .05s cubic-bezier(.22,1,.36,1) forwards; }
.anim-stagger.visible > *:nth-child(2) { animation: fadeUp .6s .15s cubic-bezier(.22,1,.36,1) forwards; }
.anim-stagger.visible > *:nth-child(3) { animation: fadeUp .6s .25s cubic-bezier(.22,1,.36,1) forwards; }
.anim-stagger.visible > *:nth-child(4) { animation: fadeUp .6s .35s cubic-bezier(.22,1,.36,1) forwards; }
.anim-stagger.visible > *:nth-child(5) { animation: fadeUp .6s .45s cubic-bezier(.22,1,.36,1) forwards; }
.anim-stagger.visible > *:nth-child(6) { animation: fadeUp .6s .55s cubic-bezier(.22,1,.36,1) forwards; }

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(60px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(0.4deg); }
  66%       { transform: translateY(-4px) rotate(-0.3deg); }
}
@keyframes heroNoteIn {
  from { opacity: 0; transform: rotate(-5deg) scale(0.7) translateY(12px); }
  to   { opacity: 1; transform: rotate(-5deg) scale(1) translateY(0); }
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 36, 73, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(255, 36, 73, 0); }
}
@keyframes glowDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.6); }
}

.hero-eyebrow-wrap { opacity: 0; animation: heroSlideUp .6s .1s cubic-bezier(.22,1,.36,1) forwards; }
.hero-h1-wrap      { opacity: 0; animation: heroSlideUp .7s .22s cubic-bezier(.22,1,.36,1) forwards; }
.hero-copy-wrap    { opacity: 0; animation: heroSlideUp .65s .36s cubic-bezier(.22,1,.36,1) forwards; }
.hero-actions-wrap { opacity: 0; animation: heroSlideUp .65s .48s cubic-bezier(.22,1,.36,1) forwards; }
.hero-proof-wrap   { opacity: 0; animation: heroSlideUp .6s .62s cubic-bezier(.22,1,.36,1) forwards; }

.hero-card-wrap {
  opacity: 0;
  animation:
    heroSlideRight .8s .3s cubic-bezier(.22,1,.36,1) forwards,
    heroFloat 6s 1.2s ease-in-out infinite;
}

.hero-note {
  opacity: 0;
  animation: heroNoteIn .5s .95s cubic-bezier(.34,1.56,.64,1) forwards;
}

.status {
  animation: statusPulse 2.2s 1.4s ease-in-out infinite;
}

.status i {
  animation: glowDot 1.5s 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .anim-fade-up, .anim-fade-in, .anim-slide-left, .anim-slide-right,
  .anim-stagger > *, .hero-eyebrow-wrap, .hero-h1-wrap, .hero-copy-wrap,
  .hero-actions-wrap, .hero-proof-wrap, .hero-card-wrap,
  .hero-note { opacity: 1 !important; animation: none !important; }
}
