/* Apple Keynote & Precision Hardware Engineering Styles */
:root {
  --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --apple-blue: #0071E3;
  --apple-blue-hover: #0077ED;
  --live-green: #30D158;
  --surface-light: #FFFFFF;
  --bg-light: #F5F5F7;
  --chassis-dark: #161617;
  --card-dark: #1D1D1F;
}

/* Base smoothing */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

/* Apple Smooth Easing Utility */
.apple-transition {
  transition: all 0.4s var(--apple-ease);
}

.apple-ease {
  transition-timing-function: var(--apple-ease);
}

/* Ambient Hardware Dot Grid */
.bg-hardware-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-light-hardware-grid {
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* macOS Terminal / Hardware Chassis Card */
.noc-chassis {
  background: #161617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Live LED Pulse Animation */
@keyframes telemetryPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(48, 209, 88, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0);
  }
}

.led-pulse {
  animation: telemetryPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Apple Pill Buttons */
.btn-apple-primary {
  background-color: var(--apple-blue);
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.25s var(--apple-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-apple-primary:hover {
  background-color: var(--apple-blue-hover);
  transform: scale(1.015);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.btn-apple-primary:active {
  transform: scale(0.985);
}

.btn-apple-secondary {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1D1D1F;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  transition: all 0.25s var(--apple-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-apple-secondary:hover {
  background-color: #F5F5F7;
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.btn-apple-secondary:active {
  transform: scale(0.985);
}

/* Bento Card Style */
.bento-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 1.5rem;
  transition: all 0.35s var(--apple-ease);
}

.bento-card:hover {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Smartphone Springboard App Icon Squircle */
.app-squircle {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--apple-ease);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

@media (min-width: 640px) {
  .app-squircle {
    width: 76px;
    height: 76px;
    border-radius: 22px;
  }
}

.app-item:hover .app-squircle {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.app-item:active .app-squircle {
  transform: scale(0.94);
}

/* iOS Glass Dock */
.ios-dock {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border-radius: 2rem;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}
