/* ===========================================================================
   Gastelum Payments — shared stylesheet
   Dark fintech theme. Page layout lives inline in each page; this file holds
   the design tokens, base reset, keyframes, chrome (announcement / header /
   footer), reusable hover & focus helpers, and the small interactive widgets.
   =========================================================================== */

:root{
  --accent:#5570F2;
  --accent-deep:#3B4FD0;
  --accent-light:#7C93FF;
  --bg:#0A0E1A;
  --ink:#F3F5FB;
  --maxw:1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Manrope',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
::selection{ background:rgba(85,112,242,.35); color:#fff; }
button{ font-family:inherit; }
input,select,textarea{ font-family:inherit; }
::placeholder{ color:#5C6479; }
a{ color:inherit; }

/* Ambient background glow, fixed behind all content */
body::before{
  content:'';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(1000px 560px at 80% -6%, rgba(85,112,242,.22), transparent 60%),
    radial-gradient(760px 520px at 4% 6%, rgba(224,185,125,.10), transparent 55%);
}
.announce, .site-header, main, .site-footer{ position:relative; z-index:1; }

/* --- account for the sticky header when jumping to in-page anchors --------- */
:target{ scroll-margin-top:96px; }
section[id]{ scroll-margin-top:96px; }

/* ---------------------------------------------------------------- keyframes */
@keyframes floatA{ 0%,100%{ transform:translate(-58%,-46%) rotate(-7deg);} 50%{ transform:translate(-58%,-53%) rotate(-7deg);} }
@keyframes floatB{ 0%,100%{ transform:translate(-40%,-58%) rotate(6deg);} 50%{ transform:translate(-40%,-51%) rotate(6deg);} }
@keyframes floatPill{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-9px);} }
@keyframes floatPillB{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(8px);} }
@keyframes marquee{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
@keyframes twinkle{ 0%,100%{ opacity:.3; } 50%{ opacity:.9; } }

/* ------------------------------------------------------- scroll-in reveal */
html.js [data-reveal]{ opacity:0; transform:translateY(16px); transition:opacity .7s ease, transform .7s ease; }
html.js [data-reveal].is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  html.js [data-reveal]{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ======================================================= announcement bar */
.announce{
  display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap;
  padding:9px 18px;
  background:linear-gradient(90deg, rgba(85,112,242,.14), rgba(224,185,125,.10));
  border-bottom:1px solid rgba(255,255,255,.07);
  font-size:13px; color:#C9D0E0;
}
.announce[hidden]{ display:none; }
.announce-tag{
  font-family:'Space Mono',monospace; font-size:10px; letter-spacing:.14em;
  text-transform:uppercase; color:#0A0E1A; background:#E0B97D;
  padding:3px 7px; border-radius:5px; font-weight:700;
}
.announce-cta{ color:#F3F5FB; font-weight:600; font-size:13px; text-decoration:none; }
.announce-cta:hover{ text-decoration:underline; }
.announce-close{
  background:none; border:none; cursor:pointer; color:#9AA3B8; font-size:18px;
  line-height:1; padding:0 4px; transition:color .2s;
}
.announce-close:hover{ color:#F3F5FB; }

/* ================================================================= header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  background:rgba(10,14,26,.74);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.header-inner{
  max-width:var(--maxw); margin:0 auto; padding:0 24px; height:72px;
  display:flex; align-items:center; gap:26px;
}
.brand{ display:flex; align-items:center; gap:11px; text-decoration:none; flex-shrink:0; }
.brand-mark{
  width:30px; height:30px; display:block; flex-shrink:0;
  filter:drop-shadow(0 4px 14px rgba(85,112,242,.4));
}
.brand-name{ font-family:'Sora',sans-serif; font-weight:600; font-size:19px; line-height:1; letter-spacing:-.01em; color:#F3F5FB; }

.nav-desktop{ display:flex; gap:2px; margin-left:6px; }
.nav-link{
  position:relative; font-weight:500; font-size:15px; color:#AEB6C9;
  text-decoration:none; padding:9px 13px; border-radius:9px; white-space:nowrap;
  transition:color .2s, background .2s;
}
.nav-link:hover{ color:#F3F5FB; background:rgba(255,255,255,.05); }
.nav-link[aria-current="page"]{ color:#F3F5FB; }
.nav-link[aria-current="page"]::after{
  content:''; position:absolute; left:14px; right:14px; bottom:3px;
  height:2px; border-radius:2px; background:var(--accent);
}

.header-actions{ margin-left:auto; display:flex; align-items:center; gap:14px; flex-shrink:0; }
.link-quiet{ font-weight:500; font-size:15px; color:#AEB6C9; text-decoration:none; background:none; border:none; cursor:pointer; transition:color .2s; }
.link-quiet:hover{ color:#F3F5FB; }

/* mobile menu toggle (hidden on desktop) */
.nav-toggle{
  display:none; margin-left:auto; width:42px; height:42px; border-radius:10px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.12);
  cursor:pointer; flex-direction:column; align-items:center; justify-content:center; gap:4px;
}
.nav-toggle span{ display:block; width:18px; height:2px; border-radius:2px; background:#C9D0E0; transition:transform .25s, opacity .2s; }
.site-header.open .nav-toggle span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2){ opacity:0; }
.site-header.open .nav-toggle span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.mobile-menu{
  display:none; flex-direction:column; gap:6px;
  padding:14px 24px 22px; border-bottom:1px solid rgba(255,255,255,.07);
  background:rgba(10,14,26,.96);
}
.mobile-menu .nav-link{ font-size:16px; padding:11px 12px; }
.mobile-menu .btn{ margin-top:8px; }

@media (max-width:760px){
  .nav-desktop, .header-actions{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header.open .mobile-menu{ display:flex; }
}

/* ================================================================ buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Manrope',sans-serif; font-weight:600; font-size:15px;
  border:none; border-radius:12px; padding:15px 24px; cursor:pointer;
  text-decoration:none; line-height:1;
  transition:transform .2s, box-shadow .2s, border-color .2s, background .2s, color .2s;
}
.btn-primary{ color:#fff; background:var(--accent); box-shadow:0 12px 28px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 34px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost{ color:#F3F5FB; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.16); }
.btn-ghost:hover{ border-color:rgba(255,255,255,.4); background:rgba(255,255,255,.08); }
.btn-sm{ padding:11px 18px; border-radius:11px; }
.btn-block{ width:100%; }

/* ---- hover/focus helpers for elements that keep their inline base styles --- */
.h-lift{ transition:transform .2s, box-shadow .2s; }
.h-lift:hover{ transform:translateY(-2px); }
.h-lift1{ transition:transform .2s; }
.h-lift1:hover{ transform:translateY(-1px); }
.h-ghost{ transition:border-color .2s, background .2s; }
.h-ghost:hover{ border-color:rgba(255,255,255,.4); background:rgba(255,255,255,.08); }
.h-card{ transition:border-color .3s, transform .3s; }
.h-card:hover{ border-color:rgba(255,255,255,.22); transform:translateY(-3px); }
.h-pill{ transition:border-color .2s, background .2s; }
.h-pill:hover{ border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.08); }
.h-quiet{ transition:color .2s; }
.h-quiet:hover{ color:#F3F5FB; }
.h-field{ transition:border-color .2s; }
.h-field:focus{ border-color:var(--accent); }

/* =============================================================== currency */
.cur-switch{
  display:inline-flex; gap:4px; padding:4px; border:1px solid rgba(255,255,255,.12);
  border-radius:12px; background:rgba(255,255,255,.03);
}
.cur-btn{
  font-family:'Space Mono',monospace; font-size:13px; letter-spacing:.04em;
  color:#9AA3B8; background:none; border:none; border-radius:9px; padding:9px 18px;
  cursor:pointer; transition:color .2s, background .2s;
}
.cur-btn:hover{ color:#F3F5FB; }
.cur-btn.active{ color:#fff; background:var(--accent); }

/* ==================================================================== faq */
.faq-a{ display:none; }
.faq-item.open .faq-a{ display:block; }
.faq-sign-open{ display:none; }
.faq-item.open .faq-sign-open{ display:inline; }
.faq-item.open .faq-sign-closed{ display:none; }

/* ================================================================= footer */
.site-footer{ border-top:1px solid rgba(255,255,255,.08); background:#0B0F1C; }
.footer-inner{ max-width:var(--maxw); margin:0 auto; padding:clamp(56px,7vw,80px) 24px 40px; }
.footer-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr)); gap:40px 24px; }
.footer-brand{ max-width:300px; min-width:200px; }
.footer-brand-row{ display:flex; align-items:center; gap:11px; margin-bottom:16px; }
.footer-mark{ width:28px; height:28px; display:block; flex-shrink:0; }
.footer-brand-name{ font-family:'Sora',sans-serif; font-weight:600; font-size:18px; color:#F3F5FB; }
.footer-blurb{ font-size:14px; line-height:1.6; color:#7E8AA5; margin:0 0 18px; }
.footer-col-h{ font-family:'Space Mono',monospace; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#6F7890; margin-bottom:16px; }
.footer-links{ display:flex; flex-direction:column; gap:11px; align-items:flex-start; }
.footer-link{ font-family:'Manrope',sans-serif; font-size:14px; color:#9AA3B8; text-decoration:none; transition:color .2s; }
.footer-link:hover{ color:#F3F5FB; }
.footer-legal{ margin-top:48px; padding-top:26px; border-top:1px solid rgba(255,255,255,.07); }
.footer-legal p{ font-size:12px; line-height:1.7; color:#5C6479; max-width:900px; margin:0 0 18px; }
.footer-copy{ font-size:13px; color:#5C6479; }

/* ================================================ generic content helpers */
.eyebrow{ font-family:'Space Mono',monospace; font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:#E0B97D; margin-bottom:18px; }
.prose{ max-width:760px; }
.prose h2{ font-family:'Sora',sans-serif; font-weight:600; font-size:clamp(24px,3vw,34px); letter-spacing:-.02em; line-height:1.12; color:#F6F8FE; margin:36px 0 14px; }
.prose h3{ font-family:'Sora',sans-serif; font-weight:600; font-size:19px; color:#F3F5FB; margin:26px 0 10px; }
.prose p, .prose li{ font-size:15.5px; line-height:1.7; color:#9AA3B8; }
.prose ul{ padding-left:20px; margin:0 0 16px; }
.prose li{ margin-bottom:8px; }
.prose a{ color:var(--accent-light); }
