.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 0;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.home-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.home-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 450px;
  line-height: 1.5;
  text-align: center;
}

.home-section {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.home-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.home-section-title::before,
.home-section-title::after {
  content: '';
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--border));
}

.home-section-title::after {
  background: linear-gradient(90deg, var(--border), transparent);
}

/* Primary grid for Race Day section - bigger buttons */
.home-buttons.primary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
}

/* First button (Race Dashboard) spans full width */
.home-buttons.primary-grid .home-btn:first-child {
  grid-column: 1 / -1;
}

/* Secondary grid for other sections */
.home-buttons.secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
}

/* When odd number of items, last item spans full in secondary */
.home-buttons.secondary-grid .home-btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (max-width: 500px) {
  .home-buttons.primary-grid,
  .home-buttons.secondary-grid {
    grid-template-columns: 1fr;
  }

  .home-buttons.primary-grid .home-btn:first-child,
  .home-buttons.secondary-grid .home-btn:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Base button styles */
.home-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg, 12px);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  min-height: 90px;
}

/* No accent bar or glow pseudo-elements */
.home-btn::before,
.home-btn::after {
  display: none;
}

.home-btn:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.home-btn:active {
  transform: translateY(0);
}

/* Icon for primary buttons */
.home-btn-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  line-height: 1;
}

.home-btn-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.home-btn-desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

/* Primary button (Race Dashboard) - subtle emphasis */
.home-buttons.primary-grid .home-btn:first-child {
  padding: 1.75rem 1.5rem;
  min-height: 110px;
  border-color: var(--border-strong);
}

.home-buttons.primary-grid .home-btn:first-child .home-btn-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.home-buttons.primary-grid .home-btn:first-child .home-btn-text {
  font-size: 1.05rem;
}

/* Secondary grid buttons - slightly smaller */
.home-buttons.secondary-grid .home-btn {
  padding: 1.1rem 1rem;
  min-height: 80px;
}

.home-buttons.secondary-grid .home-btn-text {
  font-size: 0.875rem;
}

.home-buttons.secondary-grid .home-btn-desc {
  font-size: 0.7rem;
}

/* Button colors — colored text labels and icons */
.btn-log .home-btn-text,
.btn-log .home-btn-icon { color: #ff9b6b; }

.btn-monitor-live .home-btn-text,
.btn-monitor-live .home-btn-icon { color: #22c55e; }

.btn-charts .home-btn-text,
.btn-charts .home-btn-icon { color: #6bc3e6; }

.btn-troubleshoot .home-btn-text,
.btn-troubleshoot .home-btn-icon { color: #b89de6; }

.btn-conditions .home-btn-text,
.btn-conditions .home-btn-icon { color: #8bc363; }

.btn-planner .home-btn-text,
.btn-planner .home-btn-icon { color: #f4c373; }

.btn-fuel .home-btn-text,
.btn-fuel .home-btn-icon { color: #e6a86b; }

.btn-analysis .home-btn-text,
.btn-analysis .home-btn-icon { color: #f48bb1; }

.btn-debrief .home-btn-text,
.btn-debrief .home-btn-icon { color: #9ca3af; }

.btn-gps .home-btn-text,
.btn-gps .home-btn-icon { color: #6bc3e6; }

.btn-practice .home-btn-text,
.btn-practice .home-btn-icon { color: #22c55e; }

.home-warning {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
}

.home-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* User header centering fix */
.user-header {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}
