/* ==========================================================================
   Kizor Landing Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color - Kizor Logo Blue #26c7f2 */
  --color-brand: #26c7f2;
  --color-brand-glow: rgba(38, 199, 242, 0.5);
  
  /* Primary = Brand (Logo Blue) */
  --color-primary: #26c7f2;
  --color-primary-hover: #1fb8e0;
  --color-primary-light: #e0f7fc;
  --color-primary-glow: rgba(38, 199, 242, 0.5);
  
  /* Dark theme (default) - matches app Colors.ts dark.background */
  --color-bg: #111827;
  --color-bg-elevated: #1F2937;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-surface: #1F2937;
  
  --color-text: #FAFAFA;
  --color-text-secondary: #D4D4D8;
  --color-text-muted: #A1A1AA;
  
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.2);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-bg-light: rgba(255, 255, 255, 0.02);
  
  /* Logo colors */
  --logo-fill: #ffffff;
  --logo-fill-dark: #000000;
  
  --color-success: #22C55E;
  --color-error: #EF4444;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --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: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  
  /* Layout */
  --header-height: 72px;
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

/* Light Theme */
[data-theme="light"] {
  --color-bg: #F8FAFC;
  --color-bg-elevated: #FFFFFF;
  --color-bg-card: rgba(0, 0, 0, 0.02);
  --color-surface: #F1F5F9;
  
  --color-text: #0F172A;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;
  
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-hover: rgba(0, 0, 0, 0.2);
  
  /* Glassmorphism - inverted for light theme */
  --glass-bg: rgba(0, 0, 0, 0.05);
  --glass-bg-hover: rgba(0, 0, 0, 0.1);
  --glass-bg-light: rgba(0, 0, 0, 0.02);
  
  --logo-fill: #000000;
  --logo-fill-dark: #ffffff;
  
  --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.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent horizontal overflow from scaled fonts */
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  max-width: 100vw;
}

/* ============================================================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================================================
   
   Architecture Notes:
   -------------------
   Chrome Mobile and Firefox Mobile render fonts at different sizes even with
   identical CSS. To achieve visual parity:
   
   1. @media (max-width: 768px) - Base mobile styles, shared by all browsers
   2. @media (max-width: 480px) - Chrome-specific overrides (larger values)
      Chrome needs ~50% larger font-size values to match Firefox visually
   3. @-moz-document url-prefix() - Firefox-specific overrides (smaller values)
      Placed at end of file for specificity
   
   The !important flags are necessary because:
   - Browser font scaling must be overridden
   - Mobile values must override desktop media queries
   - Browser-specific overrides must win over general mobile rules
   
   ============================================================================ */

