/* ============================================
   INTELLECTUAL CAPITAL — Main Stylesheet
   Brand: #0071bc (blue), #aed4ef (light blue),
          #88c33f (green), #a1a1a1 (gray)
   ============================================ */

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

:root {
  --blue: #0071bc;
  --blue-dark: #005a96;
  --blue-deeper: #004070;
  --light-blue: #aed4ef;
  --light-blue-pale: #e8f3fb;
  --green: #88c33f;
  --green-dark: #6ea32e;
  --gray: #a1a1a1;
  --gray-light: #f4f4f4;
  --gray-dark: #4a4a4a;
  --white: #ffffff;
  --black: #111111;
  --text: #1a1a2e;
  --text-light: #5a5a72;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-width: 1200px;
  --section-pad: 100px 40px;
  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; }
p { font-size: 1rem; line-height: 1.75; color: var(--text-light); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}

/* ── LAYOUT ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.section { padding: var(--section-pad); }
.section-sm { padding: 60px 40px; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,113,188,0.1);
  transition: var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 44px; width: auto; }
.nav-logo svg { height: 44px; }

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  color: var(--blue) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-cta:hover { color: var(--blue-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,113,188,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(136,195,63,0.35);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
}
.btn-white:hover {
  background: var(--light-blue-pale);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.btn svg { width: 16px; height: 16px; }

/* ── HERO ── */
.hero {
  padding: 160px 40px 100px;
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 60%, #0089d8 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174,212,239,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136,195,63,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero .hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin-bottom: 48px;
  font-weight: 300;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge {
  display: inline-block;
  background: rgba(136,195,63,0.2);
  border: 1px solid rgba(136,195,63,0.4);
  color: #b8e06a;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 40px 80px;
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174,212,239,0.12) 0%, transparent 70%);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 680px;
  font-weight: 300;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--light-blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--blue);
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 12px; color: var(--text); font-size: 1.3rem; }
.card p { margin-bottom: 24px; }
.card .card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; font-size: 1.05rem; }
.section-header.centered p { margin: 0 auto; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--blue);
  padding: 48px 40px;
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

/* ── QUOTE / TESTIMONIAL ── */
.quote-block {
  background: var(--light-blue-pale);
  border-left: 4px solid var(--blue);
  padding: 40px 48px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 400;
}

.quote-attribution {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── FEATURE LIST ── */
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
  color: var(--text-light);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '';
  width: 20px; height: 20px;
  min-width: 20px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ── RESOURCE CARD ── */
.resource-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.resource-card-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.resource-card-header::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.resource-card-header h3 {
  color: var(--white);
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.resource-type-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.resource-card-body { padding: 32px; flex: 1; }
.resource-card-body p { margin-bottom: 24px; font-size: 0.9rem; }

/* ── MODAL (Lead Capture) ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--gray-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray);
  transition: var(--transition);
}
.modal-close:hover { background: #e0e0e0; color: var(--text); }

.modal h3 { margin-bottom: 8px; font-size: 1.5rem; }
.modal .modal-sub { font-size: 0.9rem; margin-bottom: 32px; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,188,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 16px;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 20px;
}
.form-success .success-icon {
  width: 56px; height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 1.5rem;
}
.form-success h4 { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.4rem; }

/* ── BLUE BAND ── */
.blue-band {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 100%);
  padding: 80px 40px;
}
.blue-band h2, .blue-band h3, .blue-band p { color: var(--white); }
.blue-band p { color: rgba(255,255,255,0.8); }

/* ── LIGHT BAND ── */
.light-band { background: var(--gray-light); padding: var(--section-pad); }
.pale-band { background: var(--light-blue-pale); padding: var(--section-pad); }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 24px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  gap: 16px;
}
.faq-question .faq-icon {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  background: var(--light-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.2rem;
  transition: var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--blue); color: white; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-top: 16px; }
.faq-answer p { font-size: 0.95rem; }

/* ── AUDIENCE TABS ── */
.audience-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.audience-tab {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1.5px solid #e0e0e0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}
.audience-tab:hover { border-color: var(--blue); color: var(--blue); }
.audience-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.audience-panel { display: none; }
.audience-panel.active { display: grid; }

/* ── FOOTER ── */
footer {
  background: var(--blue-deeper);
  padding: 72px 40px 40px;
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-logo { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact p {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  text-decoration: none;
  white-space: nowrap;
}
.skip-link:focus { top: 0; }

/* ── HERO LINE BREAK ── */
.hero-line-break { display: block; }
@media (max-width: 640px) { .hero-line-break { display: inline; } }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.12s; }
.fade-up.delay-2 { transition-delay: 0.24s; }
.fade-up.delay-3 { transition-delay: 0.36s; }
.fade-up.delay-4 { transition-delay: 0.48s; }

/* Grid containers should never be fade-up themselves — only their children */
.grid-2, .grid-3, .grid-4, .grid-auto {
  opacity: 1 !important;
  transform: none !important;
}

/* ── PRODUCT LOGOS ── */
.product-logo {
  height: 48px;
  width: auto;
  min-width: 160px;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

/* ── DIVIDER ── */
.divider { height: 1px; background: rgba(0,0,0,0.07); margin: 0; }

/* ── SPLIT LAYOUT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }

  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: white; flex-direction: column; padding: 32px 24px; gap: 8px;
    align-items: flex-start; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid #f0f0f0; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse { direction: ltr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 120px 20px 72px; }
  .page-hero { padding: 120px 20px 60px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .modal { padding: 32px 24px; }
  .section { padding: 64px 20px; }
  .blue-band { padding: 64px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
