/* ─────────────────────────────────────────
   PSM Academy Risk — Design System
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --dark:      #070f1c;
  --dark-2:    #0c1e34;
  --dark-3:    #122a47;
  --teal:      #3bbcd4;
  --teal-dk:   #2497ac;
  --teal-soft: #a8d8e0;
  --white:     #f8fafc;
  --slate:     #64748b;
  --border:    rgba(255,255,255,0.09);
  --border-lt: rgba(10,28,46,0.1);
  --r-lg: 18px;
  --r-xl: 26px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: #0a1c2e;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────── */

.display {
  font-size: clamp(3.8rem, 9.5vw, 10.5rem);
  font-weight: 900;
  line-height: 0.90;
  letter-spacing: -0.045em;
}
.h1 {
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.04em;
}
.h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.00;
  letter-spacing: -0.032em;
}
.h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.22;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.30em;
  color: var(--teal);
}
.lead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.70;
  color: rgba(248,250,252,0.62);
}
.lead-dark { color: var(--slate); }

/* ── Layout ───────────────────────────────── */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.wrap-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}
.section { padding: 120px 40px; }
.section-sm { padding: 72px 40px; }

/* ── Backgrounds ──────────────────────────── */

.bg-dark  { background: var(--dark); color: var(--white); }
.bg-dark2 { background: var(--dark-2); color: var(--white); }
.bg-light { background: var(--white); }
.bg-slate { background: #f0f4f8; }
.bg-teal  { background: var(--teal); color: var(--dark); }

.grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 60px 60px;
}
.grid-overlay-light {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,28,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,28,46,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Navigation ───────────────────────────── */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.45s, box-shadow 0.45s;
}
#nav.solid {
  background: rgba(7, 15, 28, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 40px;
}
.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
  position: relative;
  transition: color 0.25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--teal); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  height: 2px; width: 0;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.25s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 11px;
  padding: 8px 13px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.20);
}
.logo-wrap img { height: 30px; width: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  padding: 13px 26px;
  border-radius: 50px;
  border: none; cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-teal { background: var(--teal); color: var(--dark); }
.btn-teal:hover { background: var(--teal-dk); box-shadow: 0 6px 20px rgba(59,188,212,0.3); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.5); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-3); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 198;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  padding: 8px 0;
}
.mobile-menu a:hover { color: #fff; }
.mobile-close {
  position: absolute; top: 28px; right: 32px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 28px;
  transition: color 0.2s;
}
.mobile-close:hover { color: #fff; }
.mobile-soc { display: flex; gap: 12px; margin-top: 32px; }
.mobile-soc a {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35) !important;
}
.mobile-soc a:hover { color: var(--teal) !important; }

/* ── Divider ──────────────────────────────── */

.rule { width: 56px; height: 3px; background: var(--teal); border-radius: 2px; margin: 18px 0; }
.rule-sm { width: 36px; height: 2px; background: var(--teal); border-radius: 2px; margin: 14px 0; }
.rule-white { background: rgba(255,255,255,0.2); }

/* ── Cards ────────────────────────────────── */

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card-dark:hover {
  border-color: rgba(59,188,212,0.40);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.card-light {
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-xl);
  padding: 36px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card-light:hover {
  box-shadow: 0 14px 40px rgba(10,28,46,0.10);
  transform: translateY(-5px);
}

/* ── Stats ────────────────────────────────── */

.stat-num {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--teal);
}
.stat-label {
  font-size: 13px; font-weight: 600;
  color: rgba(248,250,252,0.55);
  margin-top: 8px;
  line-height: 1.4;
}
.stat-label-dark { color: var(--slate); }

/* ── Footer ───────────────────────────────── */

footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 36px 40px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 20px;
}
.footer-meta { font-size: 12px; color: rgba(255,255,255,0.30); }
.soc-row { display: flex; gap: 8px; }
.soc-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: background 0.25s, color 0.25s;
}
.soc-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.soc-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ── WhatsApp FAB ─────────────────────────── */

.wfab {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 54px; height: 54px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}
.wfab:hover { transform: scale(1.12); box-shadow: 0 8px 28px rgba(37,211,102,0.55); }
.wfab svg { width: 26px; height: 26px; fill: #fff; }

/* ── Reveal animations ────────────────────── */

.rv {
  opacity: 0;
  transform: translateY(52px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv.on { opacity: 1; transform: none; }
.rv-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.rv-left.on { opacity: 1; transform: none; }
.rv-right { opacity: 0; transform: translateX(40px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.rv-right.on { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.22s; }
.d3 { transition-delay: 0.34s; }
.d4 { transition-delay: 0.46s; }
.d5 { transition-delay: 0.58s; }
.d6 { transition-delay: 0.70s; }
.d7 { transition-delay: 0.82s; }
.d8 { transition-delay: 0.94s; }

/* ── Shared JS ────────────────────────────── */
/* (inline in each page) */

/* ── Utility ──────────────────────────────── */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }
.gap-xl { gap: 64px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 32px; }
.mt-xl { margin-top: 52px; }
.mt-2xl { margin-top: 72px; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.z-above { position: relative; z-index: 5; }
.text-teal { color: var(--teal); }
.text-white { color: var(--white); }
.text-dark { color: var(--dark); }
.text-slate { color: var(--slate); }
.font-900 { font-weight: 900; }

/* ── Responsive ───────────────────────────── */

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 80px 24px; }
  .section-sm { padding: 52px 24px; }
  .wrap, .wrap-narrow, footer { padding-left: 24px; padding-right: 24px; }
  .nav-inner { padding: 18px 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  footer { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .display { font-size: clamp(3rem, 12vw, 5rem); }
  .h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .h2 { font-size: clamp(1.7rem, 7.5vw, 2.8rem); }
}
