/* ============================================================
   Payvement — payvement.com
   Palette derived from the neon-P logo.
   ============================================================ */

:root {
  --bg:        #080808;
  --bg-2:      #0d0f0d;
  --surface:   #101410;
  --surface-2: #141a14;
  --line:      rgba(187, 255, 197, 0.10);
  --line-2:    rgba(187, 255, 197, 0.18);

  --neon:      #bbffc5;   /* highlight / logo core */
  --green:     #39d34c;   /* primary accent */
  --green-dim: #0e4828;   /* deep green */

  --text:      #eef3ee;
  --text-mut:  #98a598;
  --text-dim:  #6c766c;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.accent { color: var(--neon); }

/* ---------- ambient background ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 78% -10%, rgba(57, 211, 76, 0.14), transparent 60%),
    radial-gradient(50vw 50vw at 0% 40%, rgba(14, 72, 40, 0.30), transparent 60%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px;
  object-fit: contain;
  mix-blend-mode: screen;           /* drops the logo's black square, keeps the glow */
  filter: drop-shadow(0 0 8px rgba(57, 211, 76, 0.5));
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.brand:hover .brand-mark {
  filter: drop-shadow(0 0 16px rgba(187, 255, 197, 0.8));
  transform: scale(1.05);
}
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.nav a { color: var(--text-mut); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--neon) !important;
  border: 1px solid var(--line-2);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.25s var(--ease), border-color 0.25s;
}
.nav-cta:hover { background: rgba(57, 211, 76, 0.10); border-color: var(--green); }
@media (max-width: 560px) { .nav a:not(.nav-cta) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.25s;
}
.btn-primary {
  background: var(--green);
  color: #04180a;
  font-weight: 600;
  box-shadow: 0 0 0 rgba(57, 211, 76, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(57, 211, 76, 0.35);
  background: var(--neon);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--green); background: rgba(57, 211, 76, 0.06); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(56px, 10vw, 118px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 52ch; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  color: var(--green);
  margin-bottom: 20px;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; }
.lede { color: var(--text-mut); font-size: 1.15rem; max-width: 52ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.portrait-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 8, 0.55));
  pointer-events: none;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.portrait-frame::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(57, 211, 76, 0.12);
  z-index: 2; pointer-events: none;
}

/* ---------- hero visual (signal card) ---------- */
.hero-visual { display: flex; justify-content: center; }
.signal-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(20,26,20,0.9), rgba(13,15,13,0.92));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 0 40px rgba(57,211,76,0.05);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.signal-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 40px rgba(57,211,76,0.18), inset 0 0 50px rgba(57,211,76,0.08);
}

.signal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.signal-title {
  font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 600; color: var(--text);
}
.signal-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: livePulse 2s ease-in-out infinite;
}

.signal-legend { display: flex; gap: 18px; margin-bottom: 8px; }
.lg {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8rem; color: var(--text-mut);
}
.lg::before { content: ""; width: 14px; height: 3px; border-radius: 2px; }
.lg-approval::before { background: var(--neon); box-shadow: 0 0 8px rgba(187,255,197,0.6); }
.lg-cost::before { background: #4fd1c5; box-shadow: 0 0 8px rgba(79,209,197,0.5); }

.signal-chart { width: 100%; height: 190px; display: block; overflow: visible; }
.signal-chart .grid line { stroke: var(--line); stroke-width: 1; }

/* wipe reveal (both lines) */
.wipe-rect { width: 440px; }
.signal-card.play .wipe-rect { animation: wipe 1.6s var(--ease) 0.35s both; }

/* approval line: also draws itself; dashed cost stays patterned */
.approval-line { filter: drop-shadow(0 0 6px rgba(57,211,76,0.55)); }
.signal-card.play .approval-line {
  stroke-dasharray: 640; stroke-dashoffset: 0;
  animation: draw 1.7s var(--ease) 0.35s both;
}
.cost-line { filter: drop-shadow(0 0 4px rgba(79,209,197,0.4)); }

.dot { opacity: 1; }
.approval-dot { fill: var(--neon); filter: drop-shadow(0 0 8px rgba(187,255,197,0.9)); }
.cost-dot { fill: #4fd1c5; filter: drop-shadow(0 0 7px rgba(79,209,197,0.8)); }
.signal-card.play .dot { animation: dotIn 0.5s var(--ease) 1.7s both; }
.signal-card.play .approval-dot { animation: dotIn 0.5s var(--ease) 1.7s both, pulse 2.6s ease-in-out 2.3s infinite; }

.signal-foot { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.risk-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head);
  font-size: 0.82rem; color: var(--text-mut);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(57,211,76,0.05);
}
.risk-pill b { color: var(--neon); font-size: 0.9rem; }

@keyframes wipe { from { width: 0; } to { width: 440px; } }
@keyframes draw { from { stroke-dashoffset: 640; } to { stroke-dashoffset: 0; } }
@keyframes dotIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { r: 5; } 50% { r: 7; } }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 52ch; }
  .signal-card { max-width: 440px; margin-inline: auto; }
}

