/* ========================================
   Lys Technologies - Design System & Styles
   ======================================== */

@font-face {
  font-family: 'Heming';
  src: url('assets/Heming Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #2d5a3d;
  --color-text-light: #ffffff;
  --color-text-dark: #1a1a1a;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 18px;
  --line-height: 1.6;
  --max-width: 1200px;
  --section-padding-v: 80px;
  --section-padding-h: 24px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height);
  color: var(--color-text-dark);
  background-color: #ffffff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 600;
}

/* ========================================
   Header Bar (white bar that scrolls away)
   ======================================== */

.header-bar {
  /* HEIGHT: Adjust this to make the white bar taller/shorter */
  height: 70px;
  background-color: #ffffff;
  width: 100%;
}

/* ========================================
   Navigation (fixed, stays on screen)
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Height should match .header-bar height for vertical centering */
  height: 72px;
  padding: 0 var(--section-padding-h);
  display: flex;
  align-items: center;
}

.nav__container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: 'Heming', serif;
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--color-text-dark);
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-family: 'Heming', serif;
  color: var(--color-text-dark);
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 0.6;
}

/* ========================================
   Section Base Styles
   ======================================== */

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding-v) var(--section-padding-h);
  position: relative;
}

.section--half {
  min-height: 50vh;
}

.section--short {
  min-height: 50vh;
}

.section--auto {
  min-height: auto;
}

.section__content {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* Background image sections */
.section--bg {
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
}

.section--bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15));
  z-index: 1;
}

.section--bg .section__content {
  position: relative;
  z-index: 2;
  color: var(--color-text-light);
}

/* Full-page background on main */
.main--fullbg {
  background-size: cover;
  background-position: 50% 22%;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Transparent sections (for use with full-page background) */
.section--transparent {
  background: transparent;
}

.section--transparent .section__content {
  color: var(--color-text-light);
}

/* Hero section - single viewport with all key content */
.section--hero {
  padding-top: 40px;
  padding-bottom: 60px;
}

.section--hero .section__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: calc(100vh - 180px);
}

/* Hero intro wrapper for title + subtitle */
.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* SPACING: Nav bar to "WHAT IF YOUR COMPUTER..." title */
.section--hero .heading-xl {
  margin-top: 140px;
  margin-bottom: 16px;
}

/* SPACING: Title/subtitle to value props ("Neuroscience and AI...", etc.) */
.section--hero .value-props {
  margin-top: 188px;
}

/* SPACING: Value props to hiring teaser ("Currently Hiring!") */
.hiring-teaser {
  margin-top: 188px;
}

.heading-outlined {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.hiring-teaser__role {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.hiring-teaser__role:hover {
  background-color: #1e3d29;
}

/* Light sections */
.section--light {
  background-color: #ffffff;
}

/* Light overlay - transparent with white overlay (for use with full-page background) */
.section--light-overlay {
  background: transparent;
  position: relative;
}

.section--light-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.33);
  z-index: 1;
}

.section--light-overlay .section__content {
  position: relative;
  z-index: 2;
}

.section--light-gray {
  background-color: #f8f9fa;
}

/* ========================================
   Typography
   ======================================== */

