/* ==========================================================================
   PropNetwork - High-Fidelity SaaS Hero Section CSS
   Author: PropNetwork Product Design Team
   Description: Premium Apple/Stripe-grade hero layout featuring left vertical 
                timeline indicator and 1:1 realistic iPhone workflow UI mockup.
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  padding: 2.25rem 0 2.5rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--background, #fafafa);
  z-index: 1;
}

/* Subtle Right-Side Radial Light Backdrop (<5% opacity) */
.hero-section::before {
  content: '';
  position: absolute;
  top: 5%;
  right: 2%;
  width: 55%;
  height: 90%;
  background: radial-gradient(circle at 50% 45%,
      rgba(15, 118, 110, 0.04) 0%,
      rgba(20, 184, 166, 0.018) 50%,
      transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 2;
}

/* Left Vertical Hairline Timeline Border & Teal Indicator Dot (Aligned 1:1 with Navbar Container Left Edge) */
.hero-left-border-line {
  position: absolute;
  top: -2.5rem;
  bottom: -2.5rem;
  left: 0.75rem;
  width: 1px;
  background-color: rgba(226, 232, 240, 0.85);
  z-index: 2;
}

.hero-border-dot {
  position: absolute;
  top: 4.2rem;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--primary, #0F766E);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-left: 2.25rem;
  max-width: 580px;
}

/* Badge Component */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background-color: var(--blue-50, #f0fdfa);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: var(--primary, #0F766E);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-badge:hover {
  border-color: rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue-400, #14b8a6);
  position: relative;
}

.hero-badge-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: rgba(20, 184, 166, 0.4);
  animation: heroPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes heroPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hero-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(2.5rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-dark, #0f172a);
  margin-bottom: 1.15rem;
}

.hero-title .highlight-teal {
  color: #0F766E !important;
  background: none !important;
  -webkit-text-fill-color: #0F766E !important;
}

.hero-title .highlight-blue-gradient {
  background: linear-gradient(90deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--text-light, #64748b);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.825rem 1.65rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--primary, #0F766E);
  border: 1px solid transparent;
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary:hover {
  background-color: var(--blue-600, #0d9488);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.825rem 1.65rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-dark, #0f172a);
  background-color: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-secondary:hover {
  background-color: var(--blue-50, #f0fdfa);
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--primary, #0F766E);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   Hero CSS Grid Layout Architecture & Right Container Alignment
   ========================================================================== */
.hero-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  width: 100%;
}

/* ==========================================================================
   Realistic iPhone Workflow Showcase Component (Exact 1:1 Reference Match)
   Z-Index Hierarchy Tokens:
   --z-viewport: 10
   --z-svg-lines: 12
   --z-cards: 15
   --z-overhang-cards: 22
   --z-bottom-nav: 28
   --z-dynamic-island: 35
   ========================================================================== */
.hero-phone-showcase-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 100%;
}

/* Outer iPhone Device Frame — Authentic iPhone 16 Pro (Exact 1:1 Match to Platform Section) */
.hero-phone-showcase-wrapper .iphone-16-chassis,
.iphone-device-chassis {
  position: relative;
  width: clamp(280px, 22.5vw, 330px);
  height: clamp(560px, 45vw, 660px);
  background: #090d16;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22), 0 10px 25px rgba(15, 118, 110, 0.15);
  border: 3.5px solid #1a2234;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Hardware Side Buttons (Mute, Volume Up/Down Left & Power Right) */
.hero-phone-showcase-wrapper .iphone-16-chassis::before,
.iphone-device-chassis::before {
  content: '';
  position: absolute;
  top: 105px;
  left: -5px;
  width: 4px;
  height: 28px;
  background: #1a2234;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 45px 0 #1a2234, 0 90px 0 #1a2234;
}

.hero-phone-showcase-wrapper .iphone-16-chassis::after,
.iphone-device-chassis::after {
  content: '';
  position: absolute;
  top: 145px;
  right: -5px;
  width: 4px;
  height: 56px;
  background: #1a2234;
  border-radius: 0 3px 3px 0;
}

.hero-phone-showcase-wrapper .iphone-16-chassis:hover,
.iphone-device-chassis:hover {
  transform: translateY(-4px);
  box-shadow:
    0 34px 75px rgba(15, 23, 42, 0.28),
    0 14px 32px rgba(15, 118, 110, 0.22);
}

/* Dynamic Island Notch — Matching Reference Screenshot 1:1 */
.iphone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(72px, 5.8vw, 84px);
  height: 21px;
  background: #000000;
  border-radius: 20px;
  z-index: 35;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.iphone-dynamic-island::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1a;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.25);
}

/* Phone Screen Viewport */
.iphone-screen-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-radius: clamp(28px, 2.4vw, 36px);
  overflow: hidden;
  /* Keeps bottom navigation bar clipped cleanly inside screen corners */
  display: flex;
  flex-direction: column;
  z-index: 10;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Screen Title Header inside Hero Phone Viewport */
.phone-ui-header-title {
  font-size: clamp(0.78rem, 0.88vw, 0.86rem);
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: clamp(6px, 1vw, 12px);
  letter-spacing: -0.015em;
  z-index: 15;
}

/* Canvas Workflow Graphic Area */
.phone-workflow-canvas {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2px;
}

/* SVG Connecting Lines Overlay — Fully Scalable Relative ViewBox */
.phone-connectors-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
}

/* Reusable Base Workflow Card Component — Proportional iPhone 16 Pro Scaled UI */
.workflow-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: clamp(8px, 0.8vw, 11px);
  padding: clamp(0.32rem, 0.42vw, 0.45rem) clamp(0.4rem, 0.5vw, 0.52rem);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  z-index: 15;
  box-sizing: border-box;
}

.workflow-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.16);
}

