/* ============================================
   BetaLink Technology — Stylesheet
   Palette: deep navy + warm copper accent
   Type:    Fraunces (display) + IBM Plex Sans (body)
============================================ */

:root {
  --c-ink:        #0C1F3D;
  --c-ink-soft:   #1A2F52;
  --c-blue:       #1D4ED8;
  --c-blue-soft:  #E8EEFB;
  --c-copper:     #B86B3C;
  --c-copper-soft:#F4E6DC;
  --c-paper:      #FAFAF7;
  --c-paper-alt:  #F2F1EB;
  --c-text:       #1A202C;
  --c-muted:      #5A6578;
  --c-border:     #E2E1D9;
  --c-white:      #FFFFFF;

  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 2px rgba(12, 31, 61, 0.05);
  --shadow-md: 0 4px 20px rgba(12, 31, 61, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 31, 61, 0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-paper);
  font-feature-settings: 'ss01', 'ss02';
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-copper);
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  color: var(--c-ink);
  font-weight: 500;
  line-height: 1.2;
  font-variation-settings: 'SOFT' 30, 'WONK' 0;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--c-ink); }

p {
  margin-bottom: 1rem;
  color: var(--c-text);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   TOP BAR
============================================ */
.topbar {
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar a {
  color: var(--c-paper);
  opacity: 0.85;
}

.topbar a:hover {
  opacity: 1;
  color: var(--c-copper-soft);
}

.topbar .divider {
  opacity: 0.4;
  margin: 0 0.75rem;
}

/* ============================================
   HEADER / NAV
============================================ */
.site-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.logo:hover { color: var(--c-ink); }

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--c-ink);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-copper);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--c-copper);
  border-bottom-left-radius: 6px;
}

.logo em {
  font-style: italic;
  color: var(--c-copper);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--c-ink);
  font-size: 1.25rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--c-text);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--c-copper);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--c-ink);
  font-weight: 600;
}

/* ============================================
   HERO
============================================ */
.hero {
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-soft) 100%);
  color: var(--c-paper);
  padding: clamp(4rem, 10vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 107, 60, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184, 107, 60, 0.4);
}

.hero h1 {
  color: var(--c-paper);
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--c-copper);
  font-weight: 400;
}

.hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 720px;
  color: rgba(250, 250, 247, 0.85);
  margin-bottom: 2rem;
}

.hero-compact {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.hero-compact h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--c-copper);
  color: var(--c-white);
}

.btn-primary:hover {
  background: #A55D33;
  color: var(--c-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: rgba(250, 250, 247, 0.3);
  color: var(--c-paper);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--c-copper);
  color: var(--c-copper);
}

.btn-dark {
  background: var(--c-ink);
  color: var(--c-paper);
}

.btn-dark:hover {
  background: var(--c-ink-soft);
  color: var(--c-paper);
}

.btn .arrow {
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ============================================
   SECTIONS
============================================ */
section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-alt {
  background: var(--c-paper-alt);
}

.section-dark {
  background: var(--c-ink);
  color: var(--c-paper);
}

.section-dark h2,
.section-dark h3 {
  color: var(--c-paper);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-header p {
  color: var(--c-muted);
  font-size: 1.0625rem;
}

/* ============================================
   GRIDS & CARDS
============================================ */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-ink-soft);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--c-copper-soft);
  color: var(--c-copper);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  font-family: var(--f-display);
  font-weight: 600;
}

.card-num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 2.5rem;
  color: var(--c-copper);
  line-height: 1;
  margin-bottom: 1rem;
  font-style: italic;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--c-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.card ul {
  list-style: none;
  margin-top: 1rem;
}

.card ul li {
  padding: 0.375rem 0 0.375rem 1.25rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--c-copper);
  font-weight: 600;
}

/* Inverted cards on dark section */
.section-dark .card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--c-paper);
}

.section-dark .card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--c-copper);
}

.section-dark .card p,
.section-dark .card ul li {
  color: rgba(250, 250, 247, 0.75);
}

.section-dark .card-icon {
  background: rgba(184, 107, 60, 0.15);
  color: var(--c-copper);
}