/* Mobile Typography - use px to prevent system font scaling issues */
@media screen and (max-width: 768px) {
  /* Force base font size - Firefox Android ignores text-size-adjust */
  html {
    font-size: 16px !important;
  }
  
  body {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  /* Use px values for critical hero elements to prevent oversizing */
  .hero-subtitle {
    font-size: 17px !important;
    max-width: min(600px, 85vw);
  }
  
  .hero-title {
    font-size: 42px !important;
    margin-top: 0 !important;
  }
  
  .hero-title-main {
    font-size: 64px !important;
  }
  
  .hero-title-sub {
    font-size: 22px !important;
  }
  
  /* Prevent coming-soon area from overflowing */
  .coming-soon-shared {
    flex-wrap: wrap;
    max-width: 90vw;
    justify-content: center;
  }
  
  .coming-soon-text,
  .notify-link {
    font-size: 16px !important;
  }
  
  /* Header elements - prevent overflow */
  .header-actions {
    gap: 4px !important;
    flex-shrink: 0;
  }
  
  .logo-text {
    font-size: 18px !important;
  }
  
  /* Language switcher - more compact on mobile */
  .lang-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  
  /* Theme button smaller */
  .theme-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
  }
  
  .theme-icon {
    width: 16px !important;
    height: 16px !important;
  }
  
  /* Header logo smaller */
  .header-logo-svg {
    width: 48px !important;
    height: 48px !important;
  }
  
  /* Show scroll indicator on mobile - sized for mobile */
  .hero .section-scroll {
    display: flex !important;
    bottom: 20px !important;
    z-index: 100 !important;
  }
  
  .section-scroll .scroll-indicator span {
    width: 24px !important;
    height: 40px !important;
    border-width: 2px !important;
  }
  
  .section-scroll .scroll-indicator span::before {
    width: 4px !important;
    height: 8px !important;
    top: 8px !important;
  }
  
  /* ====== SECTION TITLES - Fixed px values ====== */
  .section-title {
    font-size: 28px !important;
    margin-bottom: 2.5rem !important;
  }
  
  /* Screenshots section title needs more space above carousel */
  .screenshots .section-title {
    margin-bottom: 3.5rem !important;
  }
  
  /* Reduce carousel size on mobile */
  .carousel-wrapper {
    height: 360px !important;
  }
  
  .carousel-track .slide {
    width: 160px !important;
    height: 320px !important;
  }
  
  .section-subtitle {
    font-size: 16px !important;
  }
  
  /* ====== CARD RADIUS - Smaller on mobile ====== */
  .feature-card,
  .pricing-box,
  .trial-banner {
    border-radius: 0.5rem !important;
  }
  
  /* ====== FEATURE CARDS - Fixed px values ====== */
  .feature-card h3 {
    font-size: 18px !important;
  }
  
  .feature-card p {
    font-size: 15px !important;
  }
  
  .feature-icon {
    width: 48px !important;
    height: 48px !important;
  }
  
  .feature-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  /* ====== TRIAL BANNER - Fixed px values ====== */
  .trial-banner-highlight {
    font-size: 22px !important;
    flex-wrap: nowrap;
  }
  
  .trial-banner-text {
    font-size: 14px !important;
  }
  
  .trial-banner-icon {
    width: 24px !important;
    height: 24px !important;
    margin-right: 6px !important;
    flex-shrink: 0;
  }
  
  /* ====== PRICING CARDS - Fixed px values ====== */
  .pricing-header h3 {
    font-size: 22px !important;
  }
  
  .pricing-flexibility {
    font-size: 14px !important;
  }
  
  .price-amount {
    font-size: 42px !important;
  }
  
  .price-currency {
    font-size: 20px !important;
  }
  
  .price-period {
    font-size: 14px !important;
  }
  
  .pricing-equivalent {
    font-size: 13px !important;
  }
  
  .pricing-features li {
    font-size: 14px !important;
  }
  
  .pricing-badge {
    font-size: 11px !important;
  }
  
  .pricing-btn {
    font-size: 15px !important;
  }
  
  /* ====== PRICING FEATURES - Reduce bottom margin ====== */
  .pricing-features {
    margin-bottom: 0.5rem !important;
  }
  
  /* ====== PRICING BOX - Fixed px values ====== */
  .pricing-box {
    gap: 0 !important;
    padding: var(--space-sm) !important;
  }
  
  .pricing-box-featured {
    padding-top: var(--space-lg) !important;
  }
  
  .pricing-box-header {
    gap: 0 !important;
  }
  
  .pricing-box-price {
    margin-top: 0.5rem !important;
  }
  
  .pricing-box-title {
    font-size: 20px !important;
  }
  
  .pricing-box-subtitle {
    font-size: 13px !important;
  }
  
  .pricing-box-amount {
    font-size: 28px !important;
  }
  
  .pricing-box-period {
    font-size: 13px !important;
  }
  
  .pricing-box-equivalent {
    font-size: 12px !important;
  }
  
  .pricing-box-features {
    margin-top: 0.25rem !important;
  }
  
  .pricing-box-features li {
    font-size: 13px !important;
    padding: 0.25rem 0 !important;
  }
  
  .pricing-box-badge {
    font-size: 10px !important;
  }
  
  /* Reduce space above store badges */
  .hero-cta {
    margin-top: var(--space-md) !important;
  }
  
  .store-badges-row {
    gap: var(--space-sm) !important;
  }
}

