/* ==========================================================================
   AlgoHMS Landing Page - Styles
   Design system: landing-visual-design.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --navy:          #1B2A4A;
  --teal:          #2AA5A0;
  --white:         #FFFFFF;
  --light-blue:    #F0F7FF;
  --light-gray:    #F8FAFC;
  --border-gray:   #E5E7EB;

  /* Text */
  --text-heading:  #1B2A4A;
  --text-body:     #374151;
  --text-muted:    #6B7280;
  --text-subtle:   #9CA3AF;

  /* Functional */
  --wa-green:      #25D366;
  --wa-hover:      #1DA851;
  --error-red:     #DC2626;
  --success-green: #059669;

  /* Spacing (4px grid) */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 80px;

  /* Border radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.10);

  /* Layout */
  --max-width:   1200px;
  --navbar-h:    64px;

  /* Transitions */
  --t-fast:   150ms ease-out;
  --t-normal: 200ms ease-out;
  --t-slow:   300ms ease-out;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  z-index: 9999;
  padding: var(--sp-sm) var(--sp-md);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--teal);
  text-decoration: none;
  transition: none;
}

.skip-link:focus {
  top: var(--sp-md);
}

/* Global focus-visible: all interactive elements */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Remove outline for mouse/touch users */
:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--sp-lg);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--sp-md);
  }
}

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */

.text-teal {
  color: var(--teal);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #2AA5A0 0%, #1B6FA0 50%, #1B2A4A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  font-size: clamp(28px, 4.2vw, 44px);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--t-normal), color var(--t-normal), border-color var(--t-normal), transform var(--t-fast), box-shadow var(--t-normal);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

/* Sizes */
.btn-lg {
  height: 56px;
  padding: 0 var(--sp-xl);
  font-size: 18px;
}

.btn-md {
  height: 44px;
  padding: 0 var(--sp-lg);
  font-size: 16px;
}

.btn-sm {
  height: 36px;
  padding: 0 var(--sp-md);
  font-size: 14px;
}

/* Variants */
.btn-whatsapp {
  background: var(--wa-green);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--wa-hover);
}

.btn-demo {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-demo:hover {
  background: var(--light-blue);
}

/* WhatsApp icon-only (mobile nav) */
.btn-whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--wa-green);
  color: var(--white);
  transition: background var(--t-normal);
  flex-shrink: 0;
}

.btn-whatsapp-icon:hover {
  background: var(--wa-hover);
}

/* --------------------------------------------------------------------------
   6. Section base
   -------------------------------------------------------------------------- */

.section {
  padding: var(--sp-4xl) 0;
  scroll-margin-top: var(--navbar-h);
}

@media (max-width: 640px) {
  .section {
    padding: var(--sp-2xl) 0;
  }
}

