/* Enhanced styles.css with Apple-like animations */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #1e3a8a;
  --accent-gradient: linear-gradient(135deg, #1e3a8a, #3b82f6, #60a5fa);
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Apple-style animation variables */
  --animation-duration: 0.8s;
  --animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --stagger-delay: 100ms;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS smooth scrolling */
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  /* Better mobile performance */
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
  /* Prevent text size adjustment on iOS */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
}

p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

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

a:hover:not(.btn):not(.site-nav__cta):not(.site-nav__ghost) {
  color: var(--accent);
}

/* Apple-style Animation Classes */
.animate-on-load {
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--animation-duration) var(--animation-easing),
              transform var(--animation-duration) var(--animation-easing);
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp var(--animation-duration) var(--animation-easing) forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft var(--animation-duration) var(--animation-easing) forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight var(--animation-duration) var(--animation-easing) forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered animations for lists */
.stagger-1 { animation-delay: calc(var(--stagger-delay) * 1); }
.stagger-2 { animation-delay: calc(var(--stagger-delay) * 2); }
.stagger-3 { animation-delay: calc(var(--stagger-delay) * 3); }
.stagger-4 { animation-delay: calc(var(--stagger-delay) * 4); }
.stagger-5 { animation-delay: calc(var(--stagger-delay) * 5); }
.stagger-6 { animation-delay: calc(var(--stagger-delay) * 6); }
.stagger-7 { animation-delay: calc(var(--stagger-delay) * 7); }

/* Gradient Text */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Animations */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Scroll Progress - Enhanced and Visible */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 1);
  transition: var(--transition);
  opacity: 1;
}

/* Hide navigation initially only on pages with hero animation */
body:has(.hero__intro-animation) .site-nav {
  opacity: 0;
}

body:has(.hero__intro-animation) .site-nav.visible {
  opacity: 1;
}

.site-nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.site-nav__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.site-nav__mark img {
  width: 40px;
  height: 40px;
}

.site-nav__links {
  display: flex;
  gap: 2rem;
}

.site-nav__links a {
  font-weight: 500;
  position: relative;
}

.site-nav__links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

.site-nav__links a:hover::after {
  width: 100%;
}

.site-nav__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-nav__ghost {
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.site-nav__ghost:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
}

.site-nav__cta {
  padding: 0.5rem 1.5rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.site-nav__cta:hover {
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 998;
}

.mobile-menu[aria-hidden="false"] {
  display: flex;
}

.mobile-menu a {
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  /* Mobile touch optimization */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn--primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.btn--primary::before {
  opacity: 1;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
  color: white !important;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(59, 130, 246, 0.5);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn--ghost:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #60a5fa;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section - Animation First, Then Content */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8vh;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #000000;
}

/* Initial animation that plays first */
.hero__intro-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 870px;
  height: 870px;
  object-fit: cover;
  z-index: 1000;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 1;
}

.hero__intro-animation.minimized {
  top: 80px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 120px;
  height: 200px;
  z-index: 1001;
}

.hero__intro-animation.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Hero content that appears after animation */
.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.08) 0%, transparent 70%);
  z-index: -2;
}

.hero__gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
}

.hero__content {
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease-out;
}

.hero__content.visible {
  opacity: 1;
  pointer-events: auto;
}

