/* DeepStay Hero Widget - High Contrast & Elegant Visibility */
:root {
  --ds-hero-bg: #090a0c; 
  --ds-hero-text: #ffffff;
  --ds-hero-sub: #e4e4e7; /* Brighter off-white for subtitles */
  --ds-hero-dim: #a1a1aa; /* Brighter gray for meta text */
  --ds-hero-border: rgba(255, 255, 255, 0.15); /* Stronger default borders */
  --ds-hero-surface: rgba(255, 255, 255, 0.06);
  --ds-content-width: 1240px;
}

/* Full-Width Main Outer Background Block */
.ds-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--ds-hero-bg);
  background-size: cover;
  background-position: center;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: clamp(64px, 10vw, 140px) 0;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--ds-hero-text);
  border-bottom: 1px solid var(--ds-hero-border);
}

/* 
  Left-to-Right Gradient Overlay 
  Protects the text on the left by being darker, fades out on the right to show the image 
*/
.ds-hero__bg-overlay {
  position: absolute; 
  inset: 0; 
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 10, 12, 0.95) 0%, rgba(9, 10, 12, 0.85) 45%, rgba(9, 10, 12, 0.5) 100%);
}

/* Two-Column Matrix Wrapper Group */
.ds-hero__inner {
  width: 100%;
  max-width: var(--ds-content-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.ds-hero__main-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ds-pill-wrapper {
  display: flex;
}

/* Modern Minimal Pill Badge - Made Brighter */
.ds-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-hero-sub);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Pure White Typography with Text Shadow for Depth */
.ds-hero__title {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5); /* Prevents blending into background */
}

.ds-hero__sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ds-hero-sub);
  max-width: 540px;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Action Execution Buttons */
.ds-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.ds-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Primary Button - Pure White */
.ds-btn--primary {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.ds-btn--primary:hover {
  background: #f4f4f5 !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.25);
}

.ds-btn__arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.ds-btn:hover .ds-btn__arrow {
  transform: translateX(4px);
}

/* Secondary Ghost Button - Increased Visibility */
.ds-btn--ghost {
  background: rgba(255, 255, 255, 0.05); /* Soft white tint */
  border: 1px solid rgba(255, 255, 255, 0.25); /* Thicker, brighter border */
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ds-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.ds-hero__meta {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--ds-hero-dim);
  margin-top: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* DeepStay Green Status Node */
.ds-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981; /* Subtle glow */
}

/* ==========================================
   PURE DARK FEATURED CARD UI HANDLERS
   ========================================== */
.ds-hero__sidebar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.ds-feat-card {
  display: block;
  width: 100%;
  max-width: 440px;
  background: rgba(15, 15, 18, 0.65); /* More opaque dark base */
  border: 1px solid var(--ds-hero-border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4); /* Elevates card off background */
}

.ds-feat-card__img-holder {
  position: relative;
  width: 100%;
  padding-top: 56%; /* 16:9 Aspect Ratio */
  background: #000000;
  overflow: hidden;
  border-bottom: 1px solid var(--ds-hero-border);
}

.ds-feat-card__img-holder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ds-feat-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.ds-feat-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ds-feat-card__title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
  transition: color 0.2s;
}

/* Neutral Gray Action Text - Made Brighter */
.ds-feat-card__action-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-hero-sub);
  transition: color 0.2s, gap 0.2s;
}

.ds-feat-card__action-text svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Hover Interaction Transformations */
.ds-feat-card:hover {
  background: rgba(25, 25, 28, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.ds-feat-card:hover .ds-feat-card__img-holder img {
  transform: scale(1.04);
}

.ds-feat-card:hover .ds-feat-card__action-text {
  color: #ffffff;
  gap: 10px;
}

/* Responsive Fluidity Layout Overrides */
@media(max-width: 991px) {
  .ds-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }
  .ds-hero__sidebar {
    justify-content: flex-start;
  }
  .ds-feat-card {
    max-width: 100%;
  }
}