/* ---------- stats ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,26,20,0.5), rgba(8,8,8,0));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-block: clamp(28px, 4vw, 44px);
}
.stat { text-align: center; padding: 8px; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--neon);
  line-height: 1;
  text-shadow: 0 0 24px rgba(187, 255, 197, 0.22);
}
.stat-label { display: block; margin-top: 10px; color: var(--text-dim); font-size: 0.9rem; }
@media (max-width: 620px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 8px; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 10vw, 128px); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-sub { color: var(--text-mut); font-size: 1.1rem; margin-top: 14px; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ---------- services cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--neon));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  background: var(--surface-2);
}
.card:hover::before { transform: scaleX(1); }
.card-no {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  opacity: 0.85;
}
.card h3 { font-size: 1.28rem; margin: 12px 0 12px; font-weight: 600; }
.card p { color: var(--text-mut); font-size: 0.98rem; line-height: 1.6; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { border-top: 1px solid var(--line); }
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.about-photo { display: flex; justify-content: center; }
.portrait-frame.small { max-width: 360px; }
.about-copy h2 { margin-bottom: 22px; }
.about-copy p { color: var(--text-mut); margin-bottom: 18px; }
.about-copy p:first-of-type { color: var(--text); font-size: 1.12rem; }
.about-loc {
  display: flex; align-items: center; gap: 10px;
  color: var(--text) !important;
  font-family: var(--font-head);
  font-size: 0.98rem !important;
  margin-top: 6px;
}
.loc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  flex: none;
}
@media (max-width: 800px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .portrait-frame.small { max-width: 280px; }
}

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 20px; }
.contact-copy p { color: var(--text-mut); max-width: 44ch; }
.contact-linkedin {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  color: var(--neon);
  font-family: var(--font-head);
  font-weight: 500;
  padding: 11px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: background 0.25s var(--ease), border-color 0.25s, transform 0.2s;
}
.contact-linkedin:hover { background: rgba(57, 211, 76, 0.08); border-color: var(--green); transform: translateY(-2px); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; color: var(--text-mut); margin-bottom: 8px; font-weight: 500; }
.field .opt { color: var(--text-dim); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 211, 76, 0.14);
  background: var(--bg);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-status.ok {
  color: var(--neon);
  background: rgba(57, 211, 76, 0.10);
  border: 1px solid rgba(57, 211, 76, 0.35);
}
.form-status.err {
  color: #ffb4a8;
  background: rgba(255, 90, 70, 0.10);
  border: 1px solid rgba(255, 90, 70, 0.35);
}
.form-note { text-align: center; color: var(--text-dim); font-size: 0.86rem; margin-top: 16px; }
@media (max-width: 780px) { .contact-inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.site-footer .brand-mark { width: 28px; height: 28px; }
.site-footer .brand-name { font-size: 1rem; }
.footer-copy { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
