:root {
  --color-bg: #435355;
  --color-bg-dark: #313d3f;
  --color-text-main: #FFD1C1;
  --color-accent: #FF493A;
  --color-white: #ffffff;
  --color-black: #111111;

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

/* scroll-behavior: smooth removed from html — conflicts with GSAP ScrollTrigger in Safari */

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100%;
  position: relative;
  overflow-x: clip; /* clip prevents scroll leak without breaking position:fixed pinning in Safari */
}


/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  padding: 8rem 2rem 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 2rem;
  overflow: hidden;
}

.hero-text-content {
  flex: 1;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 9.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  position: relative;
  letter-spacing: -2px;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
  font-family: var(--font-body);
  margin-top: 2rem;
  color: var(--color-text-main);
  opacity: 0.9;
  max-width: 600px;
  font-weight: 500;
  line-height: 1.4;
}

.hero-image-wrapper {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: auto;
  cursor: default;
  z-index: 20;
  transform: translate(-14rem, -16rem);
}

.lets-talk-btn {
  position: absolute;
  right: -8rem;
  bottom: -2%;
  transform: rotate(-20deg);
  background: transparent;
  border: 2px solid var(--color-text-main);
  color: var(--color-text-main);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
  pointer-events: auto;
}

.lets-talk-btn:hover {
  background-color: var(--color-text-main);
  color: var(--color-bg);
}

.hero-img {
  width: clamp(220px, 28vw, 350px);
  height: clamp(220px, 28vw, 350px);
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--color-text-main);
  box-shadow: 8px 8px 0 var(--color-bg-dark);
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column-reverse;
    justify-content: center;
    padding: 10rem 2rem 5rem;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-image-wrapper {
    position: static;
    width: auto;
    height: auto;
    justify-content: center;
    margin-bottom: 0;
    transform: translate(-2.5rem, -6rem);
  }

  .hero-img {
    width: clamp(180px, 52vw, 260px);
    height: clamp(180px, 52vw, 260px);
  }

  .lets-talk-btn {
    right: -5.5rem;
    bottom: -10%;
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
  }

  .hero-text-content {
    transform: translateY(-1rem);
  }

  .hero-title {
    font-size: clamp(2.9rem, 9vw, 3.2rem);
  }

  .hero-line-2,
  .hero-line-3,
  .hero-line-4 {
    margin-left: 0 !important;
  }
}

/* CONTEXT SECTION */
.context-section {
  padding: 10rem 2rem;
  text-align: center;
}

.context-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 10rem);
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.context-image-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.context-img {
  width: auto;
  height: clamp(60px, 8vw, 110px);
  object-fit: cover;
  border-radius: 20px;
  transform: rotate(-5deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* MARQUEE SECTION */
.marquee-section {
  background-color: var(--color-bg);
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
}

.wavy-bg {
  background-color: var(--color-accent);
  padding: 3rem 0;
  transform: rotate(-3deg) scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-white);
  overflow: hidden;
}

.marquee-group {
  display: flex;
  gap: 4rem;
  padding-right: 4rem;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* APPS HORIZONTAL GALLERY */
.horizontal-apps-wrap {
  width: 100%;
  position: relative;
  background-color: var(--color-bg-dark);
  padding-bottom: 5rem;
  z-index: 20;
}

.apps-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apps-track {
  display: flex;
  gap: 3rem;
  padding: 0 calc(50vw - 160px);
  width: max-content;
  will-change: transform;
  position: relative;
  z-index: 10;
  align-items: center;
}

.apps-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -2px;
  opacity: 0.15;
  margin-bottom: -3rem;
  color: var(--color-text-main);
  position: relative;
  z-index: 1;
}

.app-card {
  flex: 0 0 320px;
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 40px;
  border: 2px solid rgba(255, 209, 193, 0.15);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 10;
}

.app-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
}

.app-img-placeholder {
  width: 100%;
  height: clamp(280px, 45vh, 400px);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 1.5rem;
}

.app-card h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.app-card p {
  font-family: var(--font-body);
  opacity: 0.9;
  line-height: 1.5;
  font-size: 1.1rem;
  color: var(--color-text-main);
}

/* MONEY SECTION */
.money-section {
  background-color: var(--color-accent);
  min-height: 20vh;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.money-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  color: var(--color-text-main);
  text-transform: uppercase;
  opacity: 0.95;
  letter-spacing: -4px;
  line-height: 0.8;
}

/* PROOF SECTION */
.proof-section {
  background-color: var(--color-bg);
  padding: 8rem 2rem 8rem;
  /* Increased bottom padding */
  position: relative;
  z-index: 10;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: -2rem;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.proof-card {
  background-color: #f1f3f4;
  color: var(--color-black);
  padding: 3rem;
  border-radius: 20px;
  width: 400px;
  margin: -1rem;
  max-width: 90vw;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.proof-card h3 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -2px;
}

.proof-card p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.card-1 {
  transform: rotate(-6deg) translateY(20px);
  z-index: 3;
}

.card-2 {
  transform: rotate(4deg) translateY(-10px);
  z-index: 2;
}

.card-3 {
  transform: rotate(-3deg) translateY(40px);
  z-index: 1;
}

.card-1:hover,
.card-2:hover,
.card-3:hover {
  transform: translateY(-30px) rotate(0deg);
  z-index: 10;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* CTA FOOTER */
.cta-section {
  background-color: var(--color-bg);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 5rem;
  /* Increased top padding matching */
}

.circular-cta {
  position: relative;
  width: clamp(200px, 30vw, 350px);
  height: clamp(200px, 30vw, 350px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 50px rgba(255, 73, 58, 0.4);
}

.circular-cta:hover {
  transform: scale(1.1);
}

.rotating-text-svg {
  width: 90%;
  height: 90%;
  animation: rotate 20s linear infinite;
  display: block;
}

.rotating-text-svg text {
  font-family: var(--font-display);
  font-size: 23px;
  fill: var(--color-white);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .apps-title {
    margin-bottom: 3rem;
  }
  
  .cards-container {
    gap: 3rem;
    padding-bottom: 4rem;
  }
  
  .proof-card {
    margin: 0;
    width: 100%;
    max-width: 380px;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: none; /* Prevent CSS transition from fighting GSAP's scroll-driven transforms */
  }
  
  .card-1, .card-2, .card-3 {
    transform: none;
  }

  .marquee-content {
    font-size: 2rem;
  }
}

.cta-center {
  position: absolute;
  font-size: clamp(3rem, 10vw, 7rem);
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* SOCIAL LINKS FOOTER */
.social-links-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.social-link {
  color: var(--color-text-main);
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--color-text-main);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--color-text-main);
  color: var(--color-bg);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 209, 193, 0.3);
}