/* =============================================================
   PP Organizer — Site Stylesheet
   style.css

   Sections:
   1. Tokens & Reset
   2. Background & Atmosphere
   3. Layout
   4. Header
   5. Hero
   6. Main Grid (Download + Donation cards)
   7. Features
   8. Install
   9. Footer
   10. Utilities & Scrollbar
   11. Animations
   12. Responsive
   ============================================================= */


/* ── 1. TOKENS & RESET ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* backgrounds */
  --bg:           #06060a;
  --bg2:          #0d0d12;
  --bg3:          #12121a;
  --bg4:          #1a1a24;
  --bg5:          #22222e;

  /* borders */
  --border:       rgba(255, 255, 255, 0.06);
  --border2:      rgba(255, 255, 255, 0.10);
  --border3:      rgba(255, 255, 255, 0.16);

  /* text */
  --text:         #f0f0f5;
  --text2:        #8a8a9a;
  --text3:        #3a3a4a;

  /* accent — yellow/orange */
  --accent:       #e8b830;
  --accent2:      #f5a623;
  --accent-dim:   rgba(232, 184, 48, 0.10);
  --accent-glow:  rgba(232, 184, 48, 0.35);

  /* semantic */
  --green:        #3ecf6a;
  --green-glow:   rgba(62, 207, 106, 0.30);
  --blue:         #5a9eff;
  --blue-glow:    rgba(90, 158, 255, 0.30);
  --red:          #ff5c5c;
  --red-bg:       rgba(255, 92, 92, 0.10);

  /* shape */
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  /* font */
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(232, 184, 48, 0.25);
  color: var(--text);
}


/* ── 2. BACKGROUND & ATMOSPHERE ────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(232, 184, 48, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 184, 48, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 24s linear infinite;
  pointer-events: none;
}

.bg-orb-top {
  position: fixed;
  width: 700px;
  height: 700px;
  top: -280px;
  left: -200px;
  background: radial-gradient(circle, rgba(232, 184, 48, 0.07) 0%, transparent 70%);
  z-index: 0;
  animation: orbFloat1 9s ease-in-out infinite;
  pointer-events: none;
}

.bg-orb-bottom {
  position: fixed;
  width: 500px;
  height: 500px;
  bottom: -160px;
  right: -160px;
  background: radial-gradient(circle, rgba(90, 158, 255, 0.05) 0%, transparent 70%);
  z-index: 0;
  animation: orbFloat2 11s ease-in-out infinite;
  pointer-events: none;
}


/* ── 3. LAYOUT ─────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}


/* ── 4. HEADER ─────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(13, 13, 18, 0.80);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  margin-bottom: 60px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(232, 184, 48, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.40);
  animation: fadeDown 0.6s ease both;
}

.site-header .logo {
  height: 38px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.badge-free {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(232, 184, 48, 0.30);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: glowPulse 3s ease-in-out infinite;
}

.badge-version {
  background: var(--bg4);
  color: var(--text3);
  border: 1px solid var(--border);
}


/* ── 5. HERO ───────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 72px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.hero-eyebrow::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 8px;
}

.hero h1 .highlight {
  color: var(--accent);
  text-shadow:
    0 0 30px var(--accent-glow),
    0 0 60px rgba(232, 184, 48, 0.15);
}

.hero-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 540px;
  margin: 20px auto 0;
  font-weight: 400;
  line-height: 1.75;
}


/* ── 6. MAIN GRID ──────────────────────────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.2s ease both;
}

/* base card */
.card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

/* inner gradient border */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(232, 184, 48, 0.18),
    transparent 50%,
    rgba(90, 158, 255, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ambient glow layer */
.card-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ─ Download card ─ */
.card-download {
  background: linear-gradient(145deg, #0e0e16 0%, #110c05 100%);
  box-shadow: 0 0 40px rgba(232, 184, 48, 0.07), 0 20px 60px rgba(0, 0, 0, 0.50);
}

.card-download:hover {
  box-shadow: 0 0 60px rgba(232, 184, 48, 0.14), 0 24px 70px rgba(0, 0, 0, 0.60);
}

.card-download .card-glow {
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(232, 184, 48, 0.10) 0%, transparent 70%);
}

/* card label row */
.card-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: dotBlink 2s ease-in-out infinite;
}

.card-label-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.75;
  flex: 1;
}

/* compat chips */
.compat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: var(--bg4);
  border: 1px solid var(--border);
  color: var(--text3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.chip.ok {
  background: rgba(62, 207, 106, 0.07);
  border-color: rgba(62, 207, 106, 0.20);
  color: var(--green);
}

/* download button */
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #0a0a0e;
  border: none;
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-body);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow:
    0 0 20px var(--accent-glow),
    0 4px 20px rgba(232, 184, 48, 0.25);
}

