/* Main Styles for Page Pulse Perfect */

:root {
  --brand-blue: #0a1227;
  --brand-orange: #ED4B00;
  --text-white: #ffffff;
  --text-gray: #D9D9D9;
  --card-bg: rgba(217, 217, 217, 0.05);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--brand-blue);
  color: var(--text-white);
  line-height: 1.5;
  padding: 0 1rem;
  margin-top: 0px;
}

a {
  color: var(--text-white);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Tab Container Styles */
.tab-container {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.25rem;
  display: inline-flex;
}

.tab-button {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-weight: 500;
}

.tab-button.active {
  background-color: white;
  color: var(--brand-blue);
}

.tab-button:not(.active) {
  background-color: transparent;
  color: var(--text-white);
}

/* Hero Section */
.hero {
  text-align: center;
  
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-style: italic;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.orange-text {
  color: var(--brand-orange);
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cta-button {
  background-color: var(--brand-orange);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  transition: opacity 0.3s;
}

.cta-button:hover {
  opacity: 0.9;
}

/* Brands Section */
.brands {
  margin-top: 5rem;
  text-align: center;
}

.brands p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: lighter;
}

.brands-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.brand-name.light {
  font-size: 1.5rem;
  font-weight: 300;
}

.brand-name.bold {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Performance Section */
.performance {
  margin-top: 8rem;
  margin-bottom: 5rem;
  text-align: center;
}

.performance h2 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

.performance p {
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-size: 14px;
  font-weight:450;
}

/* Stats Grid */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  background-color: var(--card-bg);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  width: 30%;
  margin-bottom: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: scale(1.02);
}

.stat-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-icon {
  color: var(--brand-orange);
  margin-right: 0.5rem;
}

.stat-label {
  color: var(--text-gray);
  font-weight: 800;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.stat-subtext {
  font-size: 0.875rem;
  font-style: normal;
  font-weight: lighter;
  line-height: normal;
  text-transform: none;
  color: var(--text-gray);
  opacity: 0.5;
}

/* Responsive Design */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .stat-card {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .stat-card {
    width: 100%;
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {

  body {
    margin-top: 2vh;
  }

  #main-header {
    margin-bottom: 10vh;
  }
  
  .hero h1 {
    font-size: 10vw; /* Reduced from 15vw for better fit on iPhone */
    margin-top: 2.5vh;
    margin-bottom: 3vh;
    padding: 0 10px; /* Add padding to prevent text touching the edges */
  }
  
  .orange-text {
    font-size: 11vw; /* Slightly larger than regular h1 text */
    line-height: 1.2;
    margin-bottom: 10px;
    display: block; /* Force to new line on mobile */
  }
  
  .brands p {
    font-size: 15px;
  }
  
  .performance h2 {
    font-size: 1.8rem;
  }
  
  .performance p {
    font-size: 15px;
  }
}