/* ==========================================================================
   Design Tokens & Resets
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text-main: #1a1a1a;
  --color-text-muted: #555555;
  --color-text-light: #888888;
  --color-bg-light: #f9f9fa;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --font-size-base: 16px;
  
  /* Layout */
  --container-width: 1280px;
  --spacing-section: 120px;
  --spacing-section-mobile: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Layout Utils
   ========================================================================== */

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

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

.section {
  padding: var(--spacing-section) 0;
}

.section--alt {
  background-color: var(--color-bg-light);
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-section-mobile) 0;
  }
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

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

.btn--primary:hover {
  background-color: #333;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn--outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn--white:hover {
  background-color: #f0f0f0;
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  background-color: var(--color-white); /* Adjust for the exact design */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Added slight shadow to separate from content when scrolling */
}

/* In the mockup, the header has a gray background. Let's make it light gray */
.header--light {
  background-color: #f2f2f2;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 18px;
}

.logo-box {
  width: 32px;
  height: 32px;
  background-color: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav-link {
  font-size: 15px;
  color: var(--color-text-main);
  font-weight: 400;
}

.header__nav-link:hover {
  color: var(--color-text-muted);
}

/* Header Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101; /* Above nav */
}

.header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-black);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 80px 24px 24px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    transition: right 0.3s ease;
    z-index: 100;
  }

  .header__nav.is-active {
    right: 0;
  }

  .header__toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .header__toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .header__toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  background-color: #1a1a1a; /* Fallback */
  margin-top: 80px; /* Offset for header */
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6; /* Darken the image */
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero__title {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 24px;
}

.hero__desc {
  font-size: 16px;
  font-weight: 300;
  color: #cccccc;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Intro Text Section */
.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.intro__title {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 40px;
}

.intro__text {
  font-size: 20px;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 24px;
}

/* Feature Split Section */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 992px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.feature-item__title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}

.feature-item__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.feature-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 120%; /* Aspect ratio matching the tall images */
  background-color: var(--color-bg-light);
}

.feature-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Title Generic */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header__title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
}

.card__img-wrapper {
  width: 100%;
  padding-bottom: 125%; /* Aspect ratio */
  position: relative;
  background-color: var(--color-bg-light);
  margin-bottom: 24px;
}

.card__img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Process Section */
.process-section {
  background-color: var(--color-bg-light);
  padding: 100px 0;
  margin: var(--spacing-section) 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

@media (max-width: 576px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
}

.process-step__num {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.process-step__title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.process-step__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Banner Section */
.banner {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background-color: var(--color-black);
}

.banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.5;
}

.banner__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .banner__content {
    padding: 0 24px;
  }
}

.banner__title {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.banner__desc {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: #e0e0e0;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 120px 0;
}

.cta__title {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 576px) {
  .cta__title {
    font-size: 40px;
  }
  .cta__actions {
    flex-direction: column;
  }
}

/* Footer */
.footer {
  border-top: 1px solid #eaeaea;
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer__column-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer__link:hover {
  color: var(--color-black);
}

.footer__bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #eaeaea;
  font-size: 12px;
  color: var(--color-text-light);
}

.footer__brand {
  margin-bottom: 12px;
}

/* Utility to override colors for the "Why we exist" block */
.story-section {
  margin-bottom: 40px;
}

.story-section .intro__title {
  text-align: left;
  font-size: 40px;
}

.story-section .intro__text {
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.story-img {
  padding-bottom: 100%;
}
