/* ============================================
   FYREN LANDING PAGE STYLES
   "Change the way news ships."
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Primary Colors */
  --color-deep-navy: #0f172a;
  --color-ocean-blue: #1e40af;
  --color-lighthouse-gold: #ffc857;
  --color-warm-white: #fff8e7;
  --color-cool-white: #f7f9fc;

  /* Accent Colors */
  --color-nordic-teal: #06b6d4;
  --color-aurora-purple: #a78bfa;
  --color-mist-gray: #94a3b8;

  /* Gradients */
  --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e40af 100%);
  --gradient-light: linear-gradient(180deg, #f7f9fc 0%, #e2e8f0 100%);
  --gradient-gold: linear-gradient(135deg, #ffc857 0%, #a78bfa 100%);

  /* Typography */
  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

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

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(245, 166, 35, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ============================================
   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-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-cool-white);
  background-color: var(--color-deep-navy);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul,
ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  color: var(--color-mist-gray);
}

strong {
  color: var(--color-lighthouse-gold);
  font-weight: 600;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-dark {
  background: var(--gradient-dark);
}

.section-light {
  background: var(--color-cool-white);
  color: var(--color-deep-navy);
}

.section-light p {
  color: var(--color-ocean-blue);
}

.section-gradient {
  background: linear-gradient(
    180deg,
    var(--color-ocean-blue) 0%,
    var(--color-deep-navy) 100%
  );
}

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

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-lighthouse-gold);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--color-deep-navy);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(245, 166, 35, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-cool-white);
  border: 2px solid var(--color-mist-gray);
}

.btn-secondary:hover {
  border-color: var(--color-lighthouse-gold);
  color: var(--color-lighthouse-gold);
}

.btn-outline {
  background: transparent;
  color: var(--color-lighthouse-gold);
  border: 2px solid var(--color-lighthouse-gold);
}

.btn-outline:hover {
  background: var(--color-lighthouse-gold);
  color: var(--color-deep-navy);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm) 0;
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cool-white);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-mist-gray);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-cool-white);
}

.nav-cta {
  background: var(--gradient-gold);
  color: var(--color-deep-navy) !important;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
}

.nav-cta:hover {
  box-shadow: var(--shadow-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cool-white);
  transition: all var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-deep-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-3xl) var(--spacing-lg);
    gap: var(--spacing-md);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-3xl) var(--spacing-md);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Stars Background */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(
      2px 2px at 40px 70px,
      rgba(255, 255, 255, 0.2),
      transparent
    ),
    radial-gradient(
      1px 1px at 90px 40px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(
      2px 2px at 130px 80px,
      rgba(255, 255, 255, 0.2),
      transparent
    ),
    radial-gradient(
      1px 1px at 160px 120px,
      rgba(255, 255, 255, 0.4),
      transparent
    );
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Lighthouse Beam */
.lighthouse-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vw;
  height: 200vh;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 355deg,
    rgba(245, 166, 35, 0.1) 357deg,
    rgba(245, 166, 35, 0.3) 360deg
  );
  transform-origin: center center;
  animation: rotateBeam 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateBeam {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
}

