* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.phone-container {
  perspective: 1000px;
}

.phone-frame {
  width: 375px;
  height: 812px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 0 0 2px #333, 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.phone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.status-bar {
  height: 44px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 100;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.bar {
  width: 3px;
  background: white;
  border-radius: 1px;
}

.bar:nth-child(1) {
  height: 4px;
}
.bar:nth-child(2) {
  height: 6px;
}
.bar:nth-child(3) {
  height: 8px;
}
.bar:nth-child(4) {
  height: 10px;
}

.battery {
  width: 24px;
  height: 12px;
  border: 1px solid white;
  border-radius: 2px;
  position: relative;
}

.battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 6px;
  background: white;
  border-radius: 0 1px 1px 0;
}

.battery-level {
  width: 80%;
  height: 100%;
  background: #4ade80;
  border-radius: 1px;
}

.app-content {
  height: calc(100% - 44px - 34px);
  position: relative;
  overflow: hidden;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.screen.active {
  transform: translateX(0);
}

.home-header {
  text-align: center;
  padding: 40px 20px 20px;
  color: white;
}

.spirit-logo {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(45deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.tagline {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 400;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  margin-bottom: 30px;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.app-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.os-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.design-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}
.docs-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.about-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.app-icon span {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.privacy-switches {
  padding: 0 20px 20px;
  color: white;
}

.switch-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.switches {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.switch-toggle {
  width: 40px;
  height: 24px;
  background: #374151;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.switch-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch-toggle.active {
  background: #10b981;
}

.switch-toggle.active::after {
  transform: translateX(16px);
}

.app-header {
  height: 60px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
  background: none;
  border: none;
  color: #60a5fa;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  margin-right: 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.back-btn:hover {
  background: rgba(96, 165, 250, 0.1);
}

.app-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.app-body {
  padding: 20px;
  color: white;
  height: calc(100% - 60px);
  overflow-y: auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #60a5fa;
}

.feature-card p {
  color: #94a3b8;
  line-height: 1.5;
}

.status-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.status-item {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.status-item.working {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.status-item.progress {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.status-item.pending {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.specs-list {
  margin-bottom: 20px;
}

.spec-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #e2e8f0;
}

.spec-item:last-child {
  border-bottom: none;
}

.docs-sections {
  margin-bottom: 20px;
}

.doc-section {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e2e8f0;
}

.doc-section p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.4;
}

.principles {
  margin-bottom: 20px;
}

.principle {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.principle:last-child {
  border-bottom: none;
}

.principle-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  flex-shrink: 0;
}

.principle h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #e2e8f0;
}

.principle p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.4;
}

.github-link,
.youtube-link {
  display: inline-block;
  padding: 12px 20px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 12px;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-right: 12px;
  margin-bottom: 8px;
}

.github-link:hover,
.youtube-link:hover {
  background: rgba(96, 165, 250, 0.2);
  transform: translateY(-1px);
}

.youtube-link {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.youtube-link:hover {
  background: rgba(239, 68, 68, 0.2);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 480px) {
  .phone-frame {
    width: 90vw;
    max-width: 375px;
    height: 90vh;
    max-height: 812px;
    transform: none;
  }

  .phone-frame:hover {
    transform: none;
  }

  body {
    padding: 10px;
  }
}

/* Scrollbar Styling */
.app-body::-webkit-scrollbar {
  width: 4px;
}

.app-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.app-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.app-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
