/* ============================================
   PSIGNAL — Brand-Aligned Stylesheet
   Per Brand Guidelines 2025
   ============================================ */

:root {
  /* Primary palette (per brand doc) */
  --black: #000000;
  --navy-deep: #1F2A44;        /* Primary background for covers/section headers */
  --navy: #2E4A7D;              /* Secondary / panels */
  --slate: #5F6F8F;             /* Support / UI / slash graphic */
  --white: #FFFFFF;

  /* Secondary palette */
  --light-gray: #F4F6FA;        /* Light gray background */
  --divider: #BC9866;           /* Accent gold (divider / line, used sparingly) */

  /* Working tokens */
  --text-primary: #0A0E1A;      /* Near-black body copy */
  --text-secondary: #475066;    /* Secondary text */
  --text-dim: #7E8598;          /* Captions */
  --text-on-dark: #E8ECF2;
  --text-on-dark-dim: #B0B8CC;

  --border-light: rgba(31, 42, 68, 0.12);
  --border-strong: rgba(31, 42, 68, 0.25);
  --border-on-dark: rgba(255, 255, 255, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

/* ============ TYPOGRAPHY ============
   Per brand doc: Helvetica primary (headings), Inter secondary (body)
*/
h1, h2, h3, h4 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--text-primary);
}

h1 { font-size: clamp(44px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(18px, 2.2vw, 24px); }

p {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 65ch;
  line-height: 1.7;
}

.eyebrow {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

/* On dark sections (navy cover bands) */
.on-dark {
  background: var(--navy-deep);
  color: var(--text-on-dark);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark p { color: var(--text-on-dark-dim); }
.on-dark .eyebrow { color: var(--divider); }

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--navy); }

.nav-cta {
  padding: 10px 22px;
  background: var(--navy-deep);
  color: var(--white) !important;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.nav-cta:hover { background: var(--black); }

/* ============ LAYOUT ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

section {
  padding: 110px 0;
  position: relative;
}

.divider-line {
  height: 1px;
  background: var(--border-light);
  max-width: 1200px;
  margin: 0 auto;
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--navy-deep);
  color: var(--white);
  border: none;
  border-radius: 2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--black);
  transform: translateY(-1px);
}

.on-dark .btn-primary {
  background: var(--white);
  color: var(--navy-deep);
}
.on-dark .btn-primary:hover {
  background: var(--light-gray);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--navy-deep);
  border-radius: 2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.on-dark .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}
.on-dark .btn-secondary:hover {
  background: var(--white);
  color: var(--navy-deep);
}

/* ============ FORMS ============ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 15px 18px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy-deep);
}

input::placeholder, textarea::placeholder { color: var(--text-dim); }

/* Dark form variant */
.on-dark input, .on-dark textarea, .on-dark select {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-on-dark);
  color: var(--white);
}
.on-dark input:focus, .on-dark textarea:focus, .on-dark select:focus {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.on-dark input::placeholder, .on-dark textarea::placeholder { color: var(--text-on-dark-dim); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SLASH GRAPHIC (signature device from brand doc) ============ */
.slash-accent {
  position: absolute;
  width: 56px;
  height: 220px;
  background: var(--slate);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 0;
}

.slash-accent.dark {
  background: var(--navy-deep);
  height: 280px;
}

/* ============ FOOTER ============ */
footer {
  padding: 70px 40px 50px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  background: var(--white);
}

.footer-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.footer-tagline {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover { color: var(--navy-deep); }

.footer-link {
  font-size: 13px;
  color: var(--slate);
  text-decoration: none;
}

.footer-link:hover { color: var(--navy-deep); text-decoration: underline; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .container, .container-narrow { padding: 0 20px; }
  section { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; }
  .slash-accent { display: none; }
}