.hero__title {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.hero__title-white {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.hero__title-blue {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  position: relative;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.hero__subtitle {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  line-height: 1.5;
  max-width: 900px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero__stats {
  display: flex;
  gap: 3rem;
  margin: 0.3rem 0;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat__value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4)) brightness(1.05);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero__actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__actions .btn {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__actions .btn__icon {
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
}

.hero__actions .btn--primary {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__actions .btn--ghost {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero__device {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
}

.device-frame {
  background: var(--bg-tertiary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
  position: relative;
  border: 1px solid var(--border);
}

.device-frame__shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

.device-frame__slides {
  display: flex;
  transition: transform 0.5s ease;
}

.device-slide {
  min-width: 100%;
  padding: 2.5rem;
  position: relative;
}

.device-slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.device-slide header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pill {
  padding: 0.35rem 1rem;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.device-slide footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.chip {
  padding: 0.35rem 1rem;
  background: var(--card-bg);
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.device-frame__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.device-frame__control {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.device-frame__control:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.device-frame__control::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--text-primary);
  border-right: 2px solid var(--text-primary);
}

.device-frame__control[data-prev]::before {
  transform: rotate(-135deg) translate(2px, 2px);
}

.device-frame__control[data-next]::before {
  transform: rotate(45deg) translate(-2px, 2px);
}

.device-frame__dots {
  display: flex;
  gap: 0.75rem;
}

.device-frame__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.device-frame__dots span.is-active {
  background: var(--accent-gradient);
  transform: scale(1.2);
}

.hero__version {
  display: flex;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

/* Mission Section Styles */
.mission {
  background: var(--bg-tertiary);
  padding: 4rem 0 3rem 0;
  text-align: center;
}
.mission__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mission__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.mission__highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.mission__highlights li {
  background: var(--card-bg);
  border-radius: 1.2rem;
  padding: 1.1rem 2.2rem;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
  transition: var(--transition);
}

/* Spotlight Section */
.spotlight {
  background: var(--bg-secondary);
}

.spotlight__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.command-palette {
  background: var(--bg-tertiary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.command-palette__search {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.5rem;
  background: var(--card-bg);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.ghost {
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.command-palette__list {
  list-style: none;
}

.command-palette__item {
  width: 100%;
  padding: 1rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.command-palette__item:hover, .command-palette__item.is-active {
  background: var(--card-bg);
}

.command-palette__item span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.command-palette footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.command-palette footer button {
  padding: 0.25rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.command-palette footer button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.spotlight__preview {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.spotlight__preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Feature Rows */
.feature-rows {
  background: var(--bg-primary);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-row__copy {
  max-width: 600px;
}

.eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-row__copy ul {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-row__copy li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.feature-row__copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.feature-row__visual {
  position: relative;
}

.feature-row__visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Ethics Section */
.ethics {
  background: var(--bg-secondary);
}

.ethics header {
  text-align: center;
  margin-bottom: 4rem;
}

.ethics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ethics-card {
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ethics-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.ethics-card__icon {
  width: 64px;
  height: 64px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ethics-card__icon img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.ethics-card__content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Threats Section */
.threats {
  background: var(--bg-primary);
  padding: 6rem 0;
}

.threats header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.threats header h2 {
  margin-bottom: 1rem;
}

.threats header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.threats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.threat-card {
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.threat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.3);
}

.threat-card__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.threat-card__header h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, 
    rgba(239, 68, 68, 1) 0%, 
    rgba(255, 100, 100, 1) 25%, 
    rgba(255, 50, 50, 1) 50%, 
    rgba(255, 100, 100, 1) 75%, 
    rgba(239, 68, 68, 1) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: warningGlow 2.5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

@keyframes warningGlow {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.8));
  }
  100% {
    background-position: 200% 50%;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
  }
}

.threat-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-item {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.threat-card__content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.threat-list {
  list-style: none;
  margin-top: 1rem;
}

.threat-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.threat-list li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .threats__grid {
    grid-template-columns: 1fr;
  }
  
  .threat-card {
    padding: 1.5rem;
  }
}

/* CTA Band */
.cta-band {
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
}

.cta-band__copy {
  flex: 1;
  padding: 0 2rem;
}

.cta-band__art {
  flex: 1;
  padding: 0 2rem;
}

.cta-band__art img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Contact Section */
.contact {
  background: var(--bg-primary);
}

.contact__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__form {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.contact__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact__field--full {
  grid-column: span 2;
}

.contact__field span {
  font-size: 0.875rem;
  font-weight: 500;
}

.contact__field input,
.contact__field textarea {
  padding: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  /* Mobile optimization - prevent zoom on focus */
  font-size: max(16px, 1rem);
  /* Better mobile touch */
  -webkit-appearance: none;
  appearance: none;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.05);
}

.contact__captcha {
  margin: 1.5rem 0;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

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

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.site-footer__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.site-footer__brand a:hover {
  opacity: 0.8;
}

.site-footer__brand img {
  width: 40px;
  height: 40px;
}

.site-footer__wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.site-footer__content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.site-footer__nav {
  display: flex;
  gap: 2rem;
}

.site-footer__nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__social {
  display: flex;
  gap: 1rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.site-footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.site-footer__social svg {
  width: 20px;
  height: 20px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  margin-left: 1.5rem;
}

.site-footer__bottom a:hover {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .site-footer__nav {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 0 2rem;
  }
  
  .site-footer__top {
    gap: 2rem;
    padding-bottom: 2rem;
  }
  
  .site-footer__nav {
    flex-direction: column;
    gap: 2rem;
  }
  
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .site-footer__bottom a {
    margin-left: 0;
  }
}

/* Utility Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .spotlight__inner,
  .feature-row,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .feature-row--reverse {
    direction: ltr;
  }
  
  .ethics__grid {
    grid-template-columns: 1fr;
  }
  
  .cta-band {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Compact nav bar on mobile - show only logo and key buttons */
  .site-nav {
    display: block;
    padding: 0.5rem 0;
  }
  
  .site-nav__inner {
    padding: 0 1rem;
  }
  
  /* Hide navigation links */
  .site-nav__links {
    display: none;
  }
  
  /* Keep logo visible but smaller */
  .site-nav__brand {
    font-size: 1rem;
  }
  
  .site-nav__mark {
    width: 32px;
    height: 32px;
  }
  
  /* Show only Mission Brief and Get in Touch buttons */
  .site-nav__actions {
    display: flex;
    gap: 0.5rem;
  }
  
  .site-nav__ghost,
  .site-nav__cta {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Hide hamburger - not needed with simplified nav */
  .site-nav__toggle {
    display: none;
  }
  
  /* Hide mobile menu - using simplified nav instead */
  .mobile-menu {
    display: none !important;
  }
  
  /* Fix hero section on mobile */
  .hero {
    min-height: 100vh;
    padding-bottom: 4vh;
    align-items: center;
  }
  
  /* Hide intro animation completely on mobile */
  .hero__intro-animation {
    display: none !important;
  }
  
  /* Show hero content immediately on mobile */
  .hero__content {
    opacity: 1 !important;
    pointer-events: auto !important;
    padding-top: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero__title {
    font-size: 1.75rem;
  }
  
  .hero__subtitle {
    font-size: 1rem;
  }
  
  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero__stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact__fields {
    grid-template-columns: 1fr;
  }
  
  .contact__field--full {
    grid-column: span 1;
  }
  
  .site-footer__inner {
    flex-direction: column;
    gap: 1rem;
  }
}

/* iOS and Android Specific Optimizations */
/* Ensure minimum touch target size of 44x44px (Apple) / 48x48px (Android) */
@media (max-width: 768px) {
  .btn,
  .site-nav__links a,
  .site-nav__cta,
  .site-nav__ghost,
  .mobile-menu a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better mobile video performance */
  video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Prevent iOS rubber band scrolling on fixed elements */
  .site-nav,
  .scroll-progress {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero__content {
    padding: 2rem 0;
  }
  
  .hero__title {
    font-size: 1.5rem;
  }
}

/* High DPI screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on high DPI displays */
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Legal Pages Styles */
.legal-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  padding: 8rem 0 4rem;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.legal-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.legal-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.legal-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.legal-content {
  background: var(--bg-secondary);
  padding: 4rem 0 6rem;
}

.legal-content__body {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 1rem;
  margin-top: 0;
}

.legal-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.legal-section ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.legal-section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .legal-hero {
    min-height: 30vh;
    padding: 6rem 0 2rem;
  }
  
  .legal-content__body {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  
  .legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .legal-section h2 {
    font-size: 1.5rem;
  }
  
  .legal-section h3 {
    font-size: 1.2rem;
  }
}