/* ============================================
   Market Pulse - 100% Responsive Design
   Mobile-first approach with flexible layouts
   ============================================ */

/* ============================================
   CSS Reset and Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding-bottom: 80px; /* Space for fixed bottom CTA */
}

/* ============================================
   Container - Responsive width management
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   Header Styles - Responsive navigation
   ============================================ */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  font-size: 0.875rem;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.chip:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.nav {
  padding: 1rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Main Content Area
   ============================================ */
.page {
  padding: 2rem 0;
}

/* ============================================
   Hero Section - Flexible two-panel layout
   ============================================ */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.panel {
  flex: 1 1 100%;
  min-width: 280px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-panel h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1a202c;
  line-height: 1.2;
}

.hero-panel p {
  font-size: 1.125rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

/* ============================================
   Badges - Responsive inline display
   ============================================ */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4a5568;
}

.badge i {
  width: 20px;
  height: 20px;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  border-radius: 50%;
  display: inline-block;
}

/* ============================================
   CTA Buttons - Responsive button layout
   ============================================ */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   Trust Line - Responsive inline elements
   ============================================ */
.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #718096;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.trustline span:not(:last-child)::after {
  content: "•";
  margin-left: 1rem;
  color: #cbd5e0;
}

/* ============================================
   Media Panel - Responsive image container
   ============================================ */
.media-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Grid Layout - Responsive card grid
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ============================================
   Card Styles - Content cards
   ============================================ */
.card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1a202c;
}

.card p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.5;
}

/* ============================================
   Section Boxes - Content sections
   ============================================ */
.section-box {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.section-box h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1a202c;
  text-align: center;
}

.section-box .sub {
  font-size: 1.125rem;
  color: #4a5568;
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-box .sub-tight {
  margin-bottom: 1.5rem;
}

/* ============================================
   Footer - Responsive footer layout
   ============================================ */
.footer {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1a202c;
}

.footer-text {
  font-size: 0.875rem;
  color: #4a5568;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  color: #718096;
}

/* ============================================
   Bottom CTA Bar - Fixed responsive bar
   ============================================ */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 99;
}

.bottom-cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.bottom-cta-text {
  font-weight: bold;
  color: #1a202c;
  font-size: 1rem;
}

/* ============================================
   MEDIA QUERIES - Mobile First Responsive Design
   ============================================ */

/* Small devices (landscape phones, 640px and down) */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 0.75rem;
  }

  .hero-panel h1 {
    font-size: 1.75rem;
  }

  .hero-panel p {
    font-size: 1rem;
  }

  .section-box h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .bottom-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .bottom-cta-inner .btn {
    width: 100%;
  }

  .topbar-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .trustline {
    justify-content: center;
  }

  .trustline span:not(:last-child)::after {
    display: none;
  }

  .trustline span {
    width: 100%;
    text-align: center;
  }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .panel {
    flex: 1 1 100%;
  }

  .section-box {
    padding: 1.5rem;
  }

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

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .hero {
    flex-wrap: nowrap;
  }

  .hero-panel {
    flex: 1 1 60%;
  }

  .media-panel {
    flex: 1 1 40%;
  }

  .section-box {
    padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .section-box h2 {
    font-size: 2.25rem;
  }
}

/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
  html {
    font-size: 18px;
  }

  .container {
    max-width: 1280px;
  }
}

/* ============================================
   Print Styles - Responsive for printing
   ============================================ */
@media print {
  .bottom-cta {
    display: none;
  }

  .site-header {
    position: relative;
  }

  body {
    background: white;
    padding-bottom: 0;
  }
}