:root {
  --bg-color: #08090a;
  --card-bg: rgba(18, 20, 26, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-color: #6366f1;
  --accent-hover: #4f46e5;
  --success-color: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

.background-glow {
  position: fixed;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0, 0, 0, 0) 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.hero-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.fullscreen-active .hero-section {
  opacity: 0;
  visibility: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.app-icon-wrapper {
  width: clamp(80px, 20vw, 120px);
  height: clamp(80px, 20vw, 120px);
  margin-bottom: 24px;
  border-radius: 24px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.download-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin-bottom: 60px;
}

.status-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.status-dot { width: 10px; height: 10px; border-radius: 50%; background-color: var(--text-muted); }
.status-dot.active { background-color: var(--success-color); box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.status-dot.pulse { animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-color);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  border: none;
  user-select: none;
}

.btn:hover:not(.disabled) {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
}

.btn.disabled {
  background: #1f242d;
  color: #4b5563;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.btn-github {
  background: transparent !important;
  border: none !important;
  margin-top: 20px;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: none !important;
  text-decoration: none;
}

.btn-github:hover {
  background: transparent !important;
  color: var(--text-muted) !important;
  transform: none !important;
  box-shadow: none !important;
}

.download-icon { width: 22px; height: 22px; }

.meta-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.meta-item { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.meta-item:nth-child(2) { text-align: center; }
.meta-item:last-child { text-align: right; }
.meta-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.meta-value { font-size: 1rem; font-weight: 600; color: var(--text-main); }

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover { color: #fff; }

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

.simulator-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 60px 20px 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.3);
  transition: z-index 0.3s step-start, border-color 0.3s ease;
  width: 100%;
}

body.fullscreen-active .simulator-section {
  border-top-color: transparent;
}

.simulator-section:has(.is-fullscreen),
body.fullscreen-active .simulator-section {
  z-index: 10001;
  pointer-events: none;
}

.simulator-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.fullscreen-active .simulator-header {
  opacity: 0;
  visibility: hidden;
}

.section-title {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.smartphone-container {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.smartphone-frame {
  position: relative;
  width: 100%;
  border-radius: 44px;
  border: 10px solid #1a1d24;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(99, 102, 241, 0.15);
  background: #000;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
  will-change: transform;
  z-index: 10;
  pointer-events: auto;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.screen-clip {
  width: 100%;
  overflow: hidden;
  border-radius: 34px;
  position: relative;
  line-height: 0;
}

.smartphone-frame:not(.is-fullscreen):hover {
  transform: translateY(-5px);
}

.smartphone-frame.is-fullscreen {
  z-index: 10001;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 1), 0 0 100px rgba(99, 102, 241, 0.4);
}

.smartphone-frame img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;
}

.start-hint {
  position: absolute;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  left: 105%;
  top: 75%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}

.hint-pulse {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0.1) 60%, transparent 100%);
  border-radius: 50%;
  position: absolute;
  left: -8px;
  animation: hint-pulse-anim 1.5s infinite;
}

.hint-finger {
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
  transform: rotate(-90deg);
  animation: hint-slide-anim 1.5s infinite ease-in-out;
}

.hint-text {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #818cf8;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .start-hint {
    left: 72%;
    top: 78%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .hint-finger {
    transform: rotate(0deg);
  }
  .hint-text {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  @keyframes hint-slide-anim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
  }
}

@keyframes hint-pulse-anim {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes hint-slide-anim {
  0%, 100% { transform: rotate(-90deg) translateY(0); }
  50% { transform: rotate(-90deg) translateY(15px); }
}

.about-section {
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  width: 100%;
}

body.fullscreen-active .about-section {
  opacity: 0;
  visibility: hidden;
}

.about-content {
  max-width: 800px;
  width: 100%;
}

.about-title {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.about-description {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.8;
}

area { outline: none; }

.fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  padding: 0;
}

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.fullscreen-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.download-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.download-page.active {
  opacity: 1;
  pointer-events: all;
}

.download-page-content {
  max-width: 600px;
  width: 100%;
  position: relative;
  animation: slideUp 0.4s ease forwards;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  padding: 0;
}

.page-title {
  font-size: clamp(1.8rem, 6vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.step-details h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #fff;
}

.step-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.small-btn {
  margin-top: 16px;
  padding: 12px 20px;
  font-size: 0.95rem;
  width: auto;
  display: inline-flex;
}
