/* ==========================================================
   ConnectPay — shared design tokens & base styles
   ========================================================== */

:root {
  /* Brand — Yellow / Black (dark only) */
  --brand-1: #FACC15;          /* yellow-400 primary */
  --brand-2: #EAB308;          /* yellow-500 deep */
  --brand-3: #FDE047;          /* yellow-300 light */
  --brand-ink: #0A0A0A;        /* near-black, used on yellow surfaces */
  --brand-grad: linear-gradient(135deg, #FDE047 0%, #FACC15 45%, #EAB308 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(250, 204, 21, 0.16) 0%, rgba(234, 179, 8, 0.08) 100%);
  --accent-text-grad: linear-gradient(135deg, #FDE047 0%, #FACC15 50%, #EAB308 100%);
  --eyebrow-fg: #FDE047;

  /* Dark surfaces */
  --bg: #0A0A0A;
  --bg-elev: #141414;
  --bg-muted: #1C1C1C;
  --border: #262626;
  --border-strong: #3A3A3A;

  /* Text */
  --text: #FAFAF7;
  --text-muted: #B8B5A8;
  --text-dim: #7A7766;

  /* Status */
  --green: #10B981;
  --amber: #F59E0B;
  --red:   #EF4444;

  /* Radius / shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.25), 0 1px 1px rgba(0,0,0,.20);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.55), 0 2px 6px -2px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px -16px rgba(234,179,8,.32), 0 8px 24px -8px rgba(0,0,0,.55);

  /* Font */
  --f-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01' on, 'cv11' on;
  line-height: 1.55;
  transition: background .25s ease, color .25s ease;
  overflow-x: hidden;
}

<h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code, pre, .mono { font-family: var(--f-mono); }

/* ====================== Layout ====================== */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ====================== Nav — floating pill ====================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0 0;
  background: transparent;
  border-bottom: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav::before {
  /* hairline accent across the top */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(250,204,21,.45) 20%, rgba(250,204,21,.65) 50%, rgba(250,204,21,.45) 80%, transparent 100%);
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 58px;
  padding: 0 8px 0 16px;
  background: rgba(18, 18, 18, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  box-shadow:
    0 10px 32px -12px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  position: relative;
}
.nav-inner::before {
  /* faint yellow gleam on the top edge */
  content: "";
  position: absolute;
  top: -1px; left: 28%; right: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250,204,21,.55), transparent);
  border-radius: 1px;
  pointer-events: none;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding-right: 4px;
}
.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--brand-grad);
  display: grid;
  place-items: center;
  color: var(--brand-ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 0 0 3px rgba(250, 204, 21, 0.10),
    0 6px 18px -4px rgba(234, 179, 8, 0.55);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 50%);
  pointer-events: none;
}
.brand-name {
  color: var(--text);
}
.brand-chip {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  margin-left: 4px;
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
}

/* Divider */
.nav-divider {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.10) 40%, rgba(255,255,255,.10) 60%, transparent);
  flex-shrink: 0;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.nav-links a {
  position: relative;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.nav-links a::after {
  /* hover dot */
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand-1);
  opacity: 0;
  transform: translateX(-50%) translateY(2px);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 0 6px rgba(250, 204, 21, .7);
}
.nav-links a:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-spacer { flex: 1; min-width: 4px; }

/* Status pill */
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.20);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .01em;
  color: #6ee7b7;
  font-weight: 500;
  white-space: nowrap;
}
.nav-status .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
  flex-shrink: 0;
}
.nav-status .pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10B981;
  animation: nav-pulse 2.2s ease-out infinite;
}
@keyframes nav-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 100px;
}
.nav-actions .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--text);
}
.nav-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.nav-actions .btn-primary {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 8px 20px -8px rgba(234, 179, 8, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

@media (max-width: 1100px) {
  .nav-status { display: none; }
}
.nav-cta-short { display: none; }
.nav-actions .nav-cta-mobile { display: none; }

@media (max-width: 920px) {
  .nav-actions .nav-cta-desktop { display: none; }
  .nav-actions .nav-cta-mobile { display: inline-flex; }
  .nav-links, .brand-chip { display: none; }
  .nav-divider { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-actions .btn-ghost,
  .nav-actions .btn-soft { display: none; }
  .nav-actions .btn-primary { padding: 7px 12px; font-size: 12.5px; }
}
.brand-logo-img {
  height: 28px;
  width: auto;
  max-width: min(150px, 44vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 1;
}

@media (max-width: 640px) {
  .nav { padding-top: 8px; }
  .nav-inner {
    padding: 0 6px 0 10px;
    gap: 6px;
    height: 48px;
    min-height: 48px;
  }
  .brand-logo-img {
    height: 24px;
    max-width: min(120px, 38vw);
  }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-primary svg { display: none; }
  .nav-actions .btn-primary {
    padding: 6px 11px;
    font-size: 12px;
    white-space: nowrap;
  }
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
  .nav-menu-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
}

/* Hamburger button */
.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  transition: background .15s ease, border-color .15s ease;
}
.nav-menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.nav-menu-btn span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile slide-down panel */
.nav-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-mobile a {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color .15s ease, background .15s ease;
}
.nav-mobile a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.nav-mobile-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 4px;
}
.nav-mobile-cta {
  background: var(--brand-grad);
  color: var(--brand-ink) !important;
  font-weight: 600;
  justify-content: center !important;
  margin-top: 4px;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px -8px rgba(234, 179, 8, 0.55);
}

/* ====================== Buttons ====================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14.5px;
  font-family: var(--f-body);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-grad);
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(234,179,8,.60), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover {
  box-shadow: 0 14px 28px -10px rgba(234,179,8,.70), inset 0 1px 0 rgba(255,255,255,.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-muted);
}

.btn-soft {
  background: var(--bg-muted);
  color: var(--text);
}
.btn-soft:hover { background: color-mix(in srgb, var(--bg-muted) 70%, var(--border-strong)); }

.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg-muted); color: var(--text); }

/* ====================== Section base ====================== */

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 72px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-grad-soft);
  color: var(--eyebrow-fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid color-mix(in srgb, var(--brand-1) 35%, transparent);
}

.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand-1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-1) 28%, transparent);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 16px 0 14px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ====================== Footer ====================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  margin-top: 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
.footer-col h4 {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.footer-col a:hover { color: var(--text); }
.footer-blurb {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
  margin-top: 14px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ====================== Utility ====================== */

.gradient-text {
  background: var(--accent-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

::selection { background: var(--brand-1); color: var(--brand-ink); }