/* ============================================
   TWO-COLUMN LAYOUT
============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

.two-col .col-image {
  background: var(--c-ink);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--c-paper);
  position: sticky;
  top: 120px;
}

.two-col .col-image h3 {
  color: var(--c-paper);
  margin-bottom: 1rem;
}

.two-col .col-image blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--c-paper);
  border-left: 3px solid var(--c-copper);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.two-col .col-image cite {
  display: block;
  color: var(--c-copper);
  font-size: 0.875rem;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   STAT STRIP
============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--c-ink);
  font-weight: 400;
  font-variation-settings: 'SOFT' 40;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-value em {
  font-style: italic;
  color: var(--c-copper);
}

.stat-label {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ============================================
   CONTACT
============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.contact-card:hover {
  border-color: var(--c-copper);
}

.contact-card .label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-copper);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.contact-card dt {
  color: var(--c-muted);
  font-weight: 500;
}

.contact-card dd {
  color: var(--c-text);
}

.contact-card dd a {
  word-break: break-all;
}

/* ============================================
   PARTNERS
============================================ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.partner-tile {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  padding: 2rem 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.partner-tile:hover {
  border-color: var(--c-copper);
  transform: translateY(-2px);
  color: var(--c-copper);
}

/* ============================================
   CTA BANNER
============================================ */
.cta-banner {
  background: var(--c-ink);
  color: var(--c-paper);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 107, 60, 0.2) 0%, transparent 70%);
}

.cta-banner .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--c-paper);
  max-width: 640px;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: #071530;
  color: rgba(250, 250, 247, 0.7);
  padding: 4rem 0 2rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-col h4 {
  color: var(--c-paper);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  padding: 0.3125rem 0;
}

.footer-col a {
  color: rgba(250, 250, 247, 0.7);
}

.footer-col a:hover {
  color: var(--c-copper);
}

.footer-about p {
  color: rgba(250, 250, 247, 0.6);
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.footer-about .logo {
  color: var(--c-paper);
}

.footer-about .logo:hover { color: var(--c-paper); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(250, 250, 247, 0.5);
}

/* ============================================
   PROSE CONTENT (About page etc.)
============================================ */
.prose {
  max-width: 720px;
}

.prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 1.25rem;
}

.prose p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 3.75rem;
  font-weight: 400;
  float: left;
  line-height: 0.85;
  margin: 0.35rem 0.75rem 0 0;
  color: var(--c-copper);
  font-style: italic;
}

.prose h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}

.prose h3:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.value-list {
  list-style: none;
  padding: 0;
}

.value-list li {
  padding: 1rem 0 1rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--c-border);
}

.value-list li:last-child {
  border-bottom: none;
}

.value-list li strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.125rem;
  color: var(--c-ink);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.value-list li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 1.125rem;
  font-family: var(--f-display);
  font-size: 0.875rem;
  color: var(--c-copper);
  font-style: italic;
}

.value-list {
  counter-reset: item;
}

/* ============================================
   BREADCRUMB
============================================ */
.breadcrumb {
  font-size: 0.8125rem;
  color: rgba(250, 250, 247, 0.6);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(250, 250, 247, 0.6);
}

.breadcrumb a:hover {
  color: var(--c-copper);
}

.breadcrumb .sep {
  margin: 0 0.5rem;
  opacity: 0.4;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 860px) {
  .container { padding: 0 1.25rem; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    display: none;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .main-nav li {
    border-bottom: 1px solid var(--c-border);
  }

  .main-nav li:last-child { border-bottom: none; }

  .main-nav a {
    display: block;
    padding: 0.875rem 0;
  }

  .topbar {
    font-size: 0.75rem;
  }

  .topbar .divider {
    display: none;
  }

  .cta-banner .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .two-col .col-image {
    position: static;
  }

  .prose p:first-of-type::first-letter {
    font-size: 2.75rem;
  }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero > .container > * {
  animation: fadeUp 0.6s ease-out backwards;
}

.hero .eyebrow { animation-delay: 0.05s; }
.hero h1      { animation-delay: 0.15s; }
.hero .lead   { animation-delay: 0.25s; }
.hero .hero-actions { animation-delay: 0.35s; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
