/* ============================================================
   QUANTIS PAYMENTS — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080f1c;
  --bg2:       #0d1626;
  --bg3:       #111d30;
  --card:      #0f1d33;
  --card2:     #162035;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --accent:    #4e89c8;
  --accent2:   #7ab3e8;
  --gold:      #c9a96e;
  --gold2:     #e8c98a;
  --text:      #e8edf5;
  --muted:     #7a8fa8;
  --muted2:    #a0b2c8;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'DM Sans', sans-serif;
  --mono:      'DM Mono', monospace;
  --radius:    6px;
  --max-w:     1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: .35;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY HELPERS ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-gold {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}
.section-lead {
  font-size: 17px;
  color: var(--muted2);
  max-width: 620px;
  line-height: 1.75;
  font-weight: 300;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 24px;
}
.page-title em { font-style: italic; color: var(--accent2); }

/* ── LAYOUT ── */
.section-inner { max-width: var(--max-w); margin: 0 auto; }
section { padding: 96px 48px; }
.page-hero { padding: 140px 48px 80px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(8,15,28,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--accent); border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 15px; font-weight: 400;
  color: #fff; letter-spacing: -1px; flex-shrink: 0;
}
.nav-logo-text {
  font-size: 13px; font-weight: 500; color: var(--text);
  letter-spacing: .02em;
}
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 14px; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta {
  font-size: 14px; font-weight: 500;
  color: var(--accent2);
  border: 1px solid rgba(78,137,200,0.4);
  padding: 8px 20px; border-radius: var(--radius);
  transition: all .2s;
}
.nav-cta:hover {
  background: rgba(78,137,200,0.12);
  border-color: var(--accent2);
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); transition: all .3s;
}
.mobile-menu {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(8,15,28,0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 24px 48px 32px;
  flex-direction: column; gap: 16px;
  z-index: 199;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px; color: var(--muted); padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--text); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  color: var(--muted2); font-size: 14px;
  transition: color .2s;
}
.btn-ghost:hover { color: var(--text); }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--border2); color: var(--text);
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 400;
  transition: all .2s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--muted);
}
.btn-gold {
  display: inline-block;
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.4);
  color: var(--gold2);
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.btn-gold:hover {
  background: rgba(201,169,110,0.2);
  border-color: var(--gold2);
}

/* ── CARDS & GRID CONTAINERS ── */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.grid-3 {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.card {
  background: var(--card); padding: 36px 32px;
  transition: background .2s;
}
.card:hover { background: var(--card2); }

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 2px;
  font-family: var(--mono);
}

/* ── DIVIDERS ── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 2px;
  margin-bottom: 24px;
}
.badge-blue {
  background: rgba(78,137,200,0.1);
  border: 1px solid rgba(78,137,200,0.3);
  color: var(--accent2);
}
.badge-gold {
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--gold);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 48px 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 64px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-brand p {
  font-size: 14px; color: var(--muted); margin-top: 14px;
  max-width: 280px; line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--text); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { font-size: 13px; color: var(--muted); }

/* ── FADE ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up-d1 { transition-delay: .1s; }
.fade-up-d2 { transition-delay: .2s; }
.fade-up-d3 { transition-delay: .3s; }

/* ============================================================
   PAGE-SPECIFIC: HOME
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px 48px 80px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; top: -20%; left: -10%;
  width: 70%; height: 80%;
  background: radial-gradient(ellipse at 30% 40%, rgba(78,137,200,0.07) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse at 70% 80%, rgba(201,169,110,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 44px; }
.hero-divider { width: 100%; height: 1px; background: var(--border); margin-top: 80px; }
.stats-bar {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  margin-top: 64px;
}
.stat-item {
  background: var(--card); padding: 36px 32px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif); font-size: 44px;
  font-weight: 700; color: var(--text);
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--muted); }

/* Steps (fundamentals) */
.steps-list { border-top: 1px solid var(--border); margin-top: 56px; }
.step {
  display: grid; grid-template-columns: 60px 1fr 40px;
  gap: 24px; align-items: start;
  padding: 36px 0; border-bottom: 1px solid var(--border);
  transition: padding .2s, background .2s;
}
.step:hover { background: rgba(255,255,255,0.018); padding-left: 16px; padding-right: 16px; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.step-body h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.step-body p { font-size: 15px; color: var(--muted2); max-width: 640px; }
.step-arrow { color: var(--muted); font-size: 18px; padding-top: 4px; }

/* Layer cards */
.layer-label { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 14px; }
.layer-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 14px; }
.layer-card p { font-size: 14px; color: var(--muted2); line-height: 1.7; }

/* Audience */
.audience-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; margin-top: 56px; }
.audience-lead h2 { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1.2; margin-bottom: 18px; }
.audience-lead p { font-size: 15px; color: var(--muted2); line-height: 1.7; }
.audience-list { display: flex; flex-direction: column; }
.audience-item { padding: 28px 0; border-bottom: 1px solid var(--border); }
.audience-item:first-child { border-top: 1px solid var(--border); }
.audience-item h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--accent2); margin-bottom: 8px; }
.audience-item p { font-size: 14px; color: var(--muted2); line-height: 1.7; }

