:root {
  --bg-page: #020617;
  --bg-section: #0b1120;
  --bg-soft: #0f172a;
  --text-main: #f9fafb;
  --text-muted: #cbd5f5;
  --text-dark: #0f172a;
  --accent: #2563eb;
  --gold: #d4af37;
  --border-subtle: rgba(148, 163, 184, 0.5);
  --radius-lg: 1.4rem;
  --radius-md: 1rem;
}

/* RESET / GLOBAL */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 60%);
  color: var(--text-main);
  line-height: 1.6;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3.25rem 0;
}

@media (min-width: 1024px) {
  section {
    padding: 4rem 0;
  }
}

/* TYPOGRAPHY */

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.7rem, 2.3vw, 2.1rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

p {
  margin: 0.4rem 0;
  font-size: 0.96rem;
}

.muted {
  color: var(--text-muted);
}

.label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* SKIP LINK */

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #111827;
  color: #f9fafb;
  z-index: 9999;
}

/* NAV + HAMBURGER + LOGO PILL */

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 6, 23, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.95rem 1.5rem; /* slightly taller to fully contain logo pill */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo + pill */

.brand {
  display: flex;
  align-items: center;
}

/* White pill around logo (larger + more pronounced) */
.nav-logo-wrapper {
  background: #ffffff;
  padding: 10px 26px; /* bigger, wider pill */
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.55),
    0 0 4px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

/* Logo image size */
.brand-logo {
  height: 48px;
  width: auto;
}

@media (min-width: 900px) {
  .brand-logo {
    height: 60px;
  }
}

/* Nav links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

/* Social links in nav */

.nav-social {
  display: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  gap: 0.6rem;
}

.nav-social a {
  opacity: 0.85;
}
.nav-social a:hover {
  opacity: 1;
}

/* Hamburger */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 0.5rem;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  margin: 4px 0;
}

/* Mobile nav */

@media (max-width: 768px) {
  .brand-logo {
    height: 42px; /* still larger on mobile, but not overwhelming */
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.98);
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (min-width: 900px) {
  .nav-social {
    display: flex;
  }
}

/* HERO */

.hero {
  background: radial-gradient(circle at top left, #1e293b, #020617 55%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

.hero-sub {
  margin-top: 0.7rem;
  max-width: 700px;
}

/* Buttons under hero */

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* SECTIONS / CARDS */

.section-dark {
  background: #0b1120;
}

.section-soft {
  background: #020617;
}

.section-light {
  background: #0f172a;
}

.grid-two {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.8rem;
}

@media (min-width: 960px) {
  .grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

/* Service icon used in merchant/services cards */

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 30% 20%, var(--gold), transparent 60%);
  margin-bottom: 0.7rem;
}

/* Pills */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.pill {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.9);
  color: var(--text-main);
}

/* CTA CARD (used on services, capability, contact) */

.cta-card {
  max-width: 780px;
  margin: 0 auto;
  background: #020617;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 2rem 1.8rem;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
}

/* Two-column layout (capability company info) */

.two-column {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 960px) {
  .two-column {
    grid-template-columns: 2fr 1.3fr;
  }
}

/* TESTIMONIALS */

.testimonials-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

@media (min-width: 960px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  background: #020617;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.3rem 1.25rem;
  font-size: 0.9rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.7);
}

.quote-mark {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.testimonial-name {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* CONTACT GRID */

.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.6rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.contact-card {
  background: #020617;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.info-card {
  background: #020617;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.7);
  padding: 1.4rem 1.4rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
  font-size: 0.9rem;
}

/* FORM INPUTS */

form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

label {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #facc15);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--text-main);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* FOOTER */

footer {
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 2.4rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-social a {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.footer-social a:hover {
  color: var(--gold);
}

/* BACK TO TOP */

#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #facc15);
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.25s;
  z-index: 9999;
}

#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#backToTopBtn:hover,
#backToTopBtn:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.08);
}