/* ============================================================
   PGN Limited — Professional Redesign
   Palette: Deep Navy + Warm Gold + Slate
   Fonts: Instrument Serif (display) + Plus Jakarta Sans (body)
   Mobile-first, fully responsive
   ============================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Core Palette */
  --navy:        #0d1b2a;
  --navy-mid:    #162032;
  --navy-light:  #1e2d40;
  --navy-border: rgba(255,255,255,0.08);

  --gold:        #c9a84c;
  --gold-light:  #e2c274;
  --gold-dim:    rgba(201,168,76,0.18);
  --gold-border: rgba(201,168,76,0.30);

  --slate:       #4a6080;
  --slate-light: #6b859e;
  --cream:       #f7f4ef;
  --cream-dark:  #ede8e0;

  --white:       #ffffff;
  --text-primary: #0d1b2a;
  --text-body:   #334155;
  --text-muted:  #64748b;

  /* Semantic */
  --bg:          var(--cream);
  --surface:     var(--white);
  --accent:      var(--gold);
  --accent-lt:   var(--gold-dim);

  --green:       #1a6b3c;
  --green-lt:    rgba(26,107,60,0.1);
  --red:         #b91c1c;

  /* Layout */
  --max-w:       1200px;
  --radius:      2px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(13,27,42,0.08);
  --shadow-md:   0 4px 20px rgba(13,27,42,0.10);
  --shadow-lg:   0 12px 48px rgba(13,27,42,0.14);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ── TYPOGRAPHY SCALE ── */
h1, h2, h3, .display {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.65rem); }
h4 { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Arial, sans-serif; font-size: 1rem; font-weight: 600; }
p { line-height: 1.78; }

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--navy-border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.3); }
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 1.3rem; letter-spacing: -0.01em; color: var(--white);
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 3px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 0.65rem;
  color: var(--navy); font-weight: 400; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.logo em { font-style: italic; color: var(--gold-light); }
.nav-links {
  display: flex; align-items: center; gap: 0.125rem;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.62); padding: 0.5rem 0.9rem;
  border-radius: 4px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--gold-light); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-cta {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  background: var(--gold); color: var(--navy);
  padding: 0.52rem 1.25rem; border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.75);
  transition: all 0.28s;
}
/* Mobile nav overlay */
.nav-open .nav-links {
  display: flex; flex-direction: column; align-items: flex-start;
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--navy); border-bottom: 1px solid var(--navy-border);
  padding: 1.25rem 1.5rem 2rem; gap: 0.25rem; z-index: 299;
}
.nav-open .nav-links a { font-size: 1rem; padding: 0.7rem 0.5rem; }
/* .nav-phone removed — element not present in markup */

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--gold); color: var(--navy);
  padding: 0.875rem 2rem; border-radius: 3px; border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.35);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  background: transparent; color: var(--navy);
  padding: 0.875rem 2rem; border-radius: 3px;
  border: 1.5px solid rgba(13,27,42,0.25);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--white); color: var(--navy);
  padding: 0.875rem 2rem; border-radius: 3px; border: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  background: transparent; color: rgba(255,255,255,0.72);
  padding: 0.875rem 2rem; border-radius: 3px;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-gold-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  background: transparent; color: var(--gold-light);
  padding: 0.875rem 2rem; border-radius: 3px;
  border: 1.5px solid var(--gold-border);
  transition: background 0.2s, color 0.2s;
}
.btn-gold-outline:hover { background: var(--gold-dim); color: var(--white); }