/* --------------------------------------------------------------------------
   CHROME MOBILE OVERRIDES (max-width: 480px)
   Chrome renders fonts ~50% smaller than Firefox, so we use larger values.
   These override the 768px base mobile styles above.
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  .hero-subtitle {
    font-size: 24px !important;
    padding: 0 16px;
    max-width: min(500px, 92vw);
  }
  
  .hero-title {
    font-size: 68px !important;
    margin-top: var(--space-sm) !important;
  }
  
  .hero-title-main {
    font-size: 90px !important;
  }
  
  .hero-title-sub {
    font-size: 38px !important;
  }
  
  .coming-soon-text,
  .notify-link {
    font-size: 22px !important;
  }
  
  .logo-text {
    font-size: 26px !important;
  }
  
  /* Store badges larger for Chrome */
  .store-badge-apple img {
    width: 200px !important;
  }
  
  .store-badge-google img {
    width: 220px !important;
  }
  
  /* Even more compact language switcher on small screens */
  .lang-btn {
    padding: 8px 12px !important;
    font-size: 20px !important;
  }
  
  /* Theme button LARGER */
  .theme-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
  }
  
  .theme-icon {
    width: 24px !important;
    height: 24px !important;
  }
  
  /* Header logo larger */
  .header-logo-svg {
    width: 48px !important;
    height: 48px !important;
  }
  
  .logo-text {
    font-size: 28px !important;
  }
  
  /* Intro animation - move Kizor up */
  .intro-brand-name {
    margin-top: -0.5rem !important;
  }
  
  .intro-logo {
    gap: var(--space-md) !important;
  }
  
  /* Mobile hamburger menu - larger text */
  .nav.mobile-open .nav-list a {
    font-size: 24px !important;
  }
  
  /* Reduce header padding */
  .header-container {
    padding: 0 12px !important;
  }
  
  /* ====== SECTION TITLES - Even smaller on narrow screens ====== */
  .section-title {
    font-size: 38px !important;
    margin-bottom: 2rem !important;
  }
  
  /* Screenshots section title needs more space above carousel */
  .screenshots .section-title {
    margin-bottom: 3rem !important;
  }
  
  /* Larger carousel on narrow screens for Chrome */
  .carousel-wrapper {
    height: 520px !important;
  }
  
  .carousel-track .slide {
    width: 220px !important;
    height: 440px !important;
  }
  
  .carousel-btn {
    width: 48px !important;
    height: 48px !important;
  }
  
  .carousel-btn svg {
    width: 28px !important;
    height: 28px !important;
  }
  
  .section-subtitle {
    font-size: 24px !important;
  }
  
  /* ====== FEATURE CARDS - Smaller on narrow screens ====== */
  .feature-card {
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1.25rem !important;
  }
  
  .feature-card h3 {
    font-size: 26px !important;
  }
  
  .feature-card p {
    font-size: 22px !important;
  }
  
  .feature-icon {
    width: 64px !important;
    height: 64px !important;
  }
  
  .feature-icon svg {
    width: 32px !important;
    height: 32px !important;
  }
  
  /* ====== TRIAL BANNER - Larger on narrow screens for Chrome ====== */
  .trial-banner-highlight {
    font-size: 28px !important;
  }
  
  .trial-banner-text {
    font-size: 22px !important;
  }
  
  /* ====== PRICING CARDS - Smaller on narrow screens ====== */
  .pricing-header h3 {
    font-size: 28px !important;
  }
  
  .pricing-flexibility {
    font-size: 20px !important;
  }
  
  .price-amount {
    font-size: 54px !important;
  }
  
  .price-currency {
    font-size: 26px !important;
  }
  
  .price-period {
    font-size: 20px !important;
  }
  
  .pricing-equivalent {
    font-size: 18px !important;
  }
  
  .pricing-features li {
    font-size: 20px !important;
  }
  
  .pricing-badge {
    font-size: 14px !important;
  }
  
  .pricing-btn {
    font-size: 20px !important;
  }
  
  .trial-banner-icon {
    width: 24px !important;
    height: 24px !important;
    margin-right: 6px !important;
    flex-shrink: 0;
  }
  
  /* ====== PRICING FEATURES - Reduce bottom margin ====== */
  .pricing-features {
    margin-bottom: 0.25rem !important;
  }
  
  /* ====== PRICING BOX - Larger font sizes for Chrome ====== */
  .pricing-box-title {
    font-size: 28px !important;
  }
  
  .pricing-box-subtitle {
    font-size: 20px !important;
  }
  
  .pricing-box-amount {
    font-size: 42px !important;
  }
  
  .pricing-box-period {
    font-size: 20px !important;
  }
  
  .pricing-box-equivalent {
    font-size: 18px !important;
  }
  
  .pricing-box-features li {
    font-size: 20px !important;
  }
  
  .pricing-box-badge {
    font-size: 14px !important;
  }
  
  .pricing-box-btn {
    font-size: 20px !important;
  }
  
  /* ====== PRICING CTA SECTION ====== */
  .pricing-cta {
    font-size: 20px !important;
  }
  
  .pricing-cta-note {
    font-size: 18px !important;
  }
  
  .pricing-note {
    font-size: 16px !important;
  }
  
  /* ====== FOOTER - Larger for Chrome ====== */
  .footer-col h4 {
    font-size: 22px !important;
  }
  
  .footer-col li,
  .footer-col a {
    font-size: 18px !important;
  }
  
  .footer-brand .logo-text {
    font-size: 24px !important;
  }
  
  .footer-disclaimer h4 {
    font-size: 20px !important;
  }
  
  .footer-disclaimer p {
    font-size: 16px !important;
  }
  
  .footer-trademark {
    font-size: 14px !important;
  }
  
  .footer-bottom {
    font-size: 16px !important;
  }
  
  .footer-bottom p {
    font-size: 16px !important;
  }
  
  .no-cookies {
    font-size: 14px !important;
  }
}