/* Platform Icons */
.platform-icons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.platform-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.platform-icon.ios {
  background: linear-gradient(135deg, #000000 0%, #434343 100%);
  color: #ffffff;
}

.platform-icon.android {
  background: linear-gradient(135deg, #3ddc84 0%, #07c160 100%);
  color: #ffffff;
}

.platform-icon svg {
  width: 28px;
  height: 28px;
}

.platform-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Device Container */
.hero-phone-container {
  margin-bottom: var(--spacing-xl);
  perspective: 1000px;
}

/* Device Frame - Morphs between phone and tablet */
.device-frame {
  width: 220px;
  height: 440px;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 36px;
  padding: 8px;
  margin: 0 auto;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  animation: deviceFloat 6s ease-in-out infinite;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tablet state */
.device-frame.tablet {
  width: 360px;
  height: 480px;
  border-radius: 24px;
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(5deg);
  }
  50% {
    transform: translateY(-10px) rotateX(5deg);
  }
}

.device-notch {
  width: 80px;
  height: 24px;
  background: #0a0a0f;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide notch on tablet */
.device-frame.tablet .device-notch {
  opacity: 0;
  height: 0;
}

.device-screen {
  width: 100%;
  height: calc(100% - 24px);
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-frame.tablet .device-screen {
  border-radius: 16px;
}

.device-home-bar {
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-frame.tablet .device-home-bar {
  width: 120px;
  height: 5px;
}

/* Legacy class names for backwards compatibility */
.phone-frame {
  width: 220px;
  height: 440px;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 36px;
  padding: 8px;
  margin: 0 auto;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  animation: deviceFloat 6s ease-in-out infinite;
}

.phone-notch {
  width: 80px;
  height: 24px;
  background: #0a0a0f;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: calc(100% - 24px);
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.phone-home-bar {
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

/* Carousel */
.phone-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.phone-carousel::-webkit-scrollbar {
  display: none;
}

.phone-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 32px 12px 12px;
  background: #ffffff;
}

.carousel-slide.active {
  /* Keep for indicator sync */
}

/* App UI Elements */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.app-header.dark {
  background: var(--color-deep-navy);
  margin: -32px -12px 12px;
  padding: 32px 12px 8px;
  border-bottom: none;
}

.app-logo {
  width: 60px;
  height: 12px;
  background: linear-gradient(
    90deg,
    var(--color-lighthouse-gold) 0%,
    var(--color-aurora-purple) 100%
  );
  border-radius: 2px;
}

.app-logo.alt {
  background: linear-gradient(90deg, var(--color-nordic-teal) 0%, #0ea5e9 100%);
}

.app-logo.light {
  background: linear-gradient(90deg, #ffffff 0%, #e0e0e0 100%);
}

.app-nav-dots {
  display: flex;
  gap: 4px;
}

.app-nav-dots span {
  width: 4px;
  height: 4px;
  background: #ccc;
  border-radius: 50%;
}

.app-nav-dots.light span {
  background: rgba(255, 255, 255, 0.5);
}

.app-hero-image {
  width: 100%;
  height: 120px;
  background: linear-gradient(
    135deg,
    var(--color-ocean-blue) 0%,
    var(--color-deep-navy) 100%
  );
  border-radius: 8px;
  margin-bottom: 12px;
}

.app-headline {
  width: 80%;
  height: 14px;
  background: #333;
  border-radius: 2px;
  margin-bottom: 8px;
}

.app-text {
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 2px;
  margin-bottom: 6px;
}

.app-text.short {
  width: 60%;
}

.app-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app-card {
  height: 100px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.app-card::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 20px;
  background: linear-gradient(90deg, #ccc 0%, #ddd 100%);
  border-radius: 2px;
}

.app-article {
  padding-top: 8px;
}

.app-article-image {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  margin-bottom: 12px;
}

.app-article-title {
  width: 90%;
  height: 16px;
  background: #333;
  border-radius: 2px;
  margin-bottom: 12px;
}

.app-article-text {
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 2px;
  margin-bottom: 6px;
}

.app-article-text.short {
  width: 70%;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.indicator {
  width: 6px;
  height: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.indicator.active {
  width: 18px;
  border-radius: 3px;
  background: var(--color-lighthouse-gold);
}

.hero-title {
  background: linear-gradient(
    135deg,
    var(--color-cool-white) 0%,
    var(--color-lighthouse-gold) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--color-lighthouse-gold);
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-mist-gray);
  margin-bottom: var(--spacing-xl);
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-mist-gray);
  font-size: 0.875rem;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.problem-card {
  background: rgba(30, 58, 95, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.problem-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-aurora-purple);
  box-shadow: 0 10px 40px rgba(167, 139, 250, 0.2);
}

.problem-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 50%;
}

.problem-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-aurora-purple);
}

.problem-card h3 {
  color: var(--color-cool-white);
  margin-bottom: var(--spacing-sm);
}

.problem-question {
  text-align: center;
  margin-top: 32px;
  padding: var(--spacing-lg);
  background: rgba(245, 166, 35, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.problem-question p {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-lighthouse-gold);
  font-style: italic;
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

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

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

.solution-card {
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}

.solution-card:hover {
  border-color: var(--color-lighthouse-gold);
  box-shadow: var(--shadow-glow);
}

.solution-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-lighthouse-gold);
}

.solution-card h3 {
  color: var(--color-cool-white);
  margin-bottom: var(--spacing-md);
}

.solution-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.solution-card li {
  color: var(--color-mist-gray);
  padding-left: var(--spacing-md);
  position: relative;
}

.solution-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-lighthouse-gold);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.comparison-table th,
.comparison-table td {
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
  background: var(--color-ocean-blue);
  color: var(--color-cool-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.comparison-table th.highlight {
  background: var(--color-lighthouse-gold);
  color: var(--color-deep-navy);
}

.comparison-table td {
  color: var(--color-ocean-blue);
  font-size: 0.9375rem;
}

.comparison-table td.highlight {
  background: rgba(245, 166, 35, 0.08);
  color: var(--color-deep-navy);
}

.comparison-table td.highlight strong {
  color: var(--color-lighthouse-gold);
}

.comparison-table tbody tr {
  transition: background-color var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: rgba(245, 166, 35, 0.03);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 700px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
  padding: var(--spacing-lg);
  background: rgba(30, 58, 95, 0.3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all var(--transition-base);
}

.process-step:hover {
  border-color: var(--color-lighthouse-gold);
}

.process-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-gold);
  color: var(--color-deep-navy);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
}

.process-content h3 {
  color: var(--color-cool-white);
  margin-bottom: var(--spacing-sm);
}

.process-connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(
    180deg,
    var(--color-lighthouse-gold) 0%,
    transparent 100%
  );
  margin-left: 47px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-nordic-teal);
  box-shadow: 0 10px 40px rgba(45, 212, 191, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-nordic-teal);
}

.feature-card h3 {
  color: var(--color-cool-white);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   AUDIENCE SECTION
   ============================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.audience-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.audience-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-deep-navy);
}

.audience-card h3 {
  color: var(--color-deep-navy);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   CASE STUDY SECTION
   ============================================ */
.case-study-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .case-study-content {
    grid-template-columns: 1fr;
  }
}

.case-study-challenge {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
}

.case-study-challenge h3 {
  color: var(--color-aurora-purple);
  margin-bottom: var(--spacing-md);
}

.case-study-solution h3 {
  color: var(--color-lighthouse-gold);
  margin-bottom: var(--spacing-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-lg);
}

.stat {
  text-align: center;
  padding: var(--spacing-lg);
  background: rgba(30, 58, 95, 0.3);
  border-radius: var(--radius-lg);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-lighthouse-gold);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-mist-gray);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

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

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

.pricing-card {
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  border-color: var(--color-lighthouse-gold);
  transform: translateY(-5px);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.pricing-header h3 {
  color: var(--color-cool-white);
  margin-bottom: var(--spacing-xs);
}

.pricing-description {
  color: var(--color-mist-gray);
  font-size: 0.875rem;
}

.pricing-features {
  flex: 1;
}

.pricing-features li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  color: var(--color-mist-gray);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-nordic-teal);
  font-weight: 700;
}

.pricing-cta {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-mist-gray);
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.trust-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-deep-navy);
}