.section-heading {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.section-heading h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: var(--sp-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .section-heading h2 {
    font-size: 26px;
  }
}

/* --------------------------------------------------------------------------
   7. Navbar
   -------------------------------------------------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  height: var(--navbar-h);
  transition: background var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal);
}

.navbar.scrolled {
  background: var(--white);
  border-bottom-color: var(--border-gray);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

@media (max-width: 640px) {
  .navbar-inner {
    padding: 0 var(--sp-md);
  }
}

.navbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  display: block;
  height: 56px;
  width: auto;
}

.navbar-tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-left: 2px solid var(--border-gray);
  padding-left: var(--sp-md);
  line-height: 1.3;
}

.navbar-logo--mobile {
  display: none;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  margin-left: auto;
}

.navbar-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--t-normal);
  position: relative;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform var(--t-normal);
}

.navbar-link:hover {
  color: var(--teal);
}

.navbar-link:hover::after {
  transform: scaleX(1);
}

.navbar-cta {
  flex-shrink: 0;
}

.navbar-mobile-actions {
  display: none;
  align-items: center;
  gap: var(--sp-sm);
  margin-left: auto;
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform var(--t-normal), opacity var(--t-normal);
}

/* Mobile breakpoint: hide desktop elements, show mobile ones */
@media (max-width: 1023px) {
  .navbar-links {
    display: none;
  }

  .navbar-cta {
    display: none;
  }

  .navbar-logo--desktop {
    display: none;
  }

  .navbar-tagline {
    display: none;
  }

  .navbar-logo--mobile {
    display: flex;
  }

  .navbar-mobile-actions {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   8. Mobile Menu
   -------------------------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 51;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  animation: menuSlideIn var(--t-normal) ease-out;
}

.mobile-menu[hidden] {
  display: none;
}

@keyframes menuSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu__close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  color: var(--navy);
  padding: var(--sp-sm);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}

.mobile-menu__link {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  padding: var(--sp-md);
  transition: color var(--t-normal);
}

.mobile-menu__link:hover {
  color: var(--teal);
}

.mobile-menu__cta {
  width: calc(100% - var(--sp-xl) * 2);
  max-width: 320px;
  margin-top: var(--sp-lg);
}

/* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */

.section-hero {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
  padding-top: var(--sp-4xl);
  padding-bottom: var(--sp-3xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.hero-heading {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: var(--sp-lg);
}

.hero-subtext {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-xl);
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.hero-trust {
  font-size: 14px;
  color: var(--text-subtle);
}

.hero-video-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--light-gray);
  position: relative;
}

/* When the container holds the screenshot slideshow, open up overflow
   so captions and dot indicators below the chrome are visible */
.hero-video-container:has(.slideshow-monitor) {
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
  aspect-ratio: unset;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-illustration {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .hero-heading {
    font-size: 36px;
  }

  .hero-content {
    order: 1;
  }

  .hero-media {
    order: 2;
  }
}

@media (max-width: 640px) {
  .section-hero {
    padding-top: var(--sp-2xl);
  }

  .hero-heading {
    font-size: 32px;
  }

  .hero-subtext {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   10. Speed Demo Section
   -------------------------------------------------------------------------- */

.section-speed-demo {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.step-card {
  text-align: center;
  padding: var(--sp-lg);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}

.step-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-md);
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-sm);
  line-height: 1.3;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 var(--sp-md);
  opacity: 0.6;
}

@media (max-width: 767px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-connector {
    transform: rotate(90deg);
    padding: var(--sp-sm) 0;
  }
}

/* --------------------------------------------------------------------------
   11. Pain Points Section
   -------------------------------------------------------------------------- */

.section-pain-points {
  background: var(--light-gray);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.pain-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-lg);
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}

.pain-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pain-icon {
  margin-bottom: var(--sp-md);
}

.pain-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }
}

/* --------------------------------------------------------------------------
   12. Feature Showcase Section
   -------------------------------------------------------------------------- */

.section-features {
  background: var(--white);
}

/* Tab bar wrapper: positions the bar and the right-edge fade indicator */
.feature-tabs-wrapper {
  position: relative;
  margin-bottom: var(--sp-xl);
}

.feature-tabs {
  display: flex;
  justify-content: center;
  gap: var(--sp-xl);
  border-bottom: 1px solid var(--border-gray);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 0;
}

.feature-tabs::-webkit-scrollbar {
  display: none;
}

/* Right-edge fade gradient on mobile to hint at scrollable tabs */
.feature-tabs-fade {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: calc(100% - 1px); /* stop above the bottom border */
  background: linear-gradient(to right, transparent, #ffffff);
  pointer-events: none;
}

.feature-tab {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--sp-sm) 0;
  min-height: 44px; /* accessible touch target */
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-normal), border-color var(--t-normal);
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.feature-tab:hover {
  color: var(--text-body);
}

.feature-tab--active {
  color: var(--teal);
  font-weight: 600;
  border-bottom-color: var(--teal);
}

.feature-tab:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Content area: crossfade via opacity + absolute positioning ---- */
.feature-content {
  position: relative;
  /* Reserve height equal to the tallest panel so the section doesn't jump */
  min-height: 320px;
}

.feature-panel {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--sp-3xl);
  align-items: start;
  /* Crossfade: panels overlap in the same space */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.feature-panel--active {
  position: relative; /* takes up space so .feature-content has natural height */
  opacity: 1;
  pointer-events: auto;
}