/* ── SECTION LAYOUT ── */
section, .section-like { position: relative; z-index: 1; }
.section-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 5rem 2rem;
}
.section-inner.narrow { max-width: 820px; }
.label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); flex-shrink: 0; }
.label-light { color: rgba(201,168,76,0.85); }
.label-light::before { background: rgba(201,168,76,0.85); }
.section-lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.82; max-width: 580px; margin-top: 1rem; }
.section-lead.wide { max-width: 720px; }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--navy);
  padding: 7rem 2rem 4.5rem;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 50%, rgba(26,86,219,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.page-header h1 { color: var(--white); max-width: 700px; }
.page-header h1 em { font-style: italic; color: var(--gold-light); }
.page-header-sub {
  font-size: 1rem; color: rgba(255,255,255,0.55); max-width: 560px;
  margin-top: 1.25rem; line-height: 1.82;
}
.page-header-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem;
}
.header-pill {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.14);
  padding: 0.28rem 0.7rem; border-radius: 2px;
}

/* ── COMPLIANCE BAR ── */
.compliance-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--navy-border);
  padding: 0.9rem 2rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.compliance-label {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3); text-transform: uppercase; white-space: nowrap;
}
.compliance-pill {
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--gold-light); background: rgba(201,168,76,0.12);
  border: 1px solid var(--gold-border); padding: 0.22rem 0.6rem;
  border-radius: 2px; white-space: nowrap;
}

/* ── TAGS ── */
.tag {
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em;
  padding: 0.22rem 0.6rem; border-radius: 2px;
  border: 1px solid rgba(13,27,42,0.14); color: var(--text-muted);
  text-transform: uppercase;
}
.tag-accent { border-color: var(--gold-border); color: var(--gold); background: var(--gold-dim); }
.tag-green { border-color: rgba(26,107,60,0.25); color: var(--green); background: var(--green-lt); }
.tag-navy { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }

/* ── TERMINAL ── */
.terminal {
  background: #0d1b2a; border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px; overflow: hidden;
}
.terminal-bar {
  background: #091522; padding: 0.65rem 1rem;
  display: flex; align-items: center; gap: 0.45rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #22c55e; }
.terminal-title { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 0.66rem; color: rgba(255,255,255,0.25); margin-left: 0.5rem; }
.terminal-body { padding: 1.25rem 1.5rem; font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 0.74rem; line-height: 1.9; color: #cbd5e1; overflow-x: auto; }
.t-prompt { color: var(--gold); }
.t-cmd { color: #e2e8f0; }
.t-out { color: #475569; }
.t-ok { color: #34d399; }
.t-warn { color: #fbbf24; }
.t-err { color: #f87171; }
.t-comment { color: #334155; font-style: italic; }

/* ── DIVIDERS ── */
.divider { height: 1px; background: rgba(13,27,42,0.1); }
.divider-light { height: 1px; background: var(--navy-border); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-border);
  position: relative; z-index: 1;
}
.footer-main {
  max-width: var(--max-w); margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.38); line-height: 1.75; max-width: 260px; margin-bottom: 1.25rem; }
.footer-reg {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.28); border: 1px solid rgba(255,255,255,0.1);
  padding: 0.28rem 0.65rem; border-radius: 2px;
}
.footer-col h5 {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.28); text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  font-size: 0.85rem; font-weight: 400;
  color: rgba(255,255,255,0.5); transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--navy-border);
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.22); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { font-size: 0.7rem; color: rgba(255,255,255,0.22); letter-spacing: 0.04em; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ── ANIMATIONS ── */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse     { 0%,100% { transform: translateY(-50%) scale(1); opacity: .55; } 50% { transform: translateY(-50%) scale(1.06); opacity: .9; } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes shimmer   { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes blink     { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── UTILITIES ── */
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--white); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section-inner { padding: 4rem 1.5rem; }
  .compliance-bar { padding: 0.75rem 1.5rem; }
  .page-header { padding: 6rem 1.5rem 3.5rem; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 3rem 1.5rem 2.5rem; }
  .footer-bottom { padding: 1.25rem 1.5rem; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  nav { height: 60px; }
  .nav-open .nav-links { top: 60px; }
  .section-inner { padding: 3.5rem 1.25rem; }
  .page-header { padding: 5.5rem 1.25rem 3rem; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer-legal { justify-content: center; }
}