.trust-card h3 {
  color: var(--color-deep-navy);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: rgba(30, 58, 95, 0.3);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.client-logo-placeholder {
  padding: var(--spacing-lg) var(--spacing-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.client-logo-placeholder:hover {
  border-color: var(--color-lighthouse-gold);
  background: rgba(245, 166, 35, 0.05);
}

.client-logo-placeholder p {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-mist-gray);
  text-align: center;
}

.clients-testimonial {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: rgba(245, 166, 35, 0.05);
  border-left: 4px solid var(--color-lighthouse-gold);
  border-radius: var(--radius-lg);
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-cool-white);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.testimonial-author strong {
  color: var(--color-lighthouse-gold);
  font-size: 1rem;
}

.testimonial-author span {
  color: var(--color-mist-gray);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .clients-logos {
    gap: var(--spacing-lg);
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
  text-align: left;
  color: var(--color-cool-white);
  font-size: 1.125rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-lighthouse-gold);
}

.faq-question svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  stroke: currentColor;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: var(--spacing-lg);
}

/* FAQ in light sections */
.section-light .faq-item {
  border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}

.section-light .faq-question {
  color: var(--color-deep-navy);
}

.section-light .faq-question:hover {
  color: var(--color-lighthouse-gold);
}

.section-light .faq-answer p {
  color: var(--color-ocean-blue);
}

/* ============================================
   CTA SECTION
   ============================================ */
.section-cta {
  background: linear-gradient(
    135deg,
    var(--color-deep-navy) 0%,
    var(--color-ocean-blue) 50%,
    var(--color-deep-navy) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(245, 166, 35, 0.1) 0%,
    transparent 50%
  );
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}

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

.cta-content {
  position: relative;
  z-index: 10;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-md);
  background: linear-gradient(
    135deg,
    var(--color-cool-white) 0%,
    var(--color-lighthouse-gold) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--color-mist-gray);
  margin-bottom: var(--spacing-xl);
}

