/* ==========================================================================
   VEND DESIGN SYSTEM & FINTECH STYLES
   Direct @pumpfun creator fees to Venmo users.
   ========================================================================== */

:root {
  --vend-blue: #028bff;
  --vend-blue-dark: #0070d6;
  --vend-blue-hover: #007cf2;
  --vend-blue-soft: #e8f4ff;
  --vend-blue-50: #f4f9ff;
  --vend-navy: #06122c;

  --ink: #0a1124;
  --ink-sec: #475569;
  --ink-ter: #94a3b8;
  
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-tint: #f1f5f9;
  
  --border: #e2e8f0;
  --border-focus: #028bff;
  --border-hover: #cbd5e1;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --error: #ef4444;
  --error-bg: #fef2f2;

  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-sm: 0 1px 2px 0 rgba(10, 17, 36, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 17, 36, 0.07), 0 2px 4px -2px rgba(10, 17, 36, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(10, 17, 36, 0.08), 0 4px 6px -4px rgba(10, 17, 36, 0.05);
  --shadow-blue: 0 8px 24px -4px rgba(2, 139, 255, 0.28);
}

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

html {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   LAYOUT WRAPPERS
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-sm {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   GLOBAL TOP NAVIGATION
   -------------------------------------------------------------------------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(2, 139, 255, 0.25);
  background: var(--vend-blue);
  flex-shrink: 0;
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-sec);
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--vend-blue);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   BUTTONS & CHIPS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13.5px;
  border-radius: 9999px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 9999px;
}

.btn-primary {
  background: var(--vend-blue);
  color: #ffffff;
  border-color: var(--vend-blue);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--vend-blue-dark);
  border-color: var(--vend-blue-dark);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.btn-white {
  background: #ffffff;
  color: var(--vend-blue);
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--panel-tint);
  border-color: var(--border-hover);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--mono);
}

.chip-ca {
  background: var(--vend-blue-soft);
  color: var(--vend-blue-dark);
  border: 1px solid rgba(2, 139, 255, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-ca:hover {
  background: #d6ebff;
  border-color: var(--vend-blue);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* --------------------------------------------------------------------------
   HOMEPAGE HERO (BLUE FINTECH CANVAS WITH HALFTONES)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--vend-blue);
  color: #ffffff;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-halftone-top-left {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 380px;
  height: 380px;
  pointer-events: none;
  opacity: 0.85;
}

.hero-halftone-bot-right {
  position: absolute;
  bottom: -90px;
  right: -70px;
  width: 420px;
  height: 420px;
  pointer-events: none;
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-flow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  max-width: 100%;
  flex-wrap: wrap;
}

.hero-flow-pill span.arrow {
  opacity: 0.7;
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.45;
  color: #e0f2fe;
  max-width: 660px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

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

/* --------------------------------------------------------------------------
   LIVE ACTIVITY TICKER (SECT 2)
   -------------------------------------------------------------------------- */
.activity-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: relative;
  z-index: 10;
}

.activity-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.activity-inner::-webkit-scrollbar {
  display: none;
}

.act-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vend-blue);
  flex-shrink: 0;
}

.act-label::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--vend-blue);
  border-radius: 50%;
}

.act-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-tint);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.act-item:hover {
  border-color: var(--vend-blue);
}

.act-item b {
  color: var(--vend-blue-dark);
}

.act-item span.amt {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--success);
}

