/* ==========================================================================
   BotdoPay — Marketing site styles
   Built on the BotdoPay design system tokens (brand indigo, Tailwind
   neutrals, system fonts). Marketing surface: bolder type scale, more
   whitespace, indigo moments — still calm, hairline-bordered, no gradients.
   ========================================================================== */

:root {
  /* Brand */
  --primary: #3C50E0;
  --primary-dark: #1C3FB7;
  --primary-50: #EEF0FD;

  /* Neutrals (Tailwind gray) */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white: #FFFFFF;

  /* Status families */
  --green-50: #F0FDF4;  --green-100: #DCFCE7;  --green-600: #16A34A;  --green-800: #166534;
  --blue-50: #EFF6FF;   --blue-100: #DBEAFE;   --blue-600: #2563EB;   --blue-800: #1E40AF;
  --yellow-50: #FEFCE8; --yellow-100: #FEF9C3; --yellow-600: #CA8A04; --yellow-800: #854D0E;
  --red-50: #FEF2F2;    --red-100: #FEE2E2;    --red-600: #DC2626;    --red-800: #991B1B;
  --indigo-100: #E0E7FF; --indigo-600: #4F46E5; --indigo-800: #3730A3;
  --slate-100: #F1F5F9; --slate-200: #E2E8F0;  --slate-600: #475569;  --slate-700: #334155;
  --purple-50: #FAF5FF; --purple-600: #9333EA;

  /* Fonts */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Radius / shadow (from system) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 50px -12px rgba(28,63,183,0.18), 0 8px 24px -8px rgba(0,0,0,0.10);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--gray-900); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); }

/* ---- Layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.bg-gray { background: var(--gray-50); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
}
.section-head p {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--gray-500);
  line-height: 1.55;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--gray-700); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.30); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.20); }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { background: var(--gray-100); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.btn-ghost-light:focus-visible, .btn-white:focus-visible { box-shadow: 0 0 0 2px var(--primary-dark), 0 0 0 4px #fff; }

/* ---- Top nav ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--gray-900); letter-spacing: -0.01em; }
.brand__mark { width: 30px; height: 30px; border-radius: 7px; display: block; }
.brand__name { color: var(--primary); }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: 8px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--gray-600); transition: color 120ms ease; }
.nav__links a:hover { color: var(--gray-900); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav__signin { font-size: 15px; font-weight: 500; color: var(--gray-700); }
.nav__signin:hover { color: var(--gray-900); }
.nav__toggle { display: none; }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: 88px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-50); color: var(--primary-dark);
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 8px; font-size: 13px; font-weight: 600;
  margin-bottom: 28px;
}
.hero__badge .dot { background: var(--primary); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: var(--radius-full); }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.03;
  max-width: 14ch;
  margin: 0 auto;
}
.hero h1 .accent { color: var(--primary); }
.hero__sub {
  max-width: 600px; margin: 26px auto 0;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--gray-500); line-height: 1.55;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero__trust { margin-top: 22px; font-size: 14px; color: var(--gray-400); }
.hero__trust strong { color: var(--gray-600); font-weight: 600; }

/* hero mockup frame */
.hero__shot { margin-top: 64px; position: relative; }
.hero__shot::after {
  content: ""; position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%);
  width: 80%; height: 80px; background: var(--primary); opacity: 0.07; filter: blur(48px); border-radius: 50%;
}

/* ---- Browser frame ----------------------------------------------------- */
.frame {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  overflow: hidden; position: relative; z-index: 1;
}
.frame__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.frame__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gray-300); }
.frame__url { margin-left: 12px; flex: 1; max-width: 320px; height: 22px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-full); display: flex; align-items: center; padding: 0 12px; font-size: 11px; color: var(--gray-400); font-family: var(--font-mono); }

