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

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Lavender Haze Light Theme Tokens */
  --bg: #fdfbff; /* Very light lavender white */
  --bg-alt: #f5f0ff; /* Soft lavender shade */
  --text: #1a1a2e; /* Deep purple-tinted dark text */
  --text-muted: #5e5e7e;
  --accent: #7c5dfa; /* Vibrant lavender purple */
  --accent-light: #b3a3ff;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-glass: 0 8px 32px 0 rgba(124, 93, 250, 0.1);
  --shadow-lift: 0 15px 45px -10px rgba(124, 93, 250, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --nav-height: 70px;
  --container-narrow: 680px;
}

@font-face {
  font-family: 'Clash Display';
  src: url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
}

@font-face {
  font-family: 'Satoshi';
  src: url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Satoshi', system-ui, sans-serif;
  line-height: 1.7;
  font-size: 18px;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
  padding-bottom: var(--nav-height); /* Space for bottom navigation */
}

h1, h2, h3, h4, .display-font {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* === BACKGROUND ANIMATION === */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(124, 93, 250, 0.02) 40px,
    rgba(124, 93, 250, 0.02) 80px
  );
  z-index: -1;
  animation: moveStripes 20s linear infinite;
  pointer-events: none;
}

@keyframes moveStripes {
  from { transform: translate(0, 0); }
  to { transform: translate(-40px, -40px); }
}

/* === LAYOUT === */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.story-column {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

section {
  padding: 100px 0;
  position: relative;
}

section.tight {
  padding: 60px 0;
}

.block-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* === NAVIGATION === */
/* Top Hero Nav (Transparent) */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 2rem;
}

.top-nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  height: 70px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.top-nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s ease;
}

.top-nav.scrolled .logo {
  color: var(--accent);
}

/* Bottom Nav Bar (Persistent) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 2000;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.05);
  border-top: 1px solid var(--bg-alt);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 0.5rem;
}

.nav-item i {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.nav-item.active {
  color: var(--accent);
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(-45deg, #7c5dfa, #b3a3ff, #7c5dfa, #f5f0ff);
  background-size: 400% 400%;
  animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  z-index: 2;
  padding: 0 1rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* === UI ELEMENTS === */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1.25rem 3rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(124, 93, 250, 0.2);
  border: none;
  cursor: pointer;
}

.btn-pill:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 40px rgba(124, 93, 250, 0.3);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: perspective(1000px) rotateX(1deg) rotateY(1deg) translateY(-10px);
  box-shadow: var(--shadow-lift);
}

.module-block {
  background: var(--white);
  border: 1px solid var(--bg-alt);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* === BEFORE/AFTER SLIDER === */
.comparison-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.comparison-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid var(--white);
}

.comparison-before img {
  width: 200%; /* Adjust to cover the container */
  height: 100%;
  object-fit: cover;
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: ew-resize;
  box-shadow: 0 0 0 10px rgba(124, 93, 250, 0.2);
}

/* === MASONRY GRID === */
.masonry-grid {
  columns: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.masonry-item img {
  width: 100%;
  transition: transform 0.6s ease;
}

.masonry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(124, 93, 250, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
  text-align: center;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-item:hover img {
  transform: scale(1.1);
}

/* === VIDEO SECTION === */
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-glass);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.video-placeholder:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--white);
  color: var(--accent);
}

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* === TESTIMONIALS (Interview style) === */
.testimonial-interview {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.client-info img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.qa-block {
  margin-bottom: 2rem;
}

.qa-block h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* === FOOTER ACCORDION === */
footer {
  background: var(--bg-alt);
  padding: 100px 0 50px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-col h4 {
  margin-bottom: 2rem;
  color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--accent-light);
  border-radius: 50px;
  background: var(--white);
  outline: none;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry-grid { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .masonry-grid { columns: 1; }
  .testimonial-interview { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Footer Accordion Effect (Mobile) */
  .footer-col h4 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .footer-col h4::after {
    content: "\f128"; /* ph-caret-down placeholder */
    font-family: "Phosphor";
    font-size: 1.2rem;
  }

  .footer-links {
    display: none;
    padding-bottom: 1rem;
  }

  .footer-col.active .footer-links {
    display: block;
  }
}

/* Custom Utilities */
.text-accent { color: var(--accent); }
.bg-alt { background-color: var(--bg-alt); }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }

/* Auto-fix: prevent default blue/purple browser links */
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: currentColor; }
