/* ============================================
   Safer Intelligence Labs — Global Styles
   Mirrors the Compass demo design language:
   warm, scientific, generous whitespace,
   premium research-lab aesthetic.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #3A3A42;
  background-color: #FAF8F5;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: #2C1810;
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: #C4953A;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #A67B2E;
}

strong {
  font-weight: 600;
  color: #2C1810;
}

/* Section label — uppercase small text, Compass demo style */
.label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #C4953A;
  margin-bottom: 1.25rem;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 7rem 0;
}

.section--white {
  background: #FFFFFF;
}

/* --- Horizontal Rule — thin gold, Compass style --- */
hr {
  border: none;
  height: 1px;
  background: #E8E4DF;
  margin: 3.5rem 0;
}

hr.gold {
  background: #C4953A;
  max-width: 56px;
  margin: 1.75rem 0;
}

.text-center hr.gold {
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E8E4DF;
}

.nav__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2C1810;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav__wordmark:hover {
  color: #2C1810;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  list-style: none;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #7A7A85;
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav__link:hover {
  color: #2C1810;
}

.nav__link--cta {
  color: #C4953A;
  border: 1.5px solid #C4953A;
  padding: 0.4rem 1.3rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav__link--cta:hover {
  background: #C4953A;
  color: #FFFFFF;
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #2C1810;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 2.5rem 8rem;
}

.hero__content {
  max-width: 720px;
}

.hero .label {
  color: #B0AAA2;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: #7A7A85;
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: #1B2B4B;
  color: #FFFFFF;
}

.btn--primary:hover {
  background: #152340;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27, 43, 75, 0.2);
}

.btn--outline {
  background: transparent;
  color: #1B2B4B;
  border: 1.5px solid #1B2B4B;
}

.btn--outline:hover {
  background: #1B2B4B;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn--gold {
  background: #C4953A;
  color: #FFFFFF;
}

.btn--gold:hover {
  background: #A67B2E;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 149, 58, 0.25);
}

/* --- Narrative Flow --- */
.narrative {
  margin: 3rem 0;
}

.narrative__point {
  padding: 2rem 0;
  border-bottom: 1px solid #E8E4DF;
}

.narrative__point:first-child {
  padding-top: 0;
}

.narrative__point:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.narrative__point h3 {
  margin-bottom: 0.6rem;
  color: #2C1810;
}

.narrative__point p {
  color: #5A5A62;
  margin-bottom: 0;
}

/* --- Callout — warm peach, pitch deck style --- */
.callout {
  background: rgba(196, 149, 58, 0.08);
  border-radius: 10px;
  padding: 2.25rem 2.5rem;
  margin: 3.5rem 0;
}

.callout p {
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  color: #3A3A42;
  margin-bottom: 0.75rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: #2C1810;
}

/* --- Quote --- */
.quote-bar {
  margin: 3.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quote {
  padding-left: 1.75rem;
  border-left: 2px solid #C4953A;
}

.quote__text {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
  color: #2C1810;
}

.quote__attribution {
  font-size: 0.82rem;
  color: #B0AAA2;
  font-weight: 500;
}

.quote__attribution strong {
  color: #7A7A85;
  font-weight: 600;
}

/* --- Milestones --- */
.milestones {
  margin: 3rem 0;
}

.milestone {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #E8E4DF;
  align-items: baseline;
}

.milestone:first-child {
  padding-top: 0;
}

.milestone:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.milestone__marker {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: #C4953A;
  border-radius: 50%;
  margin-top: 0.55rem;
}

.milestone h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.milestone p {
  font-size: 0.92rem;
  color: #7A7A85;
  margin-bottom: 0;
}

/* --- Page Header --- */
.page-header {
  padding: 11rem 0 4rem;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  color: #7A7A85;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 540px;
}

/* --- Founder --- */
.founder__details {
  list-style: none;
  margin-top: 2rem;
}

.founder__details li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: #5A5A62;
  border-bottom: 1px solid #E8E4DF;
}

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

.founder__details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 5px;
  height: 5px;
  background: #C4953A;
  border-radius: 50%;
}

/* --- Hiring --- */
.hiring-list {
  margin: 3rem 0;
}

.hiring-role {
  padding: 1.5rem 0;
  border-bottom: 1px solid #E8E4DF;
}

.hiring-role:first-child {
  padding-top: 0;
}

.hiring-role:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hiring-role h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.hiring-role p {
  font-size: 0.92rem;
  color: #7A7A85;
  margin-bottom: 0;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 480px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2C1810;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  border: 1px solid #E8E4DF;
  border-radius: 8px;
  background: #FFFFFF;
  color: #3A3A42;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B0AAA2;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #C4953A;
  box-shadow: 0 0 0 3px rgba(196, 149, 58, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid #E8E4DF;
  padding: 5rem 0 2.5rem;
}

.footer__cta {
  text-align: center;
  padding-bottom: 4rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #E8E4DF;
}

.footer__cta h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.footer__cta p {
  color: #7A7A85;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.footer__links a {
  color: #B0AAA2;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #C4953A;
}

.footer__copy {
  font-size: 0.8rem;
  color: #B0AAA2;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: #7A7A85; }
.max-w-prose { max-width: 600px; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2.5rem;
    gap: 1.75rem;
    border-bottom: 1px solid #E8E4DF;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding: 8rem 2rem 5rem;
    min-height: auto;
  }

  .section {
    padding: 5rem 0;
  }

  .page-header {
    padding: 8rem 0 3rem;
  }

  .callout {
    padding: 1.75rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
  }
}