/* ---- App mockup (recreated BotdoPay UI) -------------------------------- */
.app { display: grid; grid-template-columns: 220px 1fr; background: var(--gray-50); min-height: 440px; }
.app__side { background: #fff; border-right: 1px solid var(--gray-200); padding: 18px 14px; }
.app__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--primary); padding: 4px 8px 16px; }
.app__brand img { width: 22px; height: 22px; border-radius: 5px; }
.app__eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-400); padding: 14px 8px 6px; }
.navitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 500; color: var(--gray-600); margin-bottom: 2px; }
.navitem svg { width: 18px; height: 18px; flex: none; }
.navitem.active { background: var(--primary); color: #fff; }
.navitem .count { margin-left: auto; font-size: 11px; color: var(--gray-400); }
.app__main { padding: 0; display: flex; flex-direction: column; min-width: 0; }
.app__top { display: flex; align-items: center; height: 56px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--gray-200); }
.app__title { font-size: 17px; font-weight: 600; color: var(--gray-900); }
.app__top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.org-chip { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--gray-600); }
.org-chip .sq { width: 18px; height: 18px; border-radius: 4px; background: var(--slate-700); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.app__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }

.welcome { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px 20px; }
.welcome h3 { font-size: 18px; font-weight: 700; }
.welcome p { font-size: 13.5px; color: var(--gray-500); margin-top: 6px; }
.pill-inline { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; background: var(--blue-100); color: var(--blue-800); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 14px; display: flex; align-items: center; gap: 12px; }
.stat__icon { width: 38px; height: 38px; border-radius: var(--radius-md); display: grid; place-items: center; flex: none; }
.stat__icon svg { width: 20px; height: 20px; }
.stat__label { font-size: 11px; color: var(--gray-500); line-height: 1.2; }
.stat__value { font-size: 22px; font-weight: 700; color: var(--gray-900); font-family: var(--font-mono); letter-spacing: -0.02em; }
.ic-indigo { background: var(--primary-50); color: var(--primary); }
.ic-green { background: var(--green-50); color: var(--green-600); }
.ic-yellow { background: var(--yellow-50); color: var(--yellow-600); }
.ic-purple { background: var(--purple-50); color: var(--purple-600); }

.panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.panel { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px 18px; }
.panel h4 { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.panel .legend { display: flex; gap: 14px; margin-top: 4px; font-size: 11px; color: var(--gray-500); }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* area chart */
.area { margin-top: 14px; }
/* donut */
.donut-wrap { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.donut { width: 96px; height: 96px; flex: none; }
.donut-legend { font-size: 12px; display: flex; flex-direction: column; gap: 7px; }
.donut-legend .row { display: flex; align-items: center; gap: 8px; color: var(--gray-600); }
.donut-legend .row b { margin-left: auto; font-family: var(--font-mono); color: var(--gray-900); }
.donut-legend i { width: 9px; height: 9px; border-radius: 50%; }

/* ---- Logos / trust strip ----------------------------------------------- */
.trust { padding: 44px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); background: #fff; }
.trust__label { text-align: center; font-size: 13px; font-weight: 500; color: var(--gray-400); margin-bottom: 26px; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 48px; }
.logos .logo { font-size: 19px; font-weight: 700; color: var(--gray-400); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; opacity: 0.9; }
.logos .logo svg { width: 22px; height: 22px; }

/* ---- Features ---------------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 26px 22px; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.feat:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat__icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; margin-bottom: 18px; }
.feat__icon svg { width: 24px; height: 24px; }
.feat h3 { font-size: 18px; font-weight: 600; }
.feat p { margin-top: 8px; font-size: 14.5px; color: var(--gray-500); line-height: 1.55; }
.feat__list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feat__list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray-600); }
.feat__list li svg { width: 15px; height: 15px; color: var(--green-600); flex: none; }

/* ---- Workflow lifecycle ------------------------------------------------ */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; margin-top: 12px; }
.flow__step { text-align: center; padding: 0 8px; position: relative; }
.flow__step::before {
  content: ""; position: absolute; top: 19px; left: -50%; width: 100%; height: 2px;
  background: var(--gray-200); z-index: 0;
}
.flow__step:first-child::before { display: none; }
.flow__node {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 14px; background: #fff;
  border: 2px solid var(--gray-200); font-weight: 700; font-size: 14px; color: var(--gray-400);
}
.flow__step .pill { margin-bottom: 8px; }
.flow__desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
/* colored nodes */
.flow__step[data-c="gray"] .flow__node { border-color: var(--gray-300); color: var(--gray-500); }
.flow__step[data-c="blue"] .flow__node { border-color: var(--blue-600); color: var(--blue-600); }
.flow__step[data-c="green"] .flow__node { border-color: var(--green-600); color: var(--green-600); background: var(--green-50); }
.flow__step[data-c="indigo"] .flow__node { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.flow__step[data-c="slate"] .flow__node { border-color: var(--slate-600); color: var(--slate-600); }

/* status pills (shared) */
.pill { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; line-height: 1.4; }
.pill--draft { background: var(--gray-100); color: var(--gray-600); }
.pill--submitted { background: var(--blue-100); color: var(--blue-800); }
.pill--approved { background: var(--green-100); color: var(--green-800); }
.pill--received { background: var(--indigo-100); color: var(--indigo-800); }
.pill--closed { background: var(--slate-200); color: var(--slate-700); }
.pill--active { background: var(--green-100); color: var(--green-800); }
.pill--pending { background: var(--yellow-100); color: var(--yellow-800); }
.pill--rejected { background: var(--red-100); color: var(--red-800); }

/* ---- Split / product preview ------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: -1; }
.split__copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.1; }
.split__copy p { margin-top: 16px; font-size: 16.5px; color: var(--gray-500); line-height: 1.6; }
.split__copy .feat__list { margin-top: 22px; }
.split__copy .feat__list li { font-size: 15px; }
.split__copy .feat__list li svg { width: 17px; height: 17px; }

/* vendors table mockup */
.tablecard { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th { text-align: left; background: var(--gray-50); color: var(--gray-500); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 11px 16px; border-bottom: 1px solid var(--gray-200); }
.tbl tbody td { padding: 13px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .vid { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); }
.tbl .vname { font-weight: 600; color: var(--gray-900); }
.tbl .amt { font-family: var(--font-mono); color: var(--gray-900); text-align: right; }
.tbl th.amt, .tbl td.amt { text-align: right; }
.tbl .vrow td { transition: background 100ms ease; }
.tablecard__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--gray-200); }
.tablecard__head .ttl { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.filter-tabs { display: flex; gap: 6px; margin-left: auto; }
.filter-tab { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--gray-100); color: var(--gray-600); }
.filter-tab.active { background: var(--primary); color: #fff; }

/* ---- Security ---------------------------------------------------------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.sec {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 26px 22px;
}
.sec__icon { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.sec__icon svg { width: 22px; height: 22px; }
.sec h3 { font-size: 16.5px; font-weight: 600; }
.sec p { margin-top: 7px; font-size: 14px; color: var(--gray-500); line-height: 1.55; }

/* ---- Metrics band ------------------------------------------------------ */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metric .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--gray-900); font-family: var(--font-mono); letter-spacing: -0.03em; }
.metric .lbl { margin-top: 6px; font-size: 14px; color: var(--gray-500); }

/* ---- Final CTA --------------------------------------------------------- */
.cta-band { background: var(--primary); color: #fff; border-radius: var(--radius-xl); padding: 64px 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; }
.cta-band p { margin: 18px auto 0; max-width: 520px; color: rgba(255,255,255,0.85); font-size: 17px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.cta-band__note { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.7); }
.cta-band__deco { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }

/* ---- Footer ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--gray-200); padding: 56px 0 40px; background: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { font-size: 14px; color: var(--gray-500); max-width: 280px; line-height: 1.6; }
.footer__col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14.5px; color: var(--gray-600); margin-bottom: 11px; transition: color 120ms ease; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom { display: flex; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--gray-200); font-size: 13px; color: var(--gray-400); flex-wrap: wrap; }
.footer__bottom .sp { margin-left: auto; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--rev .split__media { order: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .flow__step::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav__links { display: none; }
  .hero__shot .app { grid-template-columns: 1fr; }
  .hero__shot .app__side { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .panels { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 28px; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