/* When JS is switching panels the outgoing panel stays absolute and fades;
   the incoming panel becomes relative after the transition. */
.feature-panel--leaving {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* No-JS fallback: hidden attribute hides non-active panels */
.feature-panel[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.feature-panel__screenshot {
  position: relative;
}

.feature-screenshot {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-md);
  background: var(--light-gray);
  min-height: 260px;
  object-fit: cover;
  display: block;
}

/* Placeholder shown while the image hasn't loaded / doesn't exist */
.feature-screenshot[src=""],
.feature-screenshot:not([src]) {
  background: var(--light-gray);
}

.feature-bullets {
  padding-top: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.75;
}

.check-icon {
  flex-shrink: 0;
  margin-top: 4px;
}

/* Reduced-motion: skip crossfade */
@media (prefers-reduced-motion: reduce) {
  .feature-panel {
    transition: none;
  }
}

@media (max-width: 767px) {
  .feature-panel {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .feature-tabs {
    justify-content: flex-start;
    gap: var(--sp-lg);
  }

  .feature-tabs-fade {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   13. Role Dashboards Section
   -------------------------------------------------------------------------- */

.section-roles {
  background: var(--light-gray);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.role-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-lg);
  text-align: center;
  transition: box-shadow var(--t-normal);
}

.role-card:hover {
  box-shadow: var(--shadow-md);
}

.role-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-md);
}

.role-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--sp-sm);
}

.role-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.roles-footer {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
}

@media (max-width: 1023px) {
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Roles grid stays 2x2 on all mobile sizes per spec */

/* --------------------------------------------------------------------------
   14. Print Samples Section
   -------------------------------------------------------------------------- */

.section-prints {
  background: var(--white);
}

.language-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-xl);
}

.language-toggle-inner {
  display: inline-flex;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.lang-btn {
  padding: var(--sp-sm) var(--sp-lg);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  transition: background var(--t-normal), color var(--t-normal);
  border: 1px solid #D1D5DB;
  min-height: 44px;
}

.lang-btn:first-child {
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  border-right: none;
}

.lang-btn:last-child {
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  border-left: none;
}

.lang-btn:hover:not(.lang-btn--active) {
  background: #F3F4F6;
}

.lang-btn--active {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  border-color: var(--teal);
}

.prints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
  justify-items: center;
}

.doc-preview {
  text-align: center;
  max-width: 280px;
  width: 100%;
}

.doc-image-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-lg);
  background: var(--light-gray);
  aspect-ratio: 3 / 4;
  position: relative;
}

.doc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doc-image[hidden] {
  display: none;
}

/* SVG inline doc images fill the wrapper */
.doc-image-wrap svg.doc-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.doc-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  margin-top: var(--sp-md);
}

.doc-callout {
  font-size: 13px;
  color: var(--teal);
  font-style: italic;
  margin-top: var(--sp-xs);
}

@media (max-width: 767px) {
  .prints-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* --------------------------------------------------------------------------
   15. Deployment Options Section
   -------------------------------------------------------------------------- */

.section-deployment {
  background: var(--white);
}

.deployment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
}

.deployment-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gray);
  padding: var(--sp-xl);
  transition: box-shadow var(--t-normal);
}

.deployment-card:hover {
  box-shadow: var(--shadow-lg);
}

.deployment-card--popular {
  border: 2px solid var(--teal);
}

.popular-badge {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 3px var(--sp-md);
  border-radius: var(--radius-full);
}

.deployment-icon {
  margin-bottom: var(--sp-md);
}

.deployment-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--sp-lg);
}

.deployment-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.deployment-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: 15px;
  color: var(--text-body);
  line-height: 2;
}