/* Insight cards */
.insight-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.insight-cat { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.insight-date { font-size: 12px; color: var(--muted); }
.insight-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 12px; }
.insight-card p { font-size: 13px; color: var(--muted2); line-height: 1.7; }
.insight-link { font-size: 13px; color: var(--accent); margin-top: 16px; display: inline-block; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 56px; }
.about-left p { font-size: 15px; color: var(--muted2); line-height: 1.8; margin-bottom: 18px; }
.about-box { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 36px 32px; }
.about-box h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 24px; }
.principles { display: flex; flex-direction: column; gap: 16px; }
.principle { display: flex; gap: 14px; align-items: flex-start; }
.principle-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
.principle p { font-size: 14px; color: var(--muted2); line-height: 1.65; }

/* ============================================================
   PAGE-SPECIFIC: DIGITAL EURO
   ============================================================ */
.euro-hero-bg {
  position: absolute; top: -30%; right: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,169,110,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.euro-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 56px; }
.euro-topic-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.euro-topic { padding: 26px 28px; border-bottom: 1px solid var(--border); background: var(--card); transition: background .2s; }
.euro-topic:last-child { border-bottom: none; }
.euro-topic:hover { background: var(--card2); }
.euro-topic h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.euro-topic p { font-size: 13px; color: var(--muted2); }
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 40px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { display: flex; gap: 32px; padding: 28px 0; position: relative; }
.timeline-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg); display: grid; place-items: center; flex-shrink: 0; z-index: 1; }
.timeline-dot.active { border-color: var(--gold); background: rgba(201,169,110,0.1); }
.timeline-dot-inner { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.timeline-dot.active .timeline-dot-inner { background: var(--gold); }
.timeline-content { padding-top: 2px; }
.timeline-content h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.timeline-content p { font-size: 14px; color: var(--muted2); line-height: 1.7; }
.timeline-year { font-family: var(--mono); font-size: 11px; color: var(--gold); margin-bottom: 6px; letter-spacing: .1em; }

/* ============================================================
   PAGE-SPECIFIC: FRAMEWORK
   ============================================================ */
.framework-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 56px; }
.layer-full-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 24px; }
.layer-full-header { background: var(--card); padding: 32px 36px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; }
.layer-full-header h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 8px; }
.layer-full-body { padding: 32px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.layer-full-body p { font-size: 15px; color: var(--muted2); line-height: 1.75; }
.layer-full-body .tags { margin-top: 0; }

/* ============================================================
   PAGE-SPECIFIC: RESEARCH
   ============================================================ */
.research-filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 40px 0; }
.filter-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; padding: 8px 16px; border-radius: 2px;
  border: 1px solid var(--border); color: var(--muted); cursor: pointer;
  background: transparent; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); color: var(--accent2); background: rgba(78,137,200,0.08); }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.research-card { background: var(--card); padding: 36px 32px; transition: background .2s; display: block; }
.research-card:hover { background: var(--card2); }
.research-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 14px; margin-top: 16px; }
.research-card p { font-size: 14px; color: var(--muted2); line-height: 1.7; }
.research-card .read-more { font-size: 13px; color: var(--accent); margin-top: 16px; display: inline-block; }

/* ============================================================
   PAGE-SPECIFIC: INSIGHTS
   ============================================================ */
.insights-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 48px; }
.insight-row { background: var(--card); padding: 32px 36px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 180px 1fr 120px; gap: 32px; align-items: start; transition: background .2s; }
.insight-row:last-child { border-bottom: none; }
.insight-row:hover { background: var(--card2); }
.insight-row-meta { display: flex; flex-direction: column; gap: 6px; }
.insight-row-meta .insight-cat { display: block; }
.insight-row-meta .insight-date { display: block; }
.insight-row h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.insight-row p { font-size: 14px; color: var(--muted2); line-height: 1.7; }
.insight-row-cta { text-align: right; padding-top: 4px; font-size: 13px; color: var(--accent); }

/* ============================================================
   PAGE-SPECIFIC: ABOUT
   ============================================================ */
.team-placeholder { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 48px; text-align: center; margin-top: 48px; }
.team-placeholder p { color: var(--muted); font-size: 15px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px; text-align: center;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 50px); font-weight: 700; margin-bottom: 18px; }
.cta-band p { font-size: 17px; color: var(--muted2); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 72px 24px; }
  #hero, .page-hero { padding: 110px 24px 64px; }
  .grid-2, .grid-3, .research-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .audience-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .euro-col-grid { grid-template-columns: 1fr; gap: 40px; }
  .framework-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .layer-full-body { grid-template-columns: 1fr; }
  .insight-row { grid-template-columns: 1fr; gap: 12px; }
  .insight-row-cta { text-align: left; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  footer { padding: 48px 24px 24px; }
  .mobile-menu { padding: 24px; }
  .cta-band { padding: 64px 24px; }
  .layer-full-body { padding: 24px; }
  .layer-full-header { padding: 24px; }
}

.project-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}
