/* ============================================
   MAYFLY Landing Page Styles
   Modern B2B SaaS for Ground Handling Operations
   ============================================ */

/* CSS Custom Properties (Theme) */
:root {
  /* Brand Colors - extracted from logo */
  --color-primary: #60A1D9;
  --color-primary-light: #7BB5E3;
  --color-primary-dark: #4A8BC5;
  --color-secondary: #5895D6;
  --color-accent: #3A69B3;

  /* Dark Theme Base */
  --color-bg-dark: #0D1117;
  --color-bg-card: #161C28;
  --color-bg-elevated: #1C2333;
  --color-bg-hover: #242D3D;

  /* Text Colors */
  --color-text-primary: #FAFAFB;
  --color-text-secondary: #A0AEC0;
  --color-text-muted: #6B7280;

  /* Borders & Shadows */
  --color-border: rgba(96, 161, 217, 0.15);
  --color-border-light: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(96, 161, 217, 0.15);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

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

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

/* ============================================
   Header / Navbar
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  transition: background var(--transition-base);
}

.header.scrolled {
  background: rgba(13, 17, 23, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo img {
  height: 56px;
  width: auto;
  max-width: 180px;
}

.nav__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav__link {
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--color-text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link:focus::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--space-lg);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition-base);
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg-card);
    padding: var(--space-xl);
    gap: var(--space-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
  }

  .nav__links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-bg-dark);
  box-shadow: var(--shadow-md), 0 0 20px rgba(96, 161, 217, 0.3);
}

.btn--primary:hover,
.btn--primary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(96, 161, 217, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--color-bg-hover);
  border-color: var(--color-primary);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Aviation-inspired background pattern */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Radar sweep effect */
    radial-gradient(circle at 80% 20%, rgba(96, 161, 217, 0.08) 0%, transparent 50%),
    /* Grid pattern */
    linear-gradient(rgba(96, 161, 217, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 161, 217, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Runway lines decoration */
.hero__runway {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 40%;
  background: repeating-linear-gradient(
    to top,
    transparent 0px,
    transparent 20px,
    rgba(96, 161, 217, 0.1) 20px,
    rgba(96, 161, 217, 0.1) 40px
  );
}

/* Floating particles */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.hero__particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero__particle:nth-child(2) { top: 40%; left: 80%; animation-delay: 1s; }
.hero__particle:nth-child(3) { top: 60%; left: 30%; animation-delay: 2s; }
.hero__particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 3s; }
.hero__particle:nth-child(5) { top: 30%; left: 60%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 0.6; }
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__text {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: rgba(96, 161, 217, 0.1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Product Mockup Card */
.hero__mockup {
  position: relative;
  perspective: 1000px;
}

.mockup-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform var(--transition-slow);
}

.mockup-card:hover {
  transform: rotateY(0) rotateX(0);
}

.mockup-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-md);
}

.mockup-card__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #F87171;
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.mockup-card__status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: #4ADE80;
}

.mockup-card__status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
}

.mockup-card__flight {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  background: rgba(96, 161, 217, 0.08);
  border: 1px solid rgba(96, 161, 217, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.mockup-card__flight-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: var(--radius-md);
}

.mockup-card__flight-icon--img {
  background: #ffffff;
  border: 1px solid rgba(96, 161, 217, 0.15);
  padding: 6px;
  border-radius: 6px;
}

.mockup-card__flight-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mockup-card__flight-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-bg-dark);
}

.mockup-card__flight-info h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.mockup-card__flight-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.mockup-card__timing {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.mockup-card__delay {
  color: #F87171;
  font-weight: 600;
}

.mockup-card__progress {
  height: 6px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mockup-card__progress-bar {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
}

/* Milestones wrapper with fade edges */
.mockup-card__milestones-wrapper {
  position: relative;
  overflow: hidden;
}

.mockup-card__milestones-wrapper::before,
.mockup-card__milestones-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 2;
  pointer-events: none;
}

.mockup-card__milestones-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, var(--color-bg-card) 0%, transparent 100%);
}

.mockup-card__milestones-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, var(--color-bg-card) 0%, transparent 100%);
}

.mockup-card__milestones {
  display: grid;
  gap: var(--space-sm);
}