@media (max-width: 767px) {
  .deployment-grid {
    grid-template-columns: 1fr;
  }

  /* Show popular card first on mobile */
  .deployment-card--popular {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   16. Trust Strip Section
   -------------------------------------------------------------------------- */

.section-trust {
  background: linear-gradient(to right, var(--navy), #1E3A5F);
  padding: var(--sp-2xl) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}

.trust-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-text {
  font-size: 14px;
  color: var(--white);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Trust grid stays 2x3 on all mobile sizes per spec */

/* --------------------------------------------------------------------------
   17. Final CTA Section
   -------------------------------------------------------------------------- */

.section-final-cta {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
  text-align: center;
}

.cta-heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: var(--sp-xl);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.cta-reassurance {
  font-size: 16px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .cta-heading {
    font-size: 28px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   18. Contact Section
   -------------------------------------------------------------------------- */

.section-contact {
  background: var(--light-gray);
}

.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
}

.form-input {
  height: 48px;
  padding: 0 var(--sp-md);
  font-size: 16px;
  font-family: inherit;
  color: var(--text-body);
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 165, 160, 0.15);
}

.form-input::placeholder {
  color: var(--text-subtle);
}

.form-submit {
  align-self: flex-start;
}

/* Form: required asterisk */
.form-required {
  color: #DC2626;
  margin-left: 2px;
}

/* Form: inline field-level error */
.form-field-error {
  display: block;
  min-height: 18px; /* reserve space so layout doesn't jump */
  font-size: 13px;
  color: #DC2626;
  line-height: 1.4;
}

/* Form: invalid input state */
.form-input.is-invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Form: submit button states */
.form-submit.is-submitting {
  cursor: not-allowed;
  opacity: 0.75;
}

.form-submit__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(27, 42, 74, 0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: var(--sp-xs);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form: success state */
.form-success {
  max-width: 480px;
  margin: 0 auto var(--sp-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-3xl) var(--sp-xl);
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.form-success__icon {
  color: #16A34A;
  flex-shrink: 0;
}

.form-success__text {
  font-size: 18px;
  font-weight: 600;
  color: #15803D;
}

/* Form: error banner */
.form-error-banner {
  max-width: 480px;
  margin: 0 auto var(--sp-lg);
  padding: var(--sp-md) var(--sp-lg);
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #991B1B;
  text-align: center;
}

.form-error-banner[hidden] {
  display: none;
}

.form-error-banner__link {
  color: #DC2626;
  font-weight: 600;
  text-decoration: underline;
}

.form-error-banner__link:hover {
  color: #991B1B;
}

@media (max-width: 640px) {
  .form-submit {
    align-self: stretch;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy);
  padding: var(--sp-3xl) 0 var(--sp-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-3xl);
  margin-bottom: var(--sp-3xl);
}

.footer-logo img {
  height: 56px;
  width: auto;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
}

.footer-tagline {
  font-size: 14px;
  color: #93C5FD;
  margin-top: var(--sp-md);
  line-height: 1.6;
}

.footer-parent-company {
  font-size: 13px;
  color: #93C5FD;
  margin-top: var(--sp-sm);
}

.footer-parent-company a {
  color: #93C5FD;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-parent-company a:hover {
  color: #BFDBFE;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
}

.footer-nav__heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-md);
}

.footer-nav__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color var(--t-normal);
}

.footer-link:hover {
  color: #93C5FD;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-lg);
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

@media (max-width: 1023px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
}

@media (max-width: 767px) {
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   20. Sticky Mobile CTA
   -------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 56px;
  background: var(--wa-green);
  display: none;
  transform: translateY(100%);
  transition: transform var(--t-normal);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Only show on mobile */
@media (max-width: 1023px) {
  .sticky-cta {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   21. Scroll-triggered fade-up animations
   -------------------------------------------------------------------------- */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grouped elements */
.fade-up:nth-child(1) { transition-delay: 0ms; }
.fade-up:nth-child(2) { transition-delay: 100ms; }
.fade-up:nth-child(3) { transition-delay: 200ms; }
.fade-up:nth-child(4) { transition-delay: 300ms; }
.fade-up:nth-child(5) { transition-delay: 400ms; }
.fade-up:nth-child(6) { transition-delay: 500ms; }

/* --------------------------------------------------------------------------
   22. Typography Base Styles
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 700;
}

h3 {
  font-size: clamp(18px, 2.5vw, 20px);
  font-weight: 600;
  line-height: 1.3;
}

p {
  line-height: 1.65;
  color: var(--text-body);
}

small {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   23. Button Primary Variant
   -------------------------------------------------------------------------- */

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: #229490;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-secondary:hover {
  background: rgba(42, 165, 160, 0.08);
}

/* --------------------------------------------------------------------------
   24. Section Background Utility Classes
   -------------------------------------------------------------------------- */

.bg-white {
  background: var(--white);
}

.bg-gray {
  background: var(--light-gray);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   25. Focus-visible for interactive elements not covered by global rule
   -------------------------------------------------------------------------- */

.navbar-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.mobile-menu__link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-whatsapp-icon:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.sticky-cta__btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -4px;
}

/* --------------------------------------------------------------------------
   26. prefers-reduced-motion: disable all transitions and animations
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  /* Disable all CSS transitions globally */
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
  }

  /* Smooth scroll: instant scroll instead */
  html {
    scroll-behavior: auto;
  }

  /* Fade-up animations: reveal immediately */
  .fade-up {
    opacity: 1;
    transform: none;
  }

  /* Mobile menu: no slide-in animation */
  .mobile-menu {
    animation: none;
  }

  /* Sticky CTA: no slide transition */
  .sticky-cta {
    transform: none;
  }

  .sticky-cta.is-visible {
    transform: none;
  }
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3 {
  color: var(--white);
}

.bg-navy p {
  color: rgba(255, 255, 255, 0.8);
}

.bg-gradient {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
}

/* --------------------------------------------------------------------------
   25. Grid and Flex Utility Classes
   -------------------------------------------------------------------------- */

/* 2-column grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
}

/* 3-column grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

/* 4-column grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}

/* Responsive fallbacks */
@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }
.gap-xl { gap: var(--sp-xl); }

/* --------------------------------------------------------------------------
   22. Visual Quality Enhancements
   -------------------------------------------------------------------------- */

/* --- Hero section: gradient mesh background with decorative dots --- */
.section-hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(42,165,160,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(27,42,74,0.06) 0%, transparent 60%),
    linear-gradient(150deg, var(--white) 0%, var(--light-blue) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid pattern behind hero */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(42,165,160,0.18) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

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

/* Hero video container: softer elevated card with teal accent */
.hero-video-container {
  box-shadow:
    0 0 0 1px rgba(42,165,160,0.15),
    0 8px 24px rgba(27,42,74,0.12),
    0 32px 64px rgba(27,42,74,0.08);
  background: var(--light-blue);
}

/* Floating badge decoration on hero media */
.hero-media {
  position: relative;
}

.hero-media::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,165,160,0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* --- Speed demo section: subtle background pattern --- */
.section-speed-demo {
  position: relative;
  overflow: hidden;
}

.section-speed-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--teal), transparent);
  opacity: 0.5;
}

/* Enhanced step card hover */
.step-card {
  border-radius: var(--radius-md);
  transition: box-shadow var(--t-normal), transform var(--t-normal), background var(--t-normal);
}

.step-card:hover {
  background: var(--light-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* --- Pain points section: enhanced card hover --- */
.pain-card {
  border: 1px solid var(--border-gray);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-normal);
}

.pain-card:hover::before {
  transform: scaleX(1);
}

.pain-card:hover {
  box-shadow: 0 8px 24px rgba(27,42,74,0.10);
  transform: translateY(-4px);
  border-color: rgba(42,165,160,0.2);
}

/* --- Feature section: enhanced background --- */
.section-features {
  position: relative;
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(240,247,255,0.9) 0%, transparent 60%),
    var(--white);
}

/* Screenshot container polish */
.feature-panel__screenshot {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(229,231,235,0.8),
    0 12px 32px rgba(27,42,74,0.10);
  transition: box-shadow var(--t-slow), transform var(--t-slow);
}

.feature-panel__screenshot:hover {
  box-shadow:
    0 0 0 1px rgba(42,165,160,0.2),
    0 20px 48px rgba(27,42,74,0.15);
  transform: translateY(-4px);
}

.feature-screenshot {
  border: none;
  box-shadow: none;
}

/* --- Roles section: enhanced cards --- */
.role-card {
  border: 1px solid var(--border-gray);
  transition: box-shadow var(--t-normal), transform var(--t-normal), border-color var(--t-normal);
  position: relative;
  overflow: hidden;
}

.role-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--teal), rgba(42,165,160,0.4));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-normal);
}