.workflow-card-icon {
  width: clamp(22px, 1.8vw, 26px);
  height: clamp(22px, 1.8vw, 26px);
  border-radius: clamp(5px, 0.5vw, 7px);
  background-color: var(--blue-50, #f0fdfa);
  color: var(--primary, #0F766E);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workflow-card-icon svg {
  width: clamp(12px, 1vw, 15px);
  height: clamp(12px, 1vw, 15px);
}

.workflow-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.workflow-card-title {
  font-size: clamp(0.64rem, 0.7vw, 0.7rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
}

.workflow-card-subtitle {
  font-size: clamp(0.52rem, 0.58vw, 0.58rem);
  font-weight: 400;
  color: #64748b;
  line-height: 1.15;
  margin-top: 1px;
  white-space: normal;
  word-break: break-word;
}

/* Modifiers for Relative Percentage & Overhang Positioning */
.workflow-card--top {
  top: 1%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  z-index: 18;
}

.workflow-card--left {
  top: 27%;
  left: 1px;
  width: 48.5%;
  z-index: 22;
}

.workflow-card--right {
  top: 27%;
  right: 1px;
  width: 48.5%;
  z-index: 22;
}

.workflow-card--center {
  top: 51.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 18;
}

.workflow-card--bottom {
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 18;
}

/* iPhone Screen Bottom Navigation Bar */
.phone-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 8px 0 12px 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 28;
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
  cursor: pointer;
}

.phone-nav-item svg {
  width: 18px;
  height: 18px;
}

.phone-nav-item .nav-active-bar {
  position: absolute;
  top: -8px;
  width: 24px;
  height: 3px;
  background-color: var(--primary, #0F766E);
  border-radius: 2px;
  display: none;
}

.phone-nav-item.active {
  color: var(--primary, #0F766E);
  font-weight: 700;
}

.phone-nav-item.active .nav-active-bar {
  display: block;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Layout Adaptations
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-section {
    padding: 1.75rem 0 3.5rem 0;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
  }

  .hero-left-border-line {
    display: none;
  }

  .hero-badge {
    margin-left: 0;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero-title {
    text-align: left !important;
    font-size: clamp(2rem, 6.5vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
  }

  .hero-description {
    text-align: left;
    max-width: 100%;
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    line-height: 1.5;
    margin-bottom: 1.15rem;
  }

  .hero-cta-group {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    flex: 1;
    width: 50%;
    padding: 0.725rem 0.5rem;
    font-size: clamp(0.82rem, 3.2vw, 0.9rem);
    white-space: nowrap;
    justify-content: center;
  }

  .btn-hero-primary svg,
  .btn-hero-secondary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .hero-phone-showcase-wrapper {
    margin-top: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .iphone-device-chassis {
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 276 / 575;
    margin: 0 auto;
  }

  .phone-ui-header-title {
    margin-top: 38px !important;
    margin-bottom: 8px !important;
    font-size: 0.82rem !important;
    position: relative;
    z-index: 40;
  }

  .workflow-card {
    padding: 0.38rem 0.48rem;
  }

  .workflow-card-title {
    font-size: 0.68rem;
  }

  .workflow-card-subtitle {
    font-size: 0.58rem;
  }

  .workflow-card--top {
    top: 8%;
  }

  .workflow-card--left {
    top: 27%;
    left: 1px;
    width: 48.5%;
  }

  .workflow-card--right {
    top: 27%;
    right: 1px;
    width: 48.5%;
  }

  .workflow-card--center {
    top: 51.5%;
  }

  .workflow-card--bottom {
    top: 70%;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 1.5rem 0 3rem 0;
  }

  .hero-badge {
    font-size: 0.76rem;
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.03em !important;
    text-align: left !important;
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.48;
    margin-bottom: 1rem;
  }

  .hero-cta-group {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    flex: 1;
    width: 50%;
    padding: 0.68rem 0.38rem;
    font-size: clamp(0.76rem, 3.3vw, 0.85rem);
    white-space: nowrap;
    justify-content: center;
  }

  .btn-hero-primary svg,
  .btn-hero-secondary svg {
    width: 14px;
    height: 14px;
  }

  .hero-phone-showcase-wrapper {
    margin-top: 22px;
  }

  .iphone-device-chassis {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 276 / 575;
    margin: 0 auto;
  }

  .phone-ui-header-title {
    margin-top: 36px !important;
    margin-bottom: 6px !important;
    font-size: 0.78rem !important;
  }

  .workflow-card {
    padding: 0.35rem 0.45rem;
  }

  .workflow-card--top {
    top: 8%;
  }

  .workflow-card--left {
    top: 27%;
    left: 1px;
    width: 48.5%;
  }

  .workflow-card--right {
    top: 27%;
    right: 1px;
    width: 48.5%;
  }

  .workflow-card--center {
    top: 51.5%;
  }

  .workflow-card--bottom {
    top: 70%;
  }

  .workflow-card-title {
    font-size: 0.64rem;
  }

  .workflow-card-subtitle {
    font-size: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-badge-pulse::after,
  .iphone-device-chassis,
  .workflow-card {
    animation: none !important;
    transition: none !important;
  }
}