/* Font setup */
@font-face {
  font-family: "Outfit";
  src: url("font/Outfit-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --green: #55B36E;
  --blue: #144F7F;
  --blue-dark: #0A3A61;
  --blue-light: #2B6FA8;
  --yellow: #FDCA66;
  --text-primary: #0B2C45;
  --text-secondary: #4A6B85;
  --text-light: #8FA5B8;
  --white: #FFFFFF;
  --gray-50: #F8FAFB;
  --gray-100: #F1F5F8;
  --container: 1200px;
  
  /* Typography Scale */
  --text-huge: clamp(3.5rem, 9vw, 7rem);
  --text-display: clamp(2.5rem, 6vw, 4.5rem);
  --text-large: clamp(1.5rem, 3vw, 2.5rem);
  --text-body: 1.125rem;
  --text-small: 0.875rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-2xl: 10rem;
  --spacing-3xl: 15rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

::selection {
  background: var(--blue);
  color: var(--white);
  opacity: 0.99;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Preloader - Ultra Minimal */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 10000;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader-inner {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 10001;
}

.preloader-logo {
  width: 120px;
  height: auto;
  opacity: 0;
  animation: fadeInOut 2.5s ease-in-out;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

/* Preloader Percentage Counter */
.preloader-percentage {
  position: fixed;
  bottom: 40px;
  left: 40px;
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 500;
  color: var(--blue);
  letter-spacing: -0.02em;
  z-index: 10001;
  font-family: "Outfit", sans-serif;
  line-height: 1;
}

/* Preloader Progress Bar */
.preloader-progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 8px;
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 100%);
  z-index: 10001;
  transition: width 0.05s linear;
}

/* Logo Hero Section - Minimal */
.logo-hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  position: relative;
  padding: var(--spacing-2xl) 0;
}

.logo-hero-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-hero {
  width: clamp(300px, 50vw, 600px);
  height: auto;
  max-width: 85%;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.05));
}

/* Section Divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  opacity: 0.08;
  margin: var(--spacing-3xl) 0;
}

/* Jaguar Section - Keep animation */
.jaguar-section {
  position: relative;
  height: 80vh;
  width: 45%;
  margin: var(--spacing-3xl) auto var(--spacing-xl);
  border-radius: 999px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.jaguar-background {
  position: absolute;
  inset: 0;
  background-image: url('assets/jaguar.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.8) contrast(1.05);
  transform: scale(1.1);
}

.jaguar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(85, 179, 110, 0.3) 0%,
    rgba(20, 79, 127, 0.5) 50%,
    rgba(10, 58, 97, 0.7) 100%);
}

.jaguar-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--spacing-lg);
}

.jaguar-title {
  font-size: var(--text-huge);
  font-weight: 500;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.jaguar-subtitle {
  display: block;
  font-size: var(--text-large);
  font-weight: 500;
  line-height: 1.3;
  margin-top: var(--spacing-md);
  opacity: 0.9;
}

/* Manifesto Section - Minimal */
.manifesto-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--white);
  position: relative;
  padding: var(--spacing-3xl) 0;
}

.manifesto-content {
  max-width: 650px;
  margin-left: 15%;
}

.manifesto-intro {
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
  letter-spacing: 0.02em;
}

.manifesto-intro .text-muted {
  color: var(--text-light);
  font-weight: 300;
  opacity: 0.7;
}

.manifesto-headline {
  font-size: var(--text-huge);
  font-weight: 500;
  color: var(--blue);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.manifesto-headline span {
  display: block;
  color: var(--blue-dark);
  margin-top: var(--spacing-sm);
}

/* Culture Section - Keep animation */
.culture-section {
  position: relative;
  height: 80vh;
  width: 45%;
  margin: var(--spacing-3xl) auto var(--spacing-xl);
  border-radius: 999px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.culture-background {
  position: absolute;
  inset: 0;
  background-image: url('assets/sombrero.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.85) saturate(1.05);
  transform: scale(1.1);
}

.culture-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,
    rgba(20, 79, 127, 0.6) 0%,
    rgba(85, 179, 110, 0.4) 50%,
    rgba(10, 58, 97, 0.8) 100%);
}

.culture-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--spacing-lg);
}

.culture-text {
  text-align: right;
  color: var(--white);
}

.culture-title {
  font-size: var(--text-huge);
  font-weight: 500;
  line-height: 1;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.03em;
}

.culture-subtitle {
  font-size: var(--text-large);
  font-weight: 200;
  line-height: 1.4;
  opacity: 0.9;
}

/* Footer Reveal Wrapper - Apple Style */
.reveal-wrapper {
  position: relative;
  min-height: 200vh; /* Create scroll space for reveal effect */
}

/* Logo Section - Minimal */
.logo-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  position: relative;
  padding: var(--spacing-3xl) 0;
  z-index: 1;
  /* Will be pinned by GSAP */
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-main {
  width: clamp(320px, 40vw, 500px);
  height: auto;
  max-width: 85%;
  opacity: 1; /* Always fully visible */
}

/* CTA Section - Refined with Reveal Effect */
.cta-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  z-index: 10;
  overflow: hidden;
  padding: var(--spacing-3xl) 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2);
}

.cta-decoration {
  position: absolute;
  right: -35%;
  bottom: -25%;
  width: 70%;
  height: 160%;
  background-image: url('assets/ornamental.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: brightness(0) saturate(100%) invert(86%) sepia(31%) saturate(1443%) hue-rotate(340deg) brightness(103%) contrast(98%);
  opacity: 1;
  pointer-events: none;
}

.cta-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-text {
  text-align: center;
  max-width: 800px;
}

.cta-title {
  font-size: var(--text-display);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

.cta-subtitle {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.cta-qr {
  width: 200px;
  height: 200px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 40px;
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Animation Classes */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

/* Responsive Design - Minimal */
@media (max-width: 968px) {
  :root {
    --spacing-3xl: 8rem;
    --spacing-2xl: 6rem;
  }
  
  .manifesto-content {
    margin-left: 0;
    padding: 0 var(--spacing-md);
  }
  
  .jaguar-section,
  .culture-section {
    width: 85%;
    margin: var(--spacing-2xl) auto;
  }
  
  .cta-actions {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .culture-text {
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --text-huge: clamp(2.5rem, 12vw, 4rem);
    --text-display: clamp(2rem, 8vw, 3rem);
    --spacing-3xl: 5rem;
    --spacing-2xl: 4rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .jaguar-section,
  .culture-section {
    width: 92%;
    height: 70vh;
    border-radius: 24px;
  }
  
  .cta-qr {
    width: 100px;
    height: 100px;
  }
  
  .btn-primary {
    padding: 14px 32px;
    font-size: 0.8rem;
  }
  
  /* Footer reveal adjustments for mobile */
  .reveal-wrapper {
    position: relative;
  }
  
  .logo-section,
  .cta-section {
    min-height: 100vh;
    min-height: 100svh; /* Safe viewport height for mobile */
  }
}