.role-card:hover {
  box-shadow: 0 12px 28px rgba(27,42,74,0.12);
  transform: translateY(-4px);
  border-color: rgba(42,165,160,0.25);
}

.role-card:hover::after {
  transform: scaleX(1);
}

/* --- Prints section: document card shadow polish --- */
.doc-image-wrap {
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}

.doc-preview:hover .doc-image-wrap {
  box-shadow: 0 16px 40px rgba(27,42,74,0.16);
  transform: translateY(-4px) rotate(-0.5deg);
}

/* --- Deployment section: background --- */
.section-deployment {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 10% 60%, rgba(240,247,255,0.7) 0%, transparent 60%),
    var(--white);
}

.deployment-card {
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}

.deployment-card:hover {
  transform: translateY(-4px);
}

/* --- Section dividers: decorative gradient lines --- */
.section-speed-demo,
.section-pain-points,
.section-features,
.section-roles,
.section-prints,
.section-deployment {
  border-bottom: 1px solid var(--border-gray);
}

/* --- Final CTA section: richer background --- */
.section-final-cta {
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(42,165,160,0.08) 0%, transparent 60%),
    linear-gradient(150deg, var(--white) 0%, var(--light-blue) 100%);
  position: relative;
  overflow: hidden;
}

.section-final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(42,165,160,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.section-final-cta .container {
  position: relative;
  z-index: 1;
}

/* --- Enhance section headings with subtle teal underline --- */
.section-heading h2 {
  display: inline-block;
  position: relative;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--teal), rgba(42,165,160,0.3));
}