body.intro-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}

body:not(.intro-active) {
  overflow-x: hidden;
  overflow-y: auto;
  position: static;
  touch-action: pan-y pinch-zoom;
}

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

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

/* --------------------------------------------------------------------------
   Intro Overlay Animation - SVG Logo
   -------------------------------------------------------------------------- */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.intro-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.intro-icon-wrapper {
  width: clamp(160px, 30vw, 280px);
  height: auto;
  position: relative;
  will-change: transform, opacity;
}

.intro-svg-logo {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* SVG parts - initial state (hidden, will be animated by GSAP) */
.svg-part {
  opacity: 0;
}

/* Theme-aware SVG fill colors */
.svg-i-bar,
.svg-k-diag,
.svg-small-rect {
  fill: var(--logo-fill);
}

.svg-k-blue,
.svg-blue-bar {
  fill: var(--color-brand);
}

.intro-brand-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--logo-fill);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  margin-top: var(--space-lg);
}

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

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Video Background
   -------------------------------------------------------------------------- */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  filter: blur(3px) brightness(0.35);
  opacity: 0.85;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-bg) 50%, transparent) 0%,
    color-mix(in srgb, var(--color-bg) 25%, transparent) 50%,
    color-mix(in srgb, var(--color-bg) 60%, transparent) 100%
  );
}

/* Light theme video adjustments */
[data-theme="light"] .video-background video {
  filter: blur(4px) brightness(0.45);
  opacity: 0.75;
}

[data-theme="light"] .video-overlay {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-bg) 75%, transparent) 0%,
    color-mix(in srgb, var(--color-bg) 55%, transparent) 50%,
    color-mix(in srgb, var(--color-bg) 80%, transparent) 100%
  );
}

/* Light theme hero text improvements */
[data-theme="light"] .hero-title-sub {
  color: #1E293B;
}

[data-theme="light"] .hero-subtitle {
  color: #334155;
}

/* Video Play Button - shown when autoplay fails (Opera, etc.) */
.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px var(--color-primary-glow);
}

.video-play-btn.visible {
  display: flex;
  opacity: 0.6;
}

