/* Applications page specific styles */
/* Extracted from inline <style> block for maintainability */

/* Page-specific styles */
.applications-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-bg);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.app-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.app-card:hover {
  border-color: rgba(15, 45, 82, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.app-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(15, 45, 82, 0.1) 0%, rgba(15, 45, 82, 0.05) 100%);
  border-radius: 16px;
  color: var(--color-navy);
}

.app-card h3 {
  font-size: 1.25rem;
  color: #171717;
  margin-bottom: 0.75rem;
}

.app-card p {
  color: #6b6b6b;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Application Detail Sections */
.app-detail {
  padding: 5rem 0;
  border-bottom: 1px solid #e8e8e8;
  scroll-margin-top: 100px;
}

@media (max-width: 640px) {
  .app-detail {
    padding: 2rem 0;
  }
}

.app-detail:last-of-type {
  border-bottom: none;
}

.app-detail.alt {
  background: #f5f5f5;
}

.app-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.app-detail-inner.no-video {
  grid-template-columns: 1fr;
}

.app-detail.reverse .app-detail-inner {
  direction: rtl;
}

.app-detail.reverse .app-detail-inner > * {
  direction: ltr;
}

.app-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.app-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(15, 45, 82, 0.1);
  color: var(--color-navy);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}

.app-detail-title {
  font-size: 2.25rem;
  color: #171717;
  line-height: 1.2;
  margin: 0;
}

.app-detail-description {
  font-size: 1.125rem;
  color: #4a4a4a;
  line-height: 1.7;
  margin: 0;
}

.app-detail-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.app-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.app-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: rgba(15, 45, 82, 0.1);
  border-radius: 50%;
  color: var(--color-navy);
  margin-top: 2px;
}

.app-feature span {
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.5;
}

.app-detail-visual {
  background: linear-gradient(135deg, rgba(15, 45, 82, 0.08) 0%, rgba(15, 45, 82, 0.03) 100%);
  border-radius: 20px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 45, 82, 0.1);
  overflow: hidden;
}

.app-detail-visual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #6b6b6b;
}

.app-detail-visual-placeholder svg {
  opacity: 0.4;
}

.app-detail-visual-placeholder span {
  font-size: 0.875rem;
}

/* Industries list */
.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.industry-tag {
  padding: 0.375rem 0.75rem;
  background: rgba(15, 45, 82, 0.08);
  color: var(--color-navy);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-detail-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .app-detail.reverse .app-detail-inner {
    direction: ltr;
  }

  .app-detail-visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-detail-inner {
    gap: 2rem;
  }

  .app-detail-title {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Hover effects */
.footer-links a:hover {
  color: #fff;
}

/* Animation fallbacks - ensure visibility before GSAP loads */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.stagger-children > * {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Text Logo Styles */
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.02em;
}





/* Video Player Controls - Minimalist */
.video-container {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  max-width: 100%;
  border-radius: 12px;
  background: #000;
}

.video-container video {
  display: block;
  max-width: 100%;
  max-height: 350px;
  border-radius: 12px 12px 0 0;
}

.video-expand-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  touch-action: manipulation;
}

.video-expand-btn:hover {
  transform: scale(1.1);
}

.video-expand-btn svg {
  width: 18px;
  height: 18px;
  fill: #333;
}

.video-controls {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 0 0 12px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.video-play-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  touch-action: manipulation;
}

.video-play-btn:hover {
  transform: scale(1.1);
}

.video-play-btn svg {
  width: 18px;
  height: 18px;
  fill: #333;
}

.video-progress {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
  cursor: grab;
  position: relative;
}

.video-progress:hover {
  height: 6px;
}

.video-progress-filled {
  height: 100%;
  background: var(--color-navy);
  border-radius: 4px;
  width: 0%;
  position: relative;
  transition: none;
}

.video-progress-handle {
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--color-navy);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: grab;
  transition: transform 0.1s ease;
}

.video-progress-handle:active,
body.video-dragging .video-progress-handle {
  cursor: grabbing;
  transform: translateY(-50%) scale(1.15);
}

body.video-dragging {
  cursor: grabbing !important;
  user-select: none;
}

body.video-dragging * {
  cursor: grabbing !important;
}

.video-time {
  color: #666;
  font-size: 11px;
  font-weight: 500;
  min-width: 70px;
  text-align: right;
}

/* Video Modal - Clean Card Style */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-modal-overlay.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 90vw;
}

.video-modal-content video {
  display: block;
  max-width: 85vw;
  max-height: 75vh;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.video-modal-close:hover {
  background: #fff;
  transform: scale(1.1);
}

.video-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: #333;
  stroke-width: 2.5;
}

.video-modal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #eee;
}

.video-modal-controls .video-play-btn svg {
  fill: #333;
}

.video-modal-controls .video-progress {
  flex: 1;
  height: 5px;
  background: #e0e0e0;
  border-radius: 4px;
}

.video-modal-controls .video-progress-filled {
  background: var(--color-navy);
}

.video-modal-controls .video-time {
  color: #666;
}

/* ========================================
   Refactored Classes (replacing inline styles)
   ======================================== */