.section-heading {
  margin-bottom: calc(var(--sp-2xl) + 4px);
}

/* --- Button micro-interactions --- */
.btn-whatsapp {
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
  transition: background var(--t-normal), box-shadow var(--t-normal), transform var(--t-fast);
}

.btn-whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transform: translateY(-1px);
}

.btn-demo {
  transition: background var(--t-normal), border-color var(--t-normal), color var(--t-normal), box-shadow var(--t-normal), transform var(--t-fast);
}

.btn-demo:hover {
  box-shadow: 0 4px 12px rgba(27,42,74,0.12);
  transform: translateY(-1px);
}

/* --- Feature tab: enhanced active indicator --- */
.feature-tab--active {
  position: relative;
}

/* --- Trust section icons: slight glow on hover --- */
.trust-item:hover .trust-icon svg {
  filter: drop-shadow(0 0 6px rgba(42,165,160,0.5));
  transition: filter var(--t-normal);
}

/* --- Reduce-motion safety net --- */
@media (prefers-reduced-motion: reduce) {
  .section-hero::before,
  .section-final-cta::after,
  .pain-card::before,
  .role-card::after {
    display: none;
  }

  .step-card:hover,
  .pain-card:hover,
  .role-card:hover,
  .feature-panel__screenshot:hover,
  .doc-preview:hover .doc-image-wrap,
  .deployment-card:hover,
  .btn-whatsapp:hover,
  .btn-demo:hover {
    transform: none;
  }
}

/* ==========================================================================
   Hero Screenshot Slideshow
   Monitor mockup frame + animated slides + progress bar + captions
   ========================================================================== */

/* --------------------------------------------------------------------------
   Monitor mockup wrapper
   -------------------------------------------------------------------------- */

.slideshow-monitor {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(27,42,74,0.25)) drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* The chrome frame */
.slideshow-chrome {
  background: #1e2535;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.08);
}

