/* Trecsa Pay Hub — committed CSS (no npm build) */
:root {
  --bg-deep: #071018;
  --bg-mid: #0f1c28;
  --bg-card: #132231;
  --bg-card-hover: #182a3d;
  --border: rgba(148, 163, 184, 0.14);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --danger: #f87171;
  --warning: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1120px;
  --max-narrow: 480px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(16, 185, 129, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(59, 130, 246, 0.08), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  pointer-events: none;
  z-index: -1;
}

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

img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 16, 24, 0.85);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #34d399);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.brand__mark svg { width: 20px; height: 20px; fill: #fff; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.85rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

main { padding: 2rem 1.25rem 3rem; }

.container { max-width: var(--max); margin: 0 auto; }
.container--narrow { max-width: var(--max-narrow); margin: 0 auto; }

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: rgba(16, 185, 129, 0.25); }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card__icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; }

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item svg { width: 22px; height: 22px; flex-shrink: 0; }

.merchant-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.merchant-box h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.merchant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
}

.merchant-grid dt {
  color: var(--text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.merchant-grid dd {
  margin: 0;
  color: var(--text);
}

.checkout-page { padding: 1.5rem 1.25rem 3rem; }

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.checkout-card__head {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.checkout-card__head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.checkout-card__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checkout-card__body { padding: 1.25rem 1.5rem; }

.line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.95rem;
}

.line-item span:last-child { font-weight: 600; }

.line-item--muted { color: var(--text-muted); font-size: 0.85rem; }

.line-item--total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px var(--accent-glow);
}

.btn:disabled { opacity: 0.6; cursor: wait; }

.checkout-legal {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(15, 28, 40, 0.6);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkout-legal a { color: #6ee7b7; }

.checkout-back {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.checkout-back:hover { color: var(--accent); }

.pay-error {
  display: none;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--danger);
  font-size: 0.85rem;
}

.legal-page { max-width: 760px; margin: 0 auto; }

.legal-page h1 {
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
}

.legal-page__updated {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  color: #e2e8f0;
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-page ul, .legal-page ol {
  padding-left: 1.25rem;
}

.legal-page li { margin-bottom: 0.4rem; }

.error-page {
  text-align: center;
  padding: 4rem 1.25rem;
  max-width: 28rem;
  margin: 0 auto;
}

.error-page h1 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.error-page p { color: var(--text-muted); }

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 16, 24, 0.9);
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 1.75rem;
}

.footer-grid h4 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li { margin-bottom: 0.35rem; }

.footer-grid a {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.razorpay-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .site-header__inner { justify-content: center; }
  main { padding-top: 1.25rem; }
}
