/* ==========================================================================
   PAGE CANVAS
   ========================================================================== */
main {
  flex: 1;
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
}

/* ==========================================================================
   CARD — the base glass panel every content block sits inside
   ========================================================================== */
.card {
  background: var(--card-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.card:last-child {
  margin-bottom: 0;
}

.card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.card p + p {
  margin-top: 1rem;
}

/* Dark variant — for panels that need to read as premium/high-contrast */
.card--dark {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card--dark h3 {
  color: var(--text-inverse);
}

.card--dark p {
  color: rgba(255, 255, 255, 0.9);
}

/* Eyebrow label used inside dark cards to introduce a sub-section */
.eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.eyebrow ~ .eyebrow {
  margin-top: 2.2rem;
}

.lead {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Page heading used above a section of cards */
.page-heading {
  margin-bottom: 2rem;
  padding: 0 0.25rem;
}

.page-heading h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-heading p {
  margin-top: 0.5rem;
  color: var(--text-inverse-muted);
  max-width: 60ch;
}

/* ==========================================================================
   GRIDS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Nested sub-cards used inside a .card, e.g. a values grid */
.card .subcard {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  margin-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.card .subcard h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.card .subcard p {
  font-size: 0.95rem;
}

.card .subcard:hover {
  transform: translateY(-4px);
  background: rgba(225, 29, 72, 0.05);
  border-color: rgba(225, 29, 72, 0.2);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-banner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem 2rem;
}

.hero-banner h2 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.61);
}

.hero-banner p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  background: #ffffff;
  color: var(--dark);
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  transform: translateY(-2px);
  background: #f8fafc;
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.35);
}

/* ==========================================================================
   APP DOWNLOAD WIDGET
   ========================================================================== */
.download-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  width: 100%;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dark);
  border: 1px solid var(--dark);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.app-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-btn-text span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
}

.app-btn-text strong {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.app-btn:hover {
  background: #ffffff;
  color: var(--dark);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.app-btn:hover .app-btn-text span {
  color: var(--text-muted);
}

.app-btn:hover .app-btn-text strong {
  color: var(--dark);
}

/* ==========================================================================
   HUB WIDGET — flat panel, matching the app download widget treatment
   ========================================================================== */
.hub {
  background: var(--dark);
  border: 1px solid var(--dark);
  color: var(--text-inverse);
}

.hub.hub--light {
  background: var(--card-bg) !important;
  border-color: var(--card-stroke) !important;
  color: var(--text-main) !important;
}

.hub.hub--light h3 {
  color: var(--text-main);
}

.hub.hub--light p {
  color: var(--text-muted);
}

.hub-header {
  margin-bottom: 2.25rem;
}

.hub-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.06);
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.349);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.hub p {
  max-width: 780px;
}

.hub-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
}

.hub--light .hub-meta-grid {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.metric-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hub--light .metric-box {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.05);
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.metric-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
}

.hub--light .metric-value {
  color: var(--text-main);
}

/* Stream of list items inside a hub (destinations, bulletins, etc.) */
.stream {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stream-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub--light .stream-item {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.06);
  color: var(--text-main);
}

a.stream-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(225, 29, 72, 0.3);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hub--light a.stream-item:hover {
  background: rgba(15, 23, 42, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stream-item__index {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.hub--light .stream-item__index {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.stream-item__body {
  flex: 1;
}

.stream-item__body h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.2rem;
  letter-spacing: -0.3px;
}

.hub--light .stream-item__body h4 {
  color: var(--text-main);
}

.stream-item__body p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.42;
}

.hub--light .stream-item__body p {
  color: var(--text-muted);
}

.stream-item__tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.stream-item__tag--green {
  color: #10b981;
}

.stream-item__tag--pink {
  color: #db2777;
}

.stream-item__thumb {
  width: 90px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.hub--light .stream-item__thumb {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(0, 0, 0, 0.05);
}

.stream-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.stream-item:hover .stream-item__thumb img {
  transform: scale(1.08);
}

.stream-item__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

.stream-item__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  opacity: 0.55;
  transition: opacity 0.25s ease, color 0.25s ease;
}

a.stream-item:hover .stream-item__icon svg {
  opacity: 1;
  color: var(--primary);
}

.stream-item__arrow {
  font-size: 1.2rem;
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
}

a.stream-item:hover .stream-item__arrow {
  transform: translateX(3px);
  color: var(--primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero-banner {
    padding: 3rem 1.5rem;
  }
  .hero-banner h2 {
    font-size: 2.25rem;
  }
  main {
    padding: 2rem 1.25rem 2rem;
  }
  .card {
    padding: 1.5rem;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .hub {
    padding: 1.5rem 1.25rem !important;
  }
  .stream-item__thumb {
    width: 70px;
    height: 50px;
  }
}