/* PaySoon shared styles — tokens, nav, cards, CTA, footer */

:root {
  --navy-deep: #1a1a2e;
  --navy-mid: #16213e;
  --navy-light: #0f3460;
  --accent: #4f8cff;
  --accent-glow: rgba(79, 140, 255, 0.25);
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.25);
  --glass-bg: rgba(22, 33, 62, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film-grain overlay — kills gradient banding on large screens */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
}

h1, h2, h3 { text-wrap: balance; }

.skip-link {
  position: absolute; top: -100%; left: 16px;
  padding: 12px 24px; background: var(--accent); color: white;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  z-index: 400; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── NAV — transparent at top, glass once scrolled ── */
body > header { position: sticky; top: 0; z-index: 100; }
.glass-nav {
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.glass-nav.scrolled {
  background: rgba(22, 33, 62, 0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--glass-border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-primary);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.nav-logo img { width: 32px; height: 32px; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-weight: 500; font-size: 0.95rem; transition: color 0.2s;
}
.nav-link:hover, .nav-link[aria-current] { color: var(--text-primary); }
.nav-cta {
  padding: 8px 20px; background: var(--accent); color: white;
  border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.nav-cta:hover { transform: scale(1.03); box-shadow: 0 0 20px var(--accent-glow); }

/* ── GLASS CARD — top-lit gradient hairline border ── */
.glass-card {
  position: relative;
  background: var(--glass-bg);
  border-radius: var(--radius);
}
.glass-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg, var(--card-glint, rgba(255,255,255,0.18)), rgba(255,255,255,0.04) 35%, rgba(255,255,255,0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ── EYEBROW LABEL ── */
.eyebrow {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}

/* ── CTA BUTTON ── */
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(180deg, #ffffff, #e9eef9);
  color: var(--navy-deep);
  border-radius: var(--radius-sm); text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px -8px rgba(0,0,0,0.5);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 0 30px var(--accent-glow);
}
.cta-btn:active { transform: scale(0.98); }
.cta-btn svg { width: 22px; height: 22px; }

/* ── SECTION DIVIDER ── */
.divider {
  height: 1px; max-width: 1120px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
.footer { padding: 64px 0 48px; text-align: center; }
.footer-links {
  display: flex; justify-content: center; gap: 32px;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.95rem; transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-links a svg { width: 18px; height: 18px; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 600px) {
  .nav-right { gap: 16px; }
}
