/* disobey.top — website styles */

@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --bg2: #0f0f12;
  --fg: #ffffff;
  --fg2: #c3c3c3;
  --fg3: #8b8b8b;
  --accent: #a855f7;
  --accent-dim: #6b3fa0;
  --green: #00ff41;
  --red: #ff4444;
  --border: #1a1a1f;
}

::selection { background: var(--accent); color: #000; }
* { margin: 0; padding: 0; box-sizing: border-box; scrollbar-width: none; }
::-webkit-scrollbar { width: 0; height: 0; }

body {
  font-family: 'Karla', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .15s; }

/* glow backdrop */
.glow-bg {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
  background: var(--bg); overflow: hidden;
}
.glow-bg::before, .glow-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(120px);
  opacity: 0.15; animation: drift 20s ease-in-out infinite;
}
.glow-bg::before { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -100px; }
.glow-bg::after { width: 500px; height: 500px; background: var(--green); bottom: -150px; right: -100px; animation-delay: -10s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(80px, 40px); } 66% { transform: translate(-40px, 60px); } }

/* ── page transition overlay ── */
#page-transition {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999;
  background: var(--bg); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#page-transition.active { opacity: 1; }

/* ── page entrance animation ── */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-enter > * {
  opacity: 0;
  animation: pageEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.page-enter > *:nth-child(1) { animation-delay: 0.05s; }
.page-enter > *:nth-child(2) { animation-delay: 0.12s; }
.page-enter > *:nth-child(3) { animation-delay: 0.19s; }
.page-enter > *:nth-child(4) { animation-delay: 0.26s; }
.page-enter > *:nth-child(5) { animation-delay: 0.33s; }
.page-enter > *:nth-child(6) { animation-delay: 0.40s; }
.page-enter > *:nth-child(7) { animation-delay: 0.47s; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; padding: 20px 48px;
  backdrop-filter: blur(12px); background: rgba(10,10,10,0.6);
  border-bottom: 1px solid var(--border);
}
.nav .logo { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.nav .logo b { color: var(--accent); }
.nav .links { margin-left: auto; display: flex; gap: 28px; font-size: 13px; color: var(--fg3); }
.nav .links a:hover { color: var(--fg); }
.nav .links .cta { color: var(--green); }
.nav .links .cta:hover { color: #00cc34; }
.nav .links a.active { color: var(--fg); }

/* shared */
.kicker { font-size: 11px; color: var(--fg3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.container { max-width: 860px; margin: 0 auto; padding: 0 48px; }
.container.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* sections */
.section { padding: 100px 0; }
.section h2 { font-family: 'Space Grotesk', sans-serif; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.section h2 b { color: var(--accent); }
.section .desc { font-size: 15px; color: var(--fg3); max-width: 480px; margin-bottom: 40px; }
.container.center .desc { text-align: center; }

/* download */
.dl-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-family: 'Karla', sans-serif; font-size: 15px; font-weight: 600;
  color: #000; background: var(--green); border: none; border-radius: 6px;
  cursor: pointer; transition: all .2s;
}
.dl-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,255,65,0.2); }
.dl-btn:disabled { background: #222; color: var(--fg3); cursor: default; }
.dl-btn svg { width: 18px; height: 18px; }
.dl-meta { font-size: 13px; color: var(--fg3); }
.dl-meta .v { color: var(--green); font-weight: 600; }
.dl-meta .sz { margin-left: 6px; }
.dl-error { font-size: 12px; color: var(--red); margin-top: 8px; }

/* changelog box */
.cl-box { margin-top: 24px; max-width: 520px; padding: 20px 24px; background: var(--bg2); border-radius: 8px; border: 1px solid var(--border); display: none; }
.cl-box.active { display: block; }
.cl-box .cl-label { font-size: 11px; color: var(--fg3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.cl-box .cl-text { font-size: 14px; color: var(--fg2); line-height: 1.7; white-space: pre-wrap; text-align: left; }

/* feature grid */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.feat-card { padding: 24px 0; }
.feat-card .ft { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feat-card .ft .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.feat-card .fd { font-size: 14px; color: var(--fg3); line-height: 1.7; }
.feat-card .fd code { font-family: 'Karla', monospace; color: var(--accent); font-size: 13px; }

/* steps */
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step .num { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 300; color: var(--accent); min-width: 48px; }
.step .body { padding-top: 4px; }
.step .body b { font-weight: 600; }
.step .body { font-size: 15px; color: var(--fg2); line-height: 1.7; }
.step .body code { font-family: 'Karla', monospace; color: var(--accent); font-size: 14px; }

/* footer */
.footer { padding: 60px 48px; border-top: 1px solid var(--border); text-align: center; }
.footer .by { font-size: 14px; color: var(--fg3); }
.footer .by b { color: var(--fg2); }

/* ── scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* staggered children inside a reveal container */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.revealed > *:nth-child(8) { transition-delay: 0.56s; }
.reveal-stagger.revealed > *:nth-child(9) { transition-delay: 0.64s; }
.reveal-stagger.revealed > *:nth-child(10) { transition-delay: 0.72s; }
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 700px) {
  .nav { padding: 16px 24px; }
  .nav .links { gap: 16px; }
  .container { padding: 0 24px; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 28px; }
  .feat-grid { grid-template-columns: 1fr; gap: 16px; }
}