/* VEXPay landing — single-page styles */

:root {
  --bg: #0e1730;
  --bg-elev: #15203f;
  --bg-elev-2: #1c2a52;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-mute: rgba(255, 255, 255, 0.52);
  --accent: #ff3b3b;
  --accent-hover: #ff5757;
  --gold: #f5c451;
  --good: #4ade80;
  --radius: 12px;
  --radius-lg: 16px;
  --maxw: 1120px;
  --pad-x: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 96px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

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

button { font-family: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 23, 48, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #c92121);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  gap: 22px;
  margin-left: 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.nav a:hover { color: var(--text); }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-switch a {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-dim);
}

.lang-switch a.is-active {
  background: var(--accent);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.btn-cta-sm {
  padding: 8px 14px;
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(255, 59, 59, 0.18), rgba(255, 59, 59, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(245, 196, 81, 0.3);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.18);
}

h1.hero-headline {
  margin: 0 0 18px;
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1.hero-headline .h-line { display: block; }
h1.hero-headline .h-emph { color: var(--text); }
h1.hero-headline .h-mute { color: var(--text-dim); font-weight: 500; }

.hero-sub {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-actions .btn {
  padding: 14px 22px;
  font-size: 16px;
}

.rate-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 100%;
}

.rate-card .rate-label {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.rate-card .rate-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.rate-card .rate-meta {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 2px;
}

.rate-card .rate-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

/* ---------- Section base ---------- */
section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  font-weight: 600;
  margin: 0 0 12px;
}

h2.section-title {
  margin: 0 0 36px;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
}

.section-sub {
  margin: -24px 0 36px;
  color: var(--text-dim);
  font-size: 17px;
  max-width: 640px;
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--bg-elev);
  border-top: 0;
}

.trust-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.trust-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.trust-item .t {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.trust-item.is-gov .t { color: var(--gold); }

.trust-item .d {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-elev-2);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.step-body .t {
  font-weight: 700;
  font-size: 17px;
  margin: 4px 0 6px;
}

.step-body .d {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Calculator ---------- */
.calc {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}

.calc-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 24px;
}

.calc-input-row {
  display: grid;
  gap: 8px;
}

.calc-input-row label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.calc-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}

.calc-input-wrap:focus-within {
  border-color: var(--accent);
}

.calc-input-wrap input {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 14px 16px;
  font-family: inherit;
  min-width: 0;
}

.calc-input-wrap input::placeholder {
  color: var(--text-mute);
  font-weight: 400;
}

.calc-input-wrap .suffix {
  display: grid;
  place-items: center;
  padding: 0 16px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
}

.calc-output {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dim);
}

.calc-row .v { color: var(--text); font-weight: 600; }

.calc-row.calc-total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 17px;
}
.calc-row.calc-total .v {
  font-size: 22px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.calc-arrival {
  font-size: 13px;
  color: var(--good);
  display: flex;
  gap: 8px;
  align-items: center;
}
.calc-arrival::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.calc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.calc-note {
  font-size: 12px;
  color: var(--text-mute);
  max-width: 460px;
  line-height: 1.5;
}

/* ---------- Use cases ---------- */
.cases-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.case {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.case .t {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.case .d {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Why VEXPay ---------- */
.why-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.why-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}

.why-item.is-gov {
  border-color: rgba(245, 196, 81, 0.4);
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.06), var(--bg-elev) 60%);
}

.why-item .t {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.why-item.is-gov .t { color: var(--gold); }

.why-item .d {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}

.price-card {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.price-card .t {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin-bottom: 10px;
  font-weight: 600;
}

.price-card .v {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.price-card .d {
  font-size: 13px;
  color: var(--text-dim);
}

.price-examples h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin: 0 0 12px;
  font-weight: 600;
}

.price-examples ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.price-examples li {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.price-examples li .v { color: var(--text-dim); }

/* ---------- Flow / how money moves ---------- */
.flow p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 18px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--text-mute);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item .a {
  padding: 0 20px 18px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Big CTA ---------- */
.bigcta {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
}

.bigcta h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.bigcta p {
  color: var(--text-dim);
  margin: 0 0 24px;
  font-size: 16px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.bigcta .btn {
  padding: 16px 28px;
  font-size: 17px;
}

/* ---------- Footer ---------- */
footer {
  background: #0a1027;
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.footer-company {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 15px;
}

.footer-rows {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  color: var(--text-dim);
  display: grid;
  gap: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: var(--text-dim);
}

.footer-links a {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.footer-links a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.footer-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .nav { display: inline-flex; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 4px; }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 980px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
}

@media (max-width: 480px) {
  .nav-cta-text-long { display: none; }
}
