:root {
  --bg-primary: #090d16;
  --bg-card: rgba(20, 27, 45, 0.7);
  --bg-card-hover: rgba(28, 38, 62, 0.85);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 71, 87, 0.3);
  
  --color-primary: #ff4757;
  --color-primary-glow: rgba(255, 71, 87, 0.4);
  --color-accent: #2ed573;
  --color-text-main: #f1f2f6;
  --color-text-muted: #a4b0be;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

/* Background Ambient Glow */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: #ff4757;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: #3742fa;
  bottom: 50px;
  right: -50px;
}

/* Container */
.page-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
}

/* Header */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2ed573;
  margin-bottom: 16px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2ed573;
  box-shadow: 0 0 10px #2ed573;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.mascot-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(255, 71, 87, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

.mascot-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.gradient-text {
  background: linear-gradient(135deg, #ff4757 0%, #ff7f50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 400px;
  line-height: 1.5;
}

/* Download Card */
.download-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.device-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.device-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
  color: #fff;
  text-decoration: none;
  padding: 18px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px var(--color-primary-glow);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
  width: 100%;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 71, 87, 0.6);
}

.btn-download:active {
  transform: translateY(1px);
}

.btn-icon {
  font-size: 1.6rem;
  line-height: 1;
  animation: bounce 2s infinite;
}

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

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.btn-text small {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
}

.security-badges {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Steps */
.steps-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  padding-left: 4px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 18px;
  transition: border-color 0.2s, background 0.2s;
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: #ff4757;
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-title-wrap h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.step-title-wrap .step-subtitle {
  font-size: 0.76rem;
  color: var(--color-accent);
  font-weight: 600;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.step-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #2ed573;
  font-size: 0.82rem;
}

/* UI Button Badges */
.btn-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  vertical-align: baseline;
  white-space: nowrap;
}

.btn-tag-danger {
  background: rgba(255, 71, 87, 0.2);
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: #ff6b81;
}

.btn-tag-success {
  background: rgba(46, 213, 115, 0.18);
  border: 1px solid rgba(46, 213, 115, 0.35);
  color: #2ed573;
}

.btn-tag-warning {
  background: rgba(255, 165, 2, 0.18);
  border: 1px solid rgba(255, 165, 2, 0.4);
  color: #ffa502;
}

.btn-tag-blue {
  background: rgba(55, 66, 250, 0.2);
  border: 1px solid rgba(55, 66, 250, 0.4);
  color: #70a1ff;
}

/* Step Screenshots Grid */
.step-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.step-screens.single-screen {
  grid-template-columns: minmax(140px, 200px);
  justify-content: flex-start;
}

.step-screen-card {
  display: flex;
  flex-direction: column;
  background: rgba(10, 14, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.step-screen-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 71, 87, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.step-screen-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #000;
}

.step-screen-caption {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  padding: 6px 8px;
  text-align: center;
  background: rgba(15, 21, 35, 0.9);
  line-height: 1.3;
}

.step-screen-caption strong {
  color: #fff;
}

/* Lightbox Modal */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  animation: popIn 0.2s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  background: rgba(20, 27, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #fff;
  text-align: center;
}

/* Technical Details */
.details-section {
  background: rgba(15, 20, 32, 0.6);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 10px 16px;
}

.tech-details summary {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  outline: none;
}

.details-content {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.detail-row span {
  color: var(--color-text-muted);
}

.detail-row code {
  color: #70a1ff;
  font-family: monospace;
}

.hash-code {
  word-break: break-all;
  font-size: 0.7rem;
  max-width: 250px;
  text-align: right;
}

/* Highlight Step */
.step-card.highlight-step {
  border-color: rgba(255, 71, 87, 0.45);
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.08) 0%, rgba(20, 24, 38, 0.7) 100%);
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.15);
}

.step-card.highlight-step .step-num {
  background: #ff4757;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
}

.step-sublist {
  margin: 6px 0 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.step-sublist li {
  font-size: 0.82rem;
  color: #dcdde1;
  line-height: 1.4;
}

.step-sublist li strong {
  color: #fff;
}

/* Vendor Tip Card */
.vendor-tip-card {
  background: rgba(26, 32, 48, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 165, 2, 0.25);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.vendor-tip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tip-icon {
  font-size: 1.5rem;
  background: rgba(255, 165, 2, 0.15);
  border: 1px solid rgba(255, 165, 2, 0.3);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-title h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffa502;
}

.tip-title p {
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

.vendor-tip-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tip-badge {
  align-self: flex-start;
  background: rgba(255, 165, 2, 0.12);
  border: 1px solid rgba(255, 165, 2, 0.3);
  color: #ffa502;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.tip-row p {
  font-size: 0.8rem;
  color: #dcdde1;
  line-height: 1.35;
}

/* Footer */
.page-footer {
  text-align: center;
  padding: 16px 0;
  font-size: 0.75rem;
  color: #57606f;
}