/* Whole-list scroll animation */
.mockup-card__milestones--scroll {
  animation: milestones-scroll-up 8s ease-in-out infinite;
}

@keyframes milestones-scroll-up {
  0%, 65% { transform: translateY(0); }
  80% { transform: translateY(-12px); }
  95%, 100% { transform: translateY(0); }
}

.milestone {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.milestone__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.milestone__icon svg {
  width: 16px;
  height: 16px;
}

.milestone__icon--check svg {
  stroke: #4ADE80;
}

.milestone__icon--hourglass svg {
  stroke: var(--color-text-muted);
}

.milestone__icon--progress {
  position: relative;
}

.milestone__progress-ring {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(251, 146, 60, 0.3);
  border-top-color: #FB923C;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.milestone__label {
  flex: 1;
  color: var(--color-text-secondary);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.milestone__time {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  opacity: 0.6;
  min-width: 40px;
  text-align: right;
  letter-spacing: 0.02em;
}

.milestone__bar {
  width: 60px;
  height: 4px;
  background: rgba(251, 146, 60, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.milestone__bar-fill {
  display: block;
  height: 100%;
  width: 55%;
  background: #FB923C;
  border-radius: var(--radius-full);
}

.milestone--complete .milestone__label {
  color: var(--color-text-primary);
}

.milestone--pending .milestone__label {
  color: var(--color-text-muted);
}

/* Hourglass slow yellow pulse */
.milestone__icon--hourglass-pulse svg {
  stroke: #FBBF24;
  animation: hourglass-glow 3s ease-in-out infinite;
}

@keyframes hourglass-glow {
  0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 0px transparent); }
  50% { opacity: 1; filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4)); }
}

/* Ghost skeleton milestone */
.milestone--ghost {
  opacity: 0.18;
  pointer-events: none;
}

.milestone__skeleton-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

.milestone__skeleton-bar {
  flex: 1;
  height: 10px;
  border-radius: var(--radius-sm);
  background: var(--color-text-muted);
  max-width: 60%;
}

/* Disclaimer text — premium caption */
.mockup-card__disclaimer {
  margin-top: var(--space-md);
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(160, 174, 192, 0.7);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 968px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__mockup {
    order: 1;
  }

  .mockup-card {
    transform: none;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================
   Features Section
   ============================================ */
.features {
  background: var(--color-bg-card);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.features__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.features__header p {
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
}

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

.feature-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg);
}

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

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 161, 217, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
}

.feature-card__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: auto;
}

/* ============================================
   Product Preview Section
   ============================================ */
.product {
  position: relative;
}

.product__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.product__visual {
  position: relative;
}

.product__screen {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product__screen-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border-light);
}

.product__screen-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.product__screen-dot:nth-child(1) { background: #FF5F57; }
.product__screen-dot:nth-child(2) { background: #FEBC2E; }
.product__screen-dot:nth-child(3) { background: #28C840; }

.product__screen-body {
  padding: var(--space-lg);
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product__screen-row {
  display: flex;
  gap: var(--space-md);
}

.product__screen-card {
  flex: 1;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}

.product__screen-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.product__screen-value-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.45;
}

.product__screen-value-icon--warning {
  stroke: rgba(251, 146, 60, 0.7);
  opacity: 0.7;
}

.product__screen-value-icon--alert {
  stroke: rgba(248, 113, 113, 0.7);
  opacity: 0.7;
}

.product__screen-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product__screen-value--alert {
  color: rgba(248, 113, 113, 0.85);
}

.product__screen-value--warning {
  color: rgba(251, 146, 60, 0.85);
  font-size: 0.95rem;
}

.product__screen-card--secondary {
  background: var(--color-bg-hover);
  border: 1px solid var(--color-border-light);
}

.live-dot--small {
  width: 6px;
  height: 6px;
  margin-left: var(--space-xs);
  vertical-align: middle;
}

@keyframes subtle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.status-dot-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #F87171;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  animation: subtle-pulse 2.5s ease-in-out infinite;
}

.product__screen-bar {
  height: 4px;
  background: var(--color-bg-hover);
  border-radius: var(--radius-full);
  margin-top: var(--space-sm);
  overflow: hidden;
}

.product__screen-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  width: 75%;
}

.product__screen-row--compact {
  gap: var(--space-sm);
}

.product__screen-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-xs);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-sm);
  text-align: center;
}