/* macOS-style title bar */
.slideshow-titlebar {
  height: 32px;
  background: #2a3044;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.slideshow-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.slideshow-dot--red    { background: #ff5f57; }
.slideshow-dot--yellow { background: #febc2e; }
.slideshow-dot--green  { background: #28c840; }

/* URL bar cosmetic */
.slideshow-urlbar {
  flex: 1;
  height: 16px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  margin: 0 16px;
}

/* Screen area */
.slideshow-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f1117;
}

/* --------------------------------------------------------------------------
   Individual slides
   -------------------------------------------------------------------------- */

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04) translateX(20px);
  transition: opacity 0s, transform 0s;
  pointer-events: none;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* Active slide */
.slideshow-slide.is-active {
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

/* Outgoing slide */
.slideshow-slide.is-leaving {
  opacity: 0;
  transform: scale(0.96) translateX(-20px);
  pointer-events: none;
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

/* --------------------------------------------------------------------------
   Progress bar
   -------------------------------------------------------------------------- */

.slideshow-progress {
  height: 3px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.slideshow-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--teal);
  width: 0%;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   Caption strip
   -------------------------------------------------------------------------- */

.slideshow-caption-wrap {
  margin-top: 12px;
  text-align: center;
  min-height: 28px;
  overflow: hidden;
}

.slideshow-caption {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.slideshow-caption.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dot indicators */
.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slideshow-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-subtle);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.slideshow-dot-indicator:hover {
  background: var(--text-muted);
}

.slideshow-dot-indicator.is-active {
  background: var(--teal);
  transform: scale(1.4);
}

/* --------------------------------------------------------------------------
   Pause overlay hint (shown briefly on hover)
   -------------------------------------------------------------------------- */

.slideshow-screen:hover .slideshow-pause-hint {
  opacity: 1;
}

.slideshow-pause-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .slideshow-monitor {
    max-width: 100%;
  }

  .slideshow-caption {
    font-size: 11px;
  }
}

/* Reduced motion: turn off transitions */
@media (prefers-reduced-motion: reduce) {
  .slideshow-slide,
  .slideshow-slide.is-active,
  .slideshow-slide.is-leaving {
    transition: opacity 0.15s;
    transform: none !important;
  }
}

/* Add a subtle click-to-expand cursor on the active slide */
.slideshow-slide.is-active {
  cursor: zoom-in;
}

/* ==========================================================================
   Screenshot Lightbox
   Full-screen overlay with prev/next navigation and caption
   ========================================================================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(11, 17, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* entrance state — animated via .is-open */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  /* hidden attribute handled by JS; keep display:flex even when hidden=false */
}

.lightbox-overlay:not([hidden]) {
  pointer-events: auto;
}

.lightbox-overlay.is-open {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Central content card
   -------------------------------------------------------------------------- */

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* entrance transform */
  transform: scale(0.9) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: min(1100px, calc(100vw - 120px));
  width: 100%;
}

.lightbox-overlay.is-open .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1.5px rgba(255, 255, 255, 0.07);
  background: #0f1117;
  line-height: 0; /* remove inline gap */
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  object-position: top;
  display: block;
  /* smooth swap between slides */
  transition: opacity 0.2s ease-out;
}

.lightbox-img.is-swapping {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Footer: caption + counter
   -------------------------------------------------------------------------- */

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
}

.lightbox-caption {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #e8edf5;
}

.lightbox-counter {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Close button (top-right corner)
   -------------------------------------------------------------------------- */

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 9010;
}

.lightbox-close:hover {
  background: rgba(42, 165, 160, 0.25);
  color: #fff;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Prev / Next arrows
   -------------------------------------------------------------------------- */

.lightbox-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9010;
}

.lightbox-arrow--prev { left: 20px; }
.lightbox-arrow--next { right: 20px; }

.lightbox-arrow:hover {
  background: rgba(42, 165, 160, 0.3);
  border-color: rgba(42, 165, 160, 0.5);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .lightbox-content {
    max-width: calc(100vw - 24px);
    gap: 12px;
  }

  .lightbox-overlay {
    padding: 12px;
  }

  .lightbox-arrow {
    width: 38px;
    height: 38px;
  }

  .lightbox-arrow--prev { left: 8px; }
  .lightbox-arrow--next { right: 8px; }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
}

/* Reduced motion: disable scale animations */
@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay,
  .lightbox-content,
  .lightbox-img,
  .lightbox-arrow,
  .lightbox-close {
    transition: opacity 0.15s ease !important;
    transform: none !important;
  }
}