/* --- Visibility/Animation Fallbacks --- */
.visible {
  display: block;
  visibility: visible;
  opacity: 1;
}

.visible-flex {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.visible-grid {
  display: grid;
  visibility: visible;
  opacity: 1;
}

/* --- Section Styles --- */
.section-white {
  padding: 5rem 0;
  background: #fff;
}

.section-light {
  padding: 5rem 0;
  background: #f5f5f5;
}

.section-dark {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
}

.section-padded {
  padding: 4rem 0;
}

/* --- Container Variants --- */
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

/* --- Section Headers --- */
.section-header-centered {
  text-align: center;
  margin-bottom: 3rem;
}

/* --- Typography --- */
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-body);
  max-width: 700px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  color: #171717;
  margin-bottom: 1rem;
}

.section-title-white {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.section-title-large {
  font-size: 2.25rem;
  color: #171717;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #4a4a4a;
  max-width: 600px;
  margin: 0 auto;
}

.section-subtitle-white {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin: 0 auto;
}

.body-text {
  font-size: 1.125rem;
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.body-text-sm {
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.7;
}

/* --- Hero Content --- */
.hero-content-centered {
  text-align: center;
  padding: 3rem 1.5rem;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.badge-light {
  background: rgba(15, 45, 82, 0.08);
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.badge-primary {
  background: rgba(15, 45, 82, 0.1);
  color: var(--color-navy);
}

/* --- Grids --- */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

/* --- Stat Boxes --- */
.stat-box {
  padding: 1.5rem;
  background: #f5f5f5;
  border-radius: 12px;
  text-align: center;
}

.stat-box-bordered {
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.stat-value-sm {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
}

.stat-label {
  font-size: 0.875rem;
  color: #4a4a4a;
}

.stat-label-sm {
  font-size: 0.75rem;
  color: #6b6b6b;
}

/* --- Metric Boxes (smaller stat boxes in detail sections) --- */
.metric-box {
  text-align: center;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
}

/* --- Industry Tags --- */
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.375rem 0.75rem;
  background: rgba(15, 45, 82, 0.08);
  color: var(--color-navy);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --- Industry Section --- */
.industry-section {
  margin-top: 1.5rem;
}

.industry-heading {
  font-size: 0.875rem;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* --- Challenge Box --- */
.challenge-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(15, 45, 82, 0.04);
  border-radius: 12px;
  border-left: 3px solid var(--color-navy);
}

.challenge-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #4a4a4a;
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* --- Callout Box --- */
.callout-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(15, 45, 82, 0.05);
  border-radius: 12px;
  border-left: 3px solid var(--color-navy);
}

.callout-text {
  margin: 0;
  font-size: 0.9375rem;
  color: #4a4a4a;
  line-height: 1.6;
}

.callout-link {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-navy);
}

/* --- CTA Button (inline style replacement) --- */
.cta-button {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-hover) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 140, 48, 0.3);
}

.cta-wrapper {
  margin-top: 1.5rem;
}

.cta-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-cta);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.cta-inline:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

.cta-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

/* --- CTA Section Buttons --- */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-large {
  display: inline-flex;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.125rem;
}

/* --- Video Placeholder --- */
.video-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(15, 45, 82, 0.08) 0%, rgba(15, 45, 82, 0.03) 100%);
  border-radius: 16px;
  border: 1px solid rgba(15, 45, 82, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.video-placeholder-icon {
  width: 64px;
  height: 64px;
  background: rgba(15, 45, 82, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-title {
  font-size: 0.875rem;
  color: #6b6b6b;
  font-weight: 500;
}

.video-placeholder-subtitle {
  font-size: 0.75rem;
  color: #999;
}

/* --- App Detail Visual (no background) --- */
.app-detail-visual-clean {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  aspect-ratio: auto;
}

/* --- Feature Cards (One Software section) --- */
.feature-card-dark {
  padding: 2rem;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.feature-card-title {
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.feature-card-text {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}

/* --- App Card Links --- */
.app-card {
  text-decoration: none;
}

/* --- Footer Refactored Styles --- */
.footer-section {
  padding: 4rem 0 2rem;
  background: #171717;
  color: #fff;
}

.footer-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-description {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.footer-heading {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.75rem;
}

.footer-list a,
.footer-list-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-list-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin: 0;
}

.logo-inline {
  display: inline-block;
  margin-bottom: 1rem;
}

/* --- Trial Modal Styles --- */
.trial-modal-header {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
}

.trial-modal-title {
  color: #fff;
}

.trial-modal-close {
  color: rgba(255,255,255,0.7);
}

.trial-intro {
  margin-bottom: 1.5rem;
  color: #6b6b6b;
  font-size: 0.875rem;
}

/* --- Border Bottom Separator --- */
.border-bottom {
  border-bottom: 1px solid #e8e8e8;
}

/* ========================================
   Responsive Overrides
   ======================================== */

@media (max-width: 1024px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2x2 {
    grid-template-columns: 1fr;
  }

  .grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section-white,
  .section-light,
  .section-dark {
    padding: 3rem 0;
  }

  .section-padded {
    padding: 2rem 0;
  }

  .footer-grid-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .grid-3-col {
    grid-template-columns: 1fr;
  }

  .grid-metrics {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
