/* =========================================
   PAGE-SPECIFIC STYLES
   ========================================= */

/* === Hero (Home page) === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: -2;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(0, 183, 181, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 30% 80%, rgba(0, 135, 144, 0.1) 0%, transparent 50%);
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding-top: var(--space-3xl);
  padding-bottom: calc(var(--space-4xl) + 60px);
}

.hero__text h1 {
  color: var(--text-inverted);
  margin-bottom: var(--space-lg);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.15rem;
  margin-bottom: var(--space-2xl);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

/* Dashboard shell - app window */
.hero__dashboard {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* App layout: sidebar + main */
.hero__app {
  display: flex;
  min-height: 380px;
}

/* --- Sidebar --- */
.hero__sidebar {
  width: 180px;
  flex-shrink: 0;
  background: #0a1628;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.hero__sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero__sidebar-logo {
  width: 20px;
  height: 20px;
}

.hero__sidebar-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.2px;
}

.hero__sidebar-nav {
  padding: 8px 0;
  flex: 1;
  overflow: hidden;
}

.hero__sidebar-section {
  margin-bottom: 4px;
}

.hero__sidebar-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.3);
  padding: 8px 14px 4px;
}

.hero__sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  cursor: default;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.hero__sidebar-item--active {
  color: white;
  background: rgba(0, 183, 181, 0.12);
  border-left-color: #00B7B5;
}

/* --- Main Content --- */
.hero__main {
  flex: 1;
  background: #f5f5f5;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hero__main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__main-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a2332;
}

.hero__main-region {
  font-size: 0.62rem;
  color: #94a3b8;
  background: white;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

/* KPI stat cards */
.hero__kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hero__kpi {
  background: white;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #e8ecf0;
}

.hero__kpi-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.hero__kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a2332;
  line-height: 1.2;
}

.hero__kpi-val small {
  font-size: 0.6rem;
  font-weight: 500;
  color: #94a3b8;
}

.hero__kpi-change {
  font-size: 0.58rem;
  font-weight: 600;
  margin-top: 3px;
}
.hero__kpi-change--up { color: #10b981; }
.hero__kpi-change--down { color: #ef4444; }
.hero__kpi-change--neutral { color: #94a3b8; }

/* Chart card */
.hero__chart-card {
  background: white;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e8ecf0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a2332;
}

.hero__chart-live {
  font-size: 0.6rem;
  color: #10b981;
  font-weight: 600;
}

.hero__chart-svg {
  flex: 1;
  width: 100%;
  min-height: 80px;
}
/* Wave separator */
.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* === Page Hero (inner pages) === */
.page-hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.page-hero .section-title {
  max-width: 700px;
  margin: 0 auto var(--space-md);
}

.page-hero .section-subtitle {
  margin-bottom: 0;
}

/* === Approach List (About page) === */
.approach-list {
  max-width: 700px;
  margin: 0 auto;
}

.approach-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--gray-200);
}

.approach-item:last-child {
  border-bottom: none;
}

.approach-item__check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 183, 181, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.approach-item p {
  font-size: 1.05rem;
  color: var(--text-primary);
  padding-top: 4px;
}

/* === Responsive overrides === */
@media (max-width: 968px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 560px;
    margin: 0 auto;
  }

  .hero__kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero__sidebar {
    display: none;
  }

  .hero__kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