.heading-xl {
  font-family: 'Heming', serif;
  font-size: 47px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.heading-lg {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.heading-md {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.heading-sm {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
}

.text-lg {
  font-size: 1.25rem;
}

.text-muted {
  opacity: 0.7;
}

/* ========================================
   Value Props Grid (Home Page)
   ======================================== */

.value-props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px 48px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.value-prop {
  transition: opacity 0.05s ease-out, transform 0.05s ease-out;
}

.value-prop h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.value-prop--left {
  grid-column: 1;
  grid-row: 2;
  text-align: left;
  transform-origin: left center;
}

.value-prop--right-top h3 {
  font-size: 1.9rem;
  font-weight: 400;
}

.value-prop--right-top {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

.value-prop--left h3 {
  font-size: 2.1rem;
  font-weight: 800;
  -webkit-text-stroke: 1px rgba(139, 92, 246, 0.8);
  text-stroke: 1px rgba(139, 92, 246, 0.8);
  paint-order: stroke fill;
}

.value-prop--right-bottom {
  font-size: 2.1rem;
  grid-column: 2;
  grid-row: 3;
  text-align: right;
  transform-origin: right center;
  margin-top: 40px;
}

.value-prop--right-bottom h3 {
  font-size: 2.1rem;
  font-weight: 800;
  -webkit-text-stroke: 1px rgba(139, 92, 246, 0.8);
  text-stroke: 1px rgba(139, 92, 246, 0.8);
  paint-order: stroke fill;
}

/* ========================================
   About Page Description
   ======================================== */

.about-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text-dark);
}

.about-description a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.about-description a:hover {
  opacity: 0.7;
}

/* ========================================
   Team Section (About Page)
   ======================================== */

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.team-member__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: #e0e0e0;
  margin: 0 auto 24px;
  overflow: hidden;
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-member__linkedin {
  color: var(--color-primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.team-member__linkedin:hover {
  opacity: 0.7;
}

/* ========================================
   Partners Section
   ======================================== */

.partners__title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dark);
  opacity: 0.6;
  margin-bottom: 32px;
}

.partners__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.partners__logo {
  height: 60px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.partners__logo:hover {
  opacity: 1;
}

.partners__logo--spc {
  height: 95px;
}

.partners__logo--longjourney {
  height: 75px;
}

/* ========================================
   Job Listings (Hiring Page)
   ======================================== */

.job-listing {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 48px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.job-listing__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.job-listing__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.job-listing__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--color-text-dark);
}

.job-listing__apply-btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.job-listing__apply-btn:hover {
  background-color: #1e3d29;
}

.job-listing__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--color-text-dark);
  opacity: 0.7;
}

.job-listing__section {
  margin-bottom: 32px;
}

.job-listing__section:last-child {
  margin-bottom: 0;
}

.job-listing__section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.job-listing__section ul {
  padding-left: 24px;
}

.job-listing__section li {
  margin-bottom: 8px;
}

/* ========================================
   CTA & Buttons
   ======================================== */

.cta-link {
  display: inline-block;
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 1.25rem;
  padding: 16px 32px;
  border: 2px solid var(--color-text-light);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cta-link:hover {
  background-color: var(--color-text-light);
  color: var(--color-text-dark);
}

.cta-link--primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.cta-link--primary:hover {
  background-color: #1e3d29;
  border-color: #1e3d29;
  color: var(--color-text-light);
}

/* ========================================
   Utility Classes
   ======================================== */

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.text-center { text-align: center; }

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 768px) {
  :root {
    --section-padding-v: 40px;
  }

  .heading-xl {
    font-size: 2rem;
  }

  .heading-lg {
    font-size: 1.75rem;
  }

  .heading-md {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1.125rem;
  }

  .heading-outlined {
    font-size: 1.75rem;
  }

  .hiring-teaser__role {
    font-size: 0.875rem;
    padding: 8px 16px;
  }

  .nav {
    background-color: #ffffff;
  }

  .nav__links {
    gap: 16px;
  }

  .nav__link {
    font-size: 0.875rem;
  }

  .value-props {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }

  .value-prop--left,
  .value-prop--right-top,
  .value-prop--right-bottom {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
    padding-right: 0;
    margin-top: 0;
  }

  .value-prop--right-top {
    text-align: right;
  }

  .value-prop--left {
    text-align: left;
  }

  .value-prop--right-bottom {
    text-align: center;
  }

  .section--hero {
    padding-top: 0;
    padding-bottom: 40px;
  }

  .section--hero .section__content {
    min-height: auto;
    justify-content: flex-start;
  }

  /* MOBILE: Hero intro takes full viewport and centers content */
  .hero-intro {
    min-height: 92vh;
    justify-content: center;
    padding-top: 60px;
  }

  /* MOBILE SPACING: Nav bar to title */
  .section--hero .heading-xl {
    margin-top: 0;
  }

  /* MOBILE SPACING: Title/subtitle to value props */
  .section--hero .value-props {
    margin-top: 10px;
  }

  /* MOBILE SPACING: Value props to hiring teaser */
  .hiring-teaser {
    margin-top: 120px;
  }

  .about-description {
    padding-left: 16px;
    padding-right: 16px;
    text-align: left;
  }

  .team {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-member__photo {
    width: 140px;
    height: 140px;
  }

  .partners__logos {
    gap: 32px;
  }

  .partners__logo {
    height: 40px;
  }

  .job-listing {
    padding: 24px;
  }

  .job-listing__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .job-listing__meta {
    flex-direction: column;
    gap: 8px;
  }
}