.cta-steps {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.cta-step {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.cta-step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-gold);
  color: var(--color-deep-navy);
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.875rem;
}

.cta-step-text {
  color: var(--color-cool-white);
  font-size: 0.9375rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-deep-navy);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.footer-lighthouse {
  position: absolute;
  bottom: 0;
  right: 5%;
  width: 100px;
  height: 200px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(30, 58, 95, 0.3) 100%
  );
  clip-path: polygon(40% 0%, 60% 0%, 70% 100%, 30% 100%);
  opacity: 0.3;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cool-white);
  margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
  .footer-logo {
    justify-content: center;
  }
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
}

.footer-tagline {
  color: var(--color-mist-gray);
  font-style: italic;
}

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

@media (max-width: 640px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

.footer-column h4 {
  color: var(--color-cool-white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
}

.footer-column a {
  display: block;
  color: var(--color-mist-gray);
  padding: var(--spacing-xs) 0;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-lighthouse-gold);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
}

/* ============================================
   ANIMATIONS (AOS-like)
   ============================================ */
[data-aos] {
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
  .section {
    padding: var(--spacing-2xl) 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

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

  .cta-steps {
    flex-direction: column;
    align-items: center;
  }

  .pricing-featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--spacing-sm);
    font-size: 0.875rem;
  }
}

/* ============================================
   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;
  }

  .lighthouse-beam {
    animation: none;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--color-lighthouse-gold);
}

.mb-0 {
  margin-bottom: 0;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

/* ============================================
   THEME SWITCHER
   ============================================ */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--gradient-gold);
  color: var(--color-deep-navy);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  cursor: pointer;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 20px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.theme-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.theme-options-header h3 {
  font-size: 1rem;
  color: var(--color-deep-navy);
  margin: 0;
}

.theme-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-mist-gray);
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.theme-close:hover {
  background: #f7f9fc;
  color: var(--color-deep-navy);
}

.theme-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f7f9fc;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  text-align: left;
  transition: all var(--transition-fast);
  cursor: pointer;
  width: 100%;
}

.theme-btn:hover {
  background: white;
  border-color: var(--color-lighthouse-gold);
}

.theme-btn.active {
  background: white;
  border-color: var(--color-lighthouse-gold);
  box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.1);
}

.theme-preview {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.theme-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-deep-navy);
}

@media (max-width: 768px) {
  .theme-switcher {
    bottom: 15px;
    right: 15px;
  }

  .theme-toggle {
    padding: 10px 16px;
    font-size: 0.8125rem;
  }

  .theme-toggle span {
    display: none;
  }

  .theme-options {
    right: 0;
    min-width: 260px;
  }
}

/* ============================================
   SCREENSHOTS SECTION
   ============================================ */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
}

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

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.screenshot-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  background: white;
}

.screenshot-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}

/* Add subtle glow effect on hover */
.screenshot-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(255, 200, 87, 0.1) 0%,
    rgba(167, 139, 250, 0.1) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.screenshot-item:hover::after {
  opacity: 1;
}

/* ============================================
   CUSTOM TWO-COLUMN GRID FOR WHY APPS SECTION
   ============================================ */
