/* --- CSS Variables & Theming --- */
:root {
  /* Colors */
  --color-bg-lavender: #9688F1;
  --color-bg-dark: #6251d1;
  --color-text-white: #ffffff;
  --color-text-dim: #f0eaff;
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-instrument: 'Instrument Serif', Georgia, serif;
  
  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2.5rem;
  --spacing-lg: 5rem;
  --spacing-xl: 8rem;
}

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

body {
  background-color: var(--color-bg-lavender);
  color: var(--color-text-white);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography Utilities --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
}

.section-title {
  font-family: var(--font-instrument);
  font-size: 60px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-white);
}

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

.annotation {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--color-text-white);
  display: inline-block;
  margin-bottom: 0.5rem;
  transform: rotate(-3deg);
}

.highlight {
  font-style: italic;
  font-weight: 700;
  font-family: var(--font-hand);
  font-size: 1.1em;
}

/* --- Navigation --- */
.nav {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 2rem 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--font-instrument);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav__link {
  transition: opacity 0.3s;
  opacity: 0.7;
}

.nav__link:hover {
  opacity: 1;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg-container {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.8;
  z-index: -1;
}

.hero__wireframe {
  display: none;
}

.hero__wave {
  position: absolute;
  width: 1050px;
  max-width: 110vw;
  animation: slowPulse 10s infinite alternate;
}

.hero__content {
  text-align: center;
  z-index: 10;
}

.hero__logo {
  width: 750px;
  max-width: 80vw;
  margin: 70px auto 1rem;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--color-text-white);
  opacity: 0.9;
}

/* --- Contact Bar --- */
.contact-bar {
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--spacing-md);
}

.contact-bar__container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.contact-bar__left {
  grid-column: 1;
  justify-self: start;
  z-index: 2;
  margin-left: -4rem;
  max-width: 380px;
}

.contact-bar__left h2 {
  font-family: var(--font-serif);
  font-size: 3.1rem;
  margin-bottom: 0.5rem;
}

.contact-bar__left p {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  line-height: 1.4;
}

.contact-bar__location {
  margin-top: 1rem;
}

.contact-bar__right {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.btn-create {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-text-white);
  color: var(--color-bg-lavender);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.btn-create:hover {
  transform: scale(1.05);
}

.search-pill {
  background: var(--color-text-white);
  color: var(--color-bg-dark);
  padding: 0.8rem 2rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 1.25rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-pill__icon {
  width: 26px;
  height: 26px;
}

/* --- Company Ethos --- */
.ethos {
  padding: var(--spacing-lg) 0 calc(var(--spacing-xl) + 30px);
  position: relative;
}

.section-header-bg {
  position: relative;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-header-bg .section-title {
  position: relative;
  z-index: 2;
}

.section-header-bg__img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170%;
  max-width: 650px;
  z-index: -1;
  opacity: 0.4;
  filter: brightness(1.5) contrast(1.5);
  pointer-events: none;
}

.ethos__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.ethos__col h3 {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.ethos-arrow {
  display: block;
  width: 30px;
  opacity: 0.5;
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.ethos-arrow--left {
  margin: 0.4rem 0 0.4rem -15px;
}

.ethos-arrow--right {
  width: 40px;
  margin: 0.4rem 0 0.4rem auto;
  margin-right: -15px;
}

.ethos-arrow--down {
  width: 28px;
  margin: 0.4rem auto;
}

.ethos__col p {
  margin-bottom: 1.25rem;
  font-family: var(--font-instrument);
  font-size: clamp(1.4rem, 2.2vw, 1.65rem);
  color: var(--color-text-white);
  line-height: 1.25;
}

/* --- Founders --- */
.founders {
  padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.founders__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  text-align: center;
}

.founder__img-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}

.founder:hover .founder__img-wrapper {
  transform: translateY(-10px);
}

.founder__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__name {
  font-family: var(--font-hand);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.founder__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.founder__bio {
  color: var(--color-text-dim);
  font-family: var(--font-instrument);
  font-size: clamp(1.4rem, 2.2vw, 1.65rem);
  line-height: 1.25;
  margin-top: 1rem;
}

/* --- App Features --- */
.features {
  padding: var(--spacing-lg) 0 var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.features__bg-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  z-index: -1;
  opacity: 0.3;
}

.features__desc {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
  font-family: var(--font-instrument);
  font-size: clamp(1.4rem, 2.2vw, 1.65rem);
  color: var(--color-text-white);
  line-height: 1.25;
}

.features__desc--bottom {
  margin-top: var(--spacing-lg);
}

.features__collage {
  position: relative;
  min-height: 600px;
  width: 95vw;
  max-width: 2200px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: var(--spacing-xl) 0;
}

.feature-item {
  position: relative;
  width: 25vw;
  max-width: 390px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-item:hover {
  z-index: 20 !important;
  transform: scale(1.05) translateY(-10px) !important;
}

.feature-item__img {
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
  width: 100%;
}

/* Collage Positioning & Tilts (Reset for horizontal array) */
.feature-item--1, .feature-item--2, .feature-item--3, .feature-item--4, .feature-item--5 {
  transform: none;
  left: auto;
  right: auto;
  top: auto;
}

/* Annotations */
.feature-item__annotation {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-hand);
  font-size: 2.8rem;
  line-height: 1.1;
  color: var(--color-white);
  z-index: 10;
  width: max-content;
}

.annotation-arrow {
  position: relative;
  display: block;
  margin: 15px auto 0;
  width: 60px;
  opacity: 0.8;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* --- Animations --- */
@keyframes slowPulse {
  0% { transform: scale(1.2) rotate(90deg); opacity: 0.4; }
  100% { transform: scale(1.25) rotate(92deg); opacity: 0.6; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }

/* Responsive adjustments */
@media (max-width: 1000px) {
  .features__collage {
    min-height: auto;
    flex-direction: column;
    gap: 4rem;
    padding: 2rem 0;
  }
  
  .feature-item {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto;
    width: 80%;
    max-width: 320px;
  }
  
  .feature-item__annotation {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    text-align: center;
    margin-bottom: 1rem;
    display: block;
  }
  
  .annotation-arrow { display: none; }

  .ethos__columns {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .nav__inner {
    gap: 1rem;
    font-size: 0.7rem;
    flex-wrap: wrap;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}
