/* ─────────────────────────────────────────────────────────────
   INFRADESK HERO SECTION & GRAVITATIONAL PARTICLE CANVAS
   Gravitational Particle Absorption into Screenshot Center
   Brand Color: #27BA36
   ───────────────────────────────────────────────────────────── */

.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-dark);
  padding: 100px 0 60px;
}

/* Gravitational Canvas */
#glowCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.content-layer {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-right: calc(var(--gutter-x) * 0.5);
  padding-left: calc(var(--gutter-x) * 0.5);
}

/* 50% / 50% Grid Allocation */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero-content-col {
  position: relative;
  z-index: 12;
  min-width: 0;
  width: 100%;
}

.hero-title {
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 3.4vw, 3.85rem);
  letter-spacing: -0.035em;
  color: #ffffff;
}

.hero-title span {
  color: var(--brand-green);
  text-shadow: 0 0 24px rgba(39, 186, 54, 0.45);
}

.hero-lead {
  color: var(--text-dim);
  max-width: 100%;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* Quick Action Form Pill */
.hero-cta-form {
  max-width: 540px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-smooth);
}

.hero-cta-form:focus-within {
  border-color: var(--brand-green);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(39, 186, 54, 0.25);
}

.hero-cta-form__icon {
  color: var(--brand-green);
  flex-shrink: 0;
  display: flex;
}

.hero-cta-form__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 10px 0;
}

.hero-cta-form__input::placeholder {
  color: var(--text-muted);
}

.hero-cta-form__input:focus {
  outline: none;
}

/* Breakout Screenshot Container: Always extends to right browser edge */
.hero-visual-col {
  position: relative;
  z-index: 11;
  min-width: 0;
  width: 100%;
}

.breakout-wrapper {
  position: relative;
  /* Extends from grid column all the way to right viewport edge */
  width: calc(100% + (100vw - 100%) / 2 + 60px);
  max-width: none;
}

#screenshot-element {
  position: relative;
  background: #060911;
  border: 1px solid rgba(39, 186, 54, 0.3);
  border-right: none;
  border-radius: 18px 0 0 18px;
  box-shadow: -30px 30px 100px rgba(0, 0, 0, 0.9), 0 0 60px rgba(39, 186, 54, 0.12);
  overflow: hidden;
  width: 100%;
  max-height: min(740px, calc(100vh - 150px));
  display: flex;
  align-items: center;
  transition: border-color var(--transition-smooth);
}

#screenshot-element:hover {
  border-color: rgba(39, 186, 54, 0.6);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, #090e17 0%, #06080e 100%);
  position: relative;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  max-height: min(740px, calc(100vh - 150px));
  object-fit: cover;
  object-position: left top;
  display: block;
}

/* Responsive Adaptations */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 32px;
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding: 100px 0 60px;
    height: auto;
    min-height: 100vh;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .content-layer {
    max-width: 720px;
  }
  .breakout-wrapper {
    width: calc(100% + 24px);
    margin-top: 1.5rem;
    margin-right: -24px;
  }
  #screenshot-element {
    border-right: none;
    border-radius: 16px 0 0 16px;
    max-height: 520px;
  }
}

@media (max-width: 580px) {
  .hero-cta-form {
    flex-direction: column;
    padding: 8px;
    border-radius: var(--radius-inner);
  }
  .hero-cta-form__icon {
    display: none;
  }
  .hero-cta-form__input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
  }
  .hero-cta-form .btn {
    width: 100%;
  }
}
