/* =========================================
   PASBEAU.COM — Shared Stylesheet
   ========================================= */

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

:root {
  --cyan:   #00f0ff;
  --purple: #a855f7;
  --pink:   #ec4899;
  --green:  #22c55e;
  --bg1:    #06060f;
  --bg2:    #0d0d1f;
  --glass:  rgba(255,255,255,0.04);
  --glass2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.1);
  --text:   #e2e8f0;
  --muted:  #94a3b8;
  --font:   'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg1);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(168,85,247,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(0,240,255,0.10) 0%, transparent 55%);
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---- NAV ---- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,6,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 18px; font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #fff, var(--muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: var(--glass2); }
.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff !important; padding: 7px 16px; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(168,85,247,0.35);
}
.nav-links .nav-cta:hover { background: linear-gradient(135deg, #9333ea, #db2777); transform: translateY(-1px); }

.nav-burger { display: none; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }

/* ---- PAGE WRAPPER ---- */
.page-wrap {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto;
  padding: 60px 24px 80px;
}

.page-wrap.wide { max-width: 1100px; }

/* ---- HERO BADGE ---- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2);
  color: var(--cyan); font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  margin-bottom: 20px;
}
.badge::before { content: '●'; font-size: 8px; }

/* ---- TYPOGRAPHY ---- */
h1.page-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700; margin: 40px 0 12px;
  color: #fff;
}

h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; color: #fff; }

p { margin-bottom: 16px; color: var(--text); font-size: 16px; }

.lead {
  font-size: 18px; color: var(--muted); margin-bottom: 32px; line-height: 1.8;
}

strong { color: #fff; }

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

ul, ol { padding-left: 20px; margin-bottom: 16px; }
li { margin-bottom: 8px; color: var(--text); }

/* ---- ARTICLE PROSE ---- */
.prose { max-width: 100%; }
.prose h2 { color: #fff; }
.prose p + p { margin-top: 0; }

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin-top: 40px;
}

.card-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none; display: block; color: inherit;
}
.card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border-color: rgba(168,85,247,0.3);
  text-decoration: none;
}

.card-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 10px;
}

.card-title {
  font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.3;
}

.card-excerpt {
  font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0;
}

.card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}

/* ---- GLASS BOX ---- */
.glass-box {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 32px 0;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 16px; font-weight: 700; color: #fff;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.faq-q::after { content: '+'; color: var(--purple); font-size: 22px; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  color: var(--muted); font-size: 15px; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 12px; }

/* ---- CTA BOX ---- */
.cta-box {
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(236,72,153,0.1));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  margin: 48px 0 0;
}

.cta-box h2 { margin: 0 0 12px; font-size: 24px; }
.cta-box p { color: var(--muted); margin-bottom: 24px; }

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-family: var(--font);
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(168,85,247,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168,85,247,0.55);
  text-decoration: none;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.2); }

/* ---- READING PROGRESS ---- */
#reading-bar {
  position: fixed; top: 60px; left: 0; height: 3px; z-index: 99;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  width: 0%; transition: width 0.1s linear;
}

/* ---- FOOTER ---- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy { font-size: 13px; color: rgba(148,163,184,0.5); }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: rgba(6,6,15,0.97); padding: 16px; border-bottom: 1px solid var(--border); gap: 4px; }
  .nav-burger { display: block; }
  .page-wrap { padding: 40px 16px 60px; }
  .glass-box { padding: 20px; }
  .cta-box { padding: 28px 20px; }
}