.video-play-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 6px 30px var(--color-primary-glow);
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  color: #000;
  margin-left: 3px; /* Visual centering for play icon */
}

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

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

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

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

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 199, 242, 0.4);
}

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

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--color-border-hover);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: color-mix(in srgb, var(--color-bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: color-mix(in srgb, var(--color-bg) 95%, transparent);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.header-logo-svg {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.header-logo-svg .intro-svg-logo,
.header-logo-svg .header-svg-logo {
  width: 100%;
  height: 100%;
  filter: none;
}

.header-logo-svg .svg-k-blue,
.header-logo-svg .svg-blue-bar {
  filter: none;
}

.header-logo-svg .svg-part {
  opacity: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Footer Logo */
.footer-logo-svg {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.footer-logo-svg .footer-svg-logo {
  width: 100%;
  height: 100%;
  filter: none;
}

.footer-logo-svg .svg-k-blue,
.footer-logo-svg .svg-blue-bar {
  filter: none;
}

/* Override svg-part opacity for footer logo (not animated) */
.footer-svg-logo .svg-i-bar,
.footer-svg-logo .svg-k-diag,
.footer-svg-logo .svg-k-blue,
.footer-svg-logo .svg-blue-bar,
.footer-svg-logo .svg-small-rect {
  opacity: 1;
}

.footer-logo .logo-text {
  font-size: 1.75rem;
}

/* Navigation */
.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  gap: var(--space-xl);
}

.nav-list a {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.nav-list a:hover {
  color: var(--color-text);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
}

.theme-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--color-brand);
  transform: rotate(15deg);
}

.theme-icon {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.theme-icon-dark {
  display: block;
}

.theme-icon-light {
  display: none;
}

[data-theme="light"] .theme-icon-dark {
  display: none;
}

[data-theme="light"] .theme-icon-light {
  display: block;
}

/* Theme button now uses CSS variables, no override needed */

/* Language Switcher - Animated Pill */
.lang-switcher {
  display: flex;
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
  overflow: hidden;
}

.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.lang-switcher[data-active="en"] .lang-slider {
  transform: translateX(100%);
}

.lang-btn {
  position: relative;
  z-index: 1;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: color 0.3s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.lang-btn.active {
  color: white;
}

.lang-btn:hover:not(.active) {
  color: var(--color-text);
}

.lang-text {
  display: block;
  transition: transform 0.2s ease;
}

.lang-btn:hover .lang-text {
  transform: scale(1.05);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

/* Mobile Nav */
.nav.mobile-open {
  display: block;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg);
}

.nav.mobile-open .nav-list {
  flex-direction: column;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Logo Container - für Logo nach Intro */
.hero-logo-container {
  display: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-title-main {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 50%, var(--color-primary) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease infinite;
}

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

.hero-title-sub {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
  letter-spacing: 0.05em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-lg);
}

.store-badges-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

/* Shared Coming Soon text below badges */
.coming-soon-shared {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Official Store Badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

.store-badge:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.1);
}

.store-badge-apple img {
  display: block;
  width: 160px;
  height: auto;
}

.store-badge-google img {
  display: block;
  width: 180px;
  height: auto;
}

/* Coming Soon Store Badge */
.store-badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-badge-wrapper .store-badge {
  opacity: 1;
  transform: none;
}

.store-badge-wrapper.store-badge-coming-soon .store-badge {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

.store-badge-wrapper.store-badge-coming-soon .store-badge img {
  filter: grayscale(100%) brightness(0.8);
}

.coming-soon-text {
  color: var(--color-text);
  font-size: min(18px, 4.5vw);
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

[data-theme="light"] .coming-soon-text {
  color: #1E293B;
  text-shadow: none;
}

.coming-soon-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.coming-soon-divider {
  color: var(--color-text-secondary);
  font-size: 14px;
}

[data-theme="light"] .coming-soon-divider {
  color: #64748B;
}

.notify-link {
  color: var(--color-primary);
  font-size: min(18px, 4.5vw);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

[data-theme="light"] .notify-link {
  color: #0369A1;
  text-shadow: none;
  font-weight: 700;
}

.notify-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero-cta {
  position: relative;
}

.notify-popup {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xs);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 100;
  animation: popupFadeIn 0.2s ease;
  min-width: 200px;
  overflow: visible;
}

.notify-popup.hidden {
  display: none;
}

.notify-popup-arrow {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.notify-popup-form {
  display: flex;
  gap: 4px;
}

.notify-popup-form input {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.85rem;
  width: 160px;
  outline: none;
}

.notify-popup-form input:focus {
  border-color: var(--color-primary);
}

.notify-popup-form input::placeholder {
  color: var(--color-text-muted);
}

.notify-popup-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.notify-popup-form button:hover {
  background: var(--color-primary-hover);
}

.notify-popup-form button svg {
  width: 16px;
  height: 16px;
}

.notify-popup-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notify-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--color-success, #22c55e);
  font-size: 0.85rem;
  font-weight: 600;
}

.notify-success.hidden {
  display: none;
}

.notify-success svg {
  color: var(--color-success, #22c55e);
  flex-shrink: 0;
}

.notify-error {
  color: var(--color-error, #ef4444);
  font-size: 0.8rem;
  padding: 8px 12px;
  text-align: center;
  background: var(--color-surface);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: 4px;
}

/* No-cookies notice in footer */
.no-cookies {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Store badge responsive sizes are handled in main mobile media queries */

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  width: 48px;
  height: 80px;
  border: 3px solid var(--color-border);
  border-radius: var(--radius-full);
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 8px;
  height: 16px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  animation: scroll-down 2s infinite;
}

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

@keyframes scroll-down {
  0% { opacity: 1; top: 16px; }
  100% { opacity: 0; top: 40px; }
}

/* Section scroll indicator (for use within content sections) */
.section-scroll {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
}

/* Hero scroll indicator - absolute positioning */
.hero .section-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 0;
  right: 0;
  margin-top: 0;
  padding-bottom: 0;
}

.section-scroll .scroll-indicator {
  animation: bounce-simple 2s infinite;
}

@keyframes bounce-simple {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features {
  background: linear-gradient(180deg, transparent, rgba(38, 199, 242, 0.03), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  z-index: 5;
  /* Initial state for scroll animation - prevents FOUC */
  opacity: 0;
  transform: translateY(60px);
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(38, 199, 242, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary), #7dd8f5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Dark Theme Feature Cards */
[data-theme="dark"] .feature-card,
:root:not([data-theme]) .feature-card {
  background: rgba(255, 255, 255, 0.15);
}

/* Light Theme Feature Cards */
[data-theme="light"] .feature-card {
  background: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .feature-card h3 {
  color: #0F172A;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .feature-card p {
  color: #334155;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Screenshots Section - 3D Carousel
   -------------------------------------------------------------------------- */
.screenshots {
  overflow: visible;
  padding: var(--space-4xl) 0;
  position: relative;
  z-index: 2;
  background: var(--color-surface);
}

/* 3D Carousel Container */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 520px;
  margin: var(--space-2xl) auto 0;
  display: flex;
  justify-content: center;
  perspective: 1200px;
  overflow: visible;
}

/* Glow effect behind carousel */
.carousel-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

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

.carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transform-style: preserve-3d;
}

/* Individual Slide */
.slide {
  width: 220px;
  height: 440px;
  position: absolute;
  border-radius: 28px;
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 var(--glass-bg-hover);
  /* Smooth GSAP animation - no CSS transition */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.slide-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: var(--color-surface);
  border-radius: 26px;
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  z-index: 20;
}

.carousel-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Light theme carousel buttons */
[data-theme="light"] .carousel-btn {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.25);
  color: #1E293B;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .carousel-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glass-bg-hover);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-primary);
}

.carousel-dot:hover:not(.active) {
  background: var(--color-border-hover);
}

/* Light Theme Carousel Dots */
[data-theme="light"] .carousel-dot {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(30, 41, 59, 0.4);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(30, 41, 59, 0.6);
}

/* Carousel responsive sizes are handled in main mobile media queries */

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--color-bg);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-brand .logo {
  margin-bottom: 0;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

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

.footer-col a {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--color-text);
}

/* Footer Legal Links - horizontal layout */
.footer-legal-links ul {
  flex-direction: row;
  gap: var(--space-lg);
}

/* Footer Disclaimer Section */
.footer-disclaimer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-md);
}

.footer-disclaimer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.footer-disclaimer p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-disclaimer .footer-trademark {
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.8;
}

/* Trademark symbol styling */
.tm {
  font-size: 0.85em;
  vertical-align: super;
  line-height: 0;
  font-weight: 600;
}

/* Subtle link styling */
.subtle-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--color-text-muted);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.subtle-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  border-bottom-style: solid;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

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

.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

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

/* 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;
  }
  
  /* Skip intro animation - show content immediately */
  #intro-overlay {
    display: none !important;
  }
  
  .hero-content,
  .hero-title-line {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  
  body.intro-active {
    overflow: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.pricing {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

/* No custom .pricing .container - use standard container like features section */

.pricing .section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3xl);
  font-size: 1.1rem;
}

/* Trial Banner */
.trial-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, rgba(38, 199, 242, 0.15), rgba(38, 199, 242, 0.05));
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(38, 199, 242, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(38, 199, 242, 0.2); }
}

.trial-banner-icon {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.trial-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.trial-banner-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.trial-banner-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Trial banner responsive sizes are handled in main mobile media queries */

/* Light theme trial banner */
[data-theme="light"] .trial-banner {
  background: linear-gradient(135deg, rgba(38, 199, 242, 0.1), rgba(38, 199, 242, 0.02));
}

/* Pricing Boxes - using same pattern as trial-banner */
.pricing-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pricing-box-featured {
  background: linear-gradient(135deg, rgba(38, 199, 242, 0.15), rgba(38, 199, 242, 0.05));
  border: 2px solid var(--color-primary);
}

.pricing-box-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-box-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.pricing-box-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.pricing-box-subtitle {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 600;
}

.pricing-box-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.pricing-box-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.pricing-box-period {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.pricing-box-equivalent {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

.pricing-box-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.pricing-box-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-box-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326C7F2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  flex-shrink: 0;
}

[data-theme="light"] .pricing-box {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .pricing-box-featured {
  background: linear-gradient(135deg, rgba(38, 199, 242, 0.1), rgba(38, 199, 242, 0.02));
}

/* Central Store CTA */
.pricing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.pricing-cta-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
}

.pricing-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.pricing-cta-btn svg {
  flex-shrink: 0;
}

.pricing-cta-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Light theme pricing adjustments */
[data-theme="light"] .pricing-card {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .pricing-card-featured {
  background: linear-gradient(135deg, rgba(38, 199, 242, 0.1), rgba(38, 199, 242, 0.02));
}

[data-theme="light"] .pricing-features li {
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Landscape Orientation Overlay (force portrait on mobile)
   -------------------------------------------------------------------------- */
.landscape-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.landscape-message {
  text-align: center;
  color: var(--color-text);
}

.landscape-message svg {
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  animation: rotate-phone 2s ease-in-out infinite;
}

@keyframes rotate-phone {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

.landscape-message p {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Show overlay only on mobile in landscape orientation */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .landscape-overlay {
    display: flex;
  }
}

/* ============================================================================
   Firefox Mobile Overrides
   Firefox renders fonts larger, so we use smaller values to match Chrome
   ============================================================================ */
@-moz-document url-prefix() {
  @media screen and (max-width: 480px) {
    .hero-subtitle {
      font-size: 15px !important;
    }
    
    .hero-title {
      font-size: 44px !important;
      margin-top: var(--space-sm) !important;
    }
    
    .hero-title-main {
      font-size: 60px !important;
    }
    
    .hero-title-sub {
      font-size: 26px !important;
    }
    
    .coming-soon-text,
    .notify-link {
      font-size: 14px !important;
    }
    
    .logo-text {
      font-size: 16px !important;
    }
    
    /* Header elements - smaller for Firefox */
    .lang-btn {
      padding: 5px 8px !important;
      font-size: 11px !important;
    }
    
    .theme-btn {
      width: 32px !important;
      height: 32px !important;
      min-width: 32px !important;
    }
    
    .theme-icon {
      width: 14px !important;
      height: 14px !important;
    }
    
    /* Mobile menu - smaller for Firefox */
    .nav.mobile-open .nav-list a {
      font-size: 16px !important;
    }
    
    /* Carousel smaller for Firefox */
    .carousel-wrapper {
      height: 320px !important;
    }
    
    .carousel-track .slide {
      width: 140px !important;
      height: 280px !important;
    }
    
    .carousel-btn {
      width: 36px !important;
      height: 36px !important;
    }
    
    .carousel-btn svg {
      width: 20px !important;
      height: 20px !important;
    }
    
    /* Store badges - smaller for Firefox */
    .store-badge-apple img {
      width: 130px !important;
    }
    
    .store-badge-google img {
      width: 150px !important;
    }
    
    .section-title {
      font-size: 24px !important;
    }
    
    .section-subtitle {
      font-size: 15px !important;
    }
    
    .feature-card {
      padding: 1rem !important;
      max-width: 340px !important;
    }
    
    .feature-icon {
      width: 36px !important;
      height: 36px !important;
    }
    
    .feature-icon svg {
      width: 18px !important;
      height: 18px !important;
    }
    
    .feature-card h3 {
      font-size: 16px !important;
    }
    
    .feature-card p {
      font-size: 14px !important;
    }
    
    /* Scroll indicator smaller in Firefox - properly sized */
    .scroll-indicator span {
      width: 28px !important;
      height: 48px !important;
      border-width: 2px !important;
    }
    
    .scroll-indicator span::before {
      width: 5px !important;
      height: 10px !important;
      top: 10px !important;
    }
    
    /* Intro animation smaller for Firefox */
    .intro-icon-wrapper {
      width: clamp(100px, 20vw, 160px) !important;
    }
    
    .intro-brand-name {
      font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
      margin-top: -1rem !important;
    }
    
    .intro-logo {
      gap: var(--space-sm) !important;
    }
    
    /* Header - shift Kizor text left */
    .logo {
      gap: 6px !important;
    }
    
    .header-logo-svg {
      width: 32px !important;
      height: 32px !important;
    }
    
    /* Trial Banner */
    .trial-banner-highlight {
      font-size: 18px !important;
    }
    
    .trial-banner-text {
      font-size: 13px !important;
    }
    
    /* Pricing Cards */
    .pricing-header h3 {
      font-size: 20px !important;
    }
    
    .pricing-flexibility {
      font-size: 13px !important;
    }
    
    .price-amount {
      font-size: 36px !important;
    }
    
    .price-currency {
      font-size: 18px !important;
    }
    
    .price-period {
      font-size: 13px !important;
    }
    
    .pricing-equivalent {
      font-size: 12px !important;
    }
    
    .pricing-features li {
      font-size: 13px !important;
    }
    
    .pricing-badge {
      font-size: 10px !important;
    }
    
    .pricing-btn {
      font-size: 14px !important;
    }
    
    /* Pricing Box */
    .pricing-box-title {
      font-size: 20px !important;
    }
    
    .pricing-box-subtitle {
      font-size: 13px !important;
    }
    
    .pricing-box-amount {
      font-size: 28px !important;
    }
    
    .pricing-box-period {
      font-size: 13px !important;
    }
    
    .pricing-box-equivalent {
      font-size: 12px !important;
    }
    
    .pricing-box-features li {
      font-size: 13px !important;
    }
    
    .pricing-box-badge {
      font-size: 10px !important;
    }
    
    .pricing-box-btn {
      font-size: 14px !important;
    }
    
    /* Pricing CTA */
    .pricing-cta {
      font-size: 14px !important;
    }
    
    .pricing-cta-text {
      font-size: 12px !important;
    }
    
    .pricing-cta-btn {
      font-size: 12px !important;
      padding: 12px 20px !important;
    }
    
    .pricing-cta-btn svg {
      width: 14px !important;
      height: 14px !important;
    }
    
    .pricing-cta-note {
      font-size: 11px !important;
    }
    
    .pricing-note {
      font-size: 10px !important;
      margin-top: 0.5rem !important;
    }
    
    /* Footer */
    .footer-col h4 {
      font-size: 16px !important;
    }
    
    .footer-col li,
    .footer-col a {
      font-size: 14px !important;
    }
    
    .footer-brand .logo-text {
      font-size: 18px !important;
    }
    
    .footer-disclaimer h4 {
      font-size: 14px !important;
    }
    
    .footer-disclaimer p {
      font-size: 12px !important;
    }
    
    .footer-trademark {
      font-size: 11px !important;
    }
    
    .footer-bottom,
    .footer-bottom p {
      font-size: 12px !important;
    }
    
    .no-cookies {
      font-size: 11px !important;
    }
  }
}