/* --------------------------------------------------------------------------
   SECTION CONTAINERS
   -------------------------------------------------------------------------- */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-sub {
  font-size: 15px;
  color: var(--ink-sec);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   CARD GRIDS
   -------------------------------------------------------------------------- */
.grid-tokens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.token-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.token-card:hover {
  border-color: rgba(2, 139, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tc-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.tc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--vend-blue-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.tc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-meta {
  flex: 1;
  min-width: 0;
}

.tc-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-ticker {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--vend-blue-dark);
}

.tc-dest-box {
  background: var(--panel-tint);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.tc-dest-label {
  color: var(--ink-sec);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tc-dest-val {
  font-weight: 700;
  color: var(--vend-blue-dark);
}

.tc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.tc-stat-val {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.tc-stat-lbl {
  font-size: 12px;
  color: var(--ink-sec);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   FINANCIAL LEDGER TABLES
   -------------------------------------------------------------------------- */
.table-wrap, .table-responsive {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-x: auto;
  max-width: 100%;
  display: block;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

table.ledger {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

table.ledger th {
  background: var(--panel-tint);
  padding: 14px 20px;
  font-weight: 700;
  color: var(--ink-sec);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

table.ledger td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.ledger tr:last-child td {
  border-bottom: none;
}

table.ledger tr:hover td {
  background: #fbfdff;
}

.num-cell {
  font-family: var(--mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   HOW IT WORKS 3-STEP FLOW
   -------------------------------------------------------------------------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.how-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--vend-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}

.how-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.how-desc {
  font-size: 14.5px;
  color: var(--ink-sec);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   FORM & LAUNCH STUDIO
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.step-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vend-blue-soft);
  color: var(--vend-blue-dark);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-hint {
  font-size: 12.5px;
  color: var(--ink-ter);
  margin-top: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  transition: all 0.15s ease;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--vend-blue);
  box-shadow: 0 0 0 3px rgba(2, 139, 255, 0.15);
}

.preview-routing-card {
  background: var(--vend-blue-50);
  border: 1px solid rgba(2, 139, 255, 0.25);
  border-radius: 14px;
  padding: 20px;
  margin: 24px 0;
}

.prc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(2, 139, 255, 0.12);
}

.prc-row:last-child {
  border-bottom: none;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer.bot {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  margin-top: auto;
}

.bot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.bot-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-sec);
}

.bot-links a:hover {
  color: var(--vend-blue);
}

.bot-meta {
  font-size: 13px;
  color: var(--ink-ter);
}

/* --------------------------------------------------------------------------
   CTA BANNER BOX
   -------------------------------------------------------------------------- */
.cta-banner-box {
  background: var(--vend-blue);
  border-radius: 20px;
  padding: 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.cta-halftone {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 320px;
  opacity: 0.6;
  pointer-events: none;
}

.cta-text-box {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.cta-banner-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta-banner-lead {
  color: #e0f2fe;
  font-size: 15.5px;
}

.cta-btn-box {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   EMPTY STATES
   -------------------------------------------------------------------------- */
.empty-box {
  text-align: center;
  padding: 48px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--vend-blue-soft);
  color: var(--vend-blue);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 14px;
  color: var(--ink-sec);
  max-width: 420px;
  margin: 0 auto 20px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (390px, 768px, 1024px, 1440px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  .wrap, .wrap-sm {
    padding: 0 16px;
    max-width: 100%;
    overflow-x: hidden;
  }
  .top-in {
    height: 60px;
    gap: 8px;
  }
  .nav-links {
    display: none;
  }
  #navCaChip {
    display: none;
  }
  .top-right {
    gap: 6px;
  }
  .top-right .btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .brand {
    font-size: 19px;
  }
  .hero {
    padding: 48px 0 60px;
  }
  .hero-halftone-top-left {
    width: 200px;
    height: 200px;
    top: -40px;
    left: -40px;
    opacity: 0.5;
  }
  .hero-halftone-bot-right {
    width: 220px;
    height: 220px;
    bottom: -40px;
    right: -40px;
    opacity: 0.5;
  }
  .hero-flow-pill {
    font-size: 11px;
    padding: 6px 10px;
    gap: 6px;
    max-width: 100%;
    line-height: 1.4;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-lead {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .activity-bar {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .activity-inner {
    width: 100%;
    max-width: 100vw;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .grid-tokens {
    grid-template-columns: 1fr;
  }
  .hero-content {
    text-align: center;
  }
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .form-card {
    padding: 20px;
  }
  .cta-banner-box {
    padding: 24px 18px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cta-btn-box .btn {
    width: 100%;
  }
  .bot-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .bot-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}