.product__screen-tile-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.product__screen-tile-label {
  font-size: 0.6rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product__screen-activity {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}

.product__screen-activity-header {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

/* Activity feed — scroll wrapper with fade */
.product__screen-activity-wrapper {
  position: relative;
  overflow: hidden;
}

.product__screen-activity-wrapper::before,
.product__screen-activity-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  z-index: 2;
  pointer-events: none;
}

.product__screen-activity-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, var(--color-bg-elevated), transparent);
}

.product__screen-activity-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, var(--color-bg-elevated), transparent);
}

.product__screen-activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}


.product__screen-activity-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 5px var(--space-sm);
  font-size: 0.7rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
}

.product__screen-activity-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
}

.product__screen-activity-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#boarding-countdown,
.boarding-countdown-value {
  display: inline-block;
  min-width: 3.2em;
  font-variant-numeric: tabular-nums;
}

.product__screen-activity-text {
  flex: 1;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer status bar */
.product__screen-footer {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.6rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.product__screen-footer-count {
  font-weight: 700;
  color: var(--color-text-secondary);
  animation: count-pulse 3s ease-in-out infinite;
}

@keyframes count-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.product__info h2 {
  margin-bottom: var(--space-lg);
}

.product__info p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.product__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: var(--color-text-secondary);
}

.product__list-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.product__list-icon svg {
  width: 14px;
  height: 14px;
  stroke: #4ADE80;
  fill: none;
  stroke-width: 2;
}

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

  .product__visual {
    order: -1;
  }
}

/* ============================================
   Security Section
   ============================================ */
.security {
  background: var(--color-bg-card);
  text-align: center;
}

.security__badges {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.security__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  min-width: 160px;
}

.security__badge-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 161, 217, 0.1);
  border-radius: 50%;
}

.security__badge-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
}

.security__badge-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  text-align: center;
  position: relative;
}

.cta__box {
  background: linear-gradient(135deg, rgba(96, 161, 217, 0.1) 0%, rgba(88, 149, 214, 0.05) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  max-width: 800px;
  margin: 0 auto;
}

.cta__box--premium {
  position: relative;
  padding: var(--space-4xl) var(--space-3xl);
  border: none;
  background: var(--color-bg-card);
  box-shadow: 0 0 60px rgba(96, 161, 217, 0.15), var(--shadow-lg);
  overflow: hidden;
}

.cta__box--premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(96, 161, 217, 0.5) 0%,
    rgba(88, 149, 214, 0.2) 50%,
    rgba(96, 161, 217, 0.5) 100%
  );
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta h2 {
  margin-bottom: var(--space-md);
}

.cta p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__secondary {
  font-size: 0.95rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border-light);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__logo img {
  height: 32px;
  width: auto;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer__linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-secondary);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.footer__linkedin:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(96, 161, 217, 0.1);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-primary);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Accessibility: Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   MOBILE OVERRIDES
   Desktop (>= 1024px) remains unchanged.
   Only max-width rules below.
   ============================================ */

/* --------------------------------------------
   Tablet / Large Mobile (max-width: 1023px)
   -------------------------------------------- */
@media (max-width: 1023px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Features grid: 2 columns on tablet */
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* Security badges wrap better */
  .security__badges {
    gap: var(--space-lg);
  }

  /* Product section already handled at 968px */
}

/* --------------------------------------------
   Mobile (max-width: 768px)
   -------------------------------------------- */
