/* ==========================================================================
   ATLAS WAYS - NOKKEL INSPIRED CSS (MINERAL PREMIUM)
   ========================================================================== */

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

:root {
  /* Minéral Premium Palette */
  --coal: #18181B;
  --deep-zinc: #52525B;
  --borders: #E5E5E5;
  --surface: #FAFAFA;
  --surface-hover: #F4F4F5;
  --background: #FFFFFF;
  --primary: #065F46; /* Forest Green */
  --accent: #991B1B; /* Adventure Red */
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--coal);
  background-color: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.1;
  color: var(--coal);
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--deep-zinc);
  font-size: 1.125rem;
  font-weight: 400;
}

.subtext {
  font-weight: 500;
  color: var(--deep-zinc);
  opacity: 0.8;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: #044b37;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--coal);
  border: 1px solid var(--borders);
}

.btn-secondary:hover {
  background-color: var(--surface-hover);
}

/* App Store Buttons */
.store-badges {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.store-badge {
  height: 48px;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   LAYOUT & HEADER
   ========================================================================== */

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

.header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

.header.scrolled {
  border-bottom: 1px solid var(--borders);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--coal);
}

.logo img {
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--deep-zinc);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--coal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  padding: 80px 0 120px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: 600px; /* Adjust based on phone size */
  display: flex;
  justify-content: center;
}

/* Hero Background Images (Nokkel style floating cards) */
.hero-bg-card {
  position: absolute;
  width: 350px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.5s ease;
}

.hero-bg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-bg-card.left {
  left: 5%;
  top: 15%;
  transform: rotate(-8deg);
}

.hero-bg-card.right {
  right: 5%;
  top: 25%;
  transform: rotate(6deg);
}

/* Phone Mockup Frame */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background-color: var(--coal);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Notch */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background-color: var(--coal);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 20;
}

.phone-screen {
  background-color: var(--background);
  border-radius: 28px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ==========================================================================
   FEATURES SECTION & TOGGLE
   ========================================================================== */

.features-section {
  padding: 100px 0;
  background-color: var(--surface);
}

.features-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.features-header h2 {
  margin-bottom: 16px;
}

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

.chapter-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background-color: rgba(6, 95, 70, 0.08); /* Transparent primary */
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 160px;
  gap: 64px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-content {
  flex: 1;
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.feature-content h3 {
  margin-bottom: 16px;
}

.feature-content p {
  margin-bottom: 32px;
}

.feature-content ul {
  list-style: none;
}

.feature-content li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--coal);
  font-size: 1.125rem;
}

.feature-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 900;
}

/* Alternate row direction dynamically for clean visual layout */
.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

/* Visual Backgrounds (Arches & Circles) */
.visual-bg-arch {
  position: absolute;
  width: 320px;
  height: 480px;
  background-color: #E5E5E5; 
  border-radius: 160px 160px 0 0;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
}

.visual-bg-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 160px 160px 0 0;
  opacity: 0.3;
}

.visual-bg-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  background-color: #E5E5E5;
  border-radius: 50%;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.visual-bg-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.3;
}

/* Ensure phone is above backgrounds */
.feature-visual .phone-mockup {
  z-index: 10;
}

/* ==========================================================================
   MISSION / IMAGE ARCHES SECTION
   ========================================================================== */

.mission-section {
  padding: 120px 0;
  text-align: center;
  background-color: var(--background);
}

.mission-header {
  max-width: 800px;
  margin: 0 auto 64px;
}

.arches-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
}

.arch-image {
  width: 300px;
  height: 450px;
  border-radius: 150px 150px 0 0;
  overflow: hidden;
  object-fit: cover;
}

/* ==========================================================================
   DARK CTA SECTION (Footer)
   ========================================================================== */

.dark-cta {
  background-color: var(--coal);
  color: var(--background);
  padding: 100px 0 0; /* No bottom padding because phone sticks out */
  overflow: hidden;
}

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

.cta-content {
  flex: 1;
  padding-bottom: 100px;
}

.cta-content h2 {
  color: var(--background);
  margin-bottom: 24px;
}

.cta-content p {
  color: var(--borders);
  margin-bottom: 32px;
}

.cta-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  align-self: flex-end; /* Align phone to the bottom */
}

/* Phone sticks out the bottom */
.cta-visual .phone-mockup {
  margin-bottom: -100px;
  transform: scale(1.1);
  transform-origin: bottom center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding: 48px 0;
  background-color: var(--background);
  text-align: center;
  color: var(--deep-zinc);
}

.footer .logo {
  justify-content: center;
  margin-bottom: 24px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
  .feature-row,
  #group-explorateurs .feature-row,
  #group-copilotes .feature-row {
    flex-direction: column-reverse; /* Text on bottom, image on top */
    text-align: center;
    gap: 48px;
  }
  
  .feature-content li::before {
    position: relative;
    margin-right: 8px;
  }
  
  .feature-content li {
    padding-left: 0;
    display: inline-block;
  }
  
  .feature-content ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-visual {
    justify-content: center;
    width: 100%;
    margin-top: 64px;
  }
  
  .cta-content {
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .hero-bg-card {
    display: none; /* Hide floating cards on mobile to avoid clutter */
  }
  
  .arches-container {
    flex-direction: column;
    align-items: center;
  }
  
  .arch-image {
    width: 100%;
    max-width: 350px;
    height: 300px;
  }
}
