/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* High-key Minimalist / Light Theme */
  --bg: #ffffff;
  --bg-offset: #fcfcfc;
  --text: #0d0d0d;
  --text-muted: #4a4a4a;
  --accent: #1a1a1a;
  --accent-light: #333333;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.05);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
  --container-width: 1200px;
}

body {
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  font-size: 15px; /* Compact professional */
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  max-width: 100vw;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul { list-style: none; }

/* === BACKGROUND TEXTURE === */
.bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.01) 0px,
    rgba(0, 0, 0, 0.01) 1px,
    transparent 1px,
    transparent 10px
  );
  background-size: 20px 20px;
  animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
  from { background-position: 0 0; }
  to { background-position: 100px 0; }
}

/* === NAVIGATION === */
/* Combined Floating Pill Navigation (Layout Scheme) and Classic Top Bar (Nav Style) */
/* Winning scheme: Centered column with floating pill nav */

.nav-pill-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  min-width: 320px;
}

.nav-pill {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-glass);
}

.nav-logo {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* === LAYOUT COMPONENTS === */
.page-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 100px 16px 0; /* Space for nav */
}

/* Stacked Cards Layout Archetype */
.card-section {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: 50px 40px; /* Section padding compact 50-70 */
  margin-bottom: -30px; /* Negative margin for overlap */
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  z-index: 10;
}

/* Section Internal Layout: Alternating full-bleed and contained */
section:nth-child(odd) {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: 5%;
  padding-right: 5%;
}

section:nth-child(even) {
  max-width: var(--container-width);
  margin: 0 auto;
}

/* === HERO === */
.hero {
  height: 90vh;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: -100px; /* Align with top */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--text);
}

/* Floating Fixed CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-cta.visible {
  opacity: 1;
  visibility: visible;
}

/* === GRID LAYOUTS === */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 24px;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-md);
  background: #fff;
  transition: all 0.3s ease;
}

.feature-card i {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--accent);
}

/* === TESTIMONIALS (Marquee & Interactive) === */
.marquee-container {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
  background: var(--bg-offset);
}

.marquee-content {
  display: flex;
  gap: 30px;
  animation: marquee 40s linear infinite;
}

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

.testimonial-card {
  min-width: 350px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.testimonial-info h4 {
  font-size: 1rem;
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Filter chips */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.filter-chip {
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-chip.active {
  background: var(--accent);
  color: white;
}

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px;
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
  z-index: 5;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin: 20px 0;
}

/* === PARTNERS MARQUEE === */
.partners-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.partners-track {
  display: inline-flex;
  gap: 60px;
  animation: scrollLogos 30s linear infinite;
}

.partner-logo {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes scrollLogos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === NEWSLETTER === */
.newsletter-section {
  text-align: center;
  background: var(--bg-offset);
}

.newsletter-form {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid #ddd;
}

/* === SECTION DIVIDERS === */
.zigzag-divider {
  width: 100%;
  height: 50px;
  background: white;
  clip-path: polygon(0 0, 5% 100%, 10% 0, 15% 100%, 20% 0, 25% 100%, 30% 0, 35% 100%, 40% 0, 45% 100%, 50% 0, 55% 100%, 60% 0, 65% 100%, 70% 0, 75% 100%, 80% 0, 85% 100%, 90% 0, 95% 100%, 100% 0);
  margin-top: -1px;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  padding: 80px 5% 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === UTILS === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.breadcrumbs {
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.stats-banner {
  background: var(--accent);
  color: white;
  padding: 40px 0;
  margin: 40px 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-pill-wrapper {
    width: 90%;
  }

  .nav-links {
    display: none; /* JS will toggle */
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    gap: 15px;
  }

  .mobile-toggle {
    display: block;
  }

  .card-section {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .stats-container {
    flex-direction: column;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