@media (max-width: 768px) {
  /* Reduce base spacing */
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  /* Typography scaling */
  h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.15;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
  }

  h3 {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
  }

  /* Hero adjustments */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .hero__subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* Mockup card mobile */
  .mockup-card {
    padding: var(--space-md);
    max-width: 100%;
  }

  .mockup-card__flight {
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
  }

  .mockup-card__flight-icon {
    width: 40px;
    height: 40px;
  }

  .mockup-card__flight-info h4 {
    font-size: 0.95rem;
  }

  .mockup-card__flight-info p {
    font-size: 0.75rem;
  }

  .mockup-card__timing {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
  }

  .milestone {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }

  .milestone__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .milestone__icon svg {
    width: 14px;
    height: 14px;
  }

  .milestone__label {
    flex: 1;
    text-align: left;
    min-width: 0;
  }

  .milestone__time {
    margin-left: auto;
    text-align: right;
    min-width: 44px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .milestone__bar {
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Features: 2 columns on mobile */
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .features__header {
    margin-bottom: var(--space-xl);
  }

  .features__header p {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: var(--space-md);
  }

  .feature-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-sm);
  }

  .feature-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .feature-card h3 {
    font-size: 0.9rem;
  }

  .feature-card__desc {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  /* Product section mobile */
  .product__screen-body {
    padding: var(--space-md);
    min-height: auto;
    gap: var(--space-sm);
  }

  .product__screen-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .product__screen-card {
    padding: var(--space-sm) var(--space-md);
  }

  .product__screen-label {
    font-size: 0.65rem;
  }

  .product__screen-value {
    font-size: 1.1rem;
  }

  .product__screen-value--warning {
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .product__screen-activity {
    padding: var(--space-sm);
  }

  .product__screen-activity-row {
    font-size: 0.65rem;
  }

  .product__info p {
    font-size: 0.95rem;
  }

  .product__list li {
    font-size: 0.9rem;
  }

  .product__list-icon {
    width: 22px;
    height: 22px;
  }


  /* Security section */
  .security__badges {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .security__badge {
    width: 100%;
    max-width: 280px;
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
  }

  .security__badge-icon {
    width: 40px;
    height: 40px;
  }

  .security__badge-text {
    text-align: left;
  }

  /* CTA section */
  .cta__box,
  .cta__box--premium {
    padding: var(--space-xl) var(--space-lg);
  }

  .cta__secondary {
    font-size: 0.9rem;
  }

  .cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer__content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .footer__logo {
    justify-content: center;
  }

  /* Nav logo mobile */
  .nav__logo img {
    height: 40px;
    max-width: 120px;
  }
}

/* --------------------------------------------
   Small Mobile (max-width: 480px)
   -------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  /* Even smaller typography */
  h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  }

  /* Hero */
  .hero__badge {
    font-size: 0.7rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  /* Mockup card */
  .mockup-card {
    padding: var(--space-sm);
  }

  .mockup-card__header {
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
  }

  .mockup-card__title {
    font-size: 0.8rem;
  }

  .mockup-card__status {
    font-size: 0.7rem;
  }

  .mockup-card__flight {
    padding: var(--space-sm);
  }

  .mockup-card__flight-icon {
    width: 36px;
    height: 36px;
  }

  .mockup-card__flight-info h4 {
    font-size: 0.85rem;
  }

  .mockup-card__milestones {
    gap: 4px;
  }

  .milestone {
    gap: var(--space-xs);
    padding: 6px var(--space-sm);
    font-size: 0.72rem;
  }

  .milestone__label {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .milestone__time {
    font-size: 0.65rem;
    min-width: 38px;
  }

  .milestone__bar {
    width: 44px;
  }

  /* Feature cards */
  .feature-card {
    padding: var(--space-md);
  }

  .feature-card__title {
    font-size: 1rem;
  }

  /* Product dashboard */
  .product__screen-header {
    padding: var(--space-sm) var(--space-md);
  }

  .product__screen-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }

  .product__screen-card {
    padding: var(--space-xs) var(--space-sm);
  }

  .product__screen-value {
    font-size: 1rem;
  }

  .product__screen-activity-text {
    font-size: 0.6rem;
  }


  /* CTA */
  .cta__box,
  .cta__box--premium {
    padding: var(--space-lg);
  }

  .cta h2 {
    margin-bottom: var(--space-sm);
  }

  .cta__secondary {
    font-size: 0.85rem;
    margin-bottom: var(--space-lg);
  }

  /* Buttons touch-friendly */
  .btn {
    min-height: 48px;
    padding: 0.875rem 1.25rem;
  }

  .btn--large {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Nav logo even smaller */
  .nav__logo img {
    height: 36px;
    max-width: 100px;
  }

  /* Footer minimal */
  .footer {
    padding: var(--space-lg) 0;
  }

  .footer__copy {
    font-size: 0.8rem;
  }
}