@media (max-width: 768px) {
  /* Make the two-column grid stack on mobile */
  section#why-apps div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   MOBILE-SPECIFIC ENHANCEMENTS
   ============================================ */

/* Improve touch targets on mobile */
@media (max-width: 768px) {
  /* Larger touch targets for buttons */
  .btn {
    min-height: 48px;
    padding: 1rem 1.5rem;
  }

  /* Better spacing for mobile */
  .section {
    padding: var(--spacing-2xl) 0;
  }

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

  /* Hero adjustments */
  .hero {
    min-height: auto;
    padding: 120px var(--spacing-md) var(--spacing-3xl);
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Device mockup sizing for mobile */
  .device-frame,
  .phone-frame {
    width: 200px;
    height: 400px;
  }

  .hero-phone-container {
    margin-bottom: var(--spacing-lg);
  }

  /* Stack CTAs vertically on mobile */
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

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

  /* Grid adjustments */
  .problem-grid,
  .solution-grid,
  .features-grid,
  .audience-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Pricing grid - 2 columns on mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Process steps */
  .process-grid {
    max-width: 100%;
  }

  .process-step {
    flex-direction: column;
    text-align: center;
  }

  .process-number {
    margin: 0 auto var(--spacing-md);
  }

  /* App showcase cards */
  .section#showcase > .container > div {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-lg) !important;
  }

  /* QR code containers */
  .section#showcase div[style*="display: flex"] {
    flex-direction: column !important;
    gap: var(--spacing-md) !important;
  }

  /* Client logos */
  .clients-logos {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  /* CTA steps */
  .cta-steps {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }

  .cta-step {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Section headers */
  .section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* FAQ items */
  .faq-question {
    font-size: 1rem;
    padding: var(--spacing-md) 0;
  }

  .faq-answer p {
    font-size: 0.9375rem;
  }

  /* Comparison table - make scrollable */
  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 600px;
  }

  /* Hide scroll indicator on mobile after scrolling */
  .scroll-indicator {
    font-size: 0.8125rem;
  }

  /* Platform icons */
  .platform-icons {
    gap: var(--spacing-sm);
  }

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

  .platform-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Reduce animation intensity on mobile */
  [data-aos] {
    transition-duration: 0.4s !important;
  }

  /* Better card spacing */
  .problem-card,
  .solution-card,
  .feature-card,
  .audience-card,
  .trust-card,
  .pricing-card {
    padding: var(--spacing-lg);
  }

  /* Optimize text sizes */
  h3 {
    font-size: 1.125rem;
  }

  p {
    font-size: 0.9375rem;
  }

  /* Navigation improvements */
  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-logo-icon {
    width: 32px;
    height: 32px;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .device-frame,
  .phone-frame {
    width: 180px;
    height: 360px;
  }

  .btn {
    font-size: 0.9375rem;
    padding: 0.875rem 1.25rem;
  }

  /* Smaller spacing on very small screens */
  .section {
    padding: var(--spacing-xl) 0;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Stack app showcase QR codes */
  .section#showcase div[style*="gap: 20px"] {
    gap: var(--spacing-sm) !important;
  }
}

/* Landscape mobile optimization */
@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 100px var(--spacing-md) var(--spacing-xl);
  }

  .device-frame,
  .phone-frame {
    width: 160px;
    height: 320px;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Tablet-specific optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .solution-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Prevent text from being too wide on large screens */
@media (min-width: 1400px) {
  .section-subtitle,
  .hero-subtitle {
    max-width: 700px;
  }

  .faq-list {
    max-width: 900px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .problem-card:hover,
  .solution-card:hover,
  .feature-card:hover,
  .audience-card:hover,
  .trust-card:hover {
    transform: none;
  }

  /* Make tap targets larger */
  .faq-question {
    min-height: 56px;
  }

  .nav-links a {
    padding: var(--spacing-sm) 0;
  }

  /* Disable parallax on touch devices for better performance */
  .hero-content {
    transform: none !important;
  }

  /* Simplify animations on touch devices */
  .lighthouse-beam {
    animation-duration: 30s;
  }
}
