/* ==========================================================================
   ĀTMAN ANDROID APK DOWNLOAD SANCTUARY (download.css)
   - Sacred Vedic geometry, Respiration Yantra, Amber Gold & Obsidian palette
   - Hardware-accelerated 60/120fps (translate3d, will-change, zero layout reflows)
   - Full responsive design for mobile and desktop screens
   ========================================================================== */

:root {
  --bg-deep: #080705;
  --bg-card: rgba(16, 14, 11, 0.88);
  --bg-card-border: rgba(201, 178, 124, 0.35);
  --accent-gold: #c9b27c;
  --accent-gold-light: #fce5b2;
  --accent-gold-glow: rgba(201, 178, 124, 0.25);
  --text-main: #f5f0e6;
  --text-muted: rgba(201, 178, 124, 0.75);
  --text-subtle: rgba(245, 240, 230, 0.45);
  --btn-gold: linear-gradient(135deg, #fce5b2 0%, #c9b27c 50%, #9e7f3e 100%);
  --btn-gold-hover: linear-gradient(135deg, #fff2d4 0%, #d8c28c 50%, #af8f4a 100%);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

[data-theme="light"] {
  --bg-deep: #f8f6f0;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-border: rgba(175, 145, 85, 0.38);
  --accent-gold: #8a6824;
  --accent-gold-light: #3d2b07;
  --accent-gold-glow: rgba(175, 145, 85, 0.2);
  --text-main: #1a1815;
  --text-muted: #6e5828;
  --text-subtle: rgba(26, 24, 21, 0.55);
  --btn-gold: linear-gradient(135deg, #c9b27c 0%, #9e7f3e 100%);
  --btn-gold-hover: linear-gradient(135deg, #d8c28c 0%, #af8f4a 100%);
}

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

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Sacred Geometry */
.yantra-viewport {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ambient-halo {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
  filter: blur(80px);
  animation: halo-breathe 8s ease-in-out infinite;
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.1); }
}

.yantra-svg {
  width: 900px;
  height: 900px;
  opacity: 0.16;
  animation: yantra-spin 160s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes yantra-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Header */
.download-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-glyph {
  font-size: 1.5rem;
  color: var(--accent-gold);
  text-shadow: 0 0 12px var(--accent-gold-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-gold-light);
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

/* Main Content Container */
.download-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem 4rem;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

/* Hero Badge */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(201, 178, 124, 0.12);
  border: 1px solid var(--bg-card-border);
  color: var(--accent-gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Main Hero Card */
.download-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 2.75rem 2.25rem;
  width: 100%;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-gold-glow);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-emblem {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(201, 178, 124, 0.2), rgba(8, 7, 5, 0.8));
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--accent-gold-light);
  box-shadow: 0 0 24px var(--accent-gold-glow);
  animation: emblem-float 6s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Primary CTA Button */
.cta-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.1rem 2.5rem;
  border-radius: 999px;
  background: var(--btn-gold);
  color: #080705;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(201, 178, 124, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: none;
  margin-bottom: 1rem;
}

.cta-download-btn:hover {
  background: var(--btn-gold-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px rgba(201, 178, 124, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

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

.cta-download-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.download-meta-notes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-subtle);
  font-size: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-gold);
  opacity: 0.5;
}

/* QR Code Section */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 178, 124, 0.15);
}

.qr-frame {
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(20, 18, 14, 0.95);
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-gold-glow);
  display: inline-block;
  transition: transform 0.25s ease;
}

.qr-frame:hover {
  transform: scale(1.03);
}

.qr-image {
  width: 175px;
  height: 175px;
  display: block;
  border-radius: 10px;
}

.qr-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.qr-copy-btn {
  background: rgba(201, 178, 124, 0.1);
  border: 1px solid var(--bg-card-border);
  color: var(--accent-gold-light);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.qr-copy-btn:hover {
  background: rgba(201, 178, 124, 0.2);
  border-color: var(--accent-gold);
}

/* Steps Grid */
.steps-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 3rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(201, 178, 124, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.step-tip {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(201, 178, 124, 0.08);
  border-left: 2px solid var(--accent-gold);
  font-size: 0.8rem;
  color: var(--accent-gold-light);
}

/* Security & Architecture Specs */
.specs-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.spec-icon {
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.spec-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.spec-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Footer */
.download-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-subtle);
  font-size: 0.85rem;
  position: relative;
  z-index: 10;
}

.download-footer a {
  color: var(--accent-gold);
  text-decoration: none;
}

.download-footer a:hover {
  text-decoration: underline;
}

/* Toast */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent-gold);
  color: #080705;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 1000;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .download-hero-card {
    padding: 2rem 1.25rem;
  }
  .cta-download-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
  }
  .download-meta-notes {
    gap: 0.75rem;
  }
  .specs-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

/* Coming Soon Custom Enhancements */
.cta-download-btn.coming-soon-btn {
  background: rgba(201, 178, 124, 0.12) !important;
  color: var(--accent-gold) !important;
  border: 1px solid rgba(201, 178, 124, 0.35) !important;
  box-shadow: 0 0 20px rgba(201, 178, 124, 0.12) !important;
  cursor: not-allowed !important;
  user-select: none;
}
.cta-download-btn.coming-soon-btn:hover {
  transform: none !important;
  background: rgba(201, 178, 124, 0.12) !important;
  box-shadow: 0 0 20px rgba(201, 178, 124, 0.12) !important;
}
.coming-soon-notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(201, 178, 124, 0.3);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
}
.coming-soon-notify-btn:hover {
  background: rgba(201, 178, 124, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  transform: translateY(-1px);
}
.qr-overlay-pill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 7, 5, 0.75);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed rgba(201, 178, 124, 0.4);
}
