/* ============================================
   GIGS — Download Page CSS
   download.css
   ============================================ */

/* ===== CUSTOM CURSOR ===== */
*, *::before, *::after {
  cursor: none !important;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#cursor-outer {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid #df860a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#cursor-inner {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #df860a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #df860a, 0 0 20px rgba(223, 134, 10, 0.5);
  transition: width 0.1s ease, height 0.1s ease, background 0.1s ease;
}

/* Crosshair lines on cursor */
#cursor-outer::before,
#cursor-outer::after {
  content: '';
  position: absolute;
  background: rgba(223, 134, 10, 0.5);
}
#cursor-outer::before {
  width: 1px;
  height: 8px;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}
#cursor-outer::after {
  width: 8px;
  height: 1px;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Hover state */
body.cursor-hover #cursor-outer {
  width: 55px;
  height: 55px;
  border-color: #ff6b1a;
  background: rgba(223, 134, 10, 0.06);
}
body.cursor-hover #cursor-inner {
  width: 4px;
  height: 4px;
  background: #ff6b1a;
}

/* Click state */
body.cursor-click #cursor-inner {
  width: 12px;
  height: 12px;
  background: #ffffff;
}

/* ===== CSS VARIABLES ===== */
:root {
  --accent:      #df860a;
  --accent-hot:  #ff6b1a;
  --accent-glow: rgba(223, 134, 10, 0.35);
  --accent-dim:  rgba(223, 134, 10, 0.12);
  --bg:          #000000;
  --bg2:         #080808;
  --bg-card:     #0c0c0c;
  --text:        #e8e4e0;
  --text-muted:  #7a7570;
  --font-hud:    'Orbitron', monospace;
  --font-body:   'Rajdhani', sans-serif;
  --font-mono:   'Share Tech Mono', monospace;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== BASE ===== */
html {
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  opacity: 0;
  animation: pageIn 0.8s var(--ease) forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
::selection { background: var(--accent); color: #000; }

/* ===== BACKGROUND GRID ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(223, 134, 10, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 134, 10, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(60px); }
}

/* Vignette over grid */
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 30%,
    rgba(0, 0, 0, 0.85) 100%);
}

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

/* ===== BACK BUTTON ===== */
.back-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text) !important;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(223, 134, 10, 0.35);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.back-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  box-shadow: 0 0 20px rgba(223, 134, 10, 0.2);
  transform: translateY(-2px);
}

.back-btn:hover .back-arrow {
  transform: translateX(-3px);
}

.back-btn:active {
  transform: scale(0.97);
}

/* ===== MAIN CARD ===== */
.dl-main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 620px;
  margin: 80px 20px 40px;
  padding: 52px 48px;
  background: var(--bg-card);
  border: 1px solid rgba(223, 134, 10, 0.15);
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(223, 134, 10, 0.04);
}

/* HUD Corners */
.hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.dl-main:hover .hud-corner { opacity: 0.9; }

.hud-corner.tl { top: 0; left: 0;   border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 0; right: 0;  border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* ===== PAGE HEADER ===== */
.dl-header {
  text-align: center;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.dl-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.65;
  margin-bottom: 14px;
}

.dl-title {
  font-family: var(--font-hud) !important;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 16px;
}

.dl-title .bracket {
  color: var(--accent);
  font-size: 1.1em;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px var(--accent));
}

.dl-title .title-text {
  margin: 0 12px;
}

.accent-bar {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent);
  margin: 0 auto;
  animation: barPulse 2.5s ease-in-out infinite;
}

@keyframes barPulse {
  0%, 100% { width: 60px; box-shadow: 0 0 12px var(--accent); }
  50%       { width: 100px; box-shadow: 0 0 24px var(--accent), 0 0 40px rgba(223,134,10,0.2); }
}

/* ===== INFO BLOCK ===== */
.dl-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(223, 134, 10, 0.04);
  border: 1px solid rgba(223, 134, 10, 0.15);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  padding: 20px 22px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease) 0.35s forwards;
}

.info-icon {
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.info-text p {
  font-family: var(--font-body);
  font-size: clamp(13px, 2.2vw, 15px);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}

.info-text p:last-child { margin-bottom: 0; }

.info-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== DIVIDER ===== */
.dl-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.45s forwards;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223,134,10,0.3), transparent);
}

.divider-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(223,134,10,0.45);
  white-space: nowrap;
}

/* ===== DOWNLOAD BUTTONS ===== */
.dl-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.55s forwards;
}

.dl-btn {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Button background fill on hover */
.btn-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: 2px;
}

.dl-btn.primary {
  border: 1px solid rgba(223, 134, 10, 0.4);
  background: rgba(223, 134, 10, 0.06);
}
.dl-btn.primary .btn-bg {
  background: linear-gradient(135deg, #df860a 0%, #ff6b1a 100%);
}
.dl-btn.primary:hover {
  box-shadow: 0 0 35px var(--accent-glow), 0 10px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.dl-btn.primary:hover .btn-bg { opacity: 1; }
.dl-btn.primary:hover .btn-content { color: #000 !important; }
.dl-btn.primary:hover .btn-title { color: #000; }
.dl-btn.primary:hover .btn-sub   { color: rgba(0,0,0,0.65); }
.dl-btn.primary:hover .btn-icon  { color: #000; text-shadow: none; }
.dl-btn.primary:hover .btn-arrow { color: #000; }

.dl-btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.dl-btn.secondary .btn-bg {
  background: rgba(255, 255, 255, 0.06);
}
.dl-btn.secondary:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px);
  border-color: rgba(223, 134, 10, 0.25);
}
.dl-btn.secondary:hover .btn-bg { opacity: 1; }

/* Scan line animation on primary btn */
.btn-scan {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewY(-3deg);
  transition: top 0.5s ease;
  z-index: 1;
  pointer-events: none;
}
.dl-btn.primary:hover .btn-scan {
  top: 120%;
}

.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  transition: color 0.3s ease;
}

.btn-icon {
  font-size: 22px;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.dl-btn.secondary .btn-icon {
  color: var(--text-muted);
  text-shadow: none;
}

.btn-texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.btn-title {
  font-family: var(--font-hud);
  font-size: clamp(12px, 2.2vw, 14px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s ease;
}

.dl-btn.secondary .btn-title {
  color: var(--text-muted);
}

.btn-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(122, 117, 112, 0.7);
  transition: color 0.3s ease;
}

.btn-arrow {
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.dl-btn.secondary .btn-arrow {
  color: var(--text-muted);
}

.dl-btn:hover .btn-arrow {
  transform: translateY(3px);
}

.dl-btn:active {
  transform: scale(0.98) !important;
}

/* ===== FOOTNOTE ===== */
.dl-footnote {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(122, 117, 112, 0.45);
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.7s forwards;
}

.dl-footnote i {
  color: rgba(223, 134, 10, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .dl-main {
    padding: 36px 24px;
    margin: 70px 16px 30px;
  }

  .back-btn {
    top: 16px;
    right: 16px;
    font-size: 10px;
    padding: 8px 14px;
  }

  .back-label { display: none; }

  #cursor-outer,
  #cursor-inner {
    display: none;
  }

  *, *::before, *::after {
    cursor: auto !important;
  }
}

@media (max-width: 400px) {
  .dl-main {
    padding: 28px 16px;
  }

  .btn-content {
    padding: 16px 18px;
    gap: 12px;
  }
}