.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%);
  pointer-events: none;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 40px var(--accent-glow),
    0 8px 30px rgba(232, 184, 48, 0.35);
}

.btn-download:active { transform: translateY(0) }

.btn-download svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* file info */
.file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text3);
  font-family: var(--font-mono);
}

/* ─ Donation card ─ */
.card-donation {
  background: linear-gradient(145deg, #0a0d14 0%, #0a0e18 100%);
  box-shadow: 0 0 40px rgba(90, 158, 255, 0.05), 0 20px 60px rgba(0, 0, 0, 0.50);
  align-items: center;
  text-align: center;
}

.card-donation:hover {
  box-shadow: 0 0 60px rgba(90, 158, 255, 0.09), 0 24px 70px rgba(0, 0, 0, 0.60);
}

.card-donation .card-glow {
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(90, 158, 255, 0.07) 0%, transparent 70%);
}

.card-donation .card-label-dot {
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
  animation: none;
}

.card-donation .card-label-text { color: var(--blue) }

/* QR code */
.qr-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qr-ring {
  position: absolute;
  inset: -10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(90, 158, 255, 0.18);
  animation: ringPulse 3s ease-in-out infinite;
}

.qr-ring2 {
  position: absolute;
  inset: -20px;
  border-radius: calc(var(--radius-lg) + 10px);
  border: 1px solid rgba(90, 158, 255, 0.07);
  animation: ringPulse 3s 0.6s ease-in-out infinite;
}

.qr-wrap {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 12px;
  display: inline-flex;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(90, 158, 255, 0.12);
}

.qr-wrap img {
  width: 128px;
  height: 128px;
  display: block;
}

/* donation meta */
.donation-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-row {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: left;
}

.meta-label {
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 3px;
}

.meta-value {
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
}

.donate-note {
  font-size: 12px;
  color: var(--text3);
  font-style: italic;
  line-height: 1.6;
}


/* ── 7. FEATURES ───────────────────────────────────────────── */
.features-section {
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.3s ease both;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: all 0.2s ease;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.feature-card:hover {
  background: var(--bg3);
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}

.feature-card:hover::after { opacity: 1 }

.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.feature-card:hover .feature-icon {
  background: var(--accent-dim);
  border-color: rgba(232, 184, 48, 0.22);
  box-shadow: 0 0 12px var(--accent-glow);
}

.feature-card h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.55;
}


/* ── 8. INSTALL ─────────────────────────────────────────────── */
.install-section {
  animation: fadeUp 0.7s 0.4s ease both;
}

.install-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.install-titlebar {
  padding: 12px 20px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.05em;
}

/* macOS-style dots */
.win-dots { display: flex; gap: 6px }
.dot { width: 10px; height: 10px; border-radius: 50% }
.dot-r { background: #ff5f57 }
.dot-y { background: #febc2e }
.dot-g { background: #28c840 }

.install-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 184, 48, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-top: 1px;
}

.step-content {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.65;
  padding-top: 3px;
}

.step-content code {
  background: var(--bg4);
  border: 1px solid var(--border2);
  padding: 1px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue);
}

.step-content strong { color: var(--text) }


/* ── 9. FOOTER ─────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text3);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  animation: fadeUp 0.7s 0.5s ease both;
}

.site-footer .accent { color: var(--accent) }


/* ── 10. UTILITIES & SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px }
::-webkit-scrollbar-thumb:hover { background: rgba(232, 184, 48, 0.30) }


/* ── 11. ANIMATIONS ─────────────────────────────────────────── */
@keyframes gridDrift {
  0%   { background-position: 0 0 }
  100% { background-position: 60px 60px }
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1) }
  50%       { transform: translate(40px, 30px) scale(1.08) }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1) }
  50%       { transform: translate(-30px, -40px) scale(1.06) }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px) }
  to   { opacity: 1; transform: translateY(0) }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px) }
  to   { opacity: 1; transform: translateY(0) }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px var(--accent-glow) }
  50%       { box-shadow: 0 0 28px var(--accent-glow), 0 0 50px rgba(232, 184, 48, 0.12) }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-glow) }
  50%       { opacity: 0.35; box-shadow: 0 0 4px var(--accent-glow) }
}

@keyframes ringPulse {
  0%, 100% { opacity: 1; transform: scale(1) }
  50%       { opacity: 0.35; transform: scale(1.025) }
}


/* ── 12. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 680px) {
  .main-grid       { grid-template-columns: 1fr }
  .features-grid   { grid-template-columns: repeat(2, 1fr) }
  .hero h1         { font-size: 36px }
  .hero-sub        { font-size: 14px }
}

@media (max-width: 400px) {
  .features-grid   { grid-template-columns: 1fr }
}
