:root { color-scheme: dark; }
body { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; }
.display { font-family: 'Space Grotesk', Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; }
.glass { backdrop-filter: blur(10px); background: rgb(10 10 12 / 0.65); }
.ring-ambient { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 0 60px 20px rgb(56 189 248 / .05); }

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

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #fa1917;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(250, 25, 23, 0.3);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: #d81412;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(250, 25, 23, 0.4);
}

#backToTop i {
  color: white;
  font-size: 1.25rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40;
  }
  
  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #a1a1aa;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .mobile-menu a:hover,
  .mobile-menu a.active {
    background: rgba(250, 25, 23, 0.1);
    color: #fa1917;
  }
  
  /* Override for mockup button - keep white text and proper hover */
  .mobile-menu a.mockup-menu-btn,
  .mobile-menu a.mockup-menu-btn.active {
    color: white !important;
    background-color: #fa1917 !important;
  }
  
  .mobile-menu a.mockup-menu-btn:hover,
  .mobile-menu a.mockup-menu-btn.active:hover {
    background-color: #d81412 !important;
    color: white !important;
  }
  
  /* Hamburger Button */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 50;
  }
  
  .mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Back to Top Button - Mobile */
  #backToTop {
    width: 3rem;
    height: 3rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  #backToTop i {
    font-size: 1rem;
  }
  
  /* Ensure minimum touch target sizes */
  button, a, input, select, textarea {
    min-height: 44px;
  }
  
  /* Improve text readability */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Better spacing on mobile */
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  /* Form inputs */
  input, select, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
  /* Improve heading sizes */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
  }
  
  /* Better grid layouts */
  .grid {
    gap: 1.5rem !important;
  }
  
  /* Improve card spacing */
  .rounded-2xl {
    padding: 1.25rem !important;
  }
  
  /* Better button sizes */
  button, .btn, a[class*="rounded"] {
    min-height: 44px;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9375rem !important;
  }
  
  /* Improve form inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 0.875rem 1rem !important;
    min-height: 48px;
  }
  
  /* Better spacing for sections */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Improve hero sections */
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Better image responsiveness */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Improve stats display */
  .text-3xl {
    font-size: 1.875rem !important;
  }
  
  /* Better footer on mobile */
  footer .grid {
    gap: 2rem !important;
  }
  
  /* Improve navigation button */
  .mobile-menu-btn {
    display: flex !important;
  }
  
  /* Hide desktop button on mobile */
  .hidden.sm\:inline-flex {
    display: none !important;
  }
  
  /* Better text wrapping */
  p, span, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Improve container padding */
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Better gap spacing */
  .gap-12 {
    gap: 2rem !important;
  }
  
  .gap-8 {
    gap: 1.5rem !important;
  }
  
  .gap-6 {
    gap: 1.25rem !important;
  }
  
  /* Improve list spacing */
  ul, ol {
    padding-left: 1.25rem;
  }
  
  /* Better table responsiveness */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide Hero Card on Mobile */
  .hero-card-stack {
    display: none !important;
  }

  .hero-metrics {
    display: none !important;
  }
}

/* Inline styles moved to external CSS */
html {
  scroll-behavior: smooth;
}

.gradient-orb-red {
  background: radial-gradient(closest-side, #fa1917 30%, transparent);
}

.gradient-orb-gold {
  background: radial-gradient(closest-side, #C99B4C 30%, transparent);
}

.header-gradient {
  background: radial-gradient(circle at top left, rgba(250, 25, 23, 0.04), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(12px);
}

.impact-description-spacing {
  margin-top: 8px;
}

.screenshot-badge-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.timeline-gradient-width {
  width: calc(50% - 2rem);
}

.honeypot-field {
  display: none;
}

.footer-gradient {
  background: radial-gradient(circle at top left, rgba(250, 25, 23, 0.04), rgba(15, 23, 42, 0.95));